RoofMaskFilter

RoofMaskFilter

This filter turns pixels with an alpha channel < alphaThreshold in transparent pixels Then, optionally, it can turn the result in the chosen color (default: pure white). The alpha [threshold,1] is re-mapped to [0,1] with an hermite interpolation slope to prevent pixelation.

Constructor

new RoofMaskFilter()

Extends

  • PIXI.Filter