From a51c06ae7be9d6104ca0ed7f43212e7860af4bc5 Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Mon, 14 Sep 2020 15:35:51 +0200 Subject: [PATCH] Try fixing invisible wall bug --- frontend/src/scripts/drawing/shaders/distance-fs.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/scripts/drawing/shaders/distance-fs.glsl b/frontend/src/scripts/drawing/shaders/distance-fs.glsl index 09d4269..f20dddd 100644 --- a/frontend/src/scripts/drawing/shaders/distance-fs.glsl +++ b/frontend/src/scripts/drawing/shaders/distance-fs.glsl @@ -88,5 +88,6 @@ void main() { // minDistance / 2.0: NDC to UV scale - fragmentColor = vec2(minDistance / 2.0, color); + // - 0.005 is for making it more consistent with the physics + fragmentColor = vec2(minDistance / 2.0 - 0.005, color); }