|
@@ -17824,11 +17824,31 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
}
|
|
|
|
|
|
- attributes.update( object.instanceMatrix, gl.ARRAY_BUFFER );
|
|
|
+ if ( updateMap.get( object ) !== frame ) {
|
|
|
|
|
|
- if ( object.instanceColor !== null ) {
|
|
|
+ attributes.update( object.instanceMatrix, gl.ARRAY_BUFFER );
|
|
|
|
|
|
- attributes.update( object.instanceColor, gl.ARRAY_BUFFER );
|
|
|
+ if ( object.instanceColor !== null ) {
|
|
|
+
|
|
|
+ attributes.update( object.instanceColor, gl.ARRAY_BUFFER );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ updateMap.set( object, frame );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( object.isSkinnedMesh ) {
|
|
|
+
|
|
|
+ const skeleton = object.skeleton;
|
|
|
+
|
|
|
+ if ( updateMap.get( skeleton ) !== frame ) {
|
|
|
+
|
|
|
+ skeleton.update();
|
|
|
+
|
|
|
+ updateMap.set( skeleton, frame );
|
|
|
|
|
|
}
|
|
|
|
|
@@ -28153,7 +28173,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( _gl instanceof WebGLRenderingContext ) { // @deprecated, r153
|
|
|
+ if ( typeof WebGLRenderingContext !== 'undefined' && _gl instanceof WebGLRenderingContext ) { // @deprecated, r153
|
|
|
|
|
|
console.warn( 'THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163.' );
|
|
|
|
|
@@ -28953,6 +28973,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
//
|
|
|
|
|
|
+ this.info.render.frame ++;
|
|
|
+
|
|
|
if ( _clippingEnabled === true ) clipping.beginShadows();
|
|
|
|
|
|
const shadowsArray = currentRenderState.state.shadowsArray;
|
|
@@ -28965,7 +28987,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
if ( this.info.autoReset === true ) this.info.reset();
|
|
|
|
|
|
- this.info.render.frame ++;
|
|
|
|
|
|
//
|
|
|
|
|
@@ -29095,19 +29116,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
|
|
|
if ( ! object.frustumCulled || _frustum.intersectsObject( object ) ) {
|
|
|
|
|
|
- if ( object.isSkinnedMesh ) {
|
|
|
-
|
|
|
- // update skeleton only once in a frame
|
|
|
-
|
|
|
- if ( object.skeleton.frame !== info.render.frame ) {
|
|
|
-
|
|
|
- object.skeleton.update();
|
|
|
- object.skeleton.frame = info.render.frame;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
const geometry = objects.update( object );
|
|
|
const material = object.material;
|
|
|
|
|
@@ -31638,8 +31646,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
|
|
|
this.boneTexture = null;
|
|
|
this.boneTextureSize = 0;
|
|
|
|
|
|
- this.frame = - 1;
|
|
|
-
|
|
|
this.init();
|
|
|
|
|
|
}
|