Changeset 7ee66ea in opengl-game for test.vert


Ignore:
Timestamp:
Aug 17, 2017, 2:30:31 AM (7 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
201e2f8
Parents:
9d22ee9
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test.vert

    r9d22ee9 r7ee66ea  
    11#version 410
    22
    3 uniform mat4 model;
     3uniform mat4 model, view, proj;
    44
    55layout(location = 0) in vec3 vertex_position;
     
    1010void main() {
    1111  color = vertex_color;
    12   gl_Position = model * vec4(vertex_position, 1.0);
     12  gl_Position = proj * view * model * vec4(vertex_position, 1.0);
    1313}
Note: See TracChangeset for help on using the changeset viewer.