Gradient Property for Shader / Amplify Shader
Amplify Shader
Enjoying Gradient Property for Shader?Leave a reviewThis guide will help learn how to use the gradient property for amplify shaders.
Adding a gradient property
- Add a
Texture Objectnode and make it a property so it appears in the inspector. - The reference name must include
GradientTextureanywhere in it (case insensitive). Press the unlock button on the reference name to change it independently from the display name. - Under the Attributes tab, check Custom and add
GradientGUIas a custom attribute. - Use the included sub function to sample the gradient at a float
t(clamped 0-1), or pass aUVdirectly to sample it that way instead.
Last updated

