Advertisement
Guest User

Untitled

a guest
Apr 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. attribute vec3 aVertexPosition;
  3. attribute vec4 aVertexColor;
  4.  
  5. uniform mat4 uMVMatrix;
  6. uniform mat4 uPMatrix;
  7.  
  8. varying vec4 vColor;
  9. varying vec3 vPosition;
  10.  
  11. uniform float f; // this is incremented every frame
  12. uniform float t; // this is time in milliseconds since epoch
  13.  
  14. void main(void) {
  15.    gl_Position = vec4(aVertexPosition, 1.0);
  16.    vColor = aVertexColor;
  17.    vPosition = gl_Position.xyz;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement