This reverts commit ebd4a6e0dd.
Trailing '}' is added in C, also we add some extra code as needed.
14 lines
231 B
GLSL
14 lines
231 B
GLSL
|
|
varying vec3 varposition;
|
|
varying vec3 varnormal;
|
|
|
|
void main()
|
|
{
|
|
/* position does not need to be transformed, we already have it */
|
|
gl_Position = gl_Vertex;
|
|
|
|
varposition = gl_Vertex.xyz;
|
|
|
|
varnormal = normalize(-varposition);
|
|
|