فهرست منبع

Disable mixed shadows for dirlight

ShiroSmith 6 سال پیش
والد
کامیت
a3fb431935
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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";