mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-28 08:23:08 +00:00
added some missing CAP_VR guards, more work on 2D in VR
This commit is contained in:
1 parent
85ab111abb
commit
f9d65a2e37
4 files changed
+56
-12
No files matched your search
@@ -1339,9 +1339,13 @@ EX void cast() {
|
||||
cd->set_viewport(global_projection);
|
||||
cd->set_mask(global_projection);
|
||||
|
||||
#if CAP_VR
|
||||
if(vrhr::state == 2) {
|
||||
glUniformMatrix4fv(o->uProjection, 1, 0, glhr::tmtogl_transpose3(vrhr::eyeproj).as_array());
|
||||
}
|
||||
#else
|
||||
if(1) ;
|
||||
#endif
|
||||
else {
|
||||
transmatrix proj = Id;
|
||||
proj = eupush(-global_projection * d, 0) * proj;
|
||||
|
||||
Reference in new issue
Block a user