Added support for PNG

This commit is contained in:
Robert 2021-01-21 16:11:41 +01:00
parent 7571b3943d
commit 8174ebaee4
5 changed files with 27 additions and 6 deletions

View file

@ -4,9 +4,10 @@ in vec2 oUV;
out vec4 FragColor;
uniform sampler2D ourTexture;
uniform sampler2D texture1;
uniform sampler2D texture2;
void main()
{
FragColor = texture(ourTexture, oUV) * vec4(oCol, 1.0);
FragColor = mix(texture(texture1, oUV), texture(texture2, oUV), 0.2);
}