Go back to using uniforms for the gamma LUT

Apparently older macOS M1 GPU drivers' performance falls off a cliff
when using const float arrays instead. Fixes #6479
This commit is contained in:
Kovid Goyal
2023-07-18 19:28:15 +05:30
parent a0341af3f8
commit 902b9e9693
6 changed files with 11 additions and 25 deletions

View File

@@ -1,8 +1,8 @@
#pragma kitty_include_shader <srgb_gamma.glsl>
uniform uvec2 viewport;
uniform uint colors[9];
uniform float background_opacity;
uniform float tint_opacity, tint_premult;
uniform float gamma_lut[256];
in vec4 rect; // left, top, right, bottom
in uint rect_color;
out vec4 color;