[Tizen] SceneView cullmode false + Orthographic size 63/281163/3 accepted/tizen/unified/20220914.164053
authorseungho <sbsh.baek@samsung.com>
Wed, 14 Sep 2022 02:02:46 +0000 (11:02 +0900)
committerSeungho BAEK <sbsh.baek@samsung.com>
Wed, 14 Sep 2022 05:15:16 +0000 (05:15 +0000)
Change-Id: I9ce30cbe1fe0a7a1d747313d606a6b306df63995
Signed-off-by: seungho <sbsh.baek@samsung.com>
dali-scene3d/internal/controls/scene-view/scene-view-impl.cpp

index ce4ae17..8a4ffca 100644 (file)
@@ -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<Vector3>(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;