1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-04-21 00:51:22 +00:00

fixes to Lie log/exp in SL2

This commit is contained in:
Zeno Rogue
2022-12-29 21:19:08 +01:00
parent 78fb0cca20
commit 7068b41d28
2 changed files with 25 additions and 13 deletions

View File

@@ -105,6 +105,9 @@ EX string shader_lie_log() {
else if(hyperbolic) {
return "vec4 lie_log(vec4 v) { v = deparabolic13(v); v[3] = 1.; /* if(abs(v[0]) > 1e-6) { float m = v[0] / (exp(v[0]) - 1.); v[1] *= m; v[2] *= m; } */ return v; }\n";
}
else if(sl2) {
return shader_rel_log() + "vec4 lie_log(vec4 h) { return rel_log(h); }\n";
}
else {
return "vec4 lie_log(vec4 v) { return v; }\n";
}