flatten state
This commit is contained in:
+9
-1
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user