Created
August 16, 2014 16:17
-
-
Save avwhite/25b634ca9a689647e68d to your computer and use it in GitHub Desktop.
OpenGL problem shader program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 core | |
layout(location = 0) in vec3 vertexPosition_modelspace; | |
uniform mat4 MVP; | |
void main(){ | |
vec4 v = vec4(vertexPosition_modelspace,1); // Transform an homogeneous 4D vector | |
gl_Position = MVP * v; | |
//mat4 M = mat4( | |
// vec4(1.0, 0.0, 0.0, 0.0), | |
// vec4(0.0, 1.0, 0.0, 0.0), | |
// vec4(0.0, 0.0, 1.0, 0.0), | |
// vec4(0.0, 0.0, 0.0, 1.0) | |
//); | |
//gl_Position = M * v; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment