Setup for day 18.
This commit is contained in:
parent
032f10ef44
commit
993f148710
87 changed files with 14992 additions and 0 deletions
99
18-depth-testing/config.json
Normal file
99
18-depth-testing/config.json
Normal file
|
|
@ -0,0 +1,99 @@
|
|||
{
|
||||
"scene": {
|
||||
"shader": {
|
||||
"vertex_path": "shaders/17-vert.glsl",
|
||||
"frag_path": "shaders/17-frag.glsl"
|
||||
},
|
||||
"light_shader": {
|
||||
"vertex_path": "shaders/17-vert.glsl",
|
||||
"frag_path": "shaders/17-lightsource.frag.glsl"
|
||||
},
|
||||
"materials": {
|
||||
"crate": {
|
||||
"ambient": [0.5, 0.5, 0.5],
|
||||
"shininess": 32.0,
|
||||
"diffuseMap": 0,
|
||||
"specularMap": 0
|
||||
},
|
||||
"popcorn": {
|
||||
"ambient": [0.5, 0.25, 0.31],
|
||||
"shininess": 10000.0,
|
||||
"diffuseMap": 0,
|
||||
"specularMap": 0
|
||||
}
|
||||
},
|
||||
"models": {
|
||||
"crate": {
|
||||
"directory": "assets",
|
||||
"model_path": "crate.obj"
|
||||
},
|
||||
"popcorn": {
|
||||
"directory": "assets",
|
||||
"model_path": "popcorn_model_a.glb"
|
||||
}
|
||||
},
|
||||
"things": [
|
||||
{"model": "crate", "position": [0.0, 0.0, 0.0], "material": "crate"},
|
||||
{"model": "crate", "position": [2.0, 5.0, -15.0], "material": "crate"},
|
||||
{"model": "crate", "position": [-1.5, -2.2, -2.5], "material": "crate"},
|
||||
{"model": "popcorn", "position": [-3.8, -2.0, -12.3], "material": "popcorn"},
|
||||
{"model": "crate", "position": [ 2.4, -0.4, -3.5], "material": "crate"},
|
||||
{"model": "crate", "position": [-1.7, 3.0, -7.5], "material": "crate"},
|
||||
{"model": "popcorn", "position": [ 1.3, -2.0, -2.5], "material": "popcorn"},
|
||||
{"model": "crate", "position": [ 1.5, 2.0, -2.5], "material": "crate"},
|
||||
{"model": "popcorn", "position": [ 1.5, 0.2, -1.5], "material": "popcorn"},
|
||||
{"model": "crate", "position": [-1.3, 1.0, -1.5], "material": "crate"}
|
||||
],
|
||||
"camera": {
|
||||
"position": [0.0, 0.0, 3.0],
|
||||
"front": [0.0, 0.0, -1.0],
|
||||
"up": [0.0, 1.0, 0.0],
|
||||
"direction": [0.0, 0.0, 0.0],
|
||||
"movement_speed": 10.0
|
||||
},
|
||||
"light": {
|
||||
"directional": [
|
||||
{
|
||||
"position": [0, 0, 0.0],
|
||||
"direction":[-0.2, -1.0, -0.3],
|
||||
"ambient":[0.2, 0.2, 0.2],
|
||||
"diffuse":[0.8, 0.8, 0.8],
|
||||
"specular":[1.0, 1.0, 1.0],
|
||||
"constant": 0.0,
|
||||
"linear": 0.0,
|
||||
"quadratic": 0.0,
|
||||
"cut_off": 0.0,
|
||||
"outer_cut_off": 0.0
|
||||
}
|
||||
],
|
||||
"positioned": [
|
||||
{
|
||||
"position": [1.2, 1.0, 2.0],
|
||||
"direction":[-0.2, -1.0, -0.3],
|
||||
"ambient":[0.2, 0.2, 0.2],
|
||||
"diffuse":[0.8, 0.8, 0.8],
|
||||
"specular":[1.0, 1.0, 1.0],
|
||||
"constant": 1.0,
|
||||
"linear": 0.09,
|
||||
"quadratic": 0.032,
|
||||
"cut_off": 12.5,
|
||||
"outer_cut_off": 17.5
|
||||
}
|
||||
],
|
||||
"spot": [
|
||||
],
|
||||
"camera": {
|
||||
"position":[2.2, 1.0, 2.0],
|
||||
"direction":[0.0, 0.0, -1.0],
|
||||
"ambient":[0.2, 0.2, 0.2],
|
||||
"diffuse":[0.8, 0.8, 0.8],
|
||||
"specular":[1.0, 1.0, 1.0],
|
||||
"constant": 1.0,
|
||||
"linear": 0.09,
|
||||
"quadratic": 0.032,
|
||||
"cut_off": 12.5,
|
||||
"outer_cut_off": 17.5
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue