mirror of
https://github.com/bevyengine/bevy
synced 2025-03-02 14:27:21 +00:00
Tweak color normalization to work properly with new blur intensity calculation
This commit is contained in:
parent
1b3338138e
commit
dfd204abd1
1 changed files with 1 additions and 1 deletions
|
@ -417,7 +417,7 @@ fn fetch_transmissive_background(offset_position: vec2<f32>, frag_coord: vec3<f3
|
||||||
// warrant this treatment.
|
// warrant this treatment.
|
||||||
// TODO: We can probably conditionally disable this if TAA is on, as it masks the artifacts well
|
// TODO: We can probably conditionally disable this if TAA is on, as it masks the artifacts well
|
||||||
let normalized_rgb = normalize(sample.rgb);
|
let normalized_rgb = normalize(sample.rgb);
|
||||||
result += vec4(min(sample.rgb, normalized_rgb / pow(clamp(blur_intensity * 4.0 - 0.25, 0.0, 1.0), 2.5)), sample.a);
|
result += vec4(min(sample.rgb, normalized_rgb / clamp(blur_intensity / 2.0, 0.0, 1.0)), sample.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
result /= f32(num_taps);
|
result /= f32(num_taps);
|
||||||
|
|
Loading…
Add table
Reference in a new issue