Skip to content
Snippets Groups Projects
Commit 101f9eeb authored by David C. Lonie's avatar David C. Lonie
Browse files

Add Depth stage to polydata fragment shaders.

The depth peelers currently assume gl_FragCoord.z is always the depth,
but the imposter shaders in Domains/Chemistry modify the depth.

This patch adds a //VTK::Depth::Impl hook into the fragment shader
template, before any depth peeling processing is applied. The depth
is stored into gl_FragDepth, and all depth processing now uses this
variable instead of gl_FragCoord.z.
parent 3f597823
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment