ccShader_3D_Skybox.vert 274 B

12345678910111213
  1. const char* cc3D_Skybox_vert = R"(
  2. uniform mat4 u_cameraRot;
  3. attribute vec3 a_position;
  4. varying vec3 v_reflect;
  5. void main(void)
  6. {
  7. vec4 reflect = u_cameraRot * vec4(a_position, 1.0);
  8. v_reflect = reflect.xyz;
  9. gl_Position = vec4(a_position.xy, 1.0 , 1.0);
  10. }
  11. )";