oculus1

view sdr/phong.v.glsl @ 27:9f783284a503

changed some FBO calls which I accidentally used the OpenGL 3.2 form instead of the more compatible one
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 26 Oct 2013 03:54:35 +0300
parents
children
line source
1 varying vec3 vpos, norm, ldir;
3 void main()
4 {
5 gl_Position = ftransform();
7 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
8 norm = gl_NormalMatrix * gl_Normal;
10 ldir = gl_LightSource[0].position.xyz - vpos;
11 }