Example scene loading
This commit is contained in:
@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "Test Scene",
|
||||
"assets": {
|
||||
"rosa": {
|
||||
"type": "texture",
|
||||
"path": "rosa.texture"
|
||||
}
|
||||
},
|
||||
"items": {
|
||||
"camera": {
|
||||
"lookAt": {
|
||||
"position": [ 5, 5, 5 ],
|
||||
"look": [ 0, 0, 0 ],
|
||||
"view": [ 0, 1, 0 ]
|
||||
},
|
||||
"components": {
|
||||
"camera": {
|
||||
"type": "Camera",
|
||||
"fov": 90
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"cube": {
|
||||
"position": [ 0, 0, 0 ],
|
||||
"scale": [ 3, 3, 3 ],
|
||||
"components": {
|
||||
"mat": { "type": "SimpleTexturedMaterial", "color": "blue", "texture": "rosa" },
|
||||
"renderer": { "type": "MeshRenderer" },
|
||||
"mesh": { "type": "CubeMesh" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user