Skip to content
Snippets Groups Projects
Select Git revision
  • 2b0ca73512af8ac1e38d40483156f2212b11e2f2
  • master default protected
  • ao2g15-master-patch-59788
  • v1.3
  • v1.1
  • v1.0-rc4
  • v2.2-rc1
  • v1.0-rc3
  • v1.0-rc2
  • v2.0
  • v1.0-rc1
  • v0.9
  • v0.9.1
  • v1.0-rc
14 results

ecsthesis.cls

Blame
  • Forked from UoS LaTeX Group / University of Southampton Thesis Template
    Source project has a limited visibility.
    triangle.vert.glsl 625 B
    #version 450
    
    layout(push_constant)uniform PushConstantData{
        mat4 world;
    }pc;
    
    layout(set=0,binding=0)uniform Lights{
        vec4[32]pos;
        vec4[32]col;
        uint light_count;
    }light_uniforms;
    
    layout(set=0,binding=1)uniform Camera{
        mat4 view;
        mat4 proj;
        vec3 campos;
    }camera_uniforms;
    
    layout(location=0)in vec3 position;
    layout(location=1)in vec3 normal;
    
    layout(location=0)out vec3 v_normal;
    
    void main(){
        mat4 worldview=camera_uniforms.view*pc.world;
        v_normal=normal;//normalize(transpose(inverse(mat3(worldview))) * normal);
        gl_Position=camera_uniforms.proj*worldview*vec4(position*1000.,1.);
    }