added a texture class
This commit is contained in:
parent
78c7efd063
commit
ed8237a601
8 changed files with 8076 additions and 9 deletions
|
@ -1,7 +1,12 @@
|
|||
#version 330 core
|
||||
out vec4 FragColor;
|
||||
|
||||
in vec3 ourColor;
|
||||
in vec2 TexCoord;
|
||||
|
||||
uniform sampler2D ourTexture;
|
||||
|
||||
void main()
|
||||
{
|
||||
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||||
FragColor = texture(ourTexture, TexCoord);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue