nuclear@4: void main() nuclear@4: { nuclear@8: mat4 mvmat = gl_ModelViewMatrix; nuclear@8: mvmat[0][0] = mvmat[1][1] = mvmat[2][2] = 1.0; nuclear@8: mvmat[0][1] = mvmat[0][2] = mvmat[1][2] = mvmat[1][0] = mvmat[2][0] = mvmat[2][1] = 0.0; nuclear@8: nuclear@8: vec4 vertex = gl_Vertex; nuclear@8: gl_Position = gl_ProjectionMatrix * mvmat * vertex; nuclear@8: gl_TexCoord[0].xyz = gl_NormalMatrix * (vertex.xyz * vec3(1.0, 1.0, -1.0) * 1.732051) * 0.5 + 0.5; nuclear@4: }