2
0
Эх сурвалжийг харах

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

Pavel Alexandrov 5 сар өмнө
parent
commit
f7d5acf4d7
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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;
 
 	override function sync( ctx : RenderContext, s : Object ) {
-		boundsExtend = radius * 2;
+		boundsExtend = Math.ceil(radius) * 2;
 	}
 
 	override function draw( ctx : RenderContext, t : h2d.Tile ) {