From cd3cad2e9d02aefce8cd0ef3a7dafe7a754e3659 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katharina=20Kr=C3=A4mer?= <kkraemer4@uni-koblenz.de> Date: Tue, 14 Sep 2021 10:44:52 +0200 Subject: [PATCH] [#94] removed noise by increasing hit bias to avoid self intersection --- projects/saf_r/shaders/raytracing.comp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/saf_r/shaders/raytracing.comp b/projects/saf_r/shaders/raytracing.comp index ae2cf922..d7f79189 100644 --- a/projects/saf_r/shaders/raytracing.comp +++ b/projects/saf_r/shaders/raytracing.comp @@ -3,7 +3,7 @@ // defines constants const float pi = 3.1415926535897932384626433832795; -const float hitBias = 0.0001; // used to offset hits to avoid self intersection +const float hitBias = 0.01; // used to offset hits to avoid self intersection layout(local_size_x = 16, local_size_y = 16, local_size_z = 1) in; -- GitLab