dungeon_crawler
diff 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 |
line diff
1.1 --- a/prototype/sdr/mrt.v.glsl Tue Aug 21 04:29:49 2012 +0300 1.2 +++ b/prototype/sdr/mrt.v.glsl Tue Aug 21 04:57:33 2012 +0300 1.3 @@ -1,5 +1,11 @@ 1.4 +varying vec3 pos, norm; 1.5 + 1.6 void main() 1.7 { 1.8 gl_Position = ftransform(); 1.9 + 1.10 + pos = (gl_ModelViewMatrix * gl_Vertex).xyz; 1.11 + norm = gl_NormalMatrix * gl_Normal; 1.12 + 1.13 gl_TexCoord[0] = gl_MultiTexCoord0; 1.14 }