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

36 lines
No EOL
911 B
Text

#include "commonsetup.template"
#if "@blendFunc@" == "Add"
#error "additive not allowed on ambient materials"
#endif
#if "@blendFunc@" == "Replace"
#if "@alphaTest@" == "Always"
techniqueSet( "ambient_r0c0" );
#else
techniqueSet( "ambient_t0c0" );
#endif
#elif "@blendFunc@" == "Blend"
techniqueSet( "ambient_blend" );
#else
#error "blendFunc '@blendFunc@' with alphaTest '@alphaTest@' not supported for ambient materials"
#endif
textureTable
{
#if "$colorMap$" == ""
#error "colorMap may not be blank in ambient materials"
#endif
"colorMap" = streamable map( "@tileColor@", "@filterColor@", "$colorMap$", @nopicmipColor@ ) "@formatColor@" : "colorMap";
"normalMap" = map( "tile both", "nomip nearest", "$identityNormalMap", true ) "<auto compression>" : "normalMap";
}
constantTable
{
"colorTint" = float4( @,colorTint@ );
}
refImage( "$colorMap$" );