Added support for PNG
This commit is contained in:
parent
7571b3943d
commit
8174ebaee4
5 changed files with 27 additions and 6 deletions
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue