Advertisement
Guest User

vertex.glsl

a guest
Jul 27th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. uniform mat4 uProjMatrix;
  2. uniform mat4 uViewMatrix;
  3. uniform mat4 uModelMatrix;
  4.  
  5. attribute vec3 aPos;
  6. attribute vec4 aColor;
  7. attribute vec2 aTexCoord;
  8.  
  9. varying vec4 vColor;
  10. varying vec2 vTexCoord;
  11.  
  12. void main() {
  13. gl_Position = uProjMatrix * uViewMatrix * ( uModelMatrix * vec4( aPos, 1.0 ) );
  14. vColor = aColor;
  15. vTexCoord = aTexCoord;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement