cubesAmplify Shader

Add a Gradient Property to Amplify Shader

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

  1. Add a Texture Object node.

  2. Make sure it is a Property to see it in the inspector.

  3. You must include "GradientTexture" anywhere in the reference name (letter case doesn't matter). It is recommended to press the unlock button for the reference name and only change this to avoid messy property names.

  1. You must also check the Custom attribute under the Attributes tab.

  2. This lets you add a custom attribute. Add GradientGUI as an attribute.

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

Last updated