Started a simple font text class to do font rendering.
This commit is contained in:
parent
1830faf4c9
commit
b244c903a6
137 changed files with 16135 additions and 0 deletions
140
32-text-rendering/config.json
Normal file
140
32-text-rendering/config.json
Normal file
|
|
@ -0,0 +1,140 @@
|
|||
{
|
||||
"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/30-screen.vert.glsl",
|
||||
"frag_path": "shaders/30-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"},
|
||||
{"model": "human", "position": [-1.5, 0.0, -2.0],
|
||||
"rotation": {"angle": 0.0, "axes": [1.0, 1.0, 1.0]},
|
||||
"scale": 1.0,
|
||||
"material": "default"},
|
||||
{"model": "window", "position": [1.5, 0.25, 0.0],
|
||||
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"},
|
||||
{"model": "window", "position": [1.75, 0.25, 0.25],
|
||||
"rotation": {"angle": 90.0, "axes": [1.0,0.0,0.0]},
|
||||
"scale": 1.0,
|
||||
"material": "shiny"}
|
||||
],
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue