linsyking/elm-regl/9.1.0

NOTE: the latest version is 10.0.0

Renamed to elm-messenger/elm-regl. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/elm-regl still install under that name. 5 versions of 15 come from the new location (see their notes).

REGL.Effects

Effects

blur : Float -> List Effect

Blurs a renderable in 2 passes.

blurh : Float -> Effect

Blurs a renderable horizontally.

blurv : Float -> Effect

Blurs a renderable vertically.

gblur : Float -> List Effect

Blurs a renderable using Gaussian blur.

Algorithm from https://github.com/Experience-Monks/glsl-fast-gaussian-blur.

This is a 9-tap Gaussian blur that applies 8 passes of Gaussian blur with decreasing radius, which is a good compromise between performance and quality.

This has similar effect with applying multiple blur effects with decreasing radius, but it is more efficient.

gblurh : Float -> Effect

A single horizontal pass that blurs a renderable using Gaussian blur.

gblurv : Float -> Effect

A single vertical pass that blurs a renderable using Gaussian blur.

alphamult : Float -> Effect

Multiply the alpha of a renderable.

colormult : Float -> Float -> Float -> Float -> Effect

Multiply the RGBA of a renderable.

crt : Float -> Effect

Simple CRT effect. Must be applied at the outermost layer.

pixilation : Float -> Effect

Apply pixilation effect to a renderable.

fxaa : Effect

Apply FXAA to a renderable.