vec3 ball1 = ballify(vec3(x, y, z), 1.0);
nextPos = ballify(ball1 + nextPos, 17.0); nextPos.x += cos(nextPos.z - time * 30.0); nextPos.y += sin(nextPos.z - time * 30.0); nextPos += getDiff(nextPos, mouse * 17.0) * 50.0; gl_FragColor = vec4(nextPos, 1.0);