mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-18 13:13:04 +00:00
ray:: fixed in VR-less compile
This commit is contained in:
parent
6655ca1bc8
commit
b28270959d
@ -424,7 +424,9 @@ void enable_raycaster() {
|
||||
else fsh += " mediump float len(mediump vec4 x) { return length(x.xyz); }\n";
|
||||
|
||||
ld s = 1;
|
||||
#if CAP_VR
|
||||
if(eyes) s *= vrhr::absolute_unit_in_meters;
|
||||
#endif
|
||||
|
||||
if(stepbased) fmain +=
|
||||
" const mediump float maxstep = " + fts(maxstep_current() * s) + ";\n"
|
||||
|
Loading…
Reference in New Issue
Block a user