dungeon_crawler
annotate prototype/sdr/fallback.v.glsl @ 80:a373b36ffc17
better
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 27 Oct 2012 01:59:39 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@41 | 1 attribute vec3 attr_tangent; |
nuclear@41 | 2 |
nuclear@41 | 3 varying vec3 pos, norm, tang; |
nuclear@41 | 4 |
nuclear@41 | 5 void main() |
nuclear@41 | 6 { |
nuclear@41 | 7 gl_Position = ftransform(); |
nuclear@41 | 8 pos = (gl_ModelViewMatrix * gl_Vertex).xyz; |
nuclear@41 | 9 norm = gl_NormalMatrix * gl_Normal; |
nuclear@41 | 10 tang = gl_NormalMatrix * attr_tangent; |
nuclear@41 | 11 |
nuclear@41 | 12 gl_TexCoord[0] = gl_MultiTexCoord0; |
nuclear@41 | 13 } |