Advertisement
Guest User

mat_Material.vert

a guest
Feb 3rd, 2013
293
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None
  1.  
  2.  
  3. varying vec3 varposition;
  4. varying vec3 varnormal;
  5.  
  6. void main()
  7. {
  8. vec4 co = gl_ModelViewMatrix * gl_Vertex;
  9.  
  10. varposition = co.xyz;
  11. varnormal = normalize(gl_NormalMatrix * gl_Normal);
  12. gl_Position = gl_ProjectionMatrix * co;
  13.  
  14. }
Advertisement
RAW Paste Data Copied
Advertisement