Torque3D Documentation / _generateds / TerrainMaterial

TerrainMaterial

Engine/source/terrain/terrMaterial.h

The TerrainMaterial class orginizes the material settings for a single terrain material layer.

More...

Private Types

Parent 

Protected Attributes

Depth for blending the textures using the new blending method.

The size of the detail map in meters used to generate the texture coordinates for the detail and normal maps.

The size of the diffuse base map in meters used to generate its texture coordinates.

bool
bool

Normally the detail is projected on to the xy coordinates of the terrain.

Public Static Functions

findOrCreate(const char * nameOrPath)

This method locates the TerrainMaterial if it exists, tries to create a new one if a valid texture path was passed, or returns a debug material if all else fails.

Returns the default warning terrain material used when a material is not found or defined.

Detailed Description

The TerrainMaterial class orginizes the material settings for a single terrain material layer.

Private Types

typedef SimObject Parent 

Protected Attributes

F32 mBlendContrast 
F32 mBlendDepth 

Depth for blending the textures using the new blending method.

Higher numbers = larger blend radius.

F32 mDetailDistance 
F32 mDetailSize 

The size of the detail map in meters used to generate the texture coordinates for the detail and normal maps.

F32 mDetailStrength 
F32 mDiffuseSize 

The size of the diffuse base map in meters used to generate its texture coordinates.

bool mInvertRoughness 
bool mIsSRGB 
F32 mMacroDistance 
F32 mMacroSize 
F32 mMacroStrength 
F32 mParallaxScale 
bool mSideProjection 

Normally the detail is projected on to the xy coordinates of the terrain.

If this flag is true then this detail is projected along the xz and yz planes.

Protected Functions

DECLARE_TEXTUREMAP(TerrainMaterial , DetailMap )

DECLARE_TEXTUREMAP(TerrainMaterial , DiffuseMap )

DECLARE_TEXTUREMAP(TerrainMaterial , MacroMap )

DECLARE_TEXTUREMAP(TerrainMaterial , NormalMap )

DECLARE_TEXTUREMAP(TerrainMaterial , ORMConfigMap )

Public Functions

TerrainMaterial()

~TerrainMaterial()

DECLARE_CONOBJECT(TerrainMaterial )

getBlendContrast()

getBlendDepth()

getDetailDistance()

getDetailSize()

getDetailStrength()

getDiffuseSize()

getInvertRoughness()

getIsSRGB()

getMacroDistance()

getMacroSize()

getMacroStrength()

getParallaxScale()

onAdd()

Reimplemented from: SimObject

useSideProjection()

Public Static Functions

findOrCreate(const char * nameOrPath)

This method locates the TerrainMaterial if it exists, tries to create a new one if a valid texture path was passed, or returns a debug material if all else fails.

getWarningMaterial()

Returns the default warning terrain material used when a material is not found or defined.

initPersistFields()