This commit is contained in:
2025-09-22 20:24:39 +02:00
parent a33c7d5bee
commit dd42319846
3 changed files with 3 additions and 3 deletions
-2
View File
@@ -1921,8 +1921,6 @@ subroutine(mix_stage_sub) vec4 mix_16(vec2 vUV, sampler2D ta, sampler2D tb, int
return mix_2(vUV, ta, tb, seed);
}
// TODO temp
const mat3x3 yuv_to_rgb = {{1,1,1},{0,-0.39465,2.03211},{1.13983,-0.5806,0}};
vec4 yuyvTex(sampler2D tex, vec2 vUV, int base_width) {
+1 -1
View File
@@ -7,5 +7,5 @@ in vec2 vUV;
out vec4 fragColor;
void main() {
fragColor = yuyvTex(tex1, vUV, 480); // TODO uniform
fragColor = yuyvTex(tex1, vUV, 848); // TODO uniform
}
+2
View File
@@ -360,6 +360,8 @@ ShaderProgram shaders_init(File *fragment_shaders, ConfigFile shader_config,
config_file_get_int(shader_config, "FRAG_MONITOR", 1) - 1;
program.sub_type_count =
config_file_get_int(shader_config, "SUB_TYPE_COUNT", 0);
program.sub_variant_count =
config_file_get_int(shader_config, "SUB_VARIANT_COUNT", 0);
program.in_count = config_file_get_int(shader_config, "IN_COUNT", 0);
init_gl(&program);