
// ------- UNIFORMS (SHADER CONSTS) -------
//uniform vec4		hu_vCameraNearFar; // Vec4(near, far, far - near, far + near)

uniform vec4		u_vAlphaDistanceFunction;

// ------- INTERPOLATORS (SHADER INPUTS) -------
//varying vec2		v_vTexCoord;
varying vec4		v_vColor;
varying float		v_fDistToCamera;

// ------- FUNCTIONS -------

void main(void)
{
	vec4 vColor = v_vColor;

	float a = GetGrowingValue(u_vAlphaDistanceFunction, v_fDistToCamera);
	gl_FragColor = vec4(vColor.xyz, a);
}
