You can distort an icosahedron with a noise.
And then displace vertices, using Raycaster
and dot-product of the point of intersection and a vertex.
Another option is to use .intersectSphere()
of raycaster’s .ray
: Edit fiddle - JSFiddle - Code Playground