cod5-sdk/deffiles/materials/mtl_unlit_deprecated.template
2008-11-20 00:00:00 +00:00

41 lines
No EOL
956 B
Text

#include "commonsetup.template"
#if @texScroll@
#define TEX_SCROLL_SUFFIX "_scrolluv"
#else
#define TEX_SCROLL_SUFFIX ""
#endif
#if "@blendFunc@" == "Replace"
#if "@alphaTest@" == "Always"
techniqueSet( "unlit_replace" + TEX_SCROLL_SUFFIX );
#elif "@alphaTest@" == "GT0" || "@alphaTest@" == "GE128"
techniqueSet( "unlit_alphatest" + TEX_SCROLL_SUFFIX );
#else
#error "blendFunc '@blendFunc@' with alphaTest '@alphaTest@' not supported for unlit materials"
#endif
#else
techniqueSet( "unlit_blend" + TEX_SCROLL_SUFFIX );
#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@ );
"uvScroll" = float2( @uScroll@, @vScroll@ );
}
refImage( "$colorMap$" );