mirror of https://github.com/axmolengine/axmol.git
14 lines
334 B
GLSL
14 lines
334 B
GLSL
|
#ifdef GL_ES
|
|||
|
varying mediump vec2 v_texture_coord;
|
|||
|
#else
|
|||
|
varying vec2 v_texture_coord;
|
|||
|
#endif
|
|||
|
varying float fogFactor;
|
|||
|
|
|||
|
uniform vec4 fogColor;
|
|||
|
|
|||
|
void main (void)
|
|||
|
{
|
|||
|
vec4 finalColor = texture2D(CC_Texture0, v_texture_coord);
|
|||
|
gl_FragColor = mix(fogColor, finalColor, fogFactor ); //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>finalColor <20><><EFBFBD><EFBFBD><EFBFBD>ϲ<EFBFBD><CFB2><EFBFBD>
|
|||
|
}
|