TerrainSky
Description
Represents the settings for rendering the sky background of the terrain.
The sky background is rendered in three passes:
-
Uniform background color (see BackgroundColor)
-
Custom background texture (see TextureMap)
-
Environment map of terrain (see EnvironmentMap)
Alpha-blending is performed by passes 2 and 3.
Public / Methods
WeightToAlpha
Replaces the alpha channels of BackgroundColor, EnvironmentColor and TextureColor so that during rendering, they will be mixed according to the given weights.
If the sum of the given weights is greater than 1, they will be scaled down to a sum of 1.
- See also
Public / Attributes
BackgroundColor
The uniform background color to use for render pass 1.
Set to 0
to disable render pass 1. Defaults to 0
.
EnvironmentMap
Enable render pass 3?
This pass renders the environment map that is used for image-based lighting. Defaults to true
.
EnvironmentMatrix
Optional affine transformation matrix to use for render pass 3.
The matrix is applied after the transformation from light space to terrain space (see TerrainView.LightingMatrix). Defaults to Mat3F.Identity.
TextureMap
The cubemap texture to use for render pass 2.
Set to null
to disable render pass 2. Defaults to null
.
TextureMatrix
Optional affine transformation matrix to use for render pass 2.
The matrix is applied after the transformation from light space to terrain space (see TerrainView.LightingMatrix). Defaults to Mat3F.Identity.