fxFoliageReplicator
Engine/source/T3D/fx/fxFoliageReplicator.h
Classes:
Protected Types
enum
_Anonymous_ { FoliageReplicationMask = (1 << 0) }
Private Types
Parent
Protected Attributes
bool
GFXVertexBufferHandle< GFXVertexFoliage >
Public Attributes
Protected Functions
FetchQuadrant(const Box3F & Box, U32 Quadrant)
ProcessNodeChildren(fxFoliageQuadrantNode * pParentNode, fxFoliageCulledList * pCullList)
ProcessQuadrant(fxFoliageQuadrantNode * pParentNode, fxFoliageCulledList * pCullList, U32 Quadrant)
renderBuffers(SceneRenderState * state)
renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * )
renderPlacementArea(const F32 ElapsedTime)
renderQuad(fxFoliageQuadrantNode * quadNode, const MatrixF & RenderTransform, const bool UseDebug)
Public Functions
Called after any property of the object is changed in the world editor.
bool
onAdd()
Called when the object is added to the sim.
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Instructs this object to pack its state for transfer over the network.
prepRenderImage(SceneRenderState * state)
Called when the SceneManager is ready for the registration of render instances.
unpackUpdate(NetConnection * conn, BitStream * stream)
Instructs this object to read state data previously packed with packUpdate.
Public Static Functions
Detailed Description
Protected Types
@183
Enumerator
- FoliageReplicationMask = (1 << 0)
Private Types
typedef SceneObject Parent
Protected Attributes
GBitmap * mAlphaLookup
GFXShaderConstHandle * mAlphaMapTextureSC
GFXTexHandle mAlphaTexture
U32 mBillboardsAcquired
bool mClientReplicationStarted
U32 mCreationAreaAngle
U32 mCurrentFoliageCount
GFXStateBlockRef mDebugSB
GFXShaderConstHandle * mDiffuseTextureSC
bool mDirty
F32 mFadeInGradient
F32 mFadeOutGradient
Vector< fxFoliageQuadrantNode * > mFoliageQuadTree
GFXShaderConstHandle * mFoliageShaderAmbientColorSC
GFXShaderConstHandle * mFoliageShaderCameraPosSC
GFXShaderConstBufferRef mFoliageShaderConsts
GFXShaderConstHandle * mFoliageShaderDistanceRangeSC
GFXShaderConstHandle * mFoliageShaderGlobalLightPhaseSC
GFXShaderConstHandle * mFoliageShaderGlobalSwayPhaseSC
GFXShaderConstHandle * mFoliageShaderGroundAlphaSC
GFXShaderConstHandle * mFoliageShaderLuminanceMagnitudeSC
GFXShaderConstHandle * mFoliageShaderLuminanceMidpointSC
GFXShaderConstHandle * mFoliageShaderProjectionSC
GFXShaderConstHandle * mFoliageShaderSwayMagnitudeFrontSC
GFXShaderConstHandle * mFoliageShaderSwayMagnitudeSideSC
GFXShaderConstHandle * mFoliageShaderTrueBillboardSC
GFXShaderConstHandle * mFoliageShaderWorldSC
U32 mFrameSerialID
fxFoliageRenderList mFrustumRenderSet
F32 mGlobalLightPhase
F32 mGlobalLightTimeRatio
F32 mGlobalSwayPhase
F32 mGlobalSwayTimeRatio
S32 mLastRenderTime
U32 mNextAllocatedNodeIdx
GFXStateBlockRef mPlacementSB
U32 mPotentialFoliageNodes
GFXPrimitiveBufferHandle mPrimBuffer
U32 mQuadTreeLevels
GFXStateBlockRef mRenderSB
Vector< fxFoliageItem * > mReplicatedFoliage
GFXShaderRef mShader
ShaderData * mShaderData
GFXVertexBufferHandle< GFXVertexFoliage > mVertexBuffer
MRandomLCG RandomGen
Public Attributes
class fxFoliageReplicator::tagFieldData mFieldData
Protected Functions
computeAlphaTex()
CreateFoliage(void )
DestroyFoliage(void )
DestroyFoliageItems()
FetchQuadrant(const Box3F & Box, U32 Quadrant)
ProcessNodeChildren(fxFoliageQuadrantNode * pParentNode, fxFoliageCulledList * pCullList)
ProcessQuadrant(fxFoliageQuadrantNode * pParentNode, fxFoliageCulledList * pCullList, U32 Quadrant)
renderArc(const F32 fRadiusX, const F32 fRadiusY)
renderBuffers(SceneRenderState * state)
renderObject(ObjectRenderInst * ri, SceneRenderState * state, BaseMatInstance * )
renderPlacementArea(const F32 ElapsedTime)
renderQuad(fxFoliageQuadrantNode * quadNode, const MatrixF & RenderTransform, const bool UseDebug)
SetupBuffers()
SetupShader()
SyncFoliageReplicators(void )
Public Functions
fxFoliageReplicator()
~fxFoliageReplicator()
DECLARE_CONOBJECT(fxFoliageReplicator )
HideReplication(void )
inspectPostApply()
Reimplemented from: SceneObject
onAdd()
Reimplemented from: SceneObject
onGhostAlwaysDone()
onRemove()
Reimplemented from: SceneObject
packUpdate(NetConnection * conn, U32 mask, BitStream * stream)
Reimplemented from: SceneObject
prepRenderImage(SceneRenderState * state)
Reimplemented from: SceneObject
ShowReplication(void )
StartUp(void )
unpackUpdate(NetConnection * conn, BitStream * stream)
Reimplemented from: SceneObject