fix
This commit is contained in:
@@ -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
@@ -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
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user