Menu

Commit [r626]  Maximize  Restore  History

Improvement of GLSL fragment shader performance : minimize the amount of

'if' statements:
- Moved the selection of convoluation kernel to the C++ code of
ViewRenderWidget, using a uniform variable to set the kernel (instead of
a sequence of ifs in the shader).
- Computation of HSL <-> RGB conversions without any if (using mix and
step functions instead)

bruno.herbelin@gmail.com 2013-05-05

changed /trunk/shaders/imageProcessing_fragment.glsl
changed /trunk/shaders/imageProcessing_fragment_simplified.glsl
changed /trunk/src/Source.cpp
changed /trunk/src/ViewRenderWidget.cpp
changed /trunk/src/ViewRenderWidget.h
/trunk/shaders/imageProcessing_fragment.glsl Diff Switch to side-by-side view
Loading...
/trunk/shaders/imageProcessing_fragment_simplified.glsl Diff Switch to side-by-side view
Loading...
/trunk/src/Source.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/ViewRenderWidget.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/ViewRenderWidget.h Diff Switch to side-by-side view
Loading...