No depth reject for symmetry

This commit is contained in:
Lubos Lenco
2020-05-20 10:38:31 +02:00
parent f14ee9924e
commit 8c8368c0fe
+2
View File
@@ -115,6 +115,8 @@ class MakePaint {
// TODO: sp.z needs to take height channel into account
if (Config.raw.brush_3d && !decal && MaterialBuilder.heightUsed) depthReject = false;
if (Context.symX || Context.symY || Context.symZ) depthReject = false;
if (depthReject) {
#if (kha_opengl || kha_webgl)
frag.write('if (sp.z > textureLod(gbufferD, vec2(sp.x, 1.0 - sp.y), 0.0).r) discard;');