Material SkyMaterial { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

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.

Usage

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

// 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;