Color conversion fixes and BT.2020 support (#723)
This commit is contained in:
@@ -31,5 +31,5 @@ void main() {
|
||||
u = u * range_uv.x + range_uv.y;
|
||||
v = v * range_uv.x + range_uv.y;
|
||||
|
||||
color = vec2(u, v * 224.0f / 256.0f + 0.0625);
|
||||
color = vec2(u, v);
|
||||
}
|
||||
@@ -29,5 +29,5 @@ float2 main_ps(FragTexWide input) : SV_Target
|
||||
u = u * range_uv.x + range_uv.y;
|
||||
v = v * range_uv.x + range_uv.y;
|
||||
|
||||
return float2(u, v * 224.0f/256.0f + 0.0625);
|
||||
return float2(u, v);
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user