Skip to content

Commit

Permalink
maybe final test? let’s goo
Browse files Browse the repository at this point in the history
  • Loading branch information
audaki committed Apr 19, 2024
1 parent 237264d commit a9a87d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions resource/shaders/HDR/basic_hdr_shader_ps.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,11 @@ main (PS_INPUT input) : SV_TARGET

if (visualFunc.y == 1)
{
analyze_color = float4 (Clamp_scRGB_StripNaN (analyze_color.rgb),saturate (analyze_color.a));
//analyze_color = float4 (Clamp_scRGB_StripNaN (analyze_color.rgb),saturate (analyze_color.a));

// 0 => i.e. true black seems to get mapped outside of Rec.709 / P3
analyze_color.rgb *=
( (orig_color.r > FP16_MIN) +
(orig_color.g > FP16_MIN) +
(orig_color.b > FP16_MIN) > 0.0f );
//analyze_color.rgb *= ((orig_color.r > FP16_MIN) + (orig_color.g > FP16_MIN) + (orig_color.b > FP16_MIN) > 0.0f );

//analyze_color.rgb =
// clamp (LinearToPQ (REC709toREC2020 (analyze_color.rgb), 125.0f), 0.0, 1.0);

Expand Down

0 comments on commit a9a87d8

Please sign in to comment.