Răsfoiți Sursa

fix blendMode

ncannasse 8 ani în urmă
părinte
comite
4030364933
1 a modificat fișierele cu 3 adăugiri și 0 ștergeri
  1. 3 0
      h2d/Particles.hx

+ 3 - 0
h2d/Particles.hx

@@ -397,12 +397,15 @@ class Particles extends Drawable {
 	}
 
 	override function draw(ctx:RenderContext) {
+		var old = blendMode;
 		for( g in groups )
 			if( g.enable ) {
 				pshader.gradient = g.colorGradient;
 				pshader.hasGradient = g.colorGradient != null;
+				blendMode = g.batch.blendMode;
 				g.batch.drawWith(ctx, this);
 			}
+		blendMode = old;
 	}
 
 	public inline function getGroups() {