Basic alpha blending works but I have no z ordering yet.
This commit is contained in:
parent
128f522089
commit
11b7f4a3ed
14 changed files with 272 additions and 30 deletions
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"scene": {
|
||||
"shader": {
|
||||
"vertex_path": "shaders/18-vert.glsl",
|
||||
"frag_path": "shaders/18-frag.glsl"
|
||||
"vertex_path": "shaders/19-vert.glsl",
|
||||
"frag_path": "shaders/19-frag.glsl"
|
||||
},
|
||||
"light_shader": {
|
||||
"vertex_path": "shaders/18-vert.glsl",
|
||||
"frag_path": "shaders/18-lightsource.frag.glsl"
|
||||
"vertex_path": "shaders/19-vert.glsl",
|
||||
"frag_path": "shaders/19-lightsource.frag.glsl"
|
||||
},
|
||||
"materials": {
|
||||
"default": {
|
||||
|
|
@ -30,12 +30,29 @@
|
|||
"metal_floor": {
|
||||
"directory": "assets",
|
||||
"model_path": "metal_floor.glb"
|
||||
},
|
||||
"grass": {
|
||||
"directory": "assets",
|
||||
"model_path": "grass.glb"
|
||||
}
|
||||
},
|
||||
"things": [
|
||||
{"model": "marble_cube", "position": [-1.0, 0.0, -1.0], "material": "default"},
|
||||
{"model": "marble_cube", "position": [2.0, 0.0, 0.0], "material": "default"},
|
||||
{"model": "metal_floor", "position": [0.0, 0.0, 0.0], "material": "shiny"}
|
||||
{"model": "marble_cube", "position": [-1.0, 0.0, -1.0],
|
||||
"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],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "default"},
|
||||
{"model": "metal_floor", "position": [0.0, 0.0, 0.0],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
{"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"}
|
||||
],
|
||||
"camera": {
|
||||
"position": [0.0, 0.1, 3.0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue