
#version 150 compatibility 

uniform mat4 mat_view ;
uniform mat4 mat_proj ;
uniform mat4 mat_world ;


void main()
{
	// ohh, we know how the quad is build ;)
	gl_TexCoord[0].xy = sign(gl_Vertex.xy) * 0.5 + 0.5 ;

	vec4 vertex = gl_Vertex ;
	
	//
	// component *= base * scale 
	vertex.x *= 2.02 * 2.5 ;
	vertex.y *= 0.44 * 2.5 ;
	vertex.w = 1.0 ;
	
	vertex.x += 20.0 ;
	vertex.y -= 18.0 ;
	// mat_world is a view space trafo. It is the base transformation for the logo.
	gl_Position = mat_proj * mat_world * mat_view * vertex ;
}