dbf-udg
annotate sdr/phong.v.glsl @ 7:603656331514
phong blobs
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 18 Feb 2013 05:44:17 +0200 |
parents | |
children | 1abbed71e9c9 |
rev | line source |
---|---|
nuclear@7 | 1 varying vec3 normal, vpos; |
nuclear@7 | 2 |
nuclear@7 | 3 void main() |
nuclear@7 | 4 { |
nuclear@7 | 5 gl_Position = ftransform(); |
nuclear@7 | 6 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz; |
nuclear@7 | 7 normal = gl_NormalMatrix * gl_Normal; |
nuclear@7 | 8 |
nuclear@7 | 9 gl_TexCoord[0] = gl_MultiTexCoord0; |
nuclear@7 | 10 } |