Debian Codegraph @

tests/manual/animation-keyframe-simple/DefaultSceneEntity.qml

raw
1 // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import Qt3D.Core 2.0
5 import Qt3D.Render 2.0
6 import Qt3D.Input 2.0
7 import Qt3D.Extras 2.0
8
9 Entity {
10 id: root
11 property Camera camera
12
13 components: [
14 RenderSettings {
15 activeFrameGraph: ForwardRenderer {
16 camera: root.camera
17 }
18 },
19 // Event Source will be set by the Qt3DQuickWindow
20 InputSettings { }
21 ]
22
23 Entity {
24 components: [
25 PointLight { intensity: 0.5 },
26 Transform { translation: camera.position }
27 ]
28 }
29 }