blob: d0b65fc1b60a59685d6aa7576f6ace6c7f78ce82 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick
import QtQuick3D
import QtQuick3D.Helpers
Item {
width: 400
height: 400
visible: true
View3D {
anchors.fill: parent
camera: PerspectiveCamera {
z: 200
}
Model {
id: lens
source: "#Rectangle"
materials: [
PrincipledMaterial {
lighting: PrincipledMaterial.NoLighting
baseColorMap: Texture {
id: texture
sourceItem: sourceView
}
}
]
}
View3D {
id: sourceView
visible: false
width: 512
height: 512
PerspectiveCamera {
z: 300
}
Model {
source: "#Cube"
materials: [ PrincipledMaterial {
baseColor: "green"
lighting: PrincipledMaterial.NoLighting
}
]
// NumberAnimation on eulerRotation.y {
// duration: 10000
// easing.type: Easing.InOutQuad
// from: 0
// to: 360
// running: true
// loops: -1
// }
}
}
}
}
|