Advertisement
FullMetal67

textureMapping.vs.glsl

Mar 10th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. precision mediump float;
  2.  
  3. attribute vec3 vertPosition;
  4. attribute vec2 vertTexCoord;
  5. varying vec2 fragTexCoord;
  6.  
  7. uniform mat4 mWorld;
  8. uniform mat4 mView;
  9. uniform mat4 mProj;
  10.  
  11. void main()
  12. {
  13.   fragTexCoord = vertTexCoord;
  14.   gl_Position = mProj * mView * mWorld * vec4(vertPosition, 1.0);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement