 varying vec4  v_bg_color;
 varying vec2  v_orientation;
 
-// Functions
-// ------------------------------------
-vec4 transform(vec3 position)
-{
-    return u_projection * u_view * u_model * vec4(position,1.0);
-}
-
-// Main
-// ------------------------------------
 void main (void)
 {
-    // This function is externally generated
-    fetch_uniforms();
-
     v_size        = size;
     v_linewidth   = linewidth;
     v_antialias   = antialias;

    v_bg_color    = bg_color;
    v_orientation = vec2(cos(orientation), sin(orientation));

    gl_Position = vec4(position, 1.0);
    gl_PointSize = SQRT_2 * size + 2.0 * (linewidth + 1.5*antialias);
}

// Copyright (c) 2014, Nicolas P. Rougier. All Rights Reserved.
// Distributed under the (new) BSD License.
// ----------------------------------------------------------------------------
#include "math/constants.glsl"


// Uniforms
// --------
uniform float antialias;

// Attributes
// ----------
attribute vec2  position;
attribute float size;
attribute vec4  fg_color;
attribute vec4  bg_color;
attribute float linewidth;
attribute float orientation;

// Varyings
// --------
varying float v_antialias;
varying float v_linewidth;
varying float v_size;
