17 uniform mat4 uMvpMatrix;
18 uniform mat3 uNormalMatrix;
19 uniform mat4 uModelMatrix;
20 uniform mat4 uModelView;
21 uniform mat4 uViewMatrix;
26 vec4 vPosition = vec4( aPosition * uSize , 1.0);
27 gl_Position = uMvpMatrix * vPosition;
30 vNormal = normalize(uNormalMatrix * aNormal);
32 vTangent = normalize(uNormalMatrix * aTangent);
34 vBitangent = cross(vNormal, vTangent);
36 vViewVec = (uModelView * vPosition).xyz;
38 uCubeMatrix = transpose(uModelView);