flatten state

This commit is contained in:
2025-09-28 19:05:05 +02:00
parent 9c50495c85
commit add1e4c875
7 changed files with 49 additions and 160 deletions
+9 -1
View File
@@ -8,5 +8,13 @@ in vec2 vUV;
out vec4 fragColor;
void main() {
fragColor = mix_stage(vUV, tex7, tex8, seed7);
float mix_src = magic(seed7);
bool key = magic_trigger(seed7 + 10);
vec4 color_a = texture(tex7, vUV);
vec4 color_b = texture(tex8, vUV);
float k = mean(color_a);
fragColor = mix(color_b, color_a, key ? step(mix_src, k) : mix_src);
}