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

40 lines
691 B
JSON

{
"camera": {
"type": "perspective",
"focal_length": 3,
"eye": [0,0,6],
"up": [0,1,0],
"look": [0,0,-1],
"height": 1,
"width": 1.7777777778
},
"objects": [
{
"type": "triangle",
"corners": [
[-0.5,0,0],
[0.5,0,0],
[0,0.8660254038,0]
],
"material": "orange plastic"
}
],
"lights":[
{
"type": "directional",
"direction": [0,0,-1],
"color": [0.8,0.8,0.8]
}
],
"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
}
]
}