[orx-poisson-fill] Use appropriate FilterNto1 interfaces
This commit is contained in:
@@ -9,7 +9,7 @@ internal class PassthroughNoAlpha : Filter(filterShaderFromUrl(resourceUrl("/sha
|
||||
/**
|
||||
* Laplacian filter
|
||||
*/
|
||||
class Laplacian : Filter(filterShaderFromUrl(resourceUrl("/shaders/gl3/poisson/laplacian.frag")))
|
||||
class Laplacian : Filter1to1(filterShaderFromUrl(resourceUrl("/shaders/gl3/poisson/laplacian.frag")))
|
||||
|
||||
class LaplacianIntegrator(width: Int, height: Int, downscaling: Int = 1, type: ColorType = ColorType.FLOAT32) {
|
||||
private val pyramid = ConvolutionPyramid(2 + width / downscaling, 2 + height / downscaling, type = type)
|
||||
|
||||
@@ -39,7 +39,7 @@ class PoissonFiller(val width: Int, val height: Int, type: ColorType = ColorType
|
||||
/**
|
||||
* Poison filling as a filter
|
||||
*/
|
||||
class PoissonFill : Filter() {
|
||||
class PoissonFill : Filter1to1() {
|
||||
private var filler: PoissonFiller? = null
|
||||
override fun apply(source: Array<ColorBuffer>, target: Array<ColorBuffer>) {
|
||||
if (target.isNotEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user