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.

16 lines
454 B

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