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

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

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 mDetailDistance 
FileName mDetailMap 
F32 mDetailSize 

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

F32 mDetailStrength 
FileName mDiffuseMap 
F32 mDiffuseSize 

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

F32 mMacroDistance 
FileName mMacroMap 
F32 mMacroSize 
F32 mMacroStrength 
FileName mNormalMap 
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.

Public Functions

TerrainMaterial()

~TerrainMaterial()

DECLARE_CONOBJECT(TerrainMaterial )

getDetailDistance()

getDetailMap()

getDetailSize()

getDetailStrength()

getDiffuseMap()

getDiffuseSize()

getMacroDistance()

getMacroMap()

getMacroSize()

getMacroStrength()

getNormalMap()

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()