MCPcopy Create free account
hub / github.com/ad-si/LuaCAD / getParityDepthFunc

Function getParityDepthFunc

OpenCSG/src/renderGoldfeather.cpp:263–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 }
262
263 GLenum getParityDepthFunc()
264 {
265 int setting = getOption(CameraOutsideOptimization);
266 if (setting == OptimizationOn || setting == OptimizationForceOn)
267 return GL_LEQUAL;
268 else
269 return GL_GREATER;
270 }
271
272 void discardFragments(const Batch& batch, int parity, int mask) {
273 glDepthFunc(GL_ALWAYS);

Callers 3

discardFragmentsFunction · 0.85
parityTestAndDiscardFunction · 0.85
renderGoldfeatherFunction · 0.85

Calls 1

getOptionFunction · 0.85

Tested by

no test coverage detected