From 98b1e659a598e736fa436f1ed6c7689f7a05a2da Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 28 May 2020 13:44:32 +0200 Subject: [PATCH] hyperbolic raycast: fix the matrices --- raycaster.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/raycaster.cpp b/raycaster.cpp index 469e9b93..bc2bdd00 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -812,12 +812,10 @@ void enable_raycaster() { else fmain += "position = position + tangent * dist;\n"; - #if CAP_FIX_RAYCAST if(hyperbolic) fmain += "position /= sqrt(position.w*position.w - dot(position.xyz, position.xyz));\n" "tangent -= dot(vec4(-position.xyz, position.w), tangent) * position;\n" "tangent /= sqrt(dot(tangent.xyz, tangent.xyz) - tangent.w*tangent.w);\n"; - #endif if(hyperbolic && bt::in()) { fmain +=