Class: Blur

Blur

Blur is an Effect added to the Camera that simply applies a gaussian blur to the screen.


new Blur(radius, numSamples, radius)

Parameters:
Name Type Description
radius number

The radius of the blur.

numSamples

The amount of samples used to calculate the blur in each direction. Cannot be changed after creation.

radius

The radius of the blur.

Author:
  • derschmale <http://www.derschmale.com>

Extends

Members


entity

The target entity.

Inherited From:

onUpdate

If provided, this method will be called every frame, allowing updating the entity.

Inherited From:

Methods


_swapHDRFrontAndBack()

Child classes need to call this when rendering to and from full-resolution textures. This will effectively swap hdrSource and hdrTarget to allow ping-ponging.

Inherited From:

isSupported()

Returns whether this Effect is supported considering the current capabilities.

Inherited From: