Changeset adcd252 in opengl-game for shaders


Ignore:
Timestamp:
Aug 2, 2019, 8:00:34 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
bba12e7
Parents:
4f63fa8
Message:

Add a depth buffer for depth testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shaders/shader.vert

    r4f63fa8 radcd252  
    88} ubo;
    99
    10 layout(location = 0) in vec2 inPosition;
     10layout(location = 0) in vec3 inPosition;
    1111layout(location = 1) in vec3 inColor;
    1212layout(location = 2) in vec2 inTexCoord;
     
    1616
    1717void main() {
    18    gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 0.0, 1.0);
     18   gl_Position = ubo.proj * ubo.view * ubo.model * vec4(inPosition, 1.0);
    1919   fragColor = inColor;
    2020   fragTexCoord = inTexCoord;
Note: See TracChangeset for help on using the changeset viewer.