mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-30 03:50:34 +00:00
ray:: fixed levellines
This commit is contained in:
parent
74906727c6
commit
8385cad774
@ -1307,10 +1307,11 @@ void raygen::emit_iterate(int gid1) {
|
|||||||
" t.w = 1.;\n";
|
" t.w = 1.;\n";
|
||||||
|
|
||||||
if(levellines) {
|
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";
|
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(z/cosh(go) * uLevelLines * 2. * PI);\n";
|
||||||
else
|
else
|
||||||
fmain += "gl_FragColor.xyz *= 0.5 + 0.5 * cos(z * uLevelLines * 2. * PI);\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";
|
fsh += "uniform mediump float uLevelLines;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user