ray:: fixed in VR-less compile

This commit is contained in:
Zeno Rogue 2021-02-01 11:21:51 +01:00
parent 6655ca1bc8
commit b28270959d
1 changed files with 2 additions and 0 deletions

View File

@ -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"