MCPcopy Create free account
hub / github.com/carbonengine/trinity / SetInvertedDepthTest

Method SetInvertedDepthTest

trinity/Shader/Tr2EffectStateManager.cpp:834–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834void Tr2EffectStateManager::SetInvertedDepthTest( bool b )
835{
836 static const uint32_t overrides[] = {
837 0,
838 CMP_NEVER,
839 CMP_GREATER,
840 CMP_EQUAL,
841 CMP_GREATEREQUAL,
842 CMP_LESS,
843 CMP_NOTEQUAL,
844 CMP_LESSEQUAL,
845 CMP_ALWAYS
846 };
847
848 if( b )
849 {
850 SetRenderStateOverride( RS_ZFUNC, overrides );
851 }
852 else
853 {
854 SetRenderStateOverride( RS_ZFUNC, nullptr );
855 }
856}
857
858bool Tr2EffectStateManager::IsDepthTestInverted( void ) const
859{

Callers 7

RenderMethod · 0.80
RenderPickingMethod · 0.80
ExecuteMethod · 0.80
SetupCascadedShadowsMethod · 0.80
PerformPickingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected