Changeset 9f9f9a7 in opengl-game for laser.vert
- Timestamp:
- Jul 17, 2018, 3:21:12 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- fd6f465
- Parents:
- 6877ef3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
laser.vert
r6877ef3 r9f9f9a7 4 4 5 5 layout(location = 0) in vec3 vertex_position; 6 layout(location = 1) in vec 3 vertex_color;6 layout(location = 1) in vec2 vt; 7 7 8 out vec3 position_eye, color; 8 out vec2 texture_coordinates; 9 out vec3 position_eye; 9 10 10 11 void main() { 11 12 position_eye = vec3(view * vec4(vertex_position, 1.0)); 12 color = vertex_color;13 texture_coordinates = vt; 13 14 14 15 gl_Position = proj * vec4(position_eye, 1.0);
Note:
See TracChangeset
for help on using the changeset viewer.