Optimised and configurable motion blur effects. Other fixes. #187

Merged
Swordfish90 merged 6 commits from refactoring into master 2014-12-16 01:50:40 +01:00
Showing only changes of commit fa59bb06b1 - Show all commits

View File

@ -238,7 +238,9 @@ ShaderEffect {
(horizontal_sincronization !== 0 ? " (horizontal_sincronization !== 0 ? "
float dst = sin((coords.y + time * 0.001) * distortionFreq); 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 ? (jitter !== 0 || noise_strength !== 0 ?