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