From 7da0bb16d05efeeea4fb6915cddb57f65938caeb Mon Sep 17 00:00:00 2001 From: Yann Lanthony Date: Thu, 1 Feb 2018 15:24:37 +0100 Subject: [PATCH] [ui] 3D: improve scene lighting attach a PointLight to the active camera to dynamically light the model --- meshroom/ui/qml/Viewer/Viewer3D.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/meshroom/ui/qml/Viewer/Viewer3D.qml b/meshroom/ui/qml/Viewer/Viewer3D.qml index e77f5f42..6d7f054a 100644 --- a/meshroom/ui/qml/Viewer/Viewer3D.qml +++ b/meshroom/ui/qml/Viewer/Viewer3D.qml @@ -160,6 +160,18 @@ FocusScope { } } + // Scene light, attached to the camera + Entity { + components: [ + PointLight { + color: "white" + }, + Transform { + translation: mainCamera.position + } + ] + } + DefaultCameraController { id: cameraController camera: mainCamera