Просмотр исходного кода

don't cancel blur if we have a fixedColor

ncannasse 9 лет назад
Родитель
Сommit
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;