blob: 455f3869ec72ae741d6fd327e04c389b9ffda122 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
import Qt3D.Core 2.10
import Qt3D.Render 2.10
import Qt3D.Input 2.0
import Qt3D.Extras 2.10
Entity {
id: root
property Effect effect: skinnedPbrEffect
property url source: ""
property alias transform: transform
property color baseColor: "red"
components: [
Transform {
id: transform
rotationX: -90
},
Mesh {
source: root.source
},
Armature {
skeleton: SkeletonLoader {
source: root.source
onStatusChanged: console.log("skeleton loader status: " + status)
onJointCountChanged: console.log("skeleton has " + jointCount + " joints")
}
},
Material {
effect: root.effect
parameters: [
Parameter { name: "baseColor"; value: root.baseColor }
]
}
]
}
|