feature/imgui-sdl
points-test
Last change
on this file since d0b9596 was d0b9596, checked in by Dmitry Portnoy <dmp1488@…>, 7 years ago |
Specify the attribute locations in the vertex shader
|
-
Property mode
set to
100644
|
File size:
205 bytes
|
Line | |
---|
1 | #version 410
|
---|
2 |
|
---|
3 | layout(location = 0) in vec3 vertex_position;
|
---|
4 | layout(location = 1) in vec3 vertex_color;
|
---|
5 |
|
---|
6 | out vec3 color;
|
---|
7 |
|
---|
8 | void main() {
|
---|
9 | color = vertex_color;
|
---|
10 | gl_Position = vec4(vertex_position, 1.0);
|
---|
11 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.