Add texture loading.
This commit is contained in:
parent
34b9ac0d05
commit
c5972b9dd2
10 changed files with 122 additions and 11 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue