Pass depth test for forward transparent geometry for texel without depth from deferred pass [skip ci]

This commit is contained in:
saschawillems 2017-01-12 20:02:55 +01:00
parent b57f74012f
commit 81885abeb6
2 changed files with 1 additions and 1 deletions

View file

@ -23,7 +23,7 @@ void main ()
{
// Sample depth from deferred depth buffer and discard if obscured
float depth = subpassLoad(samplerPositionDepth).a;
if (linearDepth(gl_FragCoord.z) > depth)
if ((depth != 0.0) && (linearDepth(gl_FragCoord.z) > depth))
{
discard;
};