Table of Contents

Class GradientSkyboxSetup

Namespace
Stride.CommunityToolkit.Engine
Assembly
Stride.CommunityToolkit.dll

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

Color

LightIntensity

The intensity of the skybox light, 1 for the colours as they are.

public float LightIntensity { get; set; }

Property Value

float

Nadir

The colour straight down, below the ground.

public Color Nadir { get; set; }

Property Value

Color

Zenith

The colour straight up.

public Color Zenith { get; set; }

Property Value

Color

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

game IGame

The running game; the root scene exists and the graphics device is ready.

Returns

Entity

The entity added.