mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-20 15:40:26 +00:00
ray:: fixed levellines
This commit is contained in:
parent
74906727c6
commit
8385cad774
@ -1307,11 +1307,12 @@ void raygen::emit_iterate(int gid1) {
|
||||
" t.w = 1.;\n";
|
||||
|
||||
if(levellines) {
|
||||
if(hyperbolic && !eyes)
|
||||
if(hyperbolic && !eyes && !intra::in)
|
||||
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(z/cosh(go) * uLevelLines * 2. * PI);\n";
|
||||
else
|
||||
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(z * uLevelLines * 2. * PI);\n";
|
||||
fsh += "uniform mediump float uLevelLines;\n";
|
||||
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(go * uLevelLines * 2. * PI);\n";
|
||||
if(fsh.find("uLevelLines") == string::npos)
|
||||
fsh += "uniform mediump float uLevelLines;\n";
|
||||
}
|
||||
|
||||
if(panini_alpha)
|
||||
|
Loading…
Reference in New Issue
Block a user