Last active
March 8, 2020 10:50
-
-
Save anirul/0e70dd37c82b156e24a342a3ef5ee59d to your computer and use it in GitHub Desktop.
Vertex on how to draw a texture to surface.
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 430 core | |
layout(location = 0) in vec4 in_position; | |
layout(location = 1) in vec3 in_color; | |
layout(location = 2) in vec2 in_texture_coordinate; | |
out vec3 out_color; | |
out vec2 out_texture_coordinate; | |
void main() | |
{ | |
out_color = in_color; | |
out_texture_coordinate = in_texture_coordinate; | |
gl_Position = in_position; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment