From a1bad14c1e3723071328cd70c182960ef057736f Mon Sep 17 00:00:00 2001 From: zhukaixy Date: Fri, 27 Mar 2015 17:07:30 +0800 Subject: [PATCH] Update ccShader_3D_Skybox.frag --- cocos/renderer/ccShader_3D_Skybox.frag | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cocos/renderer/ccShader_3D_Skybox.frag b/cocos/renderer/ccShader_3D_Skybox.frag index 1fe25805c5..ffeaa24fa0 100644 --- a/cocos/renderer/ccShader_3D_Skybox.frag +++ b/cocos/renderer/ccShader_3D_Skybox.frag @@ -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; } -); \ No newline at end of file +);