doubleray
Version:
WASM raytracer
49 lines (44 loc) • 777 B
JSON
{
"camera": {
"loc": [1, 0, 0],
"dir": [-1, 0, 0],
"rot": [0, 0, 1],
"depth": 6
},
"global": {
"ambient_color": [0.2, 0.2, 0.2],
"nohit_color": [0.1, 0.5, 0.2],
"c": 10,
"scale":166.6666666,
"refract_shadows":false,
"x":100,
"y":100
},
"spheres": [
{
"rad": 0.44,
"loc": [0, 0, 0],
"ambient": 0.15,
"specular": 1.46,
"reflected": 0,
"transmitted": 0.0,
"diffuse": [1.2, 0.1, 1.8],
"n": 32
},
{
"rad": 10,
"loc": [-4, 0, -11],
"ambient": 0.4,
"specular": 0,
"reflected": 1,
"transmitted": 0.0,
"diffuse": [0.4, 0.4, 0.4],
"n": 1
}
],
"lights": [{
"dir": [-0.4, 0, -1],
"color": [20, 20, 20]
}
]
}