@@ -27795,7 +27795,7 @@ THREE.WebGLRenderer = function ( parameters ) {
27795
27795
if ( isCube ) {
27796
27796
27797
27797
var textureProperties = properties.get( renderTarget.texture );
27798
- _gl.framebufferTexture2D( _gl.FRAMEBUFFER, _gl.COLOR_ATTACHMENT0, _gl.TEXTURE_CUBE_MAP_POSITIVE_X + renderTarget.activeCubeFace, textureProperties.__webglTexture, 0 );
27798
+ _gl.framebufferTexture2D( _gl.FRAMEBUFFER, _gl.COLOR_ATTACHMENT0, _gl.TEXTURE_CUBE_MAP_POSITIVE_X + renderTarget.activeCubeFace, textureProperties.__webglTexture, renderTarget.activeMipMapLevel );
27799
27799
27800
27800
}
27801
27801
@@ -28075,8 +28075,6 @@ THREE.WebGLRenderTarget.prototype = {
28075
28075
this.depthBuffer = source.depthBuffer;
28076
28076
this.stencilBuffer = source.stencilBuffer;
28077
28077
28078
- this.shareDepthFrom = source.shareDepthFrom;
28079
-
28080
28078
return this;
28081
28079
28082
28080
},
@@ -28102,6 +28100,7 @@ THREE.We
10000
bGLRenderTargetCube = function ( width, height, options ) {
28102
28100
THREE.WebGLRenderTarget.call( this, width, height, options );
28103
28101
28104
28102
this.activeCubeFace = 0; // PX 0, NX 1, PY 2, NY 3, PZ 4, NZ 5
28103
+ this.activeMipMapLevel = 0;
28105
28104
28106
28105
};
28107
28106
@@ -30028,6 +30027,9 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
30028
30027
this.render = function ( scene, camera ) {
30029
30028
30030
30029
var faceCount, isPointLight;
30030
+ var shadows = _lights.shadows;
30031
+
30032
+ if ( shadows.length === 0 ) return;
30031
30033
30032
30034
if ( scope.enabled === false ) return;
30033
30035
if ( scope.autoUpdate === false && scope.needsUpdate === false ) return;
@@ -30043,8 +30045,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
30043
30045
30044
30046
// render depth map
30045
30047
30046
- var shadows = _lights.shadows;
30047
-
30048
30048
for ( var i = 0, il = shadows.length; i < il; i ++ ) {
30049
30049
30050
30050
var light = shadows[ i ];
@@ -31031,6 +31031,9 @@ THREE.WebGLState = function ( gl, extensions, paramThreeToGL ) {
31031
31031
31032
31032
compressedTextureFormats = null;
31033
31033
31034
+ currentTextureSlot = undefined;
31035
+ currentBoundTextures = {};
31036
+
31034
31037
currentBlending = null;
31035
31038
31036
31039
currentColorWrite = null;
0 commit comments