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
78
32-text-rendering/tests/config.json
Normal file
78
32-text-rendering/tests/config.json
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
{
|
||||
"material_test": {
|
||||
"ambient": [0.1, 0.1, 0.1],
|
||||
"shininess": 32.0,
|
||||
"diffuseMap": 0,
|
||||
"specularMap": 0
|
||||
},
|
||||
"lighting_test": {
|
||||
"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
|
||||
}
|
||||
},
|
||||
|
||||
"camera_test": {
|
||||
"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": 20.0
|
||||
},
|
||||
"model_test": {
|
||||
"directory": "assets",
|
||||
"model_path": "create.obj"
|
||||
},
|
||||
"thing_test":
|
||||
{"model": "grass", "position": [2.5, 0.0, 0.0],
|
||||
"rotation": {"angle": 90.0, "axes": [0.0,1.0,0.0,0.0]},
|
||||
"scale": 1.0,
|
||||
"material": "default"
|
||||
},
|
||||
"shader_test": {
|
||||
"vertex_path": "shaders/19-vert.glsl",
|
||||
"frag_path": "shaders/19-frag.glsl"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue