mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
ray:: fixed levellines in hyperbolic
This commit is contained in:
parent
b79280e423
commit
049eb33105
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user