Advertisement

Latest gl_FragDepth Activity

Is gl_FragDepth equal gl_FragCoord.z when msaa enable?

Outputting depth from a pixel/fragment shader does not play nice with MSAA. The issue is that the hardware will only invoke the pixel/fragment shader once for each covered pixel, however with MSAA you normally have unique depth values for each subsample within a pixel. When you output depth from th…

4,036 views
Advertisement
Advertisement
Advertisement
Advertisement