|
@@ -3,7 +3,7 @@
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*/
|
|
|
|
|
|
-THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
|
|
|
+THREE.WebGLShadowMap = function ( _renderer, _lights, _objects, capabilities ) {
|
|
|
|
|
|
var _gl = _renderer.context,
|
|
|
_state = _renderer.state,
|
|
@@ -126,6 +126,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
|
|
|
var shadowCamera = shadow.camera;
|
|
|
|
|
|
_shadowMapSize.copy( shadow.mapSize );
|
|
|
+ _shadowMapSize.min( capabilities.maxTextureSize, capabilities.maxTextureSize );
|
|
|
|
|
|
if ( light instanceof THREE.PointLight ) {
|
|
|
|