Describes a terrain material for texturing.
sealed class
|
TerrainMaterial
|
The horizontal terrain texture.
public
readonly
field
|
Horizontal
|
||
type
|
TerrainTexture
|
Optional material key.
public
readonly
field
|
Key
|
||
type
|
MaterialKey
|
Remarks:
The material key is used to extract material weights from the Texture layer.
Human-readable name of this terrain material.
public
property
|
Name
{
get
set
}
|
||
type
|
string
|
||
value
|
The
terrain
material
name
or
null . |
A placeholder texture using the material key color (see Color).
public
readonly
field
|
Placeholder
|
||
type
|
IModelTexture
|
The
vertical
terrain
texture
(for
triplanar
mapping)
or
null
(for
standard
UV-mapping).
public
readonly
field
|
Vertical
|
||
type
|
TerrainTexture
|
Creates a new instance of TerrainMaterial.
public
constructor
|
TerrainMaterial
(MaterialKey key,
TerrainTexture horizontal,
TerrainTexture vertical,
string name = null)
|
||
params
|
key
|
The material key for this terrain material. | |
horizontal
|
[not-null]
|
The horizontal terrain texture. | |
vertical
|
The
vertical
terrain
texture
(triplanar
mapping)
or
null
(UV-mapping).
Defaults
to
null .
|
||
name
|
Optional
human-readable
name
of
this
terrain
material.
Defaults
to
null .
|