Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Dalai Felinto
virtual_reality_viewport
Commits
0e0d5c6f
Commit
0e0d5c6f
authored
Sep 29, 2015
by
Dalai Felinto
Browse files
Fixups for preview
parent
aba36557
Changes
2
Hide whitespace changes
Inline
Side-by-side
space_view3d_virtual_reality/hmd/__init__.py
View file @
0e0d5c6f
...
...
@@ -69,8 +69,8 @@ class HMD_Base:
def
__init__
(
self
,
name
):
self
.
_name
=
name
self
.
_projection_matrix
=
Matrix
(
)
self
.
_modelview_matrix
=
Matrix
(
)
self
.
_projection_matrix
=
Matrix
.
Identity
(
4
)
self
.
_modelview_matrix
=
Matrix
.
Identity
(
4
)
self
.
_interpupillary_distance
=
Vector
((
0.0
,
0.0
))
self
.
_width
=
0
self
.
_height
=
0
...
...
space_view3d_virtual_reality/preview.py
View file @
0e0d5c6f
...
...
@@ -68,8 +68,7 @@ class Preview:
glViewport
(
viewport
[
0
],
viewport
[
1
],
width
,
height
)
glScissor
(
viewport
[
0
],
viewport
[
1
],
width
,
height
)
glEnable
(
GL_DEPTH_TEST
)
glDepthFunc
(
GL_LESS
)
glDisable
(
GL_DEPTH_TEST
)
view_setup
()
...
...
@@ -82,7 +81,6 @@ class Preview:
glBindTexture
(
GL_TEXTURE_2D
,
act_tex
[
0
])
glDisable
(
GL_TEXTURE_2D
)
glDisable
(
GL_DEPTH_TEST
)
view_reset
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment