axmol/cocos/renderer/ccShader_3D_Skybox.vert

12 lines
239 B
GLSL
Raw Normal View History

2015-03-26 11:59:26 +08:00
const char* cc3D_Skybox_vert = STRINGIFY(
uniform float u_scalef;
attribute vec3 a_position;
2015-01-29 09:28:14 +08:00
varying vec3 v_reflect;
void main(void)
{
v_reflect = a_position;
gl_Position = CC_MVPMatrix * vec4(u_scalef * a_position, 1.0);
2015-01-29 09:28:14 +08:00
}
2015-03-26 11:59:26 +08:00
);