Merge pull request #271 from zhukaixy/patch-3

Bugfix: for glcontext recreated
This commit is contained in:
XiaoYang 2015-03-27 17:07:58 +08:00
commit cd2e35d65b
1 changed files with 7 additions and 3 deletions

View File

@ -1,8 +1,12 @@
#ifdef GL_ES
precision mediump float;
#endif
varying vec3 v_reflect;
varying vec3 v_reflect;
uniform samplerCube u_cubeTex;
uniform vec4 u_color;
void main(void)
{
gl_FragColor = textureCube(u_cubeTex, v_reflect);
}
gl_FragColor = textureCube(u_cubeTex, v_reflect) * u_color;
}