What it does

A Custom Interpolator passes a value calculated at vertices to Shader Graph's Fragment stage, interpolating it across the surface. Choose which values should be calculated per vertex before passing them on.

Figure: Conceptual relationship: Vertex computation → Interpolated attributes → Fragment use
Figure: Conceptual relationship: Vertex computation → Interpolated attributes → Fragment use

How to use it

Name and type a value computed in the Shader Graph vertex stage and read it through a Custom Interpolator in the fragment stage. Define its coordinate space and pass only necessary components.

A concrete example

Vertex height is interpolated across triangles. Interpolating vertex-evaluated sine can differ visibly from evaluating sine per fragment on coarse meshes.

How to check it

  1. Compare coarse and dense meshes against a fragment-calculation reference.
    Match element count, type and bounds
    Match element count, type and bounds
  2. Inspect direction renormalization, platform interpolator limits and compilation warnings.
    Match element count, type and bounds
    Match element count, type and bounds

Limitations

Interpolation changes nonlinear results; varying bandwidth and limits apply.

References