mrdoob / three.js

JavaScript 3D Library.
https://threejs.org/
MIT License
100.49k stars 35.21k forks source link

Soft particles #11589

Open korner-brazers opened 7 years ago

korner-brazers commented 7 years ago

Hi guys, I was looking for soft particles for my project, but I did not find anything on that.

Having spent a little time and energy, I still managed to make soft particles and decided to suggest introducing it into the library as a plug-in or something like that.

All the code and how it works I wrote here. https://discourse.threejs.org/t/soft-particles-render/504/3?u=korner

It would be cool if you could do so

material.soft = true;
material.softDistance = 50;

But the problem as I understand that it will be necessary to constantly render the texture of the depth. It is possible to make a condition for rendering

renderer.softRender = true;

I think there is little change, you can add it to the library :)

mrdoob commented 6 years ago

This is very nice! Would you like to do a PR?

Este-Crowned commented 3 weeks ago

Well it's been 7+ years and this would still be very useful, there are no already implemented alternatives so far afaik.