DecalInstance

Engine/source/T3D/decal/decalInstance.h

DecalInstance represents a rendering decal in the scene.

More...

Public Functions

calcPixelSize(U32 viewportHeight, const Point3F & cameraPos, F32 worldToScreenScaleY)

Calculates the size of this decal onscreen in pixels, used for LOD.

getWorldMatrix(MatrixF * outMat, bool flip)

Detailed Description

DecalInstance represents a rendering decal in the scene.

You should not allocate this yourself, add new decals to the scene via the DecalManager. All data is public, change it if you wish, but be sure to inform the DecalManager.

Public Attributes

U32 mCreateTime 
GFXTexHandle * mCustomTex 
DecalData * mDataBlock 
U8 mFlags 
S32 mId 
U16 * mIndices 
U32 mIndxCount 
F32 mLastAlpha 
Point3F mNormal 
Point3F mPosition 
U8 mRenderPriority 
F32 mRotAroundNormal 
F32 mSize 
Point3F mTangent 
U32 mTextureRectIdx 
U32 mVertCount 
DecalVertex * mVerts 
F32 mVisibility 

Public Functions

DecalInstance()

calcPixelSize(U32 viewportHeight, const Point3F & cameraPos, F32 worldToScreenScaleY)

Calculates the size of this decal onscreen in pixels, used for LOD.

getRenderPriority()

getWorldBox()

getWorldMatrix(MatrixF * outMat, bool flip)