dungeon_crawler

annotate prototype/sdr/mrt.v.glsl @ 20:48cfd351a9be

mrt going on nicely
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 21 Aug 2012 04:57:33 +0300
parents 5c41e6fcb300
children d0e93b4d9ec9
rev   line source
nuclear@20 1 varying vec3 pos, norm;
nuclear@20 2
nuclear@18 3 void main()
nuclear@18 4 {
nuclear@18 5 gl_Position = ftransform();
nuclear@20 6
nuclear@20 7 pos = (gl_ModelViewMatrix * gl_Vertex).xyz;
nuclear@20 8 norm = gl_NormalMatrix * gl_Normal;
nuclear@20 9
nuclear@18 10 gl_TexCoord[0] = gl_MultiTexCoord0;
nuclear@18 11 }