Fix: Add static noise when horizontal distortion is activated.

This commit is contained in:
Filippo Scognamiglio 2014-12-15 22:24:57 +01:00
parent 38d4c5dd52
commit fa59bb06b1

View File

@ -238,7 +238,9 @@ ShaderEffect {
(horizontal_sincronization !== 0 ? "
float dst = sin((coords.y + time * 0.001) * distortionFreq);
coords.x += dst * distortionScale;"
coords.x += dst * distortionScale;" +
(noise_strength ? "
noise += distortionScale * 3.0;" : "")
: "") +
(jitter !== 0 || noise_strength !== 0 ?