source:
opengl-game/texture.vert@
0424bd8
| Last change on this file since 0424bd8 was 485424b, checked in by , 8 years ago | |
|---|---|
|
|
| File size: 268 bytes | |
| Rev | Line | |
|---|---|---|
| [ec4456b] | 1 | #version 410 |
| 2 | ||
| [7ee66ea] | 3 | uniform mat4 model, view, proj; |
| [93baa0e] | 4 | |
| [d0b9596] | 5 | layout(location = 0) in vec3 vertex_position; |
| [485424b] | 6 | layout(location = 1) in vec2 vt; |
| [8b7cfcf] | 7 | |
| [485424b] | 8 | out vec2 texture_coordinates; |
| [ec4456b] | 9 | |
| 10 | void main() { | |
| [485424b] | 11 | texture_coordinates = vt; |
| [7ee66ea] | 12 | gl_Position = proj * view * model * vec4(vertex_position, 1.0); |
| [ec4456b] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
![(please configure the [header_logo] section in trac.ini)](/medieval/chrome/site/your_project_logo.png)