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.

19 lines
484 B

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