@@ -25834,6 +25834,15 @@ class InstancedMesh extends Mesh {
2583425834 */
2583525835 this.instanceMatrix = new InstancedBufferAttribute( new Float32Array( count * 16 ), 16 );
2583625836
25837+ /**
25838+ * Represents the local transformation of all instances of the previous frame.
25839+ * Required for computing velocity. Maintained in {@link InstanceNode}.
25840+ *
25841+ * @type {?InstancedBufferAttribute}
25842+ * @default null
25843+ */
25844+ this.previousInstanceMatrix = null;
25845+
2583725846 /**
2583825847 * Represents the color of all instances. You have to set its
2583925848 * {@link BufferAttribute#needsUpdate} flag to true if you modify instanced data
@@ -25963,6 +25972,8 @@ class InstancedMesh extends Mesh {
2596325972
2596425973 this.instanceMatrix.copy( source.instanceMatrix );
2596525974
25975+ if ( source.previousInstanceMatrix !== null ) this.previousInstanceMatrix = source.previousInstanceMatrix.clone();
25976+
2596625977 if ( source.morphTexture !== null ) this.morphTexture = source.morphTexture.clone();
2596725978 if ( source.instanceColor !== null ) this.instanceColor = source.instanceColor.clone();
2596825979
@@ -59913,7 +59924,6 @@ const UniformsLib = {
5991359924 shadowMapSize: {}
5991459925 } },
5991559926
59916- directionalShadowMap: { value: [] },
5991759927 directionalShadowMatrix: { value: [] },
5991859928
5991959929 spotLights: { value: [], properties: {
@@ -59935,7 +59945,6 @@ const UniformsLib = {
5993559945 } },
5993659946
5993759947 spotLightMap: { value: [] },
59938- spotShadowMap: { value: [] },
5993959948 spotLightMatrix: { value: [] },
5994059949
5994159950 pointLights: { value: [], properties: {
@@ -59955,7 +59964,6 @@ const UniformsLib = {
5995559964 shadowCameraFar: {}
5995659965 } },
5995759966
59958- pointShadowMap: { value: [] },
5995959967 pointShadowMatrix: { value: [] },
5996059968
5996159969 hemisphereLights: { value: [], properties: {
@@ -68035,10 +68043,10 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
6803568043
6803668044 if ( lights.length === 0 ) return;
6803768045
68038- if ( lights .type === PCFSoftShadowMap ) {
68046+ if ( this .type === PCFSoftShadowMap ) {
6803968047
6804068048 warn( 'WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.' );
68041- lights .type = PCFShadowMap;
68049+ this .type = PCFShadowMap;
6804268050
6804368051 }
6804468052
@@ -76879,12 +76887,9 @@ class WebGLRenderer {
7687976887 uniforms.pointLightShadows.value = lights.state.pointShadow;
7688076888 uniforms.hemisphereLights.value = lights.state.hemi;
7688176889
76882- uniforms.directionalShadowMap.value = lights.state.directionalShadowMap;
7688376890 uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix;
76884- uniforms.spotShadowMap.value = lights.state.spotShadowMap;
7688576891 uniforms.spotLightMatrix.value = lights.state.spotLightMatrix;
7688676892 uniforms.spotLightMap.value = lights.state.spotLightMap;
76887- uniforms.pointShadowMap.value = lights.state.pointShadowMap;
7688876893 uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix;
7688976894 // TODO (abelnation): add area lights shadow info to uniforms
7689076895
0 commit comments