Method | Description | |
---|---|---|
AddReference ( ) : void | ||
EvaluateRegisters ( float ®isters, float shaderParms, |
||
EvaluateRegisters ( float ®isters, float shaderParms, |
||
GetStage ( int index ) : |
||
Parse ( string text ) : bool |
Parses the current material definition and finds all necessary images.
|
|
TestMaterialFlag ( MaterialFlags flag ) : bool |
Test for existance of specific material flag(s).
|
|
idMaterial ( ) : System |
Method | Description | |
---|---|---|
ClearData ( ) : void | ||
GenerateDefaultText ( ) : bool |
Method | Description | |
---|---|---|
AddImplicitStages ( TextureRepeat textureRepeatDefault = TextureRepeat.Repeat ) : void |
Adds implicit stages to the material. If a material has diffuse or specular stages without any bump stage, add an implicit _flat bumpmap stage. It is valid to have either a diffuse or specular without the other. It is valid to have a reflection map and a bump map for bumpy reflection. |
|
AppendToken ( StringBuilder b, |
||
CheckForConstantRegisters ( ) : void |
As of 5/2/03, about half of the unique materials loaded on typical maps are constant, but 2/3 of the surface references are. This is probably an optimization of dubious value.
|
|
CheckSurfaceParameter ( |
See if the current token matches one of the surface parameter bit flags.
|
|
Clear ( ) : void | ||
EmitOp ( int a, int b, ExpressionOperationType opType ) : int | ||
GetDestinationBlendMode ( string name ) : MaterialStates | ||
GetExpressionConstant ( float f ) : int | ||
GetExpressionOperation ( ) : |
||
GetExpressionTemporary ( ) : int | ||
GetSourceBlendMode ( string name ) : MaterialStates | ||
MatchAndAppendToken ( StringBuilder b, |
||
MatchToken ( |
Sets defaultShader and returns false if the next token doesn't match.
|
|
MultiplyTextureMatrix ( |
||
ParseBlend ( |
||
ParseDecalInfo ( |
||
ParseDeform ( |
||
ParseEmitOp ( |
||
ParseExpression ( |
|
|
ParseExpressionPriority ( |
||
ParseFragmentMap ( |
||
ParseMaterial ( |
Parses the material, if there are any errors during parsing the defaultShader will be set.
|
|
ParsePastImageProgram ( |
||
ParseSort ( |
||
ParseStage ( |
||
ParseTerm ( |
|
|
ParseVertexParameter ( |
Parses a vertex parameter. If there is a single value, it will be repeated across all elements. If there are two values, 3 = 0.0, 4 = 1.0. if there are three values, 4 = 1.0. |
|
SortInteractionStages ( ) : void |
Sorts the shader stages. The renderer expects bump, then diffuse, then specular There can be multiple bump maps, followed by additional diffuse and specular stages, which allows cross-faded bump mapping. |
public EvaluateRegisters ( float ®isters, float shaderParms, |
||
registers | float | |
shaderParms | float | |
view | ||
return | void |
public EvaluateRegisters ( float ®isters, float shaderParms, |
||
registers | float | |
shaderParms | float | |
view | ||
soundEmitter | idSoundEmitter | |
return | void |
public GetStage ( int index ) : |
||
index | int | |
return |
public TestMaterialFlag ( MaterialFlags flag ) : bool | ||
flag | MaterialFlags | |
return | bool |