Commit af2ae8e6 authored by Robert Maynard's avatar Robert Maynard
Browse files

Correct issue in matrix mult in View.

parent 660ee997
......@@ -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];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment