Texture implementation
This commit is contained in:
12
assets/shaders/texture.frag.glsl
Normal file
12
assets/shaders/texture.frag.glsl
Normal file
@@ -0,0 +1,12 @@
|
||||
#version 330 core
|
||||
out vec4 FragColour;
|
||||
|
||||
in vec4 ourColour;
|
||||
in vec2 TexCoord;
|
||||
|
||||
uniform sampler2D ourTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColour = texture(ourTexture, TexCoord);
|
||||
}
|
||||
Reference in New Issue
Block a user