dbf-udg

view 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 source
1 varying vec3 normal, vpos;
3 void main()
4 {
5 gl_Position = ftransform();
6 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
7 normal = gl_NormalMatrix * gl_Normal;
9 gl_TexCoord[0] = gl_MultiTexCoord0;
10 }