#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 ) "" : "normalMap"; } constantTable { "colorTint" = float4( @,colorTint@ ); } refImage( "$colorMap$" );