ApproximateGaussianBlur

Approximate separated Gaussian blur, in a horizontal and a vertical pass. The sigma can vary per pixel by sigmaScale, a preset that both passes read, for example from a texture:

blur.sigmaScale = TextureScalar(depthOfField)   // sharp where the red channel is 0

A sigma of 0 leaves the image as it is.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var depthBufferOut: DepthBuffer?
Link copied to clipboard

post blur gain, default value is 1.0

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val presetSlots: List<PresetSlot<*>>
Link copied to clipboard

blur sigma, default value is 1.0

Link copied to clipboard

Scale of the sigma, can vary per pixel, for example with TextureScalar(map). The default is a ConstantScalar of 1.0.

Link copied to clipboard

spread multiplier, default value is 1.0; the samples are a pixel apart whatever it is, as they were

Link copied to clipboard
var window: Int

blur sample window, default value is 5

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun apply(source: Array<ColorBuffer>, target: ColorBuffer, clip: Rectangle?)
fun apply(source: Array<ColorBuffer>, target: RenderTarget, clip: Rectangle?)
fun apply(source: ColorBuffer, target: Array<ColorBuffer>, clip: Rectangle?)
fun apply(source: ColorBuffer, target: ColorBuffer, clip: Rectangle?)
open override fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>, clip: Rectangle?)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard
open override fun setFxContext(time: Double, frame: Int, resolution: Vector2)
Link copied to clipboard
fun untrack()