TerrainCellMaterial
Engine/source/terrain/terrCellMaterial.h
This is a complex material which holds one or more optimized shaders for rendering a single cell.
Classes:
Protected Attributes
The prepass 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
_createPass(Vector< MaterialInfo * > * materials, Pass * pass, bool firstPass, bool prePassMat, bool reflectMat, bool baseOnly)
_updateMaterialConsts(Pass * pass)
Public Functions
Returns a prepass material from this material.
Returns the reflection material from this material.
init(TerrainBlock * block, U64 activeMaterials, bool prePassMat, bool reflectMat, bool baseOnly)
bool
setupPass(const SceneRenderState * state, const SceneData & sceneData)
Public Static Functions
Detailed Description
This is a complex material which holds one or more optimized shaders for rendering a single cell.
Protected Attributes
GFXTexHandle mBaseMapTexture
U32 mCurrPass
GFXTexHandle mLayerMapTexture
NamedTexTargetRef mLightInfoTarget
U64 mMaterials
Vector< Pass > mPasses
TerrainCellMaterial * mPrePassMat
The prepass material for this material.
TerrainCellMaterial * mReflectMat
The reflection material for this material.
TerrainBlock * mTerrain
Protected Static Attributes
const Vector< String > mSamplerNames
Vector< TerrainCellMaterial * > smAllMaterials
A vector of all terrain cell materials loaded in the system.
Protected Functions
_createPass(Vector< MaterialInfo * > * materials, Pass * pass, bool firstPass, bool prePassMat, bool reflectMat, bool baseOnly)
_updateMaterialConsts(Pass * pass)
Public Functions
TerrainCellMaterial()
~TerrainCellMaterial()
getPrePassMat()
Returns a prepass material from this material.
getReflectMat()
Returns the reflection material from this material.
init(TerrainBlock * block, U64 activeMaterials, bool prePassMat, bool reflectMat, bool baseOnly)
setTransformAndEye(const MatrixF & modelXfm, const MatrixF & viewXfm, const MatrixF & projectXfm, F32 farPlane)
setupPass(const SceneRenderState * state, const SceneData & sceneData)
