Skip to content

effects/blur: Make shader code readable

Vlad Zahorodnii requested to merge work/zzag/readable-blur-shaders into master

At the moment, blur shader code is barely readable because the code is constructed at runtime.

Since ShaderManager handles opengl context profiles when loading shaders from files, we can improve code readability by splitting shader code in the corresponding files.

Note that ShaderManager adds "precision highp float;" for convenience (whether using "highp" is okay is up for debate).

Merge request reports