Light ShadersΒΆ
Lights can contain one or more shaders. They are intended to shape the light illumination in space. For instance, you can add a Cone shader to any light which will limit the illumination to the space inside the cone.
Light Gizmos
- Select the light
- Open the
Shaders tab - Select the type of shader to add (Box, Cone, Cylinder, Frustum or Sphere)
- Optionally, name the shader
- Click the Add button
Each light may have more than one shader at a time. The final light contribution is the multiplication of all shaders. for instance, a Cone shader and a Sphere shader will provide a cone spot light with a custom spherical attenuation.
Light Shading Networks
Additionally, each light shader contains a shading network that you can use, to project a gobo texture for instance. Similarily, each shading network will multiply the final light contribution.
The default light shaders provided in the library have texturing abilities. To edit their values, simply open the shader tab in the properties. Also, the lights from the library are setup to contain these basic shaders.
- Double click a light in the browser or drag an drop a light in a window to see the list of available light shaders
- Double click the shader to edit its content.
Or
- Drag and drop the light shader from the Node List in a another window.
Overrides with the RenderGraph
Light shaders can be dynamically added or overriden using the RenderGraph. Use the LightAttributes RenderGraph node to add or change a light shader.