Torque3D Documentation / _generateds / TerrainCellMaterial

TerrainCellMaterial

Engine/source/terrain/terrCellMaterial.h

This is a complex material which holds one or more optimized shaders for rendering a single cell.

More...

Classes:

Protected Attributes

The deferred material for this material.

The reflection material for this material.

Protected Static Attributes

A vector of all terrain cell materials loaded in the system.

Protected Functions

bool
_initShader(bool deferredMat, bool reflectMat, bool baseOnly)

Public Functions

Returns a deferred material from this material.

Returns the reflection material from this material.

init(TerrainBlock * block, U64 activeMaterials, bool deferredMat, bool reflectMat, bool baseOnly)
setTransformAndEye(const MatrixF & modelXfm, const MatrixF & viewXfm, const MatrixF & projectXfm, F32 farPlane)
bool

Detailed Description

This is a complex material which holds one or more optimized shaders for rendering a single cell.

Protected Attributes

GFXTexHandle mBaseMapTexture 
GFXShaderConstHandle * mBaseTexMapConst 
GFXShaderConstHandle * mBlendDepthConst 
GFXShaderConstBufferRef mConsts 
U32 mCurrPass 
TerrainCellMaterial * mDeferredMat 

The deferred material for this material.

GFXShaderConstHandle * mDetailInfoPArrayConst 
GFXShaderConstHandle * mDetailInfoVArrayConst 
GFXShaderConstHandle * mDetailTexArrayConst 
GFXShaderConstHandle * mEyePosConst 
GFXShaderConstHandle * mEyePosWorldConst 
GFXShaderConstHandle * mFogColorConst 
GFXShaderConstHandle * mFogDataConst 
GFXTexHandle mLayerMapTexture 
GFXShaderConstHandle * mLayerSizeConst 
GFXShaderConstHandle * mLayerTexConst 
GFXShaderConstHandle * mLightInfoBufferConst 
NamedTexTargetRef mLightInfoTarget 
GFXShaderConstHandle * mLightMapTexConst 
GFXShaderConstHandle * mLightParamsConst 
GFXShaderConstHandle * mMacroInfoPArrayConst 
GFXShaderConstHandle * mMacroInfoVArrayConst 
GFXShaderConstHandle * mMacroTexArrayConst 
Vector< MaterialInfo * > mMaterialInfos 
U64 mMaterials 
GFXShaderConstHandle * mModelViewProjConst 
GFXShaderConstHandle * mNormalTexArrayConst 
GFXShaderConstHandle * mObjTransConst 
GFXShaderConstHandle * mOneOverTerrainSizeConst 
GFXShaderConstHandle * mOrmTexArrayConst 
GFXStateBlockRef mReflectionStateBlock 
TerrainCellMaterial * mReflectMat 

The reflection material for this material.

GFXShader * mShader 
GFXShaderConstHandle * mSquareSizeConst 
GFXStateBlockRef mStateBlock 
TerrainBlock * mTerrain 
GFXShaderConstHandle * mVEyeConst 
GFXShaderConstHandle * mViewToObjConst 
GFXStateBlockRef mWireframeStateBlock 
GFXShaderConstHandle * mWorldToObjConst 
GFXShaderConstHandle * mWorldViewOnlyConst 

Protected Static Attributes

const Vector< String > mSamplerNames 
Vector< TerrainCellMaterial * > smAllMaterials 

A vector of all terrain cell materials loaded in the system.

Protected Functions

_initShader(bool deferredMat, bool reflectMat, bool baseOnly)

_updateMaterialConsts()

Public Functions

TerrainCellMaterial()

~TerrainCellMaterial()

getDeferredMat()

Returns a deferred material from this material.

getReflectMat()

Returns the reflection material from this material.

init(TerrainBlock * block, U64 activeMaterials, bool deferredMat, bool reflectMat, bool baseOnly)

setTransformAndEye(const MatrixF & modelXfm, const MatrixF & viewXfm, const MatrixF & projectXfm, F32 farPlane)

setupPass(const SceneRenderState * state, const SceneData & sceneData)

Public Static Functions

_updateDefaultAnisotropy()

getShadowMat()