source:
opengl-game/test.vert@
49756cb
Last change on this file since 49756cb was 93baa0e, checked in by , 7 years ago | |
---|---|
|
|
File size: 234 bytes |
Rev | Line | |
---|---|---|
[ec4456b] | 1 | #version 410 |
2 | ||
[93baa0e] | 3 | uniform mat4 model; |
4 | ||
[d0b9596] | 5 | layout(location = 0) in vec3 vertex_position; |
6 | layout(location = 1) in vec3 vertex_color; | |
[8b7cfcf] | 7 | |
8 | out vec3 color; | |
[ec4456b] | 9 | |
10 | void main() { | |
[8b7cfcf] | 11 | color = vertex_color; |
[93baa0e] | 12 | gl_Position = model * vec4(vertex_position, 1.0); |
[ec4456b] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.