Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

Index

Constructors

Properties

defaultUniforms: { alphaThreshold: number; turnToColor: boolean; color: number[] } = ...

The default uniforms used by the filter

Type declaration

  • alphaThreshold: number
  • turnToColor: boolean
  • color: number[]
fragmentShader: string = ...

The fragment shader which renders this filter.