Compute the luma reduction according to the stage zoom level (worldTransform.d) The zoom level is converted to a range [0.xxx => max zoom out , 1 => max zoom in] With zoom out, the reduction tends to high value, the antialias is discrete to avoid blurring side effect. With zoom in, the reduction tends to low value, the antialias is important. FXAA checks local contrast to avoid processing non-edges (high contrast difference === edge): 0.6 and 0.02 are factors applied to the "contrast range", to apply or not a contrast blend. With small values, the contrast blend is applied more often than with high values.
The luma reduction
A factory method for creating the filter using its defined default values.
The constructed AbstractFilter instance.
Always target the resolution of the render texture or renderer
Always target the resolution of the render texture or renderer
Always target the MSAA level of the render texture or renderer
Always target the MSAA level of the render texture or renderer
A FXAA filter based on PIXI.FXAA and slightly improved. In brief: The FXAA filter is computing the luma of neighbour pixels and apply correction according to the difference. A high luma reduction is reducing correction while a low luma reduction is reinforcing it.
Optional vertex shader
Optional fragment shader
Optional uniforms
Additional options (token knockout, ...)