Latest gl_FragDepth Activity
![Is gl_FragDepth equal gl_FragCoord.z when msaa enable?](https://uploads.gamedev.net/forums/monthly_2021_05/c2e27581a03b4a128b2fe9004322b194.fragdeptherror.png)
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…
Advertisement
Advertisement
Advertisement