Skip to content

Commit

Permalink
test something
Browse files Browse the repository at this point in the history
  • Loading branch information
audaki committed Apr 18, 2024
1 parent f34a382 commit 2ed502a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions resource/shaders/HDR/basic_hdr_shader_ps.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,15 @@ main (PS_INPUT input) : SV_TARGET
saturate (hdr_color.a)
);

color_out.r *= 0;
color_out.g *= 0;
color_out.b *= 0;
if (orig_color.r < FLT_EPSILON) {
color_out.r *= 0;
}
if (orig_color.g < FLT_EPSILON) {
color_out.g *= 0;
}
if (orig_color.b < FLT_EPSILON) {
color_out.b *= 0;
}

return
FinalOutput (color_out);
Expand Down

0 comments on commit 2ed502a

Please sign in to comment.