doubleray
Version:
WASM raytracer
45 lines (41 loc) • 707 B
JSON
{
"camera": {
"loc": [5.5, 0, 1.5],
"dir": [-1, 0, -0.4],
"rot": [0, 0, 1],
"depth": 6
},
"global": {
"color": [0.2, 0.2, 0.2],
"c": 10,
"scale":166.6666666
},
"spheres": [
{
"rad": 1,
"loc": [0.759, -1.29, 0],
"ambient": 0.0,
"specular": 1.46,
"reflected": 1.0,
"transmitted": 1.0,
"diffuse": [0.1, 0.1, 0.2],
"n": 32,
"refraction":1.011
},
{
"rad": 100,
"loc": [0, 0, -101],
"ambient": 0.10,
"specular": 0,
"reflected": 1,
"transmitted": 0.0,
"diffuse": [0.4, 0.4, 0.0],
"n": 1
}
],
"lights": [{
"dir": [-0.4, 0, -1],
"color": [20, 20, 20]
}
]
}