opengl-test

triangle draw using glfw and opengl
Index Commits Files Refs README LICENSE
main.vert (153B)
   1 #version 330 core
   2 layout (location = 0) in vec2 pos;
   3 
   4 uniform float scale;
   5 
   6 void main() {
   7     gl_Position = vec4(scale * pos.x, scale * pos.y, 0.0, 1.0);
   8 }