ccShader_3D_Skybox.frag 265 B

1234567891011121314
  1. const char* cc3D_Skybox_frag = R"(
  2. #ifdef GL_ES
  3. varying mediump vec3 v_reflect;
  4. #else
  5. varying vec3 v_reflect;
  6. #endif
  7. uniform samplerCube u_Env;
  8. uniform vec4 u_color;
  9. void main(void)
  10. {
  11. gl_FragColor = textureCube(u_Env, v_reflect) * u_color;
  12. }
  13. )";