blockShader Graph

Add a Gradient Property to Shader Graph

The gradient property is a Texture2D. This means that you need to add a Texture2D property to your shader graph.

  1. To display a Gradient property correctly, you must set the graph's Custom Editor GUI to GradientShaderEditor.

  1. Add a Texture2D property to your shader graph.

  2. You must include "GradientTexture" anywhere in the reference name (letter case doesn't matter).

  1. The package includes a sub graph that lets you sample the gradient at float t (clamped 0-1).

Last updated