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.

11 lines
229 B

5 years ago
  1. #version 120
  2. #ifdef GL_ES
  3. precision mediump float;
  4. #endif
  5. uniform sampler2D U_Texture;
  6. varying vec4 V_Color;
  7. void main()
  8. {
  9. vec4 color=texture2D(U_Texture,gl_PointCoord.xy)*V_Color;
  10. gl_FragData[0]=color;
  11. gl_FragData[1]=color;
  12. }