Can load the backpack model and if you hit R it will be made of glass.

This commit is contained in:
Zed A. Shaw 2026-09-05 13:26:30 -04:00
parent 29f1606085
commit 7afef0a930
5 changed files with 28 additions and 14 deletions

View file

@ -1,6 +1,10 @@
{
"scene": {
"shader": {
"vertex_path": "shaders/21-framebuffers.vert.glsl",
"frag_path": "shaders/21-framebuffers.frag.glsl"
},
"reflect_shader": {
"vertex_path": "shaders/24-vert.glsl",
"frag_path": "shaders/24-frag.glsl"
},
@ -50,18 +54,18 @@
"window": {
"directory": "assets",
"model_path": "window.glb"
},
"backpack": {
"directory": "assets/backpack",
"model_path": "backpack.obj"
}
},
"things": [
{"model": "marble_cube", "position": [1.5, 0.0, -1.0],
{"model": "backpack", "position": [1.5, 0.0, -1.0],
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
"scale": 2.0,
"material": "default"},
{"model": "window", "position": [1.5, 0.25, 0.0],
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
"scale": 1.0,
"material": "shiny"},
{"model": "window", "position": [1.75, 0.25, 0.25],
"material": "default"},
{"model": "marble_cube", "position": [1.5, 0.25, 0.0],
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
"scale": 1.0,
"material": "shiny"}