
/*
#version 120
uniform sampler2D tex0;
varying vec4 v_uv; 	
varying vec4 v_color;    
uniform vec4 color;    
uniform vec2 uv_tiling;
void main (void)
{
  vec2 uv = v_uv.xy * uv_tiling;
  vec4 t = texture2D(tex0,uv);
  gl_FragColor = t * color * v_color;
}
*/


#version 120
uniform sampler2D tex0;
uniform vec4 color;    
uniform vec2 uv_tiling;
void main (void)
{
  vec2 uv =  gl_TexCoord[0].xy * uv_tiling;
  vec4 t = texture2D(tex0,uv);
  gl_FragColor = t * color * gl_Color;
}
