added a missing definition of atanh in GLSL

This commit is contained in:
Zeno Rogue 2019-07-30 16:23:23 +02:00
parent c9ac8738f6
commit 8da3556448
1 changed files with 2 additions and 0 deletions

View File

@ -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]);",