mirror of https://github.com/axmolengine/axmol.git
Merge pull request #272 from zhukaixy/patch-4
Update ccShader_3D_Skybox.frag
This commit is contained in:
commit
19c3772882
|
@ -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;
|
||||||
}
|
}
|
||||||
);
|
);
|
Loading…
Reference in New Issue