You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
343 B
15 lines
343 B
9 years ago
|
#version 330 core
|
||
|
in vec3 ourColor;
|
||
|
in vec2 TexCoord;
|
||
|
|
||
|
out vec4 color;
|
||
|
|
||
|
// Texture samplers
|
||
|
uniform sampler2D ourTexture1;
|
||
|
uniform sampler2D ourTexture2;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
// Linearly interpolate between both textures (second texture is only slightly combined)
|
||
|
color = mix(texture(ourTexture1, TexCoord), texture(ourTexture2, TexCoord), 0.2);
|
||
|
}
|