Create sprite_fragment.glsl
This commit is contained in:
20
glsl/sprite_fragment.glsl
Normal file
20
glsl/sprite_fragment.glsl
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user