From: seungho Date: Wed, 14 Sep 2022 02:02:46 +0000 (+0900) Subject: [Tizen] SceneView cullmode false + Orthographic size X-Git-Tag: accepted/tizen/unified/20220914.164053^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5d1af379a293a67113c5d4963f7779495110387;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git [Tizen] SceneView cullmode false + Orthographic size Change-Id: I9ce30cbe1fe0a7a1d747313d606a6b306df63995 Signed-off-by: seungho --- diff --git a/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp b/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp index ce4ae17..8a4ffca 100644 --- a/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp +++ b/dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp @@ -268,6 +268,7 @@ void SceneView::OnInitialize() mRenderTask.SetSourceActor(mRootLayer); mRenderTask.SetExclusive(true); mRenderTask.SetInputEnabled(true); + mRenderTask.SetCullMode(false); mRenderTask.SetScreenToFrameBufferMappingActor(Self()); mDefaultCamera = Dali::CameraActor::New(); @@ -351,9 +352,7 @@ void SceneView::UpdateRenderTask() Vector3 size = Self().GetProperty(Dali::Actor::Property::SIZE); const float aspectRatio = size.width / size.height; mSelectedCamera.SetAspectRatio(aspectRatio); - const float fov = mSelectedCamera[Dali::CameraActor::Property::FIELD_OF_VIEW]; - const float near = mSelectedCamera[Dali::CameraActor::Property::NEAR_PLANE_DISTANCE]; - const float halfHeight = tanf(fov/2) * near; + const float halfHeight = mSelectedCamera[Dali::CameraActor::Property::TOP_PLANE_DISTANCE]; const float halfWidth = aspectRatio * halfHeight; mSelectedCamera[Dali::CameraActor::Property::LEFT_PLANE_DISTANCE] = -halfWidth; mSelectedCamera[Dali::CameraActor::Property::RIGHT_PLANE_DISTANCE] = halfWidth;