Skip to content

Commit

Permalink
Fix NaN propagation.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementlandrin authored and clementlandrin committed Sep 6, 2023
1 parent f05cf77 commit 0ca0a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrt/prefab/rfx/TemporalBloom.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class DualFilterDown extends h3d.shader.ScreenShader {
sum += texture(source, calculatedUV - halfPixel.xy).rgb;
sum += texture(source, calculatedUV + vec2(halfPixel.x, -halfPixel.y)).rgb;
sum += texture(source, calculatedUV - vec2(halfPixel.x, -halfPixel.y)).rgb;
pixelColor.rgb = sum / 8.0;
pixelColor.rgb = max(sum / 8.0, 0.0);
}
};
}
Expand Down

0 comments on commit 0ca0a33

Please sign in to comment.