All that found this post on the forum http://www.html5gamedevs.com/topic/7003-creating-mask-that-cut-lightsprite-to-pixel-map-terrain/
I tried to use masks somehow, but it turns out to only crop the image in a geometric shape. http://pixijs.imtqy.com/examples/#/demos/masking.js
Push at least an idea of ​​how this can be done.

