EnvironmentMapSky

Description

sealed class Tinman.Engine.Components.EnvironmentMapSky

Derived from

EnvironmentMap abstract

An implementation of the IEnvironmentMap interface that generates a simple sky from a couple of color keys.

To control the appearance of the lower half hemisphere for the ground, use these properties:

The appearance of the sky in the upper hemisphere can be configured with these settings:

The Sun appearance can be modified with these properties:

Public / Constructors

Environment​Map​Sky


public constructor EnvironmentMapSky → (1)

lightLatitude opt : float64 = 45

Initial value for ILightProvider.LightAltitude.

Creates a new instance of EnvironmentMapSky.

Public / Attributes

Ground​Color​Dark


public attribute GroundColorDark → (get,set)

value : int64

The overall ground color.

Overall ground color (dark).

Set to 0 to disable the ground hemisphere.

See also

Colors

Ground​Color​Fade


public attribute GroundColorFade → (get,set)

value : float64

The fade range, given as the altitude angle below the horizon, in degrees.

The fade range between GroundColorLight (at the horizon) and GroundColorDark.

Defaults to 15.

Ground​Color​Light


public attribute GroundColorLight → (get,set)

value : int64

The overall ground color.

Overall ground color (light).

Set to 0 to disable the ground hemisphere.

See also

Colors

Sky​Color​Dark


public attribute SkyColorDark → (get,set)

value : int64

The overall sky color.

Overall sky color (dark).

Set to 0 to disable the sky hemisphere.

See also

Colors

Sky​Color​Fade


public attribute SkyColorFade → (get,set)

value : float64

The fade range, given as the relative Angle to the Sun position, in degrees.

The fade range between SkyColorLight (around the Sun) and SkyColorDark.

Defaults to 135.

Sky​Color​Haze


public attribute SkyColorHaze → (get,set)

value : int64

The sky haze color.

Hazy sky color at the horizon.

Set to 0 to disable the horizon haze.

See also

Colors

Sky​Color​Light


public attribute SkyColorLight → (get,set)

value : int64

The overall sky color.

Overall sky color (light).

Set to 0 to disable the sky hemisphere.

See also

Colors

Sun​Color


public attribute SunColor → (get,set)

value : int64

The sun color.

Apparent color of the sun.

Sun​Corona


public attribute SunCorona → (get,set)

value : float64

[>=1]
The corona size, relative to the sun size.

Relative size of the sun corona.

Sun​Intensity


public attribute SunIntensity → (get,set)

value : float64

[>0]
The intensity factor.

The light intensity of the sun disk, relative to the average blue sky part.

Defaults to 1.

Transparent


public attribute Transparent → (get,set)

value : bool

true to use 0 as the background color,
false to use Colors.Black.

Use a transparent background, instead of black?

Defaults to false.