You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
412 B

  1. #ifdef GL_ES
  2. precision mediump float;
  3. #endif;
  4. attribute vec4 position;
  5. attribute vec4 texcoord;
  6. attribute vec2 normal;
  7. uniform mat4 ModelMatrix;
  8. uniform mat4 ViewMatrix;
  9. uniform mat4 ProjectionMatrix;
  10. uniform vec4 U_AmbientMaterial;
  11. uniform vec4 U_AmbientLight;
  12. varying vec4 V_Color;
  13. void main(){
  14. V_Color=U_AmbientMaterial*U_AmbientLight;
  15. gl_Position = ProjectionMatrix * ViewMatrix * ModelMatrix * position;
  16. }