dungeon_crawler

view prototype/sdr/fallback.v.glsl @ 41:acfe0c0110fc

- cleaned up the renderer - implemented fallback (non-deferred renderer)
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 30 Aug 2012 05:35:00 +0300
parents
children
line source
1 attribute vec3 attr_tangent;
3 varying vec3 pos, norm, tang;
5 void main()
6 {
7 gl_Position = ftransform();
8 pos = (gl_ModelViewMatrix * gl_Vertex).xyz;
9 norm = gl_NormalMatrix * gl_Normal;
10 tang = gl_NormalMatrix * attr_tangent;
12 gl_TexCoord[0] = gl_MultiTexCoord0;
13 }