diff options
-rw-r--r-- | source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl b/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl index 80389402129..85c4a02bc1e 100644 --- a/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl +++ b/source/blender/draw/engines/eevee/shaders/raytrace_lib.glsl @@ -91,7 +91,7 @@ void prepare_raycast( /* If the line is degenerate, make it cover at least one pixel * to not have to handle zero-pixel extent as a special case later */ - ss_step.xy += vec2((dot(ss_step.xy, ss_step.xy) < 0.000003) ? 0.001 : 0.0); + ss_step.xy += vec2((dot(ss_step.xy, ss_step.xy) < 0.00001) ? 0.001 : 0.0); /* Make ss_step cover one pixel. */ ss_step /= max(abs(ss_step.x), abs(ss_step.y)); @@ -135,7 +135,7 @@ vec3 raycast( float max_time; prepare_raycast(ray_origin, ray_dir, thickness, index, ss_step, ss_start, max_time); - float max_trace_time = max(0.001, max_time - 0.01); + float max_trace_time = max(0.01, max_time - 0.01); #ifdef GROUPED_FETCHES ray_jitter *= 0.25; |