mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-02-07 05:31:24 +00:00
Fix division by zero when no effects were selected.
This commit is contained in:
parent
2b2ae66b8d
commit
af8edc72f4
@ -274,7 +274,7 @@ ShaderEffect {
|
|||||||
vec2 txt_coords = coords + offset * jitterDisplacement;"
|
vec2 txt_coords = coords + offset * jitterDisplacement;"
|
||||||
: "vec2 txt_coords = coords;") +
|
: "vec2 txt_coords = coords;") +
|
||||||
|
|
||||||
"float color = 0.0;" +
|
"float color = 0.0001;" +
|
||||||
|
|
||||||
(staticNoise !== 0 ? "
|
(staticNoise !== 0 ? "
|
||||||
float noiseVal = noiseTexel.a;
|
float noiseVal = noiseTexel.a;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user