[orx-fx] Make filters Filter1to1 or Filter2to1
This commit is contained in:
@@ -23,7 +23,7 @@ private class InnerBevelFilter : Filter(filterShaderFromCode(jf_inner_bevel, "in
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Description("Inner bevel")
|
@Description("Inner bevel")
|
||||||
class InnerBevel : Filter() {
|
class InnerBevel : Filter1to1() {
|
||||||
@DoubleParameter("threshold", 0.0, 1.0)
|
@DoubleParameter("threshold", 0.0, 1.0)
|
||||||
var threshold = 0.01
|
var threshold = 0.01
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ private class InpaintFilter : Filter(filterShaderFromCode(jf_inpaint, "inpaint")
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Description("Inpaint")
|
@Description("Inpaint")
|
||||||
class Inpaint : Filter() {
|
class Inpaint : Filter1to1() {
|
||||||
@DoubleParameter("width", 0.0, 1.0)
|
@DoubleParameter("width", 0.0, 1.0)
|
||||||
var width = 0.5
|
var width = 0.5
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ private class OuterGlowFilter : Filter(filterShaderFromCode(jf_outer_glow, "oute
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Description("Outer glow")
|
@Description("Outer glow")
|
||||||
class OuterGlow : Filter() {
|
class OuterGlow : Filter1to1() {
|
||||||
@DoubleParameter("width", 0.0, 50.0)
|
@DoubleParameter("width", 0.0, 50.0)
|
||||||
var width = 5.0
|
var width = 5.0
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ class PoissonBlender(val width: Int, val height: Int, type: ColorType = ColorTyp
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class PoissonBlend: Filter() {
|
class PoissonBlend: Filter2to1() {
|
||||||
private var blender: PoissonBlender? = null
|
private var blender: PoissonBlender? = null
|
||||||
|
|
||||||
val alphaToBitmap = AlphaToBitmap()
|
val alphaToBitmap = AlphaToBitmap()
|
||||||
|
|||||||
Reference in New Issue
Block a user