basic textures

This commit is contained in:
2025-11-25 16:15:40 +00:00
parent 47a10623a1
commit bb7a3bafd2
17 changed files with 12154 additions and 10 deletions

View File

@@ -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);
}