Click or drag to resize
DigitalRuneTerrainRoadLayerHeightTextureBias Property
Gets or sets the bias that is added to samples of the height texture. (This is a material parameter - see remarks.)

Namespace: DigitalRune.Graphics
Assembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax
public float HeightTextureBias { get; set; }

Property Value

Type: Single
The bias that is added to samples of the height texture. The default value is 0.
Remarks

This is material parameter. Changing this property affects all terrain layers that share the same material.

The HeightTextureScale and the HeightTextureBias can be used to modify the height samples read from the HeightTexture. The resulting height values is:

HeightTextureScale * value + HeightTextureBias

If the standard TerrainNode with a DetailClipmap is used, the resulting height values need to be in the range [0, 1]. Values outside this range will be clamped.

See Also