Advertisement
Guest User

Untitled

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