texture.frag 157 B

123456789101112
  1. uniform sampler2D u_tex;
  2. uniform vec4 u_color;
  3. in vec2 v_texCoord;
  4. out vec4 fragColor;
  5. void main()
  6. {
  7. fragColor = texture(u_tex, v_texCoord) * u_color;
  8. }