| 1 | uniform mat4 uMVPMatrix; |
| 2 | |
| 3 | attribute vec2 a_TexCoordinate; |
| 4 | attribute vec3 a_Normal; |
| 5 | attribute vec3 vPosition; |
| 6 | |
| 7 | varying vec3 vNormal; |
| 8 | varying vec2 vUV; |
| 9 | varying vec3 modelViewVertex; |
| 10 | varying float depth; |
| 11 | |
| 12 | void main() { |
| 13 | vUV = a_TexCoordinate; |
| 14 | vNormal = a_Normal; |
| 15 | gl_Position = uMVPMatrix * vec4(vPosition, 1.0); |
| 16 | modelViewVertex = vPosition; |
| 17 | depth = gl_Position.z; |
| 18 | } |