void DrawSmallTrees(vec4 Pos)
{
gl_Position = Projection * View * Model * Pos + vec4(-0.3f, -0.3f, 0.0f, 0.0f); // Bottom Left
Texture = vec2(0.0f, 1.0f);
EmitVertex();
gl_Position = Projection * View * Model * Pos + vec4(0.3f, -0.3f, 0.0f, 0.0f); // Bottom Right
Texture = vec2(1.0f, 1.0f);
EmitVertex();
gl_Position = Projection * View * Model * Pos + vec4(-0.3f, 0.7f, 0.0f, 0.0f); // Top Left
Texture = vec2(0.0f, 0.0f);
EmitVertex();
gl_Position = Projection * View * Model * Pos + vec4(0.3f, 0.7f, 0.0f, 0.0f); // Top Right
Texture = vec2(1.0f, 0.0f);
EmitVertex();
EndPrimitive();
}
void main()
{
DrawSmallTrees(gl_in[0].gl_Position);
}