doubleray
Version:
WASM raytracer
30 lines (29 loc) • 505 B
JSON
{
"camera": {
"loc": [5, 0, 0],
"dir": [-1, 0, 0],
"rot": [0, 0, 1],
"depth": 3
},
"global": {
"color": [0.0, 0.0, 0.0],
"c": 10,
"scale":166.6666666,
"refract_shadows":false
},
"spheres": [{
"rad": 1.1,
"loc": [0, 0, 0],
"ambient": 0.2,
"specular": 1.46,
"reflected": 0.0,
"transmitted": 0.0,
"diffuse": [0.9, 0.9, 0.9],
"n": 32
}
],
"lights": [{
"dir": [-0.4, 0, -1],
"color": [10, 10, 10]
}]
}