[orx-fx] Add super sampling to Contour filter

This commit is contained in:
Edwin
2022-04-15 12:58:19 +02:00
parent 2285cec1e4
commit 53fbc47636
2 changed files with 22 additions and 10 deletions

View File

@@ -7,6 +7,7 @@ import org.openrndr.extra.fx.mppFilterShader
import org.openrndr.extra.parameters.ColorParameter
import org.openrndr.extra.parameters.Description
import org.openrndr.extra.parameters.DoubleParameter
import org.openrndr.extra.parameters.IntParameter
@Description("Contour")
class Contour : Filter(mppFilterShader(fx_contour, "contour")) {
@@ -25,11 +26,15 @@ class Contour : Filter(mppFilterShader(fx_contour, "contour")) {
@ColorParameter("contour color")
var contourColor: ColorRGBa by parameters
@IntParameter("window", 0, 10)
var window: Int by parameters
init {
levels = 6.0
contourWidth = 0.4
contourColor = ColorRGBa.BLACK
backgroundOpacity = 1.0
contourOpacity = 1.0
window = 1
}
}