basic textures
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#version 330 core
|
||||
|
||||
out vec4 FragColor;
|
||||
in vec3 color; // Input color from the vertex shader
|
||||
in vec3 Color; // Input color from the vertex shader
|
||||
in vec2 TexCoord; // Input texture coordinate from the vertex shader
|
||||
|
||||
uniform sampler2D Texture1;
|
||||
|
||||
void main() {
|
||||
FragColor = vec4(color, 1.0); // Apply the color directly
|
||||
FragColor = texture(Texture1, TexCoord);
|
||||
}
|
||||
Reference in New Issue
Block a user