Changeset 93baa0e in opengl-game for test.vert


Ignore:
Timestamp:
Aug 5, 2017, 6:55:49 PM (7 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
49756cb
Parents:
d0b9596
Message:

Add face culling and a model matrix that can be changed to move the scene

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test.vert

    rd0b9596 r93baa0e  
    11#version 410
     2
     3uniform mat4 model;
    24
    35layout(location = 0) in vec3 vertex_position;
     
    810void main() {
    911  color = vertex_color;
    10   gl_Position = vec4(vertex_position, 1.0);
     12  gl_Position = model * vec4(vertex_position, 1.0);
    1113}
Note: See TracChangeset for help on using the changeset viewer.