2016-11-04 09:36:26 +08:00
|
|
|
const char* cc3D_Skybox_vert = R"(
|
2015-03-26 11:59:26 +08:00
|
|
|
|
2015-06-25 15:01:39 +08:00
|
|
|
uniform mat4 u_cameraRot;
|
2015-04-14 01:39:23 +08:00
|
|
|
attribute vec3 a_position;
|
2015-01-29 09:28:14 +08:00
|
|
|
varying vec3 v_reflect;
|
|
|
|
|
|
|
|
void main(void)
|
|
|
|
{
|
2015-06-25 15:01:39 +08:00
|
|
|
vec4 reflect = u_cameraRot * vec4(a_position, 1.0);
|
|
|
|
v_reflect = reflect.xyz;
|
|
|
|
gl_Position = vec4(a_position.xy, 1.0 , 1.0);
|
2015-01-29 09:28:14 +08:00
|
|
|
}
|
2016-11-04 09:36:26 +08:00
|
|
|
)";
|