Skip to content

Commit

Permalink
Fixed the stereo GetProjectionFrustum() in the same way as the previo…
Browse files Browse the repository at this point in the history
…us commit fixed GetViewFrustum().
  • Loading branch information
apanteleev committed Oct 31, 2024
1 parent 4407411 commit 7ddcc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/donut/engine/View.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ namespace donut::engine
[[nodiscard]] dm::frustum GetProjectionFrustum() const override
{
dm::frustum left = LeftView.GetProjectionFrustum();
dm::frustum right = LeftView.GetProjectionFrustum();
dm::frustum right = RightView.GetProjectionFrustum();

// not robust but should work for regular stereo views
left.planes[dm::frustum::RIGHT_PLANE] = right.planes[dm::frustum::RIGHT_PLANE];
Expand Down

0 comments on commit 7ddcc0a

Please sign in to comment.