Pass depth test for forward transparent geometry for texel without depth from deferred pass [skip ci]
This commit is contained in:
parent
b57f74012f
commit
81885abeb6
2 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue