wip value input
This commit is contained in:
+3
-3
@@ -8,13 +8,13 @@ in vec2 vUV;
|
||||
out vec4 fragColor;
|
||||
|
||||
void main() {
|
||||
float mix_src = magic(seed7);
|
||||
bool key = magic_trigger(seed7 + 10);
|
||||
float mix_value = magic(src3_1[1].xy, vec3(1, 0, 0), seed7);
|
||||
bool mix_type = magic_trigger(vec3(src3_1[0].x, 0, 0), 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);
|
||||
fragColor = mix(color_b, color_a, mix_type ? step(mix_value, k) : mix_value);
|
||||
}
|
||||
Reference in New Issue
Block a user