2
varying vec3 varposition;
3
varying vec3 varnormal;
7
vec4 co = gl_ModelViewMatrix * gl_Vertex;
10
varnormal = normalize(gl_NormalMatrix * gl_Normal);
11
gl_Position = gl_ProjectionMatrix * co;
13
// Setting gl_ClipVertex is necessary to get glClipPlane working on NVIDIA graphic cards.
14
// gl_ClipVertex works only on NVIDIA graphic cards so we have to check with
15
// __GLSL_CG_DATA_TYPES if a NVIDIA graphic card is used (Cg support).
16
// gl_ClipVerte is supported up to GLSL 1.20.
17
#ifdef __GLSL_CG_DATA_TYPES
18
gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;