Normal/Height maps now working from models, and are only applied to models that have them.
This commit is contained in:
parent
4efe72b8d8
commit
8b41591360
8 changed files with 170 additions and 12 deletions
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"scene": {
|
||||
"shader": {
|
||||
"vertex_path": "shaders/33-framebuffers.vert.glsl",
|
||||
"frag_path": "shaders/33-framebuffers.frag.glsl",
|
||||
"vertex_path": "shaders/43-framebuffers.vert.glsl",
|
||||
"frag_path": "shaders/43-framebuffers.frag.glsl",
|
||||
"geometry_path": ""
|
||||
},
|
||||
"reflect_shader": {
|
||||
|
|
@ -66,6 +66,10 @@
|
|||
"human": {
|
||||
"directory": "../assets",
|
||||
"model_path": "human.glb"
|
||||
},
|
||||
"brick_cube": {
|
||||
"directory": "../assets",
|
||||
"model_path": "brick_cube_normal.obj"
|
||||
}
|
||||
},
|
||||
"things": [
|
||||
|
|
@ -73,10 +77,10 @@
|
|||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
{"model": "marble_cube", "position": [1.5, 0.0, -1.0],
|
||||
{"model": "brick_cube", "position": [-2, 0.21, -1.0],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
"scale": 0.5,
|
||||
"material": "default"},
|
||||
{"model": "human", "position": [1.28, 0.0, 1.33],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue