Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Renderer.useLightProbes

Switch to Manual
var useLightProbes: bool;
bool useLightProbes;
useLightProbes as bool

Description

Use light probes for this Renderer.

If enabled and baked light probes are present in the scene, an interpolated light probe will be calculated for this object and set as built-in shader uniform variables. Surface shaders use this information automatically. To add light probe contribution to your custom non-surface shaders, use ShadeSH9(worldSpaceNormal) in your vertex or pixel shader.