Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Todd Kordenbrock
VTK-m
Commits
af2ae8e6
Commit
af2ae8e6
authored
Mar 30, 2016
by
Robert Maynard
Browse files
Correct issue in matrix mult in View.
parent
660ee997
Changes
1
Hide whitespace changes
Inline
Side-by-side
vtkm/rendering/View.h
View file @
af2ae8e6
...
...
@@ -70,7 +70,7 @@ public:
vtkm
::
Vec
<
vtkm
::
Float32
,
3
>
viewDir
=
Position
-
LookAt
;
//looking down the neg z axis
vtkm
::
Normalize
(
viewDir
);
vtkm
::
Vec
<
vtkm
::
Float32
,
3
>
right
=
vtkm
::
Cross
(
Up
,
viewDir
);
vtkm
::
Vec
<
vtkm
::
Float32
,
3
>
ru
=
vtkm
::
Cross
(
right
,
viewDir
);
vtkm
::
Vec
<
vtkm
::
Float32
,
3
>
ru
=
vtkm
::
Cross
(
viewDir
,
right
);
vtkm
::
Normalize
(
ru
);
vtkm
::
Normalize
(
right
);
viewMatrix
(
0
,
0
)
=
right
[
0
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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