source: opengl-game/test.vert@ 201e2f8

feature/imgui-sdl points-test
Last change on this file since 201e2f8 was 7ee66ea, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 7 years ago

Add view and projection matrices allow the player to move and rotate the camera

  • Property mode set to 100644
File size: 260 bytes
RevLine 
[ec4456b]1#version 410
2
[7ee66ea]3uniform mat4 model, view, proj;
[93baa0e]4
[d0b9596]5layout(location = 0) in vec3 vertex_position;
6layout(location = 1) in vec3 vertex_color;
[8b7cfcf]7
8out vec3 color;
[ec4456b]9
10void main() {
[8b7cfcf]11 color = vertex_color;
[7ee66ea]12 gl_Position = proj * view * model * vec4(vertex_position, 1.0);
[ec4456b]13}
Note: See TracBrowser for help on using the repository browser.