Quellcode durchsuchen

Make smoothColor of glow configurable to enable soft shadows (#418)

Leo Bergman vor 7 Jahren
Ursprung
Commit
9ffebe5f09
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      h2d/filter/DropShadow.hx

+ 2 - 2
h2d/filter/DropShadow.hx

@@ -7,8 +7,8 @@ class DropShadow extends Glow {
 	public var angle : Float;
 	var alphaPass = new h3d.mat.Pass("");
 
-	public function new( distance : Float = 4., angle : Float = 0.785, color : Int = 0, alpha = 1., radius : Float = 1., gain : Float = 1, quality = 1. ) {
-		super(color, alpha, radius, gain, quality);
+	public function new( distance : Float = 4., angle : Float = 0.785, color : Int = 0, alpha = 1., radius : Float = 1., gain : Float = 1, quality = 1., smoothColor = false ) {
+		super(color, alpha, radius, gain, quality, smoothColor);
 		this.distance = distance;
 		this.angle = angle;
 		alphaPass.addShader(new h3d.shader.UVDelta());