Hacker News new | past | comments | ask | show | jobs | submit login

Wow! That's an intense particle. I'm thumbing through the code now. Nice work so far!



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);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: