|
@@ -417,7 +417,7 @@ class ShadowNode extends ShadowBaseNode {
|
|
|
|
|
|
|
|
// VSM
|
|
// VSM
|
|
|
|
|
|
|
|
- if ( shadowMapType === VSMShadowMap && light.isPointLight !== true ) {
|
|
|
|
|
|
|
+ if ( shadowMapType === VSMShadowMap && shadow.isPointLightShadow !== true ) {
|
|
|
|
|
|
|
|
depthTexture.compareFunction = null; // VSM does not use textureSampleCompare()/texture2DCompare()
|
|
depthTexture.compareFunction = null; // VSM does not use textureSampleCompare()/texture2DCompare()
|
|
|
|
|
|
|
@@ -497,7 +497,7 @@ class ShadowNode extends ShadowBaseNode {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- const shadowDepthTexture = ( shadowMapType === VSMShadowMap && light.isPointLight !== true ) ? this.vsmShadowMapHorizontal.texture : depthTexture;
|
|
|
|
|
|
|
+ const shadowDepthTexture = ( shadowMapType === VSMShadowMap && shadow.isPointLightShadow !== true ) ? this.vsmShadowMapHorizontal.texture : depthTexture;
|
|
|
|
|
|
|
|
const shadowNode = this.setupShadowFilter( builder, { filterFn, shadowTexture: shadowMap.texture, depthTexture: shadowDepthTexture, shadowCoord, shadow, depthLayer: this.depthLayer } );
|
|
const shadowNode = this.setupShadowFilter( builder, { filterFn, shadowTexture: shadowMap.texture, depthTexture: shadowDepthTexture, shadowCoord, shadow, depthLayer: this.depthLayer } );
|
|
|
|
|
|
|
@@ -624,7 +624,7 @@ class ShadowNode extends ShadowBaseNode {
|
|
|
|
|
|
|
|
// vsm blur pass
|
|
// vsm blur pass
|
|
|
|
|
|
|
|
- if ( light.isPointLight !== true && shadowType === VSMShadowMap ) {
|
|
|
|
|
|
|
+ if ( shadowType === VSMShadowMap && shadow.isPointLightShadow !== true ) {
|
|
|
|
|
|
|
|
this.vsmPass( renderer );
|
|
this.vsmPass( renderer );
|
|
|
|
|
|