From a7e3a924aa6fd31511ba9c092272dafea7c3db70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Madar=C3=A1sz?= Date: Tue, 26 Mar 2024 19:40:53 +0100 Subject: [PATCH] sneaky shader --- engine/joint/v4k.h | 4 ++-- engine/split/v4k_renderdd.c | 4 ++-- engine/v4k.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/joint/v4k.h b/engine/joint/v4k.h index 270a910..d6b0651 100644 --- a/engine/joint/v4k.h +++ b/engine/joint/v4k.h @@ -374035,10 +374035,10 @@ static const char *dd_fs = "//" FILELINE "\n" // "precision mediump float;\n" "in vec3 out_color;\n" "out vec4 fragcolor;\n" - "uniform float gamma; /// set:2.2\n" + "uniform float u_gamma; /// set:2.2\n" "void main() {\n" " fragcolor = vec4(out_color, 1.0);\n" - " fragcolor.rgb = pow(fragcolor.rgb, vec3(gamma));\n" + " fragcolor.rgb = pow(fragcolor.rgb, vec3(u_gamma));\n" "}"; #define X(x) RGBX(x,255) diff --git a/engine/split/v4k_renderdd.c b/engine/split/v4k_renderdd.c index 78ad637..5d6b2f0 100644 --- a/engine/split/v4k_renderdd.c +++ b/engine/split/v4k_renderdd.c @@ -13,10 +13,10 @@ static const char *dd_fs = "//" FILELINE "\n" // "precision mediump float;\n" "in vec3 out_color;\n" "out vec4 fragcolor;\n" - "uniform float gamma; /// set:2.2\n" + "uniform float u_gamma; /// set:2.2\n" "void main() {\n" " fragcolor = vec4(out_color, 1.0);\n" - " fragcolor.rgb = pow(fragcolor.rgb, vec3(gamma));\n" + " fragcolor.rgb = pow(fragcolor.rgb, vec3(u_gamma));\n" "}"; #define X(x) RGBX(x,255) diff --git a/engine/v4k.c b/engine/v4k.c index bcada5f..92b2812 100644 --- a/engine/v4k.c +++ b/engine/v4k.c @@ -21190,10 +21190,10 @@ static const char *dd_fs = "//" FILELINE "\n" // "precision mediump float;\n" "in vec3 out_color;\n" "out vec4 fragcolor;\n" - "uniform float gamma; /// set:2.2\n" + "uniform float u_gamma; /// set:2.2\n" "void main() {\n" " fragcolor = vec4(out_color, 1.0);\n" - " fragcolor.rgb = pow(fragcolor.rgb, vec3(gamma));\n" + " fragcolor.rgb = pow(fragcolor.rgb, vec3(u_gamma));\n" "}"; #define X(x) RGBX(x,255)