added Materials and pipelines to scene JSON

Co-Authored-By: Robear Selwans <mo7sen@users.noreply.github.com>
This commit is contained in:
J3oss
2021-06-14 02:36:17 +02:00
parent 000e9ecb59
commit a68d31f319
4 changed files with 117 additions and 4 deletions

View File

@@ -1459,5 +1459,43 @@
]
}
],
"materials": [
{
"id": "GreenMaterial",
"pipeline": "DefaultPipeline",
"baseColor": [0.0, 1.0, 0.0, 1.0]
},
{
"id": "RedMaterial",
"pipeline": "DefaultPipeline",
"baseColor": [1.0, 0.0, 0.0, 1.0]
},
{
"id": "BlueMaterial",
"pipeline": "DefaultPipeline",
"baseColor": [0.0, 0.0, 1.0, 1.0]
},
{
"id": "WhiteMaterial",
"pipeline": "DefaultPipeline",
"baseColor": [1.0, 1.0, 0.0, 1.0]
},
],
"pipelines": [
{
"id": "DefaultPipeline",
"shaderStages": [
{
"type": "Vertex",
"shaderPath": "shaders://default.vert"
},
{
"type": "Fragment",
"shaderPath": "shaders://default.frag"
}
]
}
],
"activeCamera": "CameraTransformOverride.Camera.RotationHelper",
}