module.exports = "// ANGLE_NORMALIZER = 1 / (2*PI)\n# define IMPOSTOR_UV_ANGLE_NORMALIZER 0.15915494309189535\nvec2 impostor_uv(vec3 center, vec3 camera_pos, vec2 imp_uv, float tiles_count, float offset){\n	imp_uv.x /= tiles_count;\n\n	camera_pos.y = center.y;\n	vec3 delta = normalize(center - camera_pos);\n	vec3 angle_start = vec3(-1.0,0.0,0.0);\n	float angle = vector_angle(delta, angle_start) + offset;\n	angle *= IMPOSTOR_UV_ANGLE_NORMALIZER;\n	angle *= tiles_count;\n	angle = floor(angle);\n	angle /= tiles_count;\n	imp_uv.x -= angle;\n\n	return imp_uv;\n}\n";
