axmol/cocos/renderer/ccShader_3D_Skybox.frag

15 lines
283 B
GLSL

const char* cc3D_Skybox_frag = STRINGIFY(
\n#ifdef GL_ES\n
varying mediump vec3 v_reflect;
\n#else\n
varying vec3 v_reflect;
\n#endif\n
uniform samplerCube u_Env;
uniform vec4 u_color;
void main(void)
{
gl_FragColor = textureCube(u_Env, v_reflect) * u_color;
}
);