Display: remove redundant depth test

This commit is contained in:
Aaron Fenyes 2024-09-30 17:59:48 -07:00
parent e3120f7109
commit 19907838ce
2 changed files with 4 additions and 8 deletions

View File

@ -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.);
}

View File

@ -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.);
}