1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-01-31 02:01:19 +00:00

Fix division by zero when no effects were selected.

This commit is contained in:
Filippo Scognamiglio 2018-11-09 21:17:05 +01:00
parent 2b2ae66b8d
commit af8edc72f4

View File

@ -274,7 +274,7 @@ ShaderEffect {
vec2 txt_coords = coords + offset * jitterDisplacement;"
: "vec2 txt_coords = coords;") +
"float color = 0.0;" +
"float color = 0.0001;" +
(staticNoise !== 0 ? "
float noiseVal = noiseTexel.a;