@babylonjs/core 8.4.1 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/Collisions/gpuPicker.js +26 -15
  2. package/Collisions/gpuPicker.js.map +1 -1
  3. package/Engines/abstractEngine.js +2 -2
  4. package/Engines/abstractEngine.js.map +1 -1
  5. package/Materials/Textures/Loaders/EXR/exrLoader.decoder.js +24 -3
  6. package/Materials/Textures/Loaders/EXR/exrLoader.decoder.js.map +1 -1
  7. package/Materials/Textures/texture.js +1 -1
  8. package/Materials/Textures/texture.js.map +1 -1
  9. package/Meshes/geometry.js +30 -28
  10. package/Meshes/geometry.js.map +1 -1
  11. package/Meshes/mesh.vertexData.js +2 -2
  12. package/Meshes/mesh.vertexData.js.map +1 -1
  13. package/Meshes/transformNode.d.ts +3 -1
  14. package/Meshes/transformNode.js +3 -1
  15. package/Meshes/transformNode.js.map +1 -1
  16. package/Particles/Queue/executionQueue.d.ts +18 -0
  17. package/Particles/Queue/executionQueue.js +28 -0
  18. package/Particles/Queue/executionQueue.js.map +1 -0
  19. package/Particles/attractor.d.ts +21 -0
  20. package/Particles/attractor.js +36 -0
  21. package/Particles/attractor.js.map +1 -0
  22. package/Particles/baseParticleSystem.d.ts +27 -13
  23. package/Particles/baseParticleSystem.js +34 -4
  24. package/Particles/baseParticleSystem.js.map +1 -1
  25. package/Particles/index.d.ts +1 -0
  26. package/Particles/index.js +1 -0
  27. package/Particles/index.js.map +1 -1
  28. package/Particles/particleSystem.d.ts +18 -0
  29. package/Particles/particleSystem.js +59 -0
  30. package/Particles/particleSystem.js.map +1 -1
  31. package/Particles/thinParticleSystem.d.ts +81 -12
  32. package/Particles/thinParticleSystem.function.d.ts +84 -0
  33. package/Particles/thinParticleSystem.function.js +340 -0
  34. package/Particles/thinParticleSystem.function.js.map +1 -0
  35. package/Particles/thinParticleSystem.js +380 -316
  36. package/Particles/thinParticleSystem.js.map +1 -1
  37. package/PostProcesses/RenderPipeline/Pipelines/lensRenderingPipeline.js +1 -0
  38. package/PostProcesses/RenderPipeline/Pipelines/lensRenderingPipeline.js.map +1 -1
  39. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +1 -0
  40. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
  41. package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js +1 -0
  42. package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.js.map +1 -1
  43. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js +1 -0
  44. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js.map +1 -1
  45. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +1 -0
  46. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
  47. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js +1 -0
  48. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js.map +1 -1
  49. package/Rendering/IBLShadows/iblShadowsAccumulationPass.d.ts +2 -0
  50. package/Rendering/IBLShadows/iblShadowsAccumulationPass.js +22 -12
  51. package/Rendering/IBLShadows/iblShadowsAccumulationPass.js.map +1 -1
  52. package/Rendering/IBLShadows/iblShadowsRenderPipeline.js +1 -0
  53. package/Rendering/IBLShadows/iblShadowsRenderPipeline.js.map +1 -1
  54. package/Rendering/IBLShadows/iblShadowsSpatialBlurPass.d.ts +2 -0
  55. package/Rendering/IBLShadows/iblShadowsSpatialBlurPass.js +22 -12
  56. package/Rendering/IBLShadows/iblShadowsSpatialBlurPass.js.map +1 -1
  57. package/Rendering/IBLShadows/iblShadowsVoxelTracingPass.d.ts +2 -0
  58. package/Rendering/IBLShadows/iblShadowsVoxelTracingPass.js +28 -14
  59. package/Rendering/IBLShadows/iblShadowsVoxelTracingPass.js.map +1 -1
  60. package/package.json +1 -1
@@ -903,74 +903,74 @@ export class Geometry {
903
903
  if (this.isVerticesDataPresent(VertexBuffer.PositionKind)) {
904
904
  serializationObject.positions = this._toNumberArray(this.getVerticesData(VertexBuffer.PositionKind));
905
905
  if (this.isVertexBufferUpdatable(VertexBuffer.PositionKind)) {
906
- serializationObject.positions._updatable = true;
906
+ serializationObject.positionsUpdatable = true;
907
907
  }
908
908
  }
909
909
  if (this.isVerticesDataPresent(VertexBuffer.NormalKind)) {
910
910
  serializationObject.normals = this._toNumberArray(this.getVerticesData(VertexBuffer.NormalKind));
911
911
  if (this.isVertexBufferUpdatable(VertexBuffer.NormalKind)) {
912
- serializationObject.normals._updatable = true;
912
+ serializationObject.normalsUpdatable = true;
913
913
  }
914
914
  }
915
915
  if (this.isVerticesDataPresent(VertexBuffer.TangentKind)) {
916
916
  serializationObject.tangents = this._toNumberArray(this.getVerticesData(VertexBuffer.TangentKind));
917
917
  if (this.isVertexBufferUpdatable(VertexBuffer.TangentKind)) {
918
- serializationObject.tangents._updatable = true;
918
+ serializationObject.tangentsUpdatable = true;
919
919
  }
920
920
  }
921
921
  if (this.isVerticesDataPresent(VertexBuffer.UVKind)) {
922
922
  serializationObject.uvs = this._toNumberArray(this.getVerticesData(VertexBuffer.UVKind));
923
923
  if (this.isVertexBufferUpdatable(VertexBuffer.UVKind)) {
924
- serializationObject.uvs._updatable = true;
924
+ serializationObject.uvsUpdatable = true;
925
925
  }
926
926
  }
927
927
  if (this.isVerticesDataPresent(VertexBuffer.UV2Kind)) {
928
928
  serializationObject.uvs2 = this._toNumberArray(this.getVerticesData(VertexBuffer.UV2Kind));
929
929
  if (this.isVertexBufferUpdatable(VertexBuffer.UV2Kind)) {
930
- serializationObject.uvs2._updatable = true;
930
+ serializationObject.uvs2Updatable = true;
931
931
  }
932
932
  }
933
933
  if (this.isVerticesDataPresent(VertexBuffer.UV3Kind)) {
934
934
  serializationObject.uvs3 = this._toNumberArray(this.getVerticesData(VertexBuffer.UV3Kind));
935
935
  if (this.isVertexBufferUpdatable(VertexBuffer.UV3Kind)) {
936
- serializationObject.uvs3._updatable = true;
936
+ serializationObject.uvs3Updatable = true;
937
937
  }
938
938
  }
939
939
  if (this.isVerticesDataPresent(VertexBuffer.UV4Kind)) {
940
940
  serializationObject.uvs4 = this._toNumberArray(this.getVerticesData(VertexBuffer.UV4Kind));
941
941
  if (this.isVertexBufferUpdatable(VertexBuffer.UV4Kind)) {
942
- serializationObject.uvs4._updatable = true;
942
+ serializationObject.uvs4Updatable = true;
943
943
  }
944
944
  }
945
945
  if (this.isVerticesDataPresent(VertexBuffer.UV5Kind)) {
946
946
  serializationObject.uvs5 = this._toNumberArray(this.getVerticesData(VertexBuffer.UV5Kind));
947
947
  if (this.isVertexBufferUpdatable(VertexBuffer.UV5Kind)) {
948
- serializationObject.uvs5._updatable = true;
948
+ serializationObject.uvs5Updatable = true;
949
949
  }
950
950
  }
951
951
  if (this.isVerticesDataPresent(VertexBuffer.UV6Kind)) {
952
952
  serializationObject.uvs6 = this._toNumberArray(this.getVerticesData(VertexBuffer.UV6Kind));
953
953
  if (this.isVertexBufferUpdatable(VertexBuffer.UV6Kind)) {
954
- serializationObject.uvs6._updatable = true;
954
+ serializationObject.uvs6Updatable = true;
955
955
  }
956
956
  }
957
957
  if (this.isVerticesDataPresent(VertexBuffer.ColorKind)) {
958
958
  serializationObject.colors = this._toNumberArray(this.getVerticesData(VertexBuffer.ColorKind));
959
959
  if (this.isVertexBufferUpdatable(VertexBuffer.ColorKind)) {
960
- serializationObject.colors._updatable = true;
960
+ serializationObject.colorsUpdatable = true;
961
961
  }
962
962
  }
963
963
  if (this.isVerticesDataPresent(VertexBuffer.MatricesIndicesKind)) {
964
964
  serializationObject.matricesIndices = this._toNumberArray(this.getVerticesData(VertexBuffer.MatricesIndicesKind));
965
- serializationObject.matricesIndices._isExpanded = true;
965
+ serializationObject.matricesIndicesExpanded = true;
966
966
  if (this.isVertexBufferUpdatable(VertexBuffer.MatricesIndicesKind)) {
967
- serializationObject.matricesIndices._updatable = true;
967
+ serializationObject.matricesIndicesUpdatable = true;
968
968
  }
969
969
  }
970
970
  if (this.isVerticesDataPresent(VertexBuffer.MatricesWeightsKind)) {
971
971
  serializationObject.matricesWeights = this._toNumberArray(this.getVerticesData(VertexBuffer.MatricesWeightsKind));
972
972
  if (this.isVertexBufferUpdatable(VertexBuffer.MatricesWeightsKind)) {
973
- serializationObject.matricesWeights._updatable = true;
973
+ serializationObject.matricesWeightsUpdatable = true;
974
974
  }
975
975
  }
976
976
  serializationObject.indices = this._toNumberArray(this.getIndices());
@@ -1140,34 +1140,34 @@ export class Geometry {
1140
1140
  }
1141
1141
  }
1142
1142
  else if (parsedGeometry.positions && parsedGeometry.normals && parsedGeometry.indices) {
1143
- mesh.setVerticesData(VertexBuffer.PositionKind, parsedGeometry.positions, parsedGeometry.positions._updatable);
1144
- mesh.setVerticesData(VertexBuffer.NormalKind, parsedGeometry.normals, parsedGeometry.normals._updatable);
1143
+ mesh.setVerticesData(VertexBuffer.PositionKind, parsedGeometry.positions, parsedGeometry.positions._updatable || parsedGeometry.positionsUpdatable);
1144
+ mesh.setVerticesData(VertexBuffer.NormalKind, parsedGeometry.normals, parsedGeometry.normals._updatable || parsedGeometry.normalsUpdatable);
1145
1145
  if (parsedGeometry.tangents) {
1146
- mesh.setVerticesData(VertexBuffer.TangentKind, parsedGeometry.tangents, parsedGeometry.tangents._updatable);
1146
+ mesh.setVerticesData(VertexBuffer.TangentKind, parsedGeometry.tangents, parsedGeometry.tangents._updatable || parsedGeometry.tangentsUpdatable);
1147
1147
  }
1148
1148
  if (parsedGeometry.uvs) {
1149
- mesh.setVerticesData(VertexBuffer.UVKind, parsedGeometry.uvs, parsedGeometry.uvs._updatable);
1149
+ mesh.setVerticesData(VertexBuffer.UVKind, parsedGeometry.uvs, parsedGeometry.uvs._updatable || parsedGeometry.uvsUpdatable);
1150
1150
  }
1151
1151
  if (parsedGeometry.uvs2) {
1152
- mesh.setVerticesData(VertexBuffer.UV2Kind, parsedGeometry.uvs2, parsedGeometry.uvs2._updatable);
1152
+ mesh.setVerticesData(VertexBuffer.UV2Kind, parsedGeometry.uvs2, parsedGeometry.uvs2._updatable || parsedGeometry.uvs2Updatable);
1153
1153
  }
1154
1154
  if (parsedGeometry.uvs3) {
1155
- mesh.setVerticesData(VertexBuffer.UV3Kind, parsedGeometry.uvs3, parsedGeometry.uvs3._updatable);
1155
+ mesh.setVerticesData(VertexBuffer.UV3Kind, parsedGeometry.uvs3, parsedGeometry.uvs3._updatable || parsedGeometry.uvs3Updatable);
1156
1156
  }
1157
1157
  if (parsedGeometry.uvs4) {
1158
- mesh.setVerticesData(VertexBuffer.UV4Kind, parsedGeometry.uvs4, parsedGeometry.uvs4._updatable);
1158
+ mesh.setVerticesData(VertexBuffer.UV4Kind, parsedGeometry.uvs4, parsedGeometry.uvs4._updatable || parsedGeometry.uvs4Updatable);
1159
1159
  }
1160
1160
  if (parsedGeometry.uvs5) {
1161
- mesh.setVerticesData(VertexBuffer.UV5Kind, parsedGeometry.uvs5, parsedGeometry.uvs5._updatable);
1161
+ mesh.setVerticesData(VertexBuffer.UV5Kind, parsedGeometry.uvs5, parsedGeometry.uvs5._updatable || parsedGeometry.uvs5Updatable);
1162
1162
  }
1163
1163
  if (parsedGeometry.uvs6) {
1164
- mesh.setVerticesData(VertexBuffer.UV6Kind, parsedGeometry.uvs6, parsedGeometry.uvs6._updatable);
1164
+ mesh.setVerticesData(VertexBuffer.UV6Kind, parsedGeometry.uvs6, parsedGeometry.uvs6._updatable || parsedGeometry.uvs6Updatable);
1165
1165
  }
1166
1166
  if (parsedGeometry.colors) {
1167
1167
  mesh.setVerticesData(VertexBuffer.ColorKind, Color4.CheckColors4(parsedGeometry.colors, parsedGeometry.positions.length / 3), parsedGeometry.colors._updatable);
1168
1168
  }
1169
1169
  if (parsedGeometry.matricesIndices) {
1170
- if (!parsedGeometry.matricesIndices._isExpanded) {
1170
+ if (!parsedGeometry.matricesIndices._isExpanded && !parsedGeometry.matricesIndicesExpanded) {
1171
1171
  const floatIndices = [];
1172
1172
  for (let i = 0; i < parsedGeometry.matricesIndices.length; i++) {
1173
1173
  const matricesIndex = parsedGeometry.matricesIndices[i];
@@ -1176,15 +1176,16 @@ export class Geometry {
1176
1176
  floatIndices.push((matricesIndex & 0x00ff0000) >> 16);
1177
1177
  floatIndices.push((matricesIndex >> 24) & 0xff); // & 0xFF to convert to v + 256 if v < 0
1178
1178
  }
1179
- mesh.setVerticesData(VertexBuffer.MatricesIndicesKind, floatIndices, parsedGeometry.matricesIndices._updatable);
1179
+ mesh.setVerticesData(VertexBuffer.MatricesIndicesKind, floatIndices, parsedGeometry.matricesIndices._updatable || parsedGeometry.matricesIndicesUpdatable);
1180
1180
  }
1181
1181
  else {
1182
1182
  delete parsedGeometry.matricesIndices._isExpanded;
1183
- mesh.setVerticesData(VertexBuffer.MatricesIndicesKind, parsedGeometry.matricesIndices, parsedGeometry.matricesIndices._updatable);
1183
+ delete parsedGeometry.matricesIndicesExpanded;
1184
+ mesh.setVerticesData(VertexBuffer.MatricesIndicesKind, parsedGeometry.matricesIndices, parsedGeometry.matricesIndices._updatable || parsedGeometry.matricesIndicesUpdatable);
1184
1185
  }
1185
1186
  }
1186
1187
  if (parsedGeometry.matricesIndicesExtra) {
1187
- if (!parsedGeometry.matricesIndicesExtra._isExpanded) {
1188
+ if (!(parsedGeometry.matricesIndicesExtraExpanded || parsedGeometry.matricesIndicesExtra._isExpanded)) {
1188
1189
  const floatIndices = [];
1189
1190
  for (let i = 0; i < parsedGeometry.matricesIndicesExtra.length; i++) {
1190
1191
  const matricesIndex = parsedGeometry.matricesIndicesExtra[i];
@@ -1193,11 +1194,12 @@ export class Geometry {
1193
1194
  floatIndices.push((matricesIndex & 0x00ff0000) >> 16);
1194
1195
  floatIndices.push((matricesIndex >> 24) & 0xff); // & 0xFF to convert to v + 256 if v < 0
1195
1196
  }
1196
- mesh.setVerticesData(VertexBuffer.MatricesIndicesExtraKind, floatIndices, parsedGeometry.matricesIndicesExtra._updatable);
1197
+ mesh.setVerticesData(VertexBuffer.MatricesIndicesExtraKind, floatIndices, parsedGeometry.matricesIndicesExtra._updatable || parsedGeometry.matricesIndicesExtraUpdatable);
1197
1198
  }
1198
1199
  else {
1199
1200
  delete parsedGeometry.matricesIndices._isExpanded;
1200
- mesh.setVerticesData(VertexBuffer.MatricesIndicesExtraKind, parsedGeometry.matricesIndicesExtra, parsedGeometry.matricesIndicesExtra._updatable);
1201
+ delete parsedGeometry.matricesIndicesExtraExpanded;
1202
+ mesh.setVerticesData(VertexBuffer.MatricesIndicesExtraKind, parsedGeometry.matricesIndicesExtra, parsedGeometry.matricesIndicesExtra._updatable || parsedGeometry.matricesIndicesExtraUpdatable);
1201
1203
  }
1202
1204
  }
1203
1205
  if (parsedGeometry.matricesWeights) {