Merge pull request #272 from zhukaixy/patch-4

Update ccShader_3D_Skybox.frag
This commit is contained in:
XiaoYang 2015-03-27 17:08:34 +08:00
commit 19c3772882
1 changed files with 3 additions and 2 deletions

View File

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