Added prefabs
This commit is contained in:
27
assets/test_cube.json
Normal file
27
assets/test_cube.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "Test Cube",
|
||||
|
||||
"assets": {
|
||||
"rosa": {
|
||||
"type": "texture",
|
||||
"path": "rosa.texture"
|
||||
}
|
||||
},
|
||||
|
||||
"position": [ 0, 0, 0 ],
|
||||
|
||||
"components": {
|
||||
"mat": {
|
||||
"type": "SimpleTexturedMaterial",
|
||||
"color": "blue"
|
||||
},
|
||||
|
||||
"renderer": {
|
||||
"type": "MeshRenderer"
|
||||
},
|
||||
|
||||
"mesh": {
|
||||
"type": "CubeMesh"
|
||||
}
|
||||
}
|
||||
}
|
@ -4,32 +4,29 @@
|
||||
"rosa": {
|
||||
"type": "texture",
|
||||
"path": "rosa.texture"
|
||||
},
|
||||
"cube": {
|
||||
"type": "prefab",
|
||||
"path": "test_cube.json"
|
||||
}
|
||||
},
|
||||
|
||||
"items": {
|
||||
"camera": {
|
||||
"lookAt": {
|
||||
"position": [ 5, 5, 5 ],
|
||||
"position": [ 3, 3, 3 ],
|
||||
"look": [ 0, 0, 0 ],
|
||||
"view": [ 0, 1, 0 ]
|
||||
},
|
||||
"components": {
|
||||
"camera": {
|
||||
"type": "Camera",
|
||||
"fov": 90
|
||||
"type": "Camera"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"cube": {
|
||||
"position": [ 0, 0, 0 ],
|
||||
"scale": [ 3, 3, 3 ],
|
||||
"components": {
|
||||
"mat": { "type": "SimpleTexturedMaterial", "color": "blue", "texture": "rosa" },
|
||||
"renderer": { "type": "MeshRenderer" },
|
||||
"mesh": { "type": "CubeMesh" }
|
||||
}
|
||||
"prefab": "cube"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user