2015-05-21 08:28:21 +00:00
|
|
|
// -*-C++-*-
|
|
|
|
|
2015-05-22 07:51:54 +00:00
|
|
|
#version 120
|
|
|
|
|
2015-05-21 08:28:21 +00:00
|
|
|
varying vec3 vertex;
|
|
|
|
varying vec3 viewDir;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
|
|
|
|
vec4 ep = gl_ModelViewMatrixInverse * vec4(0.0,0.0,0.0,1.0);
|
|
|
|
|
|
|
|
vertex = gl_Vertex.xyz;
|
|
|
|
viewDir = normalize(vertex - ep.xyz);
|
|
|
|
|
|
|
|
gl_Position = ftransform();
|
|
|
|
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
|
|
|
|
|
|
|
gl_FrontColor = vec4 (1.0,1.0,1.0,1.0);
|
|
|
|
gl_BackColor = gl_FrontColor;
|
|
|
|
}
|