Created
November 14, 2017 19:54
-
-
Save t-artikov/4215eae5a56123a43433ee787a52c56e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import QtQuick 2.0 | |
import QtQuick.Window 2.0 | |
import Render3D 1.0 | |
Window { | |
id: root | |
width: 1024 | |
height: 768 | |
visible: true | |
SceneView { | |
anchors.fill: parent | |
scene: Scene { | |
id: scene | |
source: "boxes.fbx" | |
} | |
} | |
Item { | |
id: qtQuickScene | |
visible: false | |
layer.enabled: true | |
... | |
} | |
Binding { | |
target: scene.nodes.find("Box01").material | |
property: "diffuseTexture" | |
value: QtQuickTexture { | |
source: qtQuickScene | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment