source: opengl-game/laser.vert@ b155f13

feature/imgui-sdl points-test
Last change on this file since b155f13 was b155f13, checked in by Dmitry Portnoy <dmp1488@…>, 6 years ago

WIP: Start writing code for rendering lasers

  • Property mode set to 100644
File size: 307 bytes
Line 
1#version 410
2
3uniform mat4 view, proj;
4
5layout(location = 0) in vec3 vertex_position;
6layout(location = 1) in vec3 vertex_color;
7
8out vec3 position_eye, color;
9
10void main() {
11 position_eye = vec3(view * vec4(vertex_position, 1.0));
12 color = vertex_color;
13
14 gl_Position = proj * vec4(position_eye, 1.0);
15}
Note: See TracBrowser for help on using the repository browser.