Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- varying vec3 varposition;
- varying vec3 varnormal;
- void main()
- {
- vec4 co = gl_ModelViewMatrix * gl_Vertex;
- varposition = co.xyz;
- varnormal = normalize(gl_NormalMatrix * gl_Normal);
- gl_Position = gl_ProjectionMatrix * co;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement