Skip to content
Snippets Groups Projects
Select Git revision
  • 047d15d62a22840d4455d77bc936c6bc1764cdfe
  • main default protected
  • correction_video
  • going_further
  • ImprovedMouseInteraction
  • final2023
  • template
  • ModifGUI
8 results

Cohort.java

Blame
  • Forked from YAGOUBI Rim / Game of life Template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Sprite.vert 344 B
    #version 450 core
    layout (location = 0) in vec2 aPos;
    layout (location = 1) in vec2 aTex;
    
    uniform mat4 uModel[128];
    uniform mat4 uView;
    uniform mat4 uProj;
    
    out vec2 Texture;
    flat out int Id;
    
    void main() {
        Texture = aTex;
        Id = gl_InstanceID;
        gl_Position =  uProj * uView * uModel[gl_InstanceID] * vec4(aPos.x, aPos.y, 0.0, 1.0);
    }