Update ccShader_3D_Skybox.frag

This commit is contained in:
zhukaixy 2015-03-27 17:07:30 +08:00
parent 6cd1697240
commit a1bad14c1e
1 changed files with 3 additions and 2 deletions

View File

@ -5,9 +5,10 @@ varying mediump vec3 v_reflect;
varying vec3 v_reflect;
\n#endif\n
uniform samplerCube u_Env;
uniform vec4 u_color;
void main(void)
{
gl_FragColor = textureCube(u_Env, v_reflect);
gl_FragColor = textureCube(u_Env, v_reflect) * u_color;
}
);