source:
opengl-game/shaders/shader.vert@
d9ef6ab
Last change on this file since d9ef6ab was 80edd70, checked in by , 5 years ago | |
---|---|
|
|
File size: 220 bytes |
Rev | Line | |
---|---|---|
[4befb76] | 1 | #version 450 |
2 | ||
[80edd70] | 3 | layout(location = 0) in vec2 inPosition; |
4 | layout(location = 1) in vec3 inColor; | |
[4befb76] | 5 | |
[80edd70] | 6 | layout(location = 0) out vec3 fragColor; |
[4befb76] | 7 | |
8 | void main() { | |
[80edd70] | 9 | gl_Position = vec4(inPosition, 0.0, 1.0); |
10 | fragColor = inColor; | |
[4befb76] | 11 | } |
Note:
See TracBrowser
for help on using the repository browser.