source: opengl-game/test.vert@ d0b9596

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
RevLine 
[ec4456b]1#version 410
2
[d0b9596]3layout(location = 0) in vec3 vertex_position;
4layout(location = 1) in vec3 vertex_color;
[8b7cfcf]5
6out vec3 color;
[ec4456b]7
8void main() {
[8b7cfcf]9 color = vertex_color;
[ec4456b]10 gl_Position = vec4(vertex_position, 1.0);
11}
Note: See TracBrowser for help on using the repository browser.