fix(iced-video): Update the color matrices and subtract .5 from uv samples to
This commit is contained in:
@@ -25,6 +25,6 @@ fn vs_main(
|
||||
fn fs_main(input: VertexOutput) -> @location(0) vec4<f32> {
|
||||
let y = textureSample(y_texture, texture_sampler, input.tex_coords).r;
|
||||
let uv = textureSample(uv_texture, texture_sampler, input.tex_coords).rg;
|
||||
let yuv = vec3f(y, uv);
|
||||
let yuv = vec3f(y, uv.x - 0.5, uv.y - 0.5);
|
||||
return vec4f(yuv * rgb_primaries, 1.0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user