summaryrefslogtreecommitdiffstats
path: root/tests/manual/skinned-mesh/SkinnedEntity.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/skinned-mesh/SkinnedEntity.qml')
-rw-r--r--tests/manual/skinned-mesh/SkinnedEntity.qml37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/manual/skinned-mesh/SkinnedEntity.qml b/tests/manual/skinned-mesh/SkinnedEntity.qml
new file mode 100644
index 000000000..455f3869e
--- /dev/null
+++ b/tests/manual/skinned-mesh/SkinnedEntity.qml
@@ -0,0 +1,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 }
+ ]
+ }
+ ]
+}