39 lines
1.8 KiB
JSON
39 lines
1.8 KiB
JSON
{
|
|
"camera": {
|
|
"image_width": 400,
|
|
"image_height": 300,
|
|
"anti_alias_rate": 23,
|
|
"max_depth": 10,
|
|
"fov": 20.0,
|
|
"look_from": { "x": 20, "y": 25, "z": 40 },
|
|
"look_at": { "x": 0.0, "y": 0.0, "z": -1.0 },
|
|
"vup": { "x": 0.0, "y": 1.0, "z": 0.0 },
|
|
"defocus_blur": false,
|
|
"defocus_angle": 0,
|
|
"focus_dist": 15.68
|
|
},
|
|
"materials": [
|
|
{ "type": "metal", "albedo": { "x": 0.9, "y": 0.4, "z": 0.2 }, "prob": 1.0, "fuzz": 0.1 },
|
|
{ "type": "metal", "albedo": { "x": 0.7, "y": 0.4, "z": 0.2 }, "prob": 1.0, "fuzz": 0.1 },
|
|
{ "type": "lambertian", "albedo": { "x": 0.8, "y": 0.8, "z": 0.0 }, "prob": 1.0 },
|
|
{ "type": "lambertian", "albedo": { "x": 0.1, "y": 0.2, "z": 0.5 }, "prob": 1.0 },
|
|
{ "type": "dielectric", "refraction_index": 1.5},
|
|
{ "type": "dielectric", "refraction_index": 0.67},
|
|
{ "type": "metal", "albedo": { "x": 0.8, "y": 0.6, "z": 0.2 }, "prob": 1.0, "fuzz": 1.0 }
|
|
|
|
],
|
|
"objects": [
|
|
{ "type": "sphere", "center": { "x": 0, "y": 0.7, "z": -0.4 }, "radius": 0.2, "material": 0},
|
|
{ "type": "sphere", "center": { "x": 0.0, "y": 0.5, "z": -0.8 }, "radius": 0.1, "material": 1},
|
|
{ "type": "sphere", "center": { "x": 0.0, "y": -100.5, "z": -1.0 }, "radius": 100.0, "material": 2},
|
|
{ "type": "sphere", "center": { "x": 0.0, "y": 0.0, "z": -1.2 }, "radius": 0.5, "material": 3},
|
|
{ "type": "sphere", "center": { "x": -1, "y": 0, "z": -1 }, "radius": 0.4, "material": 5},
|
|
{ "type": "sphere", "center": { "x": 1, "y": 0, "z": -1 }, "radius": 0.5, "material": 6},
|
|
{ "type": "sphere", "center": { "x": 20, "y": 7, "z": -15 }, "radius": 10.5, "material": 0},
|
|
{ "type": "triangle", "p1": { "x": 0, "y": 0, "z": -4}, "p2": { "x": 0, "y": 0, "z": 4 }, "p3": { "x": 0, "y": 7, "z": 0 }, "material": 0}
|
|
]
|
|
}
|
|
|
|
|
|
|