Describes a material-based terrain texture.
sealed class
|
TerrainTexture
|
Combined texture map for: albedo, reflectivity.
public
readonly
field
|
AlbedoReflectivity
|
||
type
|
IModelTexture
|
Remarks:
The red, green and blue channels store the albedo color (sRGB). See AlbedoMap.
The alpha channel stores the inverse grayscale reflectivity (linear). See ReflectivityMap.
The
displacement
map
or
null
.
public
readonly
field
|
Displacement
|
||
type
|
IModelTexture
|
Remarks:
The displacement map stores displacement amounts, which are used to displace mesh vertices along their normal vectors. See DisplacementMap.
The terrain-space range of Displacement.
public
readonly
field
|
DisplacementRange
|
||
type
|
VerticalRange
|
Remarks:
The displacement range is given in metres. See Displacement.
Combined
texture
map
for
normals,
ambient
occlusion
and
gloss,
or
null
.
public
readonly
field
|
NormalAmbientRoughness
|
||
type
|
IModelTexture
|
Remarks:
The red and blue channels store the reduced unit-length tangent-space normal vectors (see EncodeNormals). See NormalMap.
The green channel stores the inverse ambient occlusion intensity (linear). See OcclusionMap.
The alpha channel stores the inverse gloss resp. roughness value (linear). See GlossMap.
The texture scale, in terrain-space.
public
readonly
field
|
Scale
|
||
type
|
float32
|
Creates a new instance of TerrainTexture.
public
constructor
|
TerrainTexture
(IModelTexture albedoReflectivity,
IModelTexture normalAmbientGloss = null,
IModelTexture displacement = null,
VerticalRange displacementRange = default(VerticalRange),
float32 scale = 1)
|
||
params
|
albedoReflectivity
|
Combined texture map for: albedo, reflectivity. (see AlbedoReflectivity). | |
normalAmbientGloss
|
Combined
texture
map
for
normals,
ambient
occlusion
and
gloss
(see
NormalAmbientRoughness).
Defaults
to
null .
|
||
displacement
|
The displacement map (see Displacement). | ||
displacementRange
|
The terrain-space range of displacement (see DisplacementRange). | ||
scale
|
The
texture
scale,
in
terrain-space.
Defaults
to
1 . |