2024
 
1.0

Layer Type: Gradient

WIP
Last modified: 18 March 2025

While Envelopes let you vary a setting based on time, a Gradient lets you vary a setting (Color, Luminosity, etc.) based on features like height of surface bumps, or distance to another object. So, for example, with an Envelope, you can make the Diffuse level 20% at frame 23. With a Gradient, you can make the Diffuse level 20% if a surface is 3.23 meters from the Cow object or the slope angle of the surface is 26.2 degrees.

surface_gradient_001.png

The Input Parameter determines what feature the setting varies over. Think of Gradients as filters for the selected Input Parameter. For example, if the surface is bumpy, colors can be different based on the height of the surface being colored if the Bump option is used. You can even use the preceding texture layer.

Gradients use gradient ramps (the colored bar) to depict the value change. You define different values along the bar. LightWave automatically determines the in-between values. Essentially, the different colors along the gradient correspond to texture color/values for the related Input Parameter. The gradient is just a colorful (and clever) way to create a graph.The Input Parameter defines what item will dynamically control the parameter.

surface_gradient_002.png
  • Previous Layer - uses the brightness data from the immediately underlying layer.

  • Bump - uses the height of a surface using Layout’s Default Unit on the General Options Tab of the Preferences Panel.

  • Slope - changes the parameter based on the angle (in degrees) of the surface relative to the ground (flat on Y axis).

  • Incidence Angle - uses the angle (in degrees) of the surface relative to the Camera.

  • Light Incidence - is similar to Incidence Angle, but the angle is relative to the selected light. Use the Light pop-up menu that appears.

  • Local Density (HyperVoxels only) - uses the density of the HyperVoxel .

  • Distance to… - settings change the parameter independently based on the distance from the surface to the selected camera or object. The X, Y, and Z Distance settings measure the distance only along the respective axis. If you select the distance to an object, an Object Selection pop-up menu will appear.

  • Weight Map - uses the Weight Map selected on the Weight Map pop-up menu.

  • Surface Thickness - is a method of faking sub-surface scattering. IMPORTANT: The surface must be set to double-sided and Trace Transparency needs to be activated.