axmol/cocos/renderer/ccShader_3D_Skybox.frag

13 lines
250 B
GLSL
Raw Normal View History

2015-03-26 11:59:26 +08:00
const char* cc3D_Skybox_frag = STRINGIFY(
\n#ifdef GL_ES\n
varying mediump vec3 v_reflect;
\n#else\n
2015-01-29 09:28:14 +08:00
varying vec3 v_reflect;
2015-03-26 11:59:26 +08:00
\n#endif\n
2015-01-29 09:28:14 +08:00
uniform samplerCube u_Env;
void main(void)
{
gl_FragColor = textureCube(u_Env, v_reflect);
2015-03-26 11:59:26 +08:00
}
);