source:
opengl-game/laser.vert@
9f9f9a7
Last change on this file since 9f9f9a7 was 9f9f9a7, checked in by , 7 years ago | |
---|---|
|
|
File size: 324 bytes |
Rev | Line | |
---|---|---|
[b155f13] | 1 | #version 410 |
2 | ||
3 | uniform mat4 view, proj; | |
4 | ||
5 | layout(location = 0) in vec3 vertex_position; | |
[9f9f9a7] | 6 | layout(location = 1) in vec2 vt; |
[b155f13] | 7 | |
[9f9f9a7] | 8 | out vec2 texture_coordinates; |
9 | out vec3 position_eye; | |
[b155f13] | 10 | |
11 | void main() { | |
12 | position_eye = vec3(view * vec4(vertex_position, 1.0)); | |
[9f9f9a7] | 13 | texture_coordinates = vt; |
[b155f13] | 14 | |
15 | gl_Position = proj * vec4(position_eye, 1.0); | |
16 | } |
Note:
See TracBrowser
for help on using the repository browser.