Description
The EnableIndirectLighting
property of the SceneCamera
class allows you to enable or disable indirect lighting for the camera. Indirect lighting refers to the illumination that occurs when light bounces off surfaces and indirectly lights other areas. This can enhance the realism of the scene by simulating how light interacts with the environment.
Usage
To use the EnableIndirectLighting
property, simply set it to true
to enable indirect lighting or false
to disable it. This property is useful when you want to control the lighting effects in your scene, especially when performance considerations are important.
Example
// Create a new SceneCamera instance
SceneCamera camera = new SceneCamera();
// Enable indirect lighting
camera.EnableIndirectLighting = true;
// Disable indirect lighting
camera.EnableIndirectLighting = false;