fix: better mix value
This commit is contained in:
+5
-1
@@ -29,5 +29,9 @@ void main() {
|
|||||||
|
|
||||||
mix_value = mix(mix_value, mix_value * 0.9 + 0.05, iDemo);
|
mix_value = mix(mix_value, mix_value * 0.9 + 0.05, iDemo);
|
||||||
|
|
||||||
fragColor = mix(color_b, color_a, mix_type ? step(mix_value, k) : mix_value);
|
if (mix_type) {
|
||||||
|
fragColor = mix(color_a, color_b, step(mix_value, k));
|
||||||
|
} else {
|
||||||
|
fragColor = mix(color_b, color_a, mix_value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user