CustomMaterial

Engine/source/materials/customMaterialDefinition.h

More...

Public Types

enum
CustomConsts {
  MAX_PASSES = 8
  NUM_FALLBACK_VERSIONS = 2
}

Private Types

Parent 

Protected Attributes

Public Functions

bool

Called when the object is added to the sim.

Called when the object is removed from the sim.

Public Static Functions

Protected Functions

Map this material to the texture specified in the "mapTo" data variable.

Detailed Description

Public Types

CustomConsts

Enumerator

MAX_PASSES = 8
NUM_FALLBACK_VERSIONS = 2

Private Types

typedef Material Parent 

Public Attributes

Material * mFallback 
bool mForwardLit 
String mOutputTarget 
bool mRefract 
String mSamplerNames [MAX_TEX_PER_PASS]
ShaderData * mShaderData 
FileName mTexFilename [MAX_TEX_PER_PASS]
F32 mVersion 

Protected Attributes

U32 mFlags [MAX_TEX_PER_PASS]
U32 mMaxTex 
String mShaderDataName 
GFXStateBlockData * mStateBlockData 

Public Functions

CustomMaterial()

DECLARE_CONOBJECT(CustomMaterial )

getStateBlockData()

onAdd()

Reimplemented from: Material

onRemove()

Reimplemented from: Material

Public Static Functions

initPersistFields()

Protected Functions

_mapMaterial()

Reimplemented from: Material