1 #ifdef GL_ES 2 precision highp float; 3 #endif 4 5 attribute vec3 a_position; 6 7 uniform vec4 u_color; 8 uniform mat4 u_projTrans; 9 uniform mat4 u_lightProjTrans; 10 11 varying vec4 v_color; 12 varying vec4 v_lightSpacePosition; 13 14 15 void main(void) 16 { 17 v_color = u_color; 18 gl_Position = u_projTrans * vec4(a_position,1.0) ; 19 v_lightSpacePosition = u_lightProjTrans * vec4(a_position,1.0) ; 20 }