forked from qt-creator/qt-creator
QmlDesigner: Add material library to 3D application project template
Fixes: QDS-7065 Change-Id: Ifd270312c352d47facd32ff50543003171c0f718 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -49,13 +49,18 @@ Rectangle {
|
|||||||
id: cubeModel
|
id: cubeModel
|
||||||
eulerRotation.y: 45
|
eulerRotation.y: 45
|
||||||
eulerRotation.x: 30
|
eulerRotation.x: 30
|
||||||
materials: cubeMaterial
|
materials: defaultMaterial
|
||||||
source: "#Cube"
|
source: "#Cube"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Item {
|
||||||
|
id: __materialLibrary__
|
||||||
DefaultMaterial {
|
DefaultMaterial {
|
||||||
id: cubeMaterial
|
id: defaultMaterial
|
||||||
|
objectName: "Default Material"
|
||||||
diffuseColor: "#4aee45"
|
diffuseColor: "#4aee45"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user