DecalData

Engine/source/T3D/decal/decalData.h

DataBlock implementation for decals.

More...

Public Types

enum
_Anonymous_ {  MAX_TEXCOORD_COUNT = 16
}

Private Types

Parent 

Public Attributes

The angle in degress used to clip geometry that faces away from the decal projection.

Milliseconds for decal to fade after expiration.

Milliseconds for decal to expire.

Render material for decal.

Name of material to use.

Material instance for decal.

bool
bool

Skip generating and collecting vertex normals for decals.

texRect [MAX_TEXCOORD_COUNT]

Public Functions

Called after any property of the object is changed in the world editor.

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

onStaticModified(const char * slotName, const char * newValue)

Specifically, these are called by setDataField when a static or dynamic field is modified, see the console details.

bool
preload(bool server, String & errorStr)

Called to prepare the datablock for use, after it has been unpacked.

Public Static Functions

Protected Functions

Detailed Description

DataBlock implementation for decals.

Public Types

@180

Enumerator

MAX_TEXCOORD_COUNT = 16

Private Types

typedef SimDataBlock Parent 

Public Attributes

F32 clippingAngle 

The angle in degress used to clip geometry that faces away from the decal projection.

S32 clippingMasks 
F32 fadeEndPixelSize 
F32 fadeStartPixelSize 
U32 fadeTime 

Milliseconds for decal to fade after expiration.

S32 frame 
U32 lifeSpan 

Milliseconds for decal to expire.

String lookupName 
SimObjectPtr< Material > material 

Render material for decal.

String materialName 

Name of material to use.

BaseMatInstance * matInst 

Material instance for decal.

bool randomize 
U8 renderPriority 
F32 size 
bool skipVertexNormals 

Skip generating and collecting vertex normals for decals.

S32 texCols 
S32 texCoordCount 
RectF texRect [MAX_TEXCOORD_COUNT]
S32 texRows 

Public Functions

DecalData()

~DecalData()

DECLARE_CONOBJECT(DecalData )

getMaterial()

getMaterialInstance()

inspectPostApply()

Reimplemented from: SimObject

onAdd()

Reimplemented from: SimDataBlock

onRemove()

Reimplemented from: SimObject

onStaticModified(const char * slotName, const char * newValue)

Reimplemented from: SimDataBlock

packData(BitStream * )

Reimplemented from: SimDataBlock

preload(bool server, String & errorStr)

Reimplemented from: SimDataBlock

reloadRects()

unpackData(BitStream * )

Reimplemented from: SimDataBlock

Public Static Functions

findDatablock(String lookupName)

getSet()

initPersistFields()

Protected Functions

_initMaterial()

_updateMaterial()