cod4-sdk/deffiles/materials/mtl_unlit_deprecated.template
2008-01-19 00:00:00 +00:00

31 lines
No EOL
738 B
Text

#include "commonsetup.template"
#if "@blendFunc@" == "Replace"
#if "@alphaTest@" == "Always"
techniqueSet( "unlit_replace" );
#elif "@alphaTest@" == "GT0" || "@alphaTest@" == "GE128"
techniqueSet( "unlit_alphatest" );
#else
#error "blendFunc '@blendFunc@' with alphaTest '@alphaTest@' not supported for unlit materials"
#endif
#else
techniqueSet( "unlit_blend" );
#endif
textureTable
{
#if "$colorMap$" == ""
#error "colorMap may not be blank in unlit materials"
#endif
"colorMap" = streamable map( "@tileColor@", "@filterColor@", "$colorMap$", @nopicmipColor@ ) "@formatColor@" : "colorMap";
}
constantTable
{
"colorTint" = float4( @,colorTint@ );
}
refImage( "$colorMap$" );