axmol/cocos/renderer/shaders/3D_skybox.frag

15 lines
265 B
GLSL
Raw Normal View History

const char* CC3D_skybox_frag = R"(
#ifdef GL_ES
2015-03-26 11:59:26 +08:00
varying mediump vec3 v_reflect;
#else
2015-01-29 09:28:14 +08:00
varying vec3 v_reflect;
#endif
2015-01-29 09:28:14 +08:00
uniform samplerCube u_Env;
2015-03-27 17:07:30 +08:00
uniform vec4 u_color;
2015-01-29 09:28:14 +08:00
void main(void)
{
2015-03-27 17:07:30 +08:00
gl_FragColor = textureCube(u_Env, v_reflect) * u_color;
2015-03-26 11:59:26 +08:00
}
)";