Advertisement
Guest User

Untitled

a guest
May 14th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 300 es
  2.  
  3. precision highp float;
  4.  
  5. uniform sampler2D positionTex;
  6.  
  7. layout (location = 0) in vec3 aVertexVelocity;
  8.  
  9. out vec4 position;
  10.  
  11. out vec3 tfVertexVelocity;
  12.  
  13. void main()
  14. {
  15.     vec3 positionTexCoord = vec3(float(gl_VertexID) * (1.0 / 1024.0), 0.5, 0.0);
  16.    
  17.     position = texture(positionTex, positionTexCoord.xy);
  18.    
  19.     tfVertexVelocity = aVertexVelocity;
  20.  
  21.     gl_Position = vec4(positionTexCoord,1);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement