]> git.lizzy.rs Git - dragonblocks3d-lua.git/blob - modules/RenderEngine/shaders/vertex.glsl
Refactoring
[dragonblocks3d-lua.git] / modules / RenderEngine / shaders / vertex.glsl
1 #version 330 core\r
2 \r
3 layout(location = 0) in vec3 aPos;\r
4 layout(location = 1) in vec2 aTexCoord;\r
5 \r
6 out vec2 ourTexCoord;\r
7 \r
8 uniform mat4 model;\r
9 uniform mat4 view;\r
10 uniform mat4 projection;\r
11 \r
12 void main()\r
13 {\r
14     gl_Position = projection * view  * model * vec4(aPos, 1.0);\r
15     ourTexCoord = aTexCoord;\r
16 }\r