axmol/cocos/renderer/ccShader_3D_Skybox.frag

15 lines
271 B
GLSL

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