Application prototype #14

Merged
glen merged 101 commits from app-proto into main 2024-10-21 23:38:28 +00:00
2 changed files with 4 additions and 8 deletions
Showing only changes of commit 19907838ce - Show all commits

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