mirror of https://github.com/axmolengine/axmol.git
Merge pull request #271 from zhukaixy/patch-3
Bugfix: for glcontext recreated
This commit is contained in:
commit
cd2e35d65b
|
@ -1,8 +1,12 @@
|
||||||
|
#ifdef GL_ES
|
||||||
|
precision mediump float;
|
||||||
|
#endif
|
||||||
|
|
||||||
varying vec3 v_reflect;
|
varying vec3 v_reflect;
|
||||||
uniform samplerCube u_cubeTex;
|
uniform samplerCube u_cubeTex;
|
||||||
|
uniform vec4 u_color;
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
gl_FragColor = textureCube(u_cubeTex, v_reflect);
|
gl_FragColor = textureCube(u_cubeTex, v_reflect) * u_color;
|
||||||
}
|
}
|
Loading…
Reference in New Issue