Kaynağa Gözat

fix: Blur-based filters under-extend on small radius (#1283)

Pavel Alexandrov 4 ay önce
ebeveyn
işleme
f7d5acf4d7
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      h2d/filter/Blur.hx

+ 1 - 1
h2d/filter/Blur.hx

@@ -49,7 +49,7 @@ class Blur extends Filter {
 	inline function set_linear(v) return pass.linear = v;
 	inline function set_linear(v) return pass.linear = v;
 
 
 	override function sync( ctx : RenderContext, s : Object ) {
 	override function sync( ctx : RenderContext, s : Object ) {
-		boundsExtend = radius * 2;
+		boundsExtend = Math.ceil(radius) * 2;
 	}
 	}
 
 
 	override function draw( ctx : RenderContext, t : h2d.Tile ) {
 	override function draw( ctx : RenderContext, t : h2d.Tile ) {