cod5-sdk/deffiles/materials/mtl_distortion.template

22 lines
576 B
Plaintext

#include "commonsetup.template"
#if "@distortionColorBehavior@" == "scales distortion strength"
techniqueSet( "distortion_scale_zfeather" );
#else
techniqueSet( "distortion_shade_zfeather" );
#endif
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 );
}
refImage( "$colorMap$" );