mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 05:57:38 +02:00
[ui] 3D: improve scene lighting
attach a PointLight to the active camera to dynamically light the model
This commit is contained in:
parent
290acfe3ad
commit
7da0bb16d0
1 changed files with 12 additions and 0 deletions
|
@ -160,6 +160,18 @@ FocusScope {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Scene light, attached to the camera
|
||||||
|
Entity {
|
||||||
|
components: [
|
||||||
|
PointLight {
|
||||||
|
color: "white"
|
||||||
|
},
|
||||||
|
Transform {
|
||||||
|
translation: mainCamera.position
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
DefaultCameraController {
|
DefaultCameraController {
|
||||||
id: cameraController
|
id: cameraController
|
||||||
camera: mainCamera
|
camera: mainCamera
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue