13.07.2015 Views

What is path rendering?

What is path rendering?

What is path rendering?

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3D Path Rendering DetailsStencil step usesGLfloat slope = -0.05;GLint bias = -1;glPathStencilDepthOffsetNV(slope, bias);glDepthFunc(GL_LESS);glEnable(GL_DEPTH_TEST);Stenciling step usesglPathCoverDepthFuncNV(GL_ALWAYS);ObservationStencil step <strong>is</strong> testing—but not writing—depthStencil won’t be updated if stencil step fails depth test at a sampleCover step <strong>is</strong> writing—but not testing—depthCover step doesn’t need depth test because stencil test would only pass if prior stencilstep’s depth test passedTricky, but neat because minimal mode changes involved

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!