Shadows working but look dumb. The issue so far was that framebuffer.cpp interferes with the framebuffer used to create the shadow map.
This commit is contained in:
parent
a29494325b
commit
482ec07fb3
19 changed files with 261 additions and 206 deletions
|
|
@ -81,7 +81,11 @@
|
|||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "default"},
|
||||
{"model": "human", "position": [-0.032, 0.0, 0.11],
|
||||
{"model": "marble_cube", "position": [1.28, 0.0, 1.85],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
{"model": "human", "position": [3.13, 0.80, 3.04],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
|
|
@ -92,11 +96,7 @@
|
|||
{"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": "light_bulb", "position": [3.84, 3.45, 4.73],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0,1.0,1.0]},
|
||||
"scale": 0.03,
|
||||
"material": "default"}
|
||||
"material": "shiny"}
|
||||
],
|
||||
"camera": {
|
||||
"position": [0.0, 0.1, 3.0],
|
||||
|
|
@ -110,8 +110,8 @@
|
|||
],
|
||||
"positioned": [
|
||||
{
|
||||
"position": [3.84, 3.45, 4.73],
|
||||
"direction":[-0.5, -1.0, -0.3],
|
||||
"position": [-2.0, 4.0, -1.0],
|
||||
"direction":[0.0, 0.0, 0.0],
|
||||
"ambient":[0.3, 0.3, 0.3],
|
||||
"diffuse":[0.9, 0.9, 0.9],
|
||||
"specular":[1.0, 1.0, 1.0],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue