Merging r46096 through r46110 from trunk into soc-2011-tomato
[blender-staging.git] / source / blender / gpu / intern / gpu_shader_vertex.glsl
1
2 varying vec3 varposition;
3 varying vec3 varnormal;
4
5 void main()
6 {
7         vec4 co = gl_ModelViewMatrix * gl_Vertex;
8
9         varposition = co.xyz;
10         varnormal = normalize(gl_NormalMatrix * gl_Normal);
11         gl_Position = gl_ProjectionMatrix * co;
12