dbf-udg

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/phong.v.glsl	Mon Feb 18 05:44:17 2013 +0200
     1.3 @@ -0,0 +1,10 @@
     1.4 +varying vec3 normal, vpos;
     1.5 +
     1.6 +void main()
     1.7 +{
     1.8 +	gl_Position = ftransform();
     1.9 +	vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
    1.10 +	normal = gl_NormalMatrix * gl_Normal;
    1.11 +
    1.12 +	gl_TexCoord[0] = gl_MultiTexCoord0;
    1.13 +}