MCPcopy Index your code
hub / github.com/ad-si/LuaCAD / discardFragments

Function discardFragments

OpenCSG/src/renderGoldfeather.cpp:272–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 }
271
272 void discardFragments(const Batch& batch, int parity, int mask) {
273 glDepthFunc(GL_ALWAYS);
274 glDepthMask(GL_TRUE);
275 glDepthRange(1.0, 1.0);
276 glStencilMask(mask);
277 glStencilFunc(GL_NOTEQUAL, parity, mask);
278 glStencilOp(GL_ZERO, GL_ZERO, GL_ZERO);
279 channelMgr->renderToChannel(true);
280 glColor4ub(0, 0, 0, 0);
281
282 touchFragments(batch);
283
284 glDepthRange(0.0, 1.0);
285 glDepthMask(GL_FALSE);
286 glDepthFunc(getParityDepthFunc());
287 }
288
289 void discardFragments(int parity, int mask) {
290 glDepthFunc(GL_ALWAYS);

Callers 1

parityTestAndDiscardFunction · 0.85

Calls 5

touchFragmentsFunction · 0.85
getParityDepthFuncFunction · 0.85
drawQuadFunction · 0.85
renderToChannelMethod · 0.80

Tested by

no test coverage detected