Skip to content

Commit

Permalink
Test with real display output clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
audaki committed Apr 18, 2024
1 parent ea89386 commit 3bc362b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions resource/shaders/HDR/basic_hdr_shader_ps.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ main (PS_INPUT input) : SV_TARGET

// Copied from real output, does this change anything?
{
//hdr_color = float4 (Clamp_scRGB_StripNaN (hdr_color.rgb),saturate (hdr_color.a));
hdr_color = float4 (Clamp_scRGB_StripNaN (hdr_color.rgb),saturate (hdr_color.a));

//hdr_color.r *= (orig_color.r >= FLT_EPSILON);
//hdr_color.g *= (orig_color.g >= FLT_EPSILON);
//hdr_color.b *= (orig_color.b >= FLT_EPSILON);
hdr_color.r *= (orig_color.r >= FLT_EPSILON);
hdr_color.g *= (orig_color.g >= FLT_EPSILON);
hdr_color.b *= (orig_color.b >= FLT_EPSILON);

//hdr_color = FinalOutput (hdr_color);
hdr_color = FinalOutput (hdr_color);
//hdr_color.rgb = clamp (LinearToPQ (REC709toREC2020 (hdr_color.rgb), 125.0f), 0.0, 1.0);
//hdr_color.rgb *= smoothstep (0.006978, 0.016667, hdr_color.rgb);
}
Expand Down

0 comments on commit 3bc362b

Please sign in to comment.