sneaky shader
parent
bd19dba3a3
commit
a7e3a924aa
|
@ -374035,10 +374035,10 @@ static const char *dd_fs = "//" FILELINE "\n"
|
||||||
// "precision mediump float;\n"
|
// "precision mediump float;\n"
|
||||||
"in vec3 out_color;\n"
|
"in vec3 out_color;\n"
|
||||||
"out vec4 fragcolor;\n"
|
"out vec4 fragcolor;\n"
|
||||||
"uniform float gamma; /// set:2.2\n"
|
"uniform float u_gamma; /// set:2.2\n"
|
||||||
"void main() {\n"
|
"void main() {\n"
|
||||||
" fragcolor = vec4(out_color, 1.0);\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)
|
#define X(x) RGBX(x,255)
|
||||||
|
|
|
@ -13,10 +13,10 @@ static const char *dd_fs = "//" FILELINE "\n"
|
||||||
// "precision mediump float;\n"
|
// "precision mediump float;\n"
|
||||||
"in vec3 out_color;\n"
|
"in vec3 out_color;\n"
|
||||||
"out vec4 fragcolor;\n"
|
"out vec4 fragcolor;\n"
|
||||||
"uniform float gamma; /// set:2.2\n"
|
"uniform float u_gamma; /// set:2.2\n"
|
||||||
"void main() {\n"
|
"void main() {\n"
|
||||||
" fragcolor = vec4(out_color, 1.0);\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)
|
#define X(x) RGBX(x,255)
|
||||||
|
|
|
@ -21190,10 +21190,10 @@ static const char *dd_fs = "//" FILELINE "\n"
|
||||||
// "precision mediump float;\n"
|
// "precision mediump float;\n"
|
||||||
"in vec3 out_color;\n"
|
"in vec3 out_color;\n"
|
||||||
"out vec4 fragcolor;\n"
|
"out vec4 fragcolor;\n"
|
||||||
"uniform float gamma; /// set:2.2\n"
|
"uniform float u_gamma; /// set:2.2\n"
|
||||||
"void main() {\n"
|
"void main() {\n"
|
||||||
" fragcolor = vec4(out_color, 1.0);\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)
|
#define X(x) RGBX(x,255)
|
||||||
|
|
Loading…
Reference in New Issue