瀏覽代碼

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

Leo Bergman 7 年之前
父節點
當前提交
9ffebe5f09
共有 1 個文件被更改,包括 2 次插入2 次删除
  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());