Display: remove redundant depth test
This commit is contained in:
parent
e3120f7109
commit
19907838ce
@ -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.);
|
||||
}
|
@ -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.);
|
||||
}
|
Loading…
Reference in New Issue
Block a user