From 049eb3310507c6ccfdfea31057f8e452b31e4593 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 27 Mar 2022 19:42:04 +0200 Subject: [PATCH] ray:: fixed levellines in hyperbolic --- raycaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raycaster.cpp b/raycaster.cpp index 23a12fc3..6894098e 100644 --- a/raycaster.cpp +++ b/raycaster.cpp @@ -1379,7 +1379,7 @@ void raygen::emit_iterate(int gid1) { if(levellines) { if(hyperbolic && !eyes && !intra::in) - fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(z/cosh(go) * uLevelLines * 2. * PI);\n"; + fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(t.z * uLevelLines * 2. * PI);\n"; else fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(go * uLevelLines * 2. * PI);\n"; if(fsh.find("uLevelLines") == string::npos)