GL basics
This commit is contained in:
8
OpenGL/cube/shaders/simple.vert
Normal file
8
OpenGL/cube/shaders/simple.vert
Normal file
@@ -0,0 +1,8 @@
|
||||
#version 150 core
|
||||
|
||||
in vec2 position;
|
||||
|
||||
void main() {
|
||||
gl_position = vec4(position, 0.0, 1.0);
|
||||
// Equivilent to vec4(position.x, position.y, 0.0, 1.0)
|
||||
}
|
||||
Reference in New Issue
Block a user