3 ms·
aww thanks a lot for your kudos!! :D You can try try replace similar code with these code... vec3 ball1 = ballify(vec3(x, y, z), 1.0); nextPos = ballify(bal
by wonglok831 8y ago
aww thanks a lot for your kudos!! :D You can try try replace similar code with these code...
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);