mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 17:40:36 +00:00
added a missing definition of atanh in GLSL
This commit is contained in:
parent
c9ac8738f6
commit
8da3556448
@ -615,6 +615,8 @@ void init() {
|
|||||||
1, " return log(sqrt(x*x - 1.0) + x);",
|
1, " return log(sqrt(x*x - 1.0) + x);",
|
||||||
1, " }",
|
1, " }",
|
||||||
|
|
||||||
|
1, "float atanh(float x) { return (log(1.+x)-log(1.-x))/2.; }",
|
||||||
|
|
||||||
1, "float zlevel(vec4 h) {",
|
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]);",
|
1, " return (h[2] < 0.0 ? -1.0 : 1.0) * sqrt(h[2]*h[2] - h[0]*h[0] - h[1]*h[1]);",
|
||||||
1, " }",
|
1, " }",
|
||||||
|
Loading…
Reference in New Issue
Block a user