128 lines
3.2 KiB
JSON
128 lines
3.2 KiB
JSON
{
|
|
"scene": {
|
|
"shader": {
|
|
"vertex_path": "shaders/27-framebuffers.vert.glsl",
|
|
"frag_path": "shaders/27-framebuffers.frag.glsl",
|
|
"geometry_path": ""
|
|
},
|
|
"reflect_shader": {
|
|
"vertex_path": "shaders/24-vert.glsl",
|
|
"frag_path": "shaders/24-frag.glsl",
|
|
"geometry_path": ""
|
|
},
|
|
"screen_shader": {
|
|
"vertex_path": "shaders/21-screen.vert.glsl",
|
|
"frag_path": "shaders/21-screen.frag.glsl",
|
|
"geometry_path": ""
|
|
},
|
|
"skybox_shader": {
|
|
"vertex_path": "shaders/24-skybox.vert.glsl",
|
|
"frag_path": "shaders/24-skybox.frag.glsl",
|
|
"geometry_path": ""
|
|
},
|
|
"skybox_faces": [
|
|
"../assets/skybox/sky/right.jpg",
|
|
"../assets/skybox/sky/left.jpg",
|
|
"../assets/skybox/sky/top.jpg",
|
|
"../assets/skybox/sky/bottom.jpg",
|
|
"../assets/skybox/sky/front.jpg",
|
|
"../assets/skybox/sky/back.jpg"
|
|
],
|
|
"materials": {
|
|
"default": {
|
|
"ambient": [0.5, 0.5, 0.5],
|
|
"shininess": 32.0,
|
|
"diffuseMap": 0,
|
|
"specularMap": 0
|
|
},
|
|
"shiny": {
|
|
"ambient": [0.5, 0.5, 0.5],
|
|
"shininess": 10000.0,
|
|
"diffuseMap": 0,
|
|
"specularMap": 0
|
|
}
|
|
},
|
|
"models": {
|
|
"marble_cube": {
|
|
"directory": "assets",
|
|
"model_path": "marble_cube.glb"
|
|
},
|
|
"metal_floor": {
|
|
"directory": "assets",
|
|
"model_path": "metal_floor.glb"
|
|
},
|
|
"grass": {
|
|
"directory": "assets",
|
|
"model_path": "grass.glb"
|
|
},
|
|
"window": {
|
|
"directory": "assets",
|
|
"model_path": "window.glb"
|
|
},
|
|
"human": {
|
|
"directory": "../assets",
|
|
"model_path": "human.glb"
|
|
}
|
|
},
|
|
"things": [
|
|
{"model": "marble_cube", "position": [1.5, 0.0, -1.0],
|
|
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
|
"scale": 1.0,
|
|
"material": "default"}
|
|
],
|
|
"camera": {
|
|
"position": [0.0, 0.1, 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,
|
|
"on": true
|
|
}
|
|
],
|
|
"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,
|
|
"on": true
|
|
}
|
|
],
|
|
"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,
|
|
"on": true
|
|
}
|
|
}
|
|
}
|
|
}
|