Create sprite_fragment.glsl

This commit is contained in:
CobaltXII
2019-01-03 16:06:38 -05:00
parent 340cea2a0f
commit 5fa8e8e2dc

20
glsl/sprite_fragment.glsl Normal file
View File

@@ -0,0 +1,20 @@
#version 330 core
// The sprite_texture.
uniform sampler2D sprite_texture;
// The texture_coordinates.
in vec2 texture_coordinates;
// Output to OpenGL.
out vec4 fragment_color;
// Main shader code.
void main()
{
fragment_color = texture(sprite_texture, texture_coordinates);
}