doubleray
Version:
WASM raytracer
47 lines (44 loc) • 770 B
JSON
{
"camera": {
"loc": [5, 0, 0],
"dir": [-1, 0, 0],
"rot": [0, 0, 1],
"depth": 6
},
"global": {
"comment":"with c at anything 1.53 is max red",
"ambient_color": [1.53, 0, 0],
"nohit_color":[0,0,0],
"c": 1,
"scale":166.6666666
},
"spheres": [
{
"rad": 2,
"loc": [-1, -3, 0],
"ambient": 1,
"specular": 0,
"reflected": 0,
"transmitted": 0.0,
"diffuse": [0.0, 0.0, 0.0],
"n": 1
}
,
{
"rad": 2,
"loc": [-1, 1.3, 0],
"ambient": 0,
"specular": 0,
"reflected": 0,
"transmitted": 0.0,
"diffuse": [1.0, 1.0, 1.0],
"n": 1
}
],
"lights": [{
"dir": [-1, 0, 0],
"color": [7.91, 0, 0],
"comment":"with c at 1 7.91 is max red"
}
]
}