|
@@ -107,6 +107,7 @@ class SpotShadowMap extends Shadows {
|
|
}
|
|
}
|
|
|
|
|
|
passes = filterPasses(passes);
|
|
passes = filterPasses(passes);
|
|
|
|
+ updateCamera();
|
|
|
|
|
|
var texture = ctx.textures.allocTarget("shadowMap", size, size, false, format);
|
|
var texture = ctx.textures.allocTarget("shadowMap", size, size, false, format);
|
|
if( customDepth && (depth == null || depth.width != size || depth.height != size || depth.isDisposed()) ) {
|
|
if( customDepth && (depth == null || depth.width != size || depth.height != size || depth.isDisposed()) ) {
|
|
@@ -115,10 +116,6 @@ class SpotShadowMap extends Shadows {
|
|
}
|
|
}
|
|
texture.depthBuffer = depth;
|
|
texture.depthBuffer = depth;
|
|
|
|
|
|
- if( mode != Mixed || ctx.computingStatic ) {
|
|
|
|
- updateCamera();
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
ctx.engine.pushTarget(texture);
|
|
ctx.engine.pushTarget(texture);
|
|
ctx.engine.clear(0xFFFFFF, 1);
|
|
ctx.engine.clear(0xFFFFFF, 1);
|
|
passes = super.draw(passes);
|
|
passes = super.draw(passes);
|