cod4-sdk/deffiles/materials/stencil.template

22 lines
514 B
Text
Raw Normal View History

2008-01-19 00:00:00 +00:00
#if "@stencil@" == "Disable"
stencil( Disable );
#elif "@stencil@" == "One-sided" || "@stencil@" == "Two-sided"
#if "@stencil@" == "Two-sided"
stencil( TwoSided );
stencilFunc( Back, @stencilFunc2@ );
stencilOp( Back, @stencilOpFail2@, @stencilOpZFail2@, @stencilOpPass2@ );
#else
stencil( OneSided );
#endif
stencilFunc( Front, @stencilFunc1@ );
stencilOp( Front, @stencilOpFail1@, @stencilOpZFail1@, @stencilOpPass1@ );
#else
#error "Unknown stencil '@stencil@'"
#endif