@@ -67,7 +67,6 @@ THREE.WebGLRenderer = function ( parameters ) {
6767 // shadow map
6868
6969 this . shadowMapEnabled = false ;
70- this . shadowMapAutoUpdate = true ;
7170 this . shadowMapType = THREE . PCFShadowMap ;
7271 this . shadowMapCullFace = THREE . CullFaceFront ;
7372 this . shadowMapDebug = false ;
@@ -560,26 +559,6 @@ THREE.WebGLRenderer = function ( parameters ) {
560559
561560 } ;
562561
563- // Rendering
564-
565- this . updateShadowMap = function ( scene , camera ) {
566-
567- _currentProgram = null ;
568- _oldBlending = - 1 ;
569- _oldDepthTest = - 1 ;
570- _oldDepthWrite = - 1 ;
571- _currentGeometryGroupHash = - 1 ;
572- _currentMaterialId = - 1 ;
573- _lightsNeedUpdate = true ;
574- _oldDoubleSided = - 1 ;
575- _oldFlipSided = - 1 ;
576-
577- shadowMapPlugin . update ( scene , camera ) ;
578-
579- } ;
580-
581- // Internal functions
582-
583562 // Buffer allocation
584563
585564 function createParticleBuffers ( geometry ) {
@@ -3486,12 +3465,6 @@ THREE.WebGLRenderer = function ( parameters ) {
34863465
34873466 if ( object . visible === false ) return ;
34883467
3489- if ( object instanceof THREE . Light ) {
3490-
3491- lights . push ( object ) ;
3492-
3493- }
3494-
34953468 if ( object instanceof THREE . Scene || object instanceof THREE . Group ) {
34963469
34973470 // skip
@@ -3500,7 +3473,11 @@ THREE.WebGLRenderer = function ( parameters ) {
35003473
35013474 initObject ( object , scene ) ;
35023475
3503- if ( object instanceof THREE . Sprite ) {
3476+ if ( object instanceof THREE . Light ) {
3477+
3478+ lights . push ( object ) ;
3479+
3480+ } else if ( object instanceof THREE . Sprite ) {
35043481
35053482 sprites . push ( object ) ;
35063483
@@ -6463,4 +6440,10 @@ THREE.WebGLRenderer = function ( parameters ) {
64636440
64646441 } ;
64656442
6443+ this . updateShadowMap = function ( ) {
6444+
6445+ console . warn ( 'THREE.WebGLRenderer: .updateShadowMap() has been removed.' ) ;
6446+
6447+ } ;
6448+
64666449} ;
0 commit comments