37 lines
554 B
Text
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
|