MultiPassPresetFilter

abstract class MultiPassPresetFilter(passStyles: List<ShadeStyle>) : Filter1to1, PresetFilter(source)

A filter of several passes, each a shade style, with preset slots that every pass reads: like a separable blur, of which both passes read the radius. Make the slots with slot, apply the passes with applyPass, and keep the images between passes in intermediates. The fragment transforms of the passes end with FX_CONTEXT_USE, so that the presets in the slots can read fxContextLibrary.

Constructors

Link copied to clipboard
constructor(passStyles: List<ShadeStyle>)

Properties

Link copied to clipboard
var depthBufferOut: DepthBuffer?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val presetSlots: List<PresetSlot<*>>

the preset slots of the filter, in the order they are shown

Functions

Link copied to clipboard
open fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>, clip: Rectangle?)
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?)
Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun destroy()
Link copied to clipboard

true when a preset in one of the slots of this filter can read the values of fxContextLibrary

Link copied to clipboard
open override fun setFxContext(time: Double, frame: Int, resolution: Vector2)

sets the values of fxContextLibrary for the next apply, see setFxContext

Link copied to clipboard
fun untrack()