The SkyMaterial
property of the SceneSkyBox
class represents the material used for rendering the skybox. This material typically utilizes the "Sky" shader to create realistic sky effects in a scene.
The SkyMaterial
property of the SceneSkyBox
class represents the material used for rendering the skybox. This material typically utilizes the "Sky" shader to create realistic sky effects in a scene.
To use the SkyMaterial
property, you need to have an instance of the SceneSkyBox
class. You can then get or set the SkyMaterial
to change the appearance of the skybox in your scene.
// Example of setting the SkyMaterial for a SceneSkyBox SceneSkyBox skyBox = new SceneSkyBox(); Material skyMaterial = new Material("path/to/sky_shader"); skyBox.SkyMaterial = skyMaterial; // Example of getting the current SkyMaterial Material currentSkyMaterial = skyBox.SkyMaterial;