2016-11-02 14:13:34 +08:00
|
|
|
const char* cc3D_Skybox_frag = R"(
|
2016-10-26 16:03:08 +08:00
|
|
|
#ifdef GL_ES
|
2015-03-26 11:59:26 +08:00
|
|
|
varying mediump vec3 v_reflect;
|
2016-10-26 16:03:08 +08:00
|
|
|
#else
|
2015-01-29 09:28:14 +08:00
|
|
|
varying vec3 v_reflect;
|
2016-10-26 16:03:08 +08:00
|
|
|
#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
|
|
|
}
|
2016-11-02 14:13:34 +08:00
|
|
|
)";
|