Class GradientSkyboxSetup
A sky with no texture of its own: a small cubemap built on the CPU from three colours, zenith, horizon and nadir, then lit the way a photographed sky is. The default of Skybox.
public sealed class GradientSkyboxSetup : SkyboxSetupBase
- Inheritance
-
GradientSkyboxSetup
- Inherited Members
Properties
Horizon
The colour at the horizon, all around.
public Color Horizon { get; set; }
Property Value
LightIntensity
The intensity of the skybox light, 1 for the colours as they are.
public float LightIntensity { get; set; }
Property Value
Nadir
The colour straight down, below the ground.
public Color Nadir { get; set; }
Property Value
Zenith
The colour straight up.
public Color Zenith { get; set; }
Property Value
Methods
Create(IGame)
Creates the sky's entity, a BackgroundComponent and a skybox LightComponent, and adds it to the root scene.
public override Entity Create(IGame game)
Parameters
gameIGameThe running game; the root scene exists and the graphics device is ready.
Returns
- Entity
The entity added.