Implement the red windows.

This commit is contained in:
Zed A. Shaw 2026-08-30 13:17:35 -04:00
parent 11b7f4a3ed
commit f51df89054
18 changed files with 74 additions and 36 deletions

View file

@ -16,7 +16,7 @@
"specularMap": 0
},
"shiny": {
"ambient": [0.5, 0.25, 0.31],
"ambient": [0.5, 0.5, 0.5],
"shininess": 10000.0,
"diffuseMap": 0,
"specularMap": 0
@ -34,6 +34,10 @@
"grass": {
"directory": "assets",
"model_path": "grass.glb"
},
"window": {
"directory": "assets",
"model_path": "window.glb"
}
},
"things": [
@ -41,9 +45,9 @@
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
"scale": 1.0,
"material": "default"},
{"model": "marble_cube", "position": [2.0, 0.0, 0.0],
{"model": "marble_cube", "position": [1.5, 0.0, 1.0],
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
"scale": 1.0,
"scale": 2.0,
"material": "default"},
{"model": "metal_floor", "position": [0.0, 0.0, 0.0],
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
@ -52,7 +56,15 @@
{"model": "grass", "position": [0.5, 0.13, 0.0],
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
"scale": 1.0,
"material": "default"}
"material": "default"},
{"model": "window", "position": [1.75, 0.25, 0.25],
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
"scale": 1.0,
"material": "shiny"},
{"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"}
],
"camera": {
"position": [0.0, 0.1, 3.0],
@ -73,7 +85,8 @@
"linear": 0.0,
"quadratic": 0.0,
"cut_off": 0.0,
"outer_cut_off": 0.0
"outer_cut_off": 0.0,
"on": true
}
],
"positioned": [
@ -87,7 +100,8 @@
"linear": 0.09,
"quadratic": 0.032,
"cut_off": 12.5,
"outer_cut_off": 17.5
"outer_cut_off": 17.5,
"on": true
}
],
"spot": [
@ -102,7 +116,8 @@
"linear": 0.09,
"quadratic": 0.032,
"cut_off": 12.5,
"outer_cut_off": 17.5
"outer_cut_off": 17.5,
"on": true
}
}
}