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;
|
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
|
|
|
}
|
2015-03-27 17:07:30 +08:00
|
|
|
);
|