Filter1to2
A filter class that applies a processing step using a shader and takes a single input color buffer. The processing result is written to two output color buffers.
This class extends the functionality of the base Filter class by supporting an input of one ColorBuffer and producing outputs to two ColorBuffer instances. It allows an optional rectangular clipping region to be defined for the output targets.
Parameters
A Shader instance to use for the filter. Defaults to null.
Functions
Applies a filter operation using the given source and target arrays of ColorBuffer
. Optionally, a clipping rectangle can be used to define the region for the filter operation.
Applies a filter operation using the given source array of ColorBuffer
and the target ColorBuffer
. Optionally, a clipping rectangle can be used to define the region for the filter operation.
Applies a filter operation using the given source and target using a shader program. Optionally, a clipping rectangle can be used to define the region for the filter operation. Custom shader parameters are applied where applicable.
Applies a filter operation using the given source ColorBuffer
and target array of ColorBuffer
. Optionally, a clipping rectangle can be used to define the region for the filter operation.