Skip to content
Snippets Groups Projects
Commit bdb8db91 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

add as texture

parent 765398e6
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,26 @@ Window {
}
}
Model {
position: Qt.vector3d(-120, -120, 0)
source: "#Rectangle"
materials: DefaultMaterial {
lighting: DefaultMaterial.NoLighting
diffuseMap: Texture {
sourceItem: Rectangle {
width: 100
height: 100
color: "lightgray"
Text {
anchors.centerIn: parent
text: root.tick
}
}
}
}
}
Model {
position: Qt.vector3d(0, 0, 10)
scale: Qt.vector3d(0.2, 0.2, 0.2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment