sneaky shader

main
Dominik Madarász 2024-03-26 19:40:53 +01:00
parent bd19dba3a3
commit a7e3a924aa
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)