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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
import QtQuick
import QtQuick3D
View3D {
width: 640
height: 480
id: view1
anchors.fill: parent
PerspectiveCamera {
id: camera1
}
Texture {
id: tex1
source: "noise1.jpg"
}
Texture {
id: tex2
source: "noise2.jpg"
}
Texture {
id: tex3
source: "noise3.jpg"
}
Model {
source: "#Cube"
materials: DefaultMaterial {
diffuseMap: tex1
}
}
Model {
source: "#Cube"
materials: DefaultMaterial {
diffuseMap: tex2
}
}
Model {
source: "#Cube"
materials: DefaultMaterial {
diffuseMap: tex3
}
}
Model {
source: "#Cube"
materials: DefaultMaterial {
diffuseMap: Texture {
source: "noise4.jpg"
}
}
}
Model {
source: "#Cube"
materials: DefaultMaterial {
diffuseMap: Texture {
source: "noise5.jpg"
}
}
}
}
|