dungeon_crawler

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/prototype/sdr/fallback.v.glsl	Thu Aug 30 05:35:00 2012 +0300
     1.3 @@ -0,0 +1,13 @@
     1.4 +attribute vec3 attr_tangent;
     1.5 +
     1.6 +varying vec3 pos, norm, tang;
     1.7 +
     1.8 +void main()
     1.9 +{
    1.10 +	gl_Position = ftransform();
    1.11 +	pos = (gl_ModelViewMatrix * gl_Vertex).xyz;
    1.12 +	norm = gl_NormalMatrix * gl_Normal;
    1.13 +	tang = gl_NormalMatrix * attr_tangent;
    1.14 +
    1.15 +	gl_TexCoord[0] = gl_MultiTexCoord0;
    1.16 +}