#version 330 core

in vec3 POSITION;
in vec3 NORMAL;   // cone_angle, cone_cutoff_angle, radius
in vec3 COLOR;    // rgb*intensity
in vec3 TEXCOORD; // spot direction

out vec3 gs_spot_dir;
out vec3 gs_spot_params; // cone_angle, cone_cutoff_angle, radius
out vec3 gs_spot_color;  // rgb*intensity

void main()
{
	gs_spot_dir = normalize(TEXCOORD);
	gs_spot_params = NORMAL;
	gs_spot_color = COLOR;
	gl_Position = vec4(POSITION, 1.0);
}
