CustomMaterials (both types) don't work when used in this manner:
Window {
visible: true
height: 800
width: 600
Node {
id: scene
PerspectiveCamera {
z: 300
}
DirectionalLight {
}
Model {
source: "#Cube"
material: CustomMaterial { }
}
}
View3D {
anchors.fill: parent
importScene: scene
}
}
But do work when used inline of the View3D. This is likely because CustomMaterials reference the scenemanager attached to a View3D, but this isn't actually a very unusual usecase so it should be able to work.