From 19907838ce7766e6936fc38be68e03ca2ea20046 Mon Sep 17 00:00:00 2001 From: Aaron Fenyes Date: Mon, 30 Sep 2024 17:59:48 -0700 Subject: [PATCH] Display: remove redundant depth test --- app-proto/full-interface/src/inversive.frag | 6 ++---- app-proto/inversive-display/src/inversive.frag | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app-proto/full-interface/src/inversive.frag b/app-proto/full-interface/src/inversive.frag index 8327f47..b7fb100 100644 --- a/app-proto/full-interface/src/inversive.frag +++ b/app-proto/full-interface/src/inversive.frag @@ -209,10 +209,8 @@ void main() { // composite the sphere fragments vec3 color = vec3(0.); for (int i = layer_cnt-1; i >= layer_threshold; --i) { - if (frags[i].pt.z < 0.) { - vec4 frag_color = frags[i].color; - color = mix(color, frag_color.rgb, frag_color.a); - } + vec4 frag_color = frags[i].color; + color = mix(color, frag_color.rgb, frag_color.a); } outColor = vec4(sRGB(color), 1.); } \ No newline at end of file diff --git a/app-proto/inversive-display/src/inversive.frag b/app-proto/inversive-display/src/inversive.frag index fc2a474..f76995d 100644 --- a/app-proto/inversive-display/src/inversive.frag +++ b/app-proto/inversive-display/src/inversive.frag @@ -205,10 +205,8 @@ void main() { // composite the sphere fragments vec3 color = vec3(0.); for (int i = layer_cnt-1; i >= layer_threshold; --i) { - if (frags[i].pt.z < 0.) { - vec4 frag_color = frags[i].color; - color = mix(color, frag_color.rgb, frag_color.a); - } + vec4 frag_color = frags[i].color; + color = mix(color, frag_color.rgb, frag_color.a); } outColor = vec4(sRGB(color), 1.); } \ No newline at end of file