Add decal to scene in threejs

I am using the three-mesh-bvh sculpt.js script and I want to add a feature just like this one:
Threejs Decals example

Is it possible to do this and if it is a little help would be grateful.
I don’t want the cursor or anything from the webgl decals example just the shoot function implementation that can work with the sculpt.js brush when clicked.

Thanks You!