|
@@ -13,6 +13,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects, capabilities ) {
|
|
|
_lightShadows = _lights.shadows,
|
|
|
|
|
|
_shadowMapSize = new THREE.Vector2(),
|
|
|
+ _maxShadowMapSize = new THREE.Vector2( capabilities.maxTextureSize, capabilities.maxTextureSize ),
|
|
|
|
|
|
_lookTarget = new THREE.Vector3(),
|
|
|
_lightPositionWorld = new THREE.Vector3(),
|
|
@@ -126,7 +127,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects, capabilities ) {
|
|
|
var shadowCamera = shadow.camera;
|
|
|
|
|
|
_shadowMapSize.copy( shadow.mapSize );
|
|
|
- _shadowMapSize.min( capabilities.maxTextureSize, capabilities.maxTextureSize );
|
|
|
+ _shadowMapSize.min( _maxShadowMapSize );
|
|
|
|
|
|
if ( light instanceof THREE.PointLight ) {
|
|
|
|