5.1.transform.fs 312 B

1234567891011121314
  1. #version 330 core
  2. out vec4 FragColor;
  3. in vec2 TexCoord;
  4. // texture samplers
  5. uniform sampler2D texture1;
  6. uniform sampler2D texture2;
  7. void main()
  8. {
  9. // linearly interpolate between both textures (80% container, 20% awesomeface)
  10. FragColor = mix(texture(texture1, TexCoord), texture(texture2, TexCoord), 0.2);
  11. }