Added Texture class

This commit is contained in:
Robert 2021-01-21 12:07:43 +01:00
parent 1b2ed0cdf5
commit e2e15dd98f
13 changed files with 8005 additions and 35 deletions

View file

@ -1,11 +1,12 @@
#version 330 core
in vec3 oCol;
in vec2 oUV;
out vec4 FragColor;
uniform vec4 ourColor;
uniform sampler2D ourTexture;
void main()
{
FragColor = vec4(oCol, 1.0f) + ourColor;
FragColor = texture(ourTexture, oUV) * vec4(oCol, 1.0);
}