This repository has been archived on 2024-12-30. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2024CG-project-render/data/two-spheres-and-plane.json
github-classroom[bot] 6eef377959
Initial commit
2024-10-11 10:27:35 +00:00

71 lines
1.3 KiB
JSON

{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,5],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"materials": [
{
"name": "orange plastic",
"ka": [1, 0.7, 0.2],
"kd": [1.0, 0.7, 0.2],
"ks": [0.8,0.8,0.8],
"km": [0.05,0.05,0.05],
"phong_exponent": 1000
},
{
"name": "teal plastic",
"ka": [0.2, 1, 0.7],
"kd": [0.2, 1, 0.7],
"ks": [0.8,0.8,0.8],
"km": [0.05,0.05,0.05],
"phong_exponent": 1000
},
{
"name": "Lambertian blue",
"ka": [0.2, 0.3, 0.8],
"kd": [0.2, 0.3, 0.8],
"ks": [0.1,0.1,0.1],
"km": [0.3,0.3,0.3],
"phong_exponent": 20
}
],
"lights":[
{
"type": "directional",
"direction": [0,0,-1],
"color": [0.8,0.8,0.8]
},
{
"type": "point",
"position": [-10,20,10],
"color": [0.8,0.8,0.8]
}
],
"objects": [
{
"type": "sphere",
"material": "teal plastic",
"center": [-0.6,-0.5,-3],
"radius": 0.5
},
{
"type": "sphere",
"material": "orange plastic",
"center": [1.0,0,-4],
"radius": 1.0
},
{
"type": "plane",
"material": "Lambertian blue",
"point": [0,-1,0],
"normal": [0,1,0]
}
]
}