Skip to content

Instantly share code, notes, and snippets.

@anirul
Last active March 8, 2020 10:50
Show Gist options
  • Save anirul/0e70dd37c82b156e24a342a3ef5ee59d to your computer and use it in GitHub Desktop.
Save anirul/0e70dd37c82b156e24a342a3ef5ee59d to your computer and use it in GitHub Desktop.
Vertex on how to draw a texture to surface.
#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