fragment.glsl (237B)
1 #version 330 core 2 in vec3 vcol; 3 in vec2 texCoord; 4 uniform sampler2D texture1; 5 uniform sampler2D texture2; 6 uniform float alpha; 7 out vec4 fcol; 8 void main() { 9 fcol = mix(texture(texture1, texCoord), texture(texture2, texCoord), alpha); 10 } 11