]> git.sesse.net Git - movit/commit
Reduce the amount of arithmetic in the BlurEffect shader a bit.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 18 Mar 2014 23:12:34 +0000 (00:12 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 18 Mar 2014 23:12:34 +0000 (00:12 +0100)
commit45955bca8c14dd8cac4fa922e45fb0f8be507d58
tree274f3b76c0ae53d117c2635814f095ff8f0f1107
parenta769c156547f85817bb53e729614cdb7fd29b324
Reduce the amount of arithmetic in the BlurEffect shader a bit.

We did additions and subtractions with zero, which is sort of a waste
on scalar architectures. Helps ever so slightly on the demo app on my NVidia
card (3–4%).
blur_effect.cpp
blur_effect.frag
effect_util.cpp
effect_util.h