Make blur 50% less blurry

This commit is contained in:
Marco Buono 2023-05-11 01:52:53 -03:00
parent 54cfc26afb
commit c81c57c222

View file

@ -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) {