module.exports = "float disk_feather(float dist, float radius, float feather){\n	if(feather <= 0.0){\n		if(dist < radius){return 1.0;}else{return 0.0;}\n	} else {\n		float half_feather = feather * 0.5;\n		if(dist < (radius - half_feather)){\n			return 1.0;\n		} else {\n			if(dist > (radius + half_feather)){\n				return 0.0;\n			} else {\n				float feather_start = (radius - half_feather);\n				float blend = 1.0 - (dist - feather_start) / feather;\n				return blend;\n			}\n		}\n	}\n}\n\nfloat disk2d(vec2 pos, vec2 center, float radius, float feather){\n	float dist = distance(pos, center);\n	return disk_feather(dist, radius, feather);\n}\n\n// function could be called sphere, but is an overload of disk, and is the same\nfloat disk3d(vec3 pos, vec3 center, float radius, float feather){\n	float dist = distance(pos, center);\n	return disk_feather(dist, radius, feather);\n}";
