Explorar o código

Disable mixed shadows for dirlight

ShiroSmith %!s(int64=6) %!d(string=hai) anos
pai
achega
a3fb431935
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      h3d/pass/DirShadowMap.hx

+ 2 - 2
h3d/pass/DirShadowMap.hx

@@ -176,11 +176,11 @@ class DirShadowMap extends Shadows {
 
 		if( !ctx.computingStatic )
 			switch( mode ) {
-			case None:
+			case None, Mixed:
 				return passes;
 			case Dynamic:
 				// nothing
-			case Static, Mixed:
+			case Static:
 				if( staticTexture == null || staticTexture.isDisposed() ){
 					staticTexture = h3d.mat.Texture.fromColor(0xFFFFFF);
 					staticTexture.name = "defaultDirShadowMap";