glviewvol

annotate sdr/fast.v.glsl @ 14:0d2447b9c512

did the histogram... doesn't seem to work right
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 01 Jan 2015 06:36:45 +0200
parents fb6d93471352
children
rev   line source
nuclear@10 1 uniform float zscale;
nuclear@10 2
nuclear@4 3 void main()
nuclear@4 4 {
nuclear@8 5 mat4 mvmat = gl_ModelViewMatrix;
nuclear@8 6 mvmat[0][0] = mvmat[1][1] = mvmat[2][2] = 1.0;
nuclear@8 7 mvmat[0][1] = mvmat[0][2] = mvmat[1][2] = mvmat[1][0] = mvmat[2][0] = mvmat[2][1] = 0.0;
nuclear@8 8
nuclear@8 9 vec4 vertex = gl_Vertex;
nuclear@8 10 gl_Position = gl_ProjectionMatrix * mvmat * vertex;
nuclear@10 11 gl_TexCoord[0].xyz = gl_NormalMatrix * (vertex.xyz * vec3(1.0, 1.0, -1.0) * 1.732051) * vec3(1.0, 1.0, zscale) * 0.5 + 0.5;
nuclear@4 12 }