
// ------- UNIFORMS (SHADER CONSTS) -------
vec4		u_vAlphaDistanceFunction;

// ------- INTERPOLATORS (SHADER INPUTS) -------
struct PIn
{
    vec4	position: SV_POSITION;
	vec4	color: COLOR;
	float	distToCamera: TEXCOORD;
};

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

#include "functions.sh"

vec4 main(PIn input): SV_TARGET
{
	float a = GetGrowingValue(u_vAlphaDistanceFunction, input.distToCamera);
	return vec4(input.color.xyz, a);// + vec4(1,1,1,1);
}
