Started scene reader. Added libjson-spirit dependency.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-18 17:26:09 -04:00
parent 965b04ca39
commit 5edccd4d30
10 changed files with 351 additions and 32 deletions

49
scenes/scene3.json Normal file
View File

@@ -0,0 +1,49 @@
{
"environment": {
"texture": "textures/pisa.hdr",
"light_probe": false
},
"camera": {
"eye": [0.0, 1.5, 1.0],
"look": [0.0, 0.0, -2.0],
"left": [-1.0, 0.0, 0.0]
},
"sphere": {
"position": [2.0, 0.0, -2.0],
"radius": 1.5,
"material": {
"diffuse": [1.0f, 0.0f, 1.0f],
"shininess": 128.0
}
},
"sphere":{
"position": [-1.0, 0.0, -3.25],
"radius": 1.5,
"material": {
"diffuse": [1.0, 0.0, 1.0],
"rho": 0.4
}
},
"sphere":{
"position": [1.0, 0.0, -3.25],
"radius": 1.5,
"material": {
"diffuse": [1.0, 1.0, 1.0],
"rho": 0.4
}
},
"disk": {
"position": [1.0, -1.5, -3.25],
"normal": [0.0, 1.0, 0.0],
"radius": 3.0,
"material": {
"diffuse": [0.0, 0.5, 0.5],
"specular": [0.0, 0.0, 0.0]
}
}
}