mirror of https://github.com/axmolengine/axmol.git
17 lines
354 B
GLSL
17 lines
354 B
GLSL
#ifdef GL_ES
|
|
varying mediump vec2 v_texture_coord;
|
|
#else
|
|
varying vec2 v_texture_coord;
|
|
#endif
|
|
varying float v_fogFactor;
|
|
|
|
uniform vec4 u_fogColor;
|
|
|
|
uniform sampler2D u_texture;
|
|
|
|
void main (void)
|
|
{
|
|
vec4 finalColor = texture2D(u_texture, v_texture_coord);
|
|
gl_FragColor = mix(u_fogColor, finalColor, v_fogFactor ); //out put finalColor
|
|
}
|