From 7ddcc0a5f1291e703057352bcecc619a67cc0b77 Mon Sep 17 00:00:00 2001 From: Alexey Panteleev Date: Thu, 31 Oct 2024 15:18:04 -0700 Subject: [PATCH] Fixed the stereo GetProjectionFrustum() in the same way as the previous commit fixed GetViewFrustum(). --- include/donut/engine/View.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/donut/engine/View.h b/include/donut/engine/View.h index d9eab52..6c111a4 100644 --- a/include/donut/engine/View.h +++ b/include/donut/engine/View.h @@ -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];