Commit 4465267b authored by Jakob Weiss's avatar Jakob Weiss
Browse files

Fixed stereocameragenerator.cpp

(cherry picked from commit 00cdb42948e45681b5cde12629f6970b906b0eec)
parent c908bd58
...@@ -81,7 +81,7 @@ namespace campvis { ...@@ -81,7 +81,7 @@ namespace campvis {
camera.getFocus() - rightVec, camera.getUpVector(), camera.getFocus() - rightVec, camera.getUpVector(),
camera.getFovy(), camera.getRatio(), nearDist, farDist); camera.getFovy(), camera.getRatio(), nearDist, farDist);
camLeft.setFrustum(cgt::Frustum(left, right, bottom, top, nearDist, farDist)); camLeft.setFrustum(cgt::Frustum(left, right, bottom, top, nearDist, farDist));
camRight.setProjectionMode(cgt::Camera::FRUSTUM); camLeft.setProjectionMode(cgt::Camera::FRUSTUM);
dataContainer.addData(p_sourceCameraID.getValue() + ".left", new CameraData(camLeft)); dataContainer.addData(p_sourceCameraID.getValue() + ".left", new CameraData(camLeft));
dataContainer.addData(p_sourceCameraID.getValue() + ".right", new CameraData(camRight)); dataContainer.addData(p_sourceCameraID.getValue() + ".right", new CameraData(camRight));
...@@ -92,4 +92,4 @@ namespace campvis { ...@@ -92,4 +92,4 @@ namespace campvis {
{ {
} }
}; };
\ No newline at end of file
Markdown is supported
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