Skip to content
Snippets Groups Projects
Select Git revision
  • master
  • developement_1 protected
  • Version_1.2.4
  • Version_1.2.3
  • Version_1.2.2
  • Version_1.2.1
  • Version_1.2.0
  • Version_1.0.1
  • Version_1.0.0
  • Version_0.1.0
  • Version_0.0.6
  • Version_0.0.5
  • Version_0.0.4
  • Version_0.0.3
  • Version_0.0.2
  • Version_0.0.1
16 results

VertexColorShader.mv2shdr

Blame
  • user avatar
    Anakin authored
    f57614fd
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    VertexColorShader.mv2shdr 459 B
    #version 450 core
    
    // Input vertex data, different for all executions of this shader.
    layout(location = 0) in vec3 vertexPosition_modelspace;
    layout(location = 1) in vec3 vertexColor;
    
    // Output
    out vec3 fragmentColor;
    
    // Values that stay constant for the whole mesh.
    uniform mat4 MVP;
    
    void main(){
    
    	// Output position of the vertex, in clip space : MVP * position
    	gl_Position =  MVP * vec4(vertexPosition_modelspace,1);
    
    	fragmentColor = vertexColor;
    
    }