()
| 61 | } |
| 62 | |
| 63 | private _updateShadowMapSize(): void { |
| 64 | if (!this._shadowMapDirty) { |
| 65 | return; |
| 66 | } |
| 67 | this._shadowMapDirty = false; |
| 68 | |
| 69 | this._light.shadow.mapSize.set( |
| 70 | this._shadowMapSize, |
| 71 | this._shadowMapSize |
| 72 | ); |
| 73 | |
| 74 | // Force the recreation of the shadow map texture: |
| 75 | this._light.shadow.map?.dispose(); |
| 76 | this._light.shadow.map = null; |
| 77 | this._light.shadow.needsUpdate = true; |
| 78 | } |
| 79 | |
| 80 | isEnabled(target: EffectsTarget): boolean { |
| 81 | return this._isEnabled; |
no test coverage detected