#include "/lib/config.glsl"

/* Uniforms */
/* Ins / Outs */

varying vec4 tint_color;

/* Utility functions */

#if AA_TYPE > 1
    #include "/src/taa_offset.glsl"
#endif

#include "/lib/mu_ftransform.glsl"
#include "/lib/downscale.glsl"

// MAIN FUNCTION ------------------

void main() {
    tint_color = gl_Color;
    gl_Position = mu_ftransform();
    resize_vertex(gl_Position);

    #if AA_TYPE > 1
        gl_Position.xy += taa_offset * gl_Position.w;
    #endif
}
