Commit graph

2 commits

Author SHA1 Message Date
Simon Ser
ddd47368f3 wip: render/gles2: add support for 3D LUT transforms 2022-11-29 10:29:40 +01:00
Simon Ser
25d8151870 render/gles2: unify fragment shader
Instead of having 3 different fragment shaders for textures and 1
more for quads, unify them all and compile different variants via
a SOURCE constant.

In the future, we will have more variant dimensions: pre-multiplied
alpha on/off, color transformation, etc. It will become inpractical
to have one file per combination.

Weston has a similar approach:
https://gitlab.freedesktop.org/wayland/weston/-/blob/main/libweston/renderer-gl/fragment.glsl
2022-11-29 10:28:29 +01:00