浏览代码

don't cancel blur if we have a fixedColor

ncannasse 9 年之前
父节点
当前提交
c02ecf2881
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/pass/Blur.hx

+ 1 - 1
h3d/pass/Blur.hx

@@ -80,7 +80,7 @@ class Blur extends ScreenFx<h3d.shader.Blur> {
 
 	public function apply( src : h3d.mat.Texture, ?tmp : h3d.mat.Texture, ?output : h3d.mat.Texture, ?isDepth = false ) {
 
-		if( quality <= 0 || passes <= 0 || sigma <= 0 ) return;
+		if( (quality <= 0 || passes <= 0 || sigma <= 0) && shader.fixedColor == null ) return;
 
 		if( output == null ) output = src;