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.

13 lines
405 B

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