@@ -25156,7 +25156,7 @@ THREE.WebGLRenderer = function ( parameters ) {
25156
25156
25157
25157
// shadow map
25158
25158
25159
- var shadowMap = new THREE.WebGLShadowMap( this, _lights, objects );
25159
+ var shadowMap = new THREE.WebGLShadowMap( this, _lights, objects, capabilities );
25160
25160
25161
25161
this.shadowMap = shadowMap;
25162
25162
@@ -29644,7 +29644,7 @@ THREE.WebGLShader = ( function () {
29644
29644
* @author mrdoob / http://mrdoob.com/
29645
29645
*/
29646
29646
29647
- THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
29647
+ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects, capabilities ) {
29648
29648
29649
29649
var _gl = _renderer.context,
29650
29650
_state = _renderer.state,
@@ -29767,6 +29767,7 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
29767
29767
var shadowCamera = shadow.camera;
29768
29768
29769
29769
_shadowMapSize.copy( shadow.mapSize );
29770
+ _shadowMapSize.min( capabilities.maxTextureSize, capabilities.maxTextureSize );
29770
29771
29771
29772
if ( light instanceof THREE.PointLight ) {
29772
29773
@@ -36127,9 +36128,17 @@ THREE.EllipseCurve.prototype.getPoint = function( t ) {
36127
36128
36128
36129
}
36129
36130
36130
- if ( this.aClockwise === true && deltaAngle != twoPi && ! samePoints ) {
36131
+ if ( this.aClockwise === true && ! samePoints ) {
36131
36132
36132
- deltaAngle = deltaAngle - twoPi;
36133
+ if ( deltaAngle === twoPi ) {
36134
+
36135
+ deltaAngle = - twoPi;
36136
+
36137
+ } else {
36138
+
36139
+ deltaAngle = deltaAngle - twoPi;
36140
+
36141
+ }
36133
36142
36134
36143
}
36135
36144
0 commit comments