| TerrainRoadLayerHeightTextureScale Property |
Gets or sets the scale that is multiplied with samples of the height texture.
(This is a material parameter - see remarks.)
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public float HeightTextureScale { get; set; }
Public Property HeightTextureScale As Single
Get
Set
public:
property float HeightTextureScale {
float get ();
void set (float value);
}
member HeightTextureScale : float32 with get, set
Property Value
Type:
Single
The scale that is multiplied with samples of the height texture. The default value is 1.
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