fixup params in vr

This commit is contained in:
Zeno Rogue 2021-02-01 21:26:35 +01:00
parent cb4c18ee94
commit f9c8a458aa
2 changed files with 4 additions and 4 deletions

View File

@ -501,7 +501,7 @@ void enable_raycaster() {
fmain +=
" int which = -1;\n";
if(in_e2xe()) fmain += "tangent.w = position.w = 0.;\n";
if(in_e2xe() && !eyes) fmain += "tangent.w = position.w = 0.;\n";
if(IN_ODS) fmain +=
" if(go == 0.) {\n"

6
vr.cpp
View File

@ -1329,11 +1329,11 @@ void addconfig() {
param_f(vrhr::ui_depth, "vr_ui_depth");
param_f(vrhr::ui_size, "vr_ui_size");
addsaverenum(vrhr::hsm, "vr_headset_mode")
param_enum(vrhr::hsm, "vr_headset_mode", "vr_headset_mode", vrhr::hsm)
->editable(headset_desc, "VR headset movement", 'h');
addsaverenum(vrhr::eyes, "vr_eyes_mode");
param_enum(vrhr::eyes, "vr_eyes_mode", "vr_eyes_mode", vrhr::eyes)
->editable(eyes_desc, "VR binocular vision", 'b');
addsaverenum(vrhr::cscr, "vr_screen_mode");
param_enum(vrhr::cscr, "vr_screen_mode", "vr_screen_mode", vrhr::cscr)
->editable(comp_desc, "VR computer screen", 'c');
}
auto hookc = addHook(hooks_configfile, 100, addconfig);