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/sphere-small-change.json
github-classroom[bot] 6eef377959
Initial commit
2024-10-11 10:27:35 +00:00

50 lines
905 B
JSON

{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,4],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1
},
"materials": [
{
"name": "orange plastic",
"ka": [1.0, 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": "light blue",
"ka": [0.1, 0.1, 0.2],
"kd": [0.5, 0.6, 0.8],
"ks": [0.05,0.05,0.1],
"km": [0.2,0.2,0.2],
"phong_exponent": 20
}
],
"lights":[
{
"type": "directional",
"direction": [0,0,-1],
"color": [0.85,0.8,0.8]
},
{
"type": "point",
"position": [-5,10,10],
"color": [0.8,0.85,0.8]
}
],
"objects": [
{
"type": "sphere",
"material": "light blue",
"center": [0,0,0],
"radius": 0.5
}
]
}