Can now load models from file, kinda
This commit is contained in:
parent
4c3c1687ef
commit
ac5bf9abdb
13 changed files with 10247 additions and 12 deletions
9
examples/model_loading/shaders/fragmentShader.frag
Normal file
9
examples/model_loading/shaders/fragmentShader.frag
Normal file
|
@ -0,0 +1,9 @@
|
|||
#version 330 core
|
||||
in vec4 oCol;
|
||||
|
||||
out vec4 FragColor;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = oCol;
|
||||
}
|
14
examples/model_loading/shaders/vertexShader.vert
Normal file
14
examples/model_loading/shaders/vertexShader.vert
Normal file
|
@ -0,0 +1,14 @@
|
|||
#version 330 core
|
||||
layout (location = 0) in vec3 aPos;
|
||||
|
||||
out vec4 oCol;
|
||||
|
||||
uniform mat4 model;
|
||||
uniform mat4 view;
|
||||
uniform mat4 projection;
|
||||
|
||||
void main()
|
||||
{
|
||||
oCol = vec4(0.5, 0.5, 0.5, 1.0);
|
||||
gl_Position = projection * view * model * vec4(aPos, 1.0);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue