[ui] 3D: improve scene lighting

attach a PointLight to the active camera to dynamically light the model
This commit is contained in:
Yann Lanthony 2018-02-01 15:24:37 +01:00
parent 290acfe3ad
commit 7da0bb16d0

View file

@ -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