CesiumMilkTruck2.vert 406 B

1234567891011121314
  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. void main(void) {
  10. vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
  11. v_position = pos.xyz;
  12. gl_Position = u_projectionMatrix * pos;
  13. v_normal = u_normalMatrix * a_normal;
  14. }