dodanie textur

This commit is contained in:
2025-01-08 04:55:58 +01:00
parent 4956d74c1a
commit 395b470b5d
29 changed files with 1848 additions and 456 deletions

View File

@@ -0,0 +1,17 @@
#version 330 core
// Interpolated values from the vertex shaders
in vec2 UV;
// Output data
out vec3 color;
// Values that stay constant for the whole mesh.
uniform sampler2D myTextureSampler;
void main() {
// Output color = color of the texture at the specified UV
color = texture(myTextureSampler, UV).rgb;
}