Last active
July 13, 2020 20:46
-
-
Save pingpoli/7b7baf9500b81b40badc8fad9273e97c to your computer and use it in GitHub Desktop.
This file contains hidden or 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 vec2 vertex_position; | |
layout ( location = 2 ) in vec2 vertex_uv; | |
uniform mat4 M_mvp; | |
out vec2 uv; | |
void main() | |
{ | |
gl_Position = M_mvp * vec4( vertex_position , 0.0 , 1.0 ); | |
uv = vertex_uv; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment