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
414 B

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