Color conversion fixes and BT.2020 support (#723)

This commit is contained in:
Cameron Gutman
2023-01-07 21:28:47 -06:00
committed by GitHub
parent 7770b5f708
commit 77d3a7e2ab
8 changed files with 21 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ struct PS_INPUT
float main_ps(PS_INPUT frag_in) : SV_Target
{
float3 rgb = image.Sample(def_sampler, frag_in.tex, 0).rgb;
float y = dot(color_vec_y.xyz, rgb);
float y = dot(color_vec_y.xyz, rgb) + color_vec_y.w;
return y * range_y.x + range_y.y;
}