openmohaa/code/renderergl2/glsl/generic_fp.glsl

13 lines
206 B
Text
Raw Normal View History

2016-03-27 11:49:47 +02:00
uniform sampler2D u_DiffuseMap;
varying vec2 var_DiffuseTex;
varying vec4 var_Color;
void main()
{
vec4 color = texture2D(u_DiffuseMap, var_DiffuseTex);
gl_FragColor = color * var_Color;
}