From 01ead9145d08517a27988dd484c8047de6fc4b76 Mon Sep 17 00:00:00 2001 From: Abe Pazos Date: Fri, 15 May 2020 15:48:16 +0200 Subject: [PATCH] Try fix frame blur (initialize transparent) --- orx-fx/src/main/kotlin/blur/FrameBlur.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/orx-fx/src/main/kotlin/blur/FrameBlur.kt b/orx-fx/src/main/kotlin/blur/FrameBlur.kt index e577bcc5..b15a014d 100644 --- a/orx-fx/src/main/kotlin/blur/FrameBlur.kt +++ b/orx-fx/src/main/kotlin/blur/FrameBlur.kt @@ -1,5 +1,6 @@ package org.openrndr.extra.fx.blur +import org.openrndr.color.ColorRGBa import org.openrndr.draw.* import org.openrndr.extra.fx.filterFragmentUrl import org.openrndr.extra.parameters.Description @@ -29,6 +30,7 @@ class FrameBlur : Filter(filterShaderFromUrl(filterFragmentUrl("blur/frame-blur. if (intermediate == null) { intermediate = colorBuffer(target[0].width, target[0].height, type = ColorType.FLOAT16) + intermediate?.fill(ColorRGBa.TRANSPARENT) } super.apply(arrayOf(source[0], intermediate!!), arrayOf(intermediate!!))