The gradient property is a Texture2D. This means that you need to add a Texture2D property to your shader graph.
To display a Gradient property correctly, you must set the graph's Custom Editor GUI to GradientShaderEditor.
Custom Editor GUI
GradientShaderEditor
Add a Texture2D property to your shader graph.
You must include "GradientTexture" anywhere in the reference name (letter case doesn't matter).
GradientTexture
The package includes a sub graph that lets you sample the gradient at float t (clamped 0-1).
t
0-1
Last updated 1 month ago