git.haldean.org subd / master vert.glsl
master

Tree @master (Download .tar.gz)

vert.glsl @masterraw · history · blame

1
2
3
4
5
6
7
8
varying vec3 N;
varying vec3 v;

void main(void) {     
   v = vec3(gl_ModelViewMatrix * gl_Vertex);       
   N = normalize(gl_NormalMatrix * gl_Normal);
   gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;  
}