mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +00:00
38 lines
678 B
JSON
38 lines
678 B
JSON
{
|
|
"geometry":[{
|
|
"type":"rectangle",
|
|
"p1":[-2, 2, -4],
|
|
"p2":[-2, -2, -4],
|
|
"p3":[2, -2, -4],
|
|
"p4":[2, 2, -4],
|
|
|
|
|
|
"ac":[0,1,0],
|
|
"dc":[1,0,0],
|
|
"sc":[1,1,1],
|
|
|
|
"ka":0.1,
|
|
"kd":1,
|
|
"ks":1,
|
|
|
|
"pc":10
|
|
|
|
}],
|
|
"light":[{
|
|
"type":"point",
|
|
"centre":[0, 0, 0],
|
|
"id":[1, 1, 1],
|
|
"is":[1, 1, 1]
|
|
}],
|
|
"output":[{
|
|
"filename":"test_scene2.ppm",
|
|
"size":[500,500],
|
|
"lookat":[0,0,-1],
|
|
"up":[0,1,0],
|
|
"fov":90,
|
|
"centre":[0,0,0],
|
|
"ai":[1,1,1],
|
|
"bkc":[1,1,1]
|
|
}
|
|
]
|
|
}
|