TerrainSky

Description

sealed class Tinman.Engine.Components.TerrainSky

Represents the settings for rendering the sky background of the terrain.

The sky background is rendered in three passes:

  1. Uniform background color (see Color)

  2. Background texture (see Texture)

  3. Environment map of terrain (see ILightingContainer.LightingMap)

Alpha-blending is performed by passes 2 and 3.

Public / Constructors

Terrain​Sky


public constructor TerrainSky → ()

Creates a new instance of TerrainSky.

Public / Attributes

Color


public attribute Color → (get,set)

value : int64

The color value, see Colors.

The uniform background color to use for render pass 1.

Set to 0 to disable render pass 1. Defaults to 0.

Environment​Map


public attribute EnvironmentMap → (get,set)

value : bool

true to enable render pass 3, false to disable it.

Enable render pass 3?

Defaults to true.

Mode


public attribute Mode → (get,set)

value : SkyMode

The sky mode.

The current sky mode.

Defaults to SkyMode.Local.

Texture


public attribute Texture → (get,set)

value : IResourceHandle

The cubemap texture handle or null for none.

The cubemap texture to use for render pass 2.

Set to null to disable render pass 2. Defaults to null.

Texture​Matrix


public attribute TextureMatrix → (get,set)

value : Mat3F

The affine transformation matrix to use for render pass 2.

Optional affine transformation matrix to use for render pass 2.

Defaults to Mat3F.Identity.