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

37 lines
554 B
Text

#if "@depthWrite@" == "Off"
depthWrite( Disable );
#elif "@depthWrite@" == "On"
depthWrite( Enable );
#elif "@blendFunc@" == "Add"
depthWrite( Disable );
#elif "@blendFunc@" == "Blend"
depthWrite( Disable );
#elif "@blendFunc@" == "Multiply"
depthWrite( Disable );
#elif "@blendFunc@" == "Replace"
depthWrite( Enable );
#elif "@blendFunc@" == "Screen Add"
depthWrite( Disable );
#elif "@blendFunc@" == "Custom"
depthWrite( Disable );
#else
#error "unknown blendFunc \"@blendFunc@\""
#endif