Add texture loading.

This commit is contained in:
Sebastian Cabrera 2023-05-31 13:47:13 -04:00
parent 34b9ac0d05
commit c5972b9dd2
10 changed files with 122 additions and 11 deletions

View file

@ -1,9 +1,11 @@
#version 400 core
in vec3 color;
in vec2 fragmentTextureCoordinates;
out vec4 fragmentColor;
uniform sampler2D textureSampler;
void main() {
fragmentColor = vec4(color, 1.0);
fragmentColor = texture(textureSampler, fragmentTextureCoordinates);
}