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

106 lines
2.1 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": "red metal",
"ka": [0.894118,0.101961,0.109804],
"kd": [0.894118,0.101961,0.109804],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "blue metal",
"ka": [0.215686,0.494118,0.721569],
"kd": [0.215686,0.494118,0.721569],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "green metal",
"ka": [0.301961,0.686275,0.290196],
"kd": [0.301961,0.686275,0.290196],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"name": "purple metal",
"ka": [0.596078,0.305882,0.639216],
"kd": [0.596078,0.305882,0.639216],
"ks": [0.2,0.2,0.2],
"km": [0.1,0.1,0.1],
"phong_exponent": 500
},
{
"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
}
],
"lights":[
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [0,0,6]
},
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [-0.9,0,3]
},
{
"type": "point",
"color": [0.3,0.3,0.3],
"position": [0.9,0,3]
}
],
"objects": [
{
"type": "plane",
"material": "red metal",
"point": [-1,-1,0],
"normal": [1,0,0]
},
{
"type": "plane",
"material": "purple metal",
"point": [1,-1,0],
"normal": [-1,0,0]
},
{
"type": "plane",
"material": "blue metal",
"point": [0,1,0],
"normal": [0,-1,0]
},
{
"type": "plane",
"material": "green metal",
"point": [0,-1,0],
"normal": [0,1,0]
},
{
"type": "sphere",
"material": "orange plastic",
"center": [0.0,0,1.6],
"radius": 0.5
}
]
}