ソースを参照

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 ) {
 	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;
 		if( output == null ) output = src;