Skip to content

Commit

Permalink
simple clamp
Browse files Browse the repository at this point in the history
  • Loading branch information
audaki committed Apr 19, 2024
1 parent 948f15c commit 6c9da30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resource/shaders/HDR/basic_hdr_shader_ps.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ main (PS_INPUT input) : SV_TARGET


//color_out = float4(Clamp_scRGB_StripNaN (color_out.rgb), saturate(hdr_color.a));
color_out.rgb = clamp(color_out.rgb, -0.5, 7.4999);
//color_out.rgb *= ((orig_color.r > FP16_MIN) + (orig_color.g > FP16_MIN) + (orig_color.b > FP16_MIN) > 0.0f );


Expand Down

0 comments on commit 6c9da30

Please sign in to comment.