Skip to content

Commit 11dc4c6

Browse files
committed
Updated builds.
1 parent 54a2507 commit 11dc4c6

9 files changed

Lines changed: 264 additions & 128 deletions

build/three.cjs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

build/three.core.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25832,6 +25832,15 @@ class InstancedMesh extends Mesh {
2583225832
*/
2583325833
this.instanceMatrix = new InstancedBufferAttribute( new Float32Array( count * 16 ), 16 );
2583425834

25835+
/**
25836+
* Represents the local transformation of all instances of the previous frame.
25837+
* Required for computing velocity. Maintained in {@link InstanceNode}.
25838+
*
25839+
* @type {?InstancedBufferAttribute}
25840+
* @default null
25841+
*/
25842+
this.previousInstanceMatrix = null;
25843+
2583525844
/**
2583625845
* Represents the color of all instances. You have to set its
2583725846
* {@link BufferAttribute#needsUpdate} flag to true if you modify instanced data
@@ -25961,6 +25970,8 @@ class InstancedMesh extends Mesh {
2596125970

2596225971
this.instanceMatrix.copy( source.instanceMatrix );
2596325972

25973+
if ( source.previousInstanceMatrix !== null ) this.previousInstanceMatrix = source.previousInstanceMatrix.clone();
25974+
2596425975
if ( source.morphTexture !== null ) this.morphTexture = source.morphTexture.clone();
2596525976
if ( source.instanceColor !== null ) this.instanceColor = source.instanceColor.clone();
2596625977

build/three.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,6 @@ const UniformsLib = {
853853
shadowMapSize: {}
854854
} },
855855

856-
directionalShadowMap: { value: [] },
857856
directionalShadowMatrix: { value: [] },
858857

859858
spotLights: { value: [], properties: {
@@ -875,7 +874,6 @@ const UniformsLib = {
875874
} },
876875

877876
spotLightMap: { value: [] },
878-
spotShadowMap: { value: [] },
879877
spotLightMatrix: { value: [] },
880878

881879
pointLights: { value: [], properties: {
@@ -895,7 +893,6 @@ const UniformsLib = {
895893
shadowCameraFar: {}
896894
} },
897895

898-
pointShadowMap: { value: [] },
899896
pointShadowMatrix: { value: [] },
900897

901898
hemisphereLights: { value: [], properties: {
@@ -8975,10 +8972,10 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
89758972

89768973
if ( lights.length === 0 ) return;
89778974

8978-
if ( lights.type === PCFSoftShadowMap ) {
8975+
if ( this.type === PCFSoftShadowMap ) {
89798976

89808977
warn( 'WebGLShadowMap: PCFSoftShadowMap has been deprecated. Using PCFShadowMap instead.' );
8981-
lights.type = PCFShadowMap;
8978+
this.type = PCFShadowMap;
89828979

89838980
}
89848981

@@ -17819,12 +17816,9 @@ class WebGLRenderer {
1781917816
uniforms.pointLightShadows.value = lights.state.pointShadow;
1782017817
uniforms.hemisphereLights.value = lights.state.hemi;
1782117818

17822-
uniforms.directionalShadowMap.value = lights.state.directionalShadowMap;
1782317819
uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix;
17824-
uniforms.spotShadowMap.value = lights.state.spotShadowMap;
1782517820
uniforms.spotLightMatrix.value = lights.state.spotLightMatrix;
1782617821
uniforms.spotLightMap.value = lights.state.spotLightMap;
17827-
uniforms.pointShadowMap.value = lights.state.pointShadowMap;
1782817822
uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix;
1782917823
// TODO (abelnation): add area lights shadow info to uniforms
1783017824

build/three.module.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)