dbf-halloween2015

annotate sdr/default.v.glsl @ 4:4316c0c879e9

fixed RUN script for macosx
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 06:18:18 +0200
parents
children
rev   line source
nuclear@0 1 uniform mat4 world_matrix;
nuclear@0 2
nuclear@0 3 varying vec3 lpos, wpos, vpos, norm, ldir;
nuclear@0 4
nuclear@0 5 void main()
nuclear@0 6 {
nuclear@0 7 lpos = gl_Vertex.xyz;
nuclear@0 8 gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
nuclear@0 9
nuclear@0 10 vpos = (gl_ModelViewMatrix * gl_Vertex).xyz;
nuclear@0 11 wpos = (world_matrix * gl_Vertex).xyz;
nuclear@0 12 norm = gl_NormalMatrix * gl_Normal;
nuclear@0 13 gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
nuclear@0 14
nuclear@0 15 ldir = gl_LightSource[0].position.xyz - vpos;
nuclear@0 16 }