feature/imgui-sdl
points-test
Last change
on this file since 8b7cfcf was 8b7cfcf, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 8 years ago |
Allow each vertex to have its own color
|
-
Property mode
set to
100644
|
File size:
352 bytes
|
Line | |
---|
1 | #version 410
|
---|
2 |
|
---|
3 | // using layout() doens't work on OSX, so use glBindAttribLocation() in the C++ code instead
|
---|
4 | // layout(position = 0) in vec3 vertex_position;
|
---|
5 | // layout(position = 1) in vec3 vertex_color;
|
---|
6 |
|
---|
7 | in vec3 vertex_position;
|
---|
8 | in vec3 vertex_color;
|
---|
9 |
|
---|
10 | out vec3 color;
|
---|
11 |
|
---|
12 | void main() {
|
---|
13 | color = vertex_color;
|
---|
14 | gl_Position = vec4(vertex_position, 1.0);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.