1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-20 23:50:27 +00:00

ray:: fixed levellines in hyperbolic

This commit is contained in:
Zeno Rogue 2022-03-27 19:42:04 +02:00
parent b79280e423
commit 049eb33105

View File

@ -1379,7 +1379,7 @@ void raygen::emit_iterate(int gid1) {
if(levellines) { if(levellines) {
if(hyperbolic && !eyes && !intra::in) 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 else
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(go * uLevelLines * 2. * PI);\n"; fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(go * uLevelLines * 2. * PI);\n";
if(fsh.find("uLevelLines") == string::npos) if(fsh.find("uLevelLines") == string::npos)