source:
opengl-game/texture.vert@
f70ab75
Last change on this file since f70ab75 was 1a530df, checked in by , 7 years ago | |
---|---|
|
|
File size: 321 bytes |
Rev | Line | |
---|---|---|
[ec4456b] | 1 | #version 410 |
2 | ||
[1a530df] | 3 | layout (std140) uniform model_block { |
4 | mat4 M; | |
5 | }; | |
6 | ||
[7ee66ea] | 7 | uniform mat4 model, view, proj; |
[93baa0e] | 8 | |
[d0b9596] | 9 | layout(location = 0) in vec3 vertex_position; |
[485424b] | 10 | layout(location = 1) in vec2 vt; |
[8b7cfcf] | 11 | |
[485424b] | 12 | out vec2 texture_coordinates; |
[ec4456b] | 13 | |
14 | void main() { | |
[485424b] | 15 | texture_coordinates = vt; |
[7ee66ea] | 16 | gl_Position = proj * view * model * vec4(vertex_position, 1.0); |
[ec4456b] | 17 | } |
Note:
See TracBrowser
for help on using the repository browser.