Explorar o código

don't cancel blur if we have a fixedColor

ncannasse %!s(int64=9) %!d(string=hai) anos
pai
achega
c02ecf2881
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;