glviewvol

annotate sdr/fast.v.glsl @ 8:fb6d93471352

main thing done
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 30 Dec 2014 20:03:32 +0200
parents 04330eb80b36
children 89efc666105c
rev   line source
nuclear@4 1 void main()
nuclear@4 2 {
nuclear@8 3 mat4 mvmat = gl_ModelViewMatrix;
nuclear@8 4 mvmat[0][0] = mvmat[1][1] = mvmat[2][2] = 1.0;
nuclear@8 5 mvmat[0][1] = mvmat[0][2] = mvmat[1][2] = mvmat[1][0] = mvmat[2][0] = mvmat[2][1] = 0.0;
nuclear@8 6
nuclear@8 7 vec4 vertex = gl_Vertex;
nuclear@8 8 gl_Position = gl_ProjectionMatrix * mvmat * vertex;
nuclear@8 9 gl_TexCoord[0].xyz = gl_NormalMatrix * (vertex.xyz * vec3(1.0, 1.0, -1.0) * 1.732051) * 0.5 + 0.5;
nuclear@4 10 }