Description
The SkyIndirectLighting
property of the SkyBox2D
class determines whether the skybox is used for indirect lighting as an environment map probe. This can affect the overall lighting and ambiance of the scene by using the skybox to simulate realistic lighting conditions.
Usage
To use the SkyIndirectLighting
property, you can set it to true
or false
depending on whether you want the skybox to contribute to the scene's indirect lighting. This property is part of the SkyBox2D
component, which is used to add a 2D skybox to your scene.
Example
// Create a new SkyBox2D component
SkyBox2D skybox = new SkyBox2D();
// Enable sky indirect lighting
skybox.SkyIndirectLighting = true;
// Alternatively, disable sky indirect lighting
skybox.SkyIndirectLighting = false;