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.
 
 

12 lines
229 B

#version 120
#ifdef GL_ES
precision mediump float;
#endif
uniform sampler2D U_Texture;
varying vec4 V_Color;
void main()
{
vec4 color=texture2D(U_Texture,gl_PointCoord.xy)*V_Color;
gl_FragData[0]=color;
gl_FragData[1]=color;
}