mirror of
https://github.com/bevyengine/bevy
synced 2024-12-11 13:52:37 +00:00
Make blur 50% less blurry
This commit is contained in:
parent
54cfc26afb
commit
c81c57c222
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ fn fetch_transmissive_background(offset_position: vec2<f32>, frag_coord: vec3<f3
|
||||||
let rotated_sample_offset = (rotation_matrix * sample_offset) * vec2(1.0, aspect);
|
let rotated_sample_offset = (rotation_matrix * sample_offset) * vec2(1.0, aspect);
|
||||||
|
|
||||||
// Calucalte final offset position, with blur and sample offset
|
// Calucalte final offset position, with blur and sample offset
|
||||||
let modified_offset_position = offset_position + rotated_sample_offset * blur_intensity * blur_intensity * 5.0 * (1.0 - f32(pixel_mesh) * 0.1);
|
let modified_offset_position = offset_position + rotated_sample_offset * blur_intensity * blur_intensity * 2.5 * (1.0 - f32(pixel_mesh) * 0.1);
|
||||||
|
|
||||||
// Use depth prepass data to reject values that are in front of the current fragment
|
// Use depth prepass data to reject values that are in front of the current fragment
|
||||||
if (prepass_depth(vec4<f32>(modified_offset_position * view.viewport.zw, 0.0, 0.0), 0u) > frag_coord.z) {
|
if (prepass_depth(vec4<f32>(modified_offset_position * view.viewport.zw, 0.0, 0.0), 0u) > frag_coord.z) {
|
||||||
|
|
Loading…
Reference in a new issue