mirror of https://github.com/axmolengine/axmol.git
Update ccShader_3D_Skybox.frag
This commit is contained in:
parent
6cd1697240
commit
a1bad14c1e
|
@ -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