cod2-sdk/deffiles/materials/mtl_distortion.template

21 lines
439 B
Plaintext

refImage( "$colorMap$" );
#include "commonsetup.template"
techniqueSet( "distortion" );
textureTable
{
#if "$colorMap$" == ""
#error "colorMap may not be blank in distortion effect materials"
#endif
"colorMap" = map( "@tileColor@", "@filterColor@", "$colorMap$", @nopicmipColor@ ) "@formatColor@" : "colorMap";
}
constantTable
{
"distortionScale" = float4( @distortionScaleX@, @distortionScaleY@, 0, 0 );
}