module.exports = "//\n//\n// CLAMP_LENGTH\n//\n//\nfloat maxLength(float val, float max_l){\n	return min(val, max_l);\n}\nvec2 maxLength(vec2 val, float max_l){\n	float vec_length = length(val);\n	if(vec_length == 0.0){\n		return val;\n	} else {\n		float new_length = min(vec_length, max_l);\n		return new_length * normalize(val);\n	}\n}\nvec3 maxLength(vec3 val, float max_l){\n	float vec_length = length(val);\n	if(vec_length == 0.0){\n		return val;\n	} else {\n		float new_length = min(vec_length, max_l);\n		return new_length * normalize(val);\n	}\n}\nvec4 maxLength(vec4 val, float max_l){\n	float vec_length = length(val);\n	if(vec_length == 0.0){\n		return val;\n	} else {\n		float new_length = min(vec_length, max_l);\n		return new_length * normalize(val);\n	}\n}\n";
