Make number of taps increase faster with blur intensity

This commit is contained in:
Marco Buono 2023-05-11 01:51:25 -03:00
parent 0dbec526e7
commit 54cfc26afb

View file

@ -355,7 +355,7 @@ fn fetch_transmissive_background(offset_position: vec2<f32>, frag_coord: vec3<f3
let blur_intensity = perceptual_roughness / distance; let blur_intensity = perceptual_roughness / distance;
// Number of taps scale with blur intensity // Number of taps scale with blur intensity
let num_taps = i32(max(min(blur_intensity * 5.0, 1.0) * f32(MAX_TRANSMISSIVE_TAPS), 1.0)); let num_taps = i32(max(min(blur_intensity * 15.0, 1.0) * f32(MAX_TRANSMISSIVE_TAPS), 1.0));
let num_spirals = (num_taps >> 3u) + 1; let num_spirals = (num_taps >> 3u) + 1;
let random_angle = interleaved_gradient_noise(frag_coord.xy); let random_angle = interleaved_gradient_noise(frag_coord.xy);