Added rudimentary texture loading in Level. It, too, sucks, but works as a prototype
This commit is contained in:
@@ -12,41 +12,46 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"textures":
|
||||
[
|
||||
"grass.png",
|
||||
"door.png"
|
||||
],
|
||||
"tiles": [
|
||||
{ "mesh": "BaseLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 0 } },
|
||||
{ "mesh": "BaseRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 0 } },
|
||||
{ "mesh": "Stairs", "shader": "textured", "pos": { "x": 0, "y": 0, "z": 0 } },
|
||||
{ "mesh": "ColLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 1 } },
|
||||
{ "mesh": "ColRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 1 } },
|
||||
{ "mesh": "ColLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 2 } },
|
||||
{ "mesh": "ColRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 2 } },
|
||||
{ "mesh": "CapLeft", "shader": "textured", "pos": { "x": -1, "y": 0, "z": 3 } },
|
||||
{ "mesh": "Lintel", "shader": "textured", "pos": { "x": 0, "y": 0, "z": 3 } },
|
||||
{ "mesh": "CapRight", "shader": "textured", "pos": { "x": 1, "y": 0, "z": 3 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -2, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": -1, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 0, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 1, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "pos": { "x": 2, "y": 2, "z": -1 } },
|
||||
{ "mesh": "BaseLeft", "shader": "textured", "tex": "door.png", "pos": { "x": -1, "y": 0, "z": 0 } },
|
||||
{ "mesh": "BaseRight", "shader": "textured", "tex": "door.png", "pos": { "x": 1, "y": 0, "z": 0 } },
|
||||
{ "mesh": "Stairs", "shader": "textured", "tex": "door.png", "pos": { "x": 0, "y": 0, "z": 0 } },
|
||||
{ "mesh": "ColLeft", "shader": "textured", "tex": "door.png", "pos": { "x": -1, "y": 0, "z": 1 } },
|
||||
{ "mesh": "ColRight", "shader": "textured", "tex": "door.png", "pos": { "x": 1, "y": 0, "z": 1 } },
|
||||
{ "mesh": "ColLeft", "shader": "textured", "tex": "door.png", "pos": { "x": -1, "y": 0, "z": 2 } },
|
||||
{ "mesh": "ColRight", "shader": "textured", "tex": "door.png", "pos": { "x": 1, "y": 0, "z": 2 } },
|
||||
{ "mesh": "CapLeft", "shader": "textured", "tex": "door.png", "pos": { "x": -1, "y": 0, "z": 3 } },
|
||||
{ "mesh": "Lintel", "shader": "textured", "tex": "door.png", "pos": { "x": 0, "y": 0, "z": 3 } },
|
||||
{ "mesh": "CapRight", "shader": "textured", "tex": "door.png", "pos": { "x": 1, "y": 0, "z": 3 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -2, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -2, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -2, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -2, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -2, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -1, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -1, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -1, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -1, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": -1, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 0, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 0, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 0, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 0, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 0, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 1, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 1, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 1, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 1, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 1, "y": 2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 2, "y": -2, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 2, "y": -1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 2, "y": 0, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 2, "y": 1, "z": -1 } },
|
||||
{ "mesh": "Cube", "shader": "textured", "tex": "grass.png", "pos": { "x": 2, "y": 2, "z": -1 } },
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user