From 8da3556448d961557156c9563e836ebe18d2ca7a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 30 Jul 2019 16:23:23 +0200 Subject: [PATCH] added a missing definition of atanh in GLSL --- shaders.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shaders.cpp b/shaders.cpp index 324cc19b..825dd725 100644 --- a/shaders.cpp +++ b/shaders.cpp @@ -614,6 +614,8 @@ void init() { 1, "float acosh(float x) {", 1, " return log(sqrt(x*x - 1.0) + x);", 1, " }", + + 1, "float atanh(float x) { return (log(1.+x)-log(1.-x))/2.; }", 1, "float zlevel(vec4 h) {", 1, " return (h[2] < 0.0 ? -1.0 : 1.0) * sqrt(h[2]*h[2] - h[0]*h[0] - h[1]*h[1]);",