rip 9nth texture

This commit is contained in:
2025-09-18 22:59:47 +02:00
parent f15d737e48
commit cd0d67441e
5 changed files with 16 additions and 20 deletions
+3 -4
View File
@@ -24,6 +24,7 @@ static char *output_shader_text = "#version 460\n"
" fragColor = texture(tex0, vUV);\n"
"}";
// TODO monitor should have special shader to use full capacity
static char *monitor_shader_text =
"#version 460\n"
"uniform sampler2D tex0;\n"
@@ -34,7 +35,6 @@ static char *monitor_shader_text =
"uniform sampler2D tex5;\n"
"uniform sampler2D tex6;\n"
"uniform sampler2D tex7;\n"
"uniform sampler2D tex8;\n"
"in vec2 vUV;\n"
"out vec4 fragColor;\n"
"float s(vec2 uv, float x0, float y0) {\n"
@@ -50,9 +50,8 @@ static char *monitor_shader_text =
" fragColor += s(uv,0,1) * texture(tex4, uv);\n"
" fragColor += s(uv,1,1) * texture(tex5, uv);\n"
" fragColor += s(uv,2,1) * texture(tex6, uv);\n"
" fragColor += s(uv,0,0) * texture(tex7, uv);\n"
" fragColor += s(uv,1,0) * texture(tex8, uv);\n"
" fragColor += s(uv,2,0) * texture(tex0, uv);\n"
" fragColor += s(uv,0.5,0) * texture(tex7, uv-vec2(0.5,0));\n"
" fragColor += s(uv,1.5,0) * texture(tex0, uv-vec2(0.5,0));\n"
"}";
static const Vertex vertices[6] = {{{0.0f, 0.0f}}, {{0.0f, 1.0f}},