Advertisement

Latest depth Activity

Hi

I'm trying to implement wireframe drawing with hidden line removal. In the geometry shader I make lines from the input triangle. I plan to change the z-value in the geometry shader so that the lines are closer to the camera to avoid stippling (maybe this approach is wrong too). 

I want to do …

3,904 views
Advertisement

gl_FragDepth is a value output by the fragment shader, it has whatever value you calculate for it. 

Are you asking what the value will be that's used for normally used depth testing and eventually stored in the depth buffer if you don't output gl_FragDepth? There can potentially be many fragmen…

5,932 views
Adaptive Depth offset for texture sampling

No correction for shadow cascade variance and tricky interpolation stuff (it's always more complicated than I think), I was wondering why it showed up in such an odd pattern, it seems blindingly obvious in retrospect. Glad you found the answer.

3,701 views
Advertisement
Advertisement