CesiumMilkTruck0.vert 491 B

1234567891011121314151617
  1. precision highp float;
  2. uniform mat4 u_modelViewMatrix;
  3. uniform mat4 u_projectionMatrix;
  4. uniform mat3 u_normalMatrix;
  5. attribute vec3 a_position;
  6. varying vec3 v_position;
  7. attribute vec3 a_normal;
  8. varying vec3 v_normal;
  9. attribute vec2 a_texcoord0;
  10. varying vec2 v_texcoord0;
  11. void main(void) {
  12. vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
  13. v_position = pos.xyz;
  14. gl_Position = u_projectionMatrix * pos;
  15. v_normal = u_normalMatrix * a_normal;
  16. v_texcoord0 = a_texcoord0;
  17. }