#version 330 compatibility

out vec2 texCoord;
out vec4 foliageColor;
out vec2 lightMapCoords;
out vec3 viewSpacePosition;


out vec3 geoNormal;

void main() {

	geoNormal = gl_NormalMatrix * gl_Normal;

	gl_Position = ftransform();
	texCoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
	foliageColor = gl_Color;
	lightMapCoords = (gl_TextureMatrix[1] * gl_MultiTexCoord1).xy;


	viewSpacePosition = (gl_ModelViewMatrix * gl_Vertex).xyz; 


}