doubleray
Version:
WASM raytracer
41 lines (40 loc) • 691 B
JSON
{
"camera": {
"loc": [5, 0, 0],
"dir": [-1, 0, 0],
"rot": [0, 0, 1],
"depth": 6
},
"global": {
"color": [0.9, 0.2, 0.2],
"c": 10,
"scale":166.6666666
},
"spheres": [{
"rad": 1,
"loc": [-1, 0, 0],
"ambient": 0.0,
"specular": 1.46,
"reflected": 0,
"transmitted": 1.0,
"diffuse": [0.0, 0.0, 0.0],
"n": 32,
"refraction":1.4
},
{
"rad": 1.0,
"loc": [-4, -1.1, 0],
"ambient": 0.8,
"specular": 1.46,
"reflected": 0,
"transmitted": 0.0,
"diffuse": [0.8, 0.0, 0.8],
"n": 32
}
],
"lights": [{
"dir": [-0.4, 0, -1],
"color": [20, 20, 20]
}
]
}