doubleray
Version:
WASM raytracer
32 lines (31 loc) • 623 B
JSON
{
"comment":"refract_shadows true and transmitted 1 shows 2x specular reflection. also due to diffuse color 2nd specular is subtracting colors",
"camera": {
"loc": [5, 0, 0],
"dir": [-1, 0, 0],
"rot": [0, 0, 1],
"depth": 2
},
"global": {
"color": [0.2, 0.2, 0.2],
"c": 10,
"refract_shadows":true
},
"spheres": [
{
"rad": 3.8,
"loc": [-4, 0, 0],
"ambient": 0.1,
"specular": 1.46,
"reflected": 1,
"transmitted": 1,
"diffuse": [0.9, 0.0, 0.0],
"n": 32
}
],
"lights": [{
"dir": [-0.4, -1, 0.6],
"color": [14, 14, 14]
}
]
}