@babylonjs/core 6.44.0 → 6.45.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 (133) hide show
  1. package/Buffers/buffer.d.ts +22 -22
  2. package/Buffers/buffer.js +16 -15
  3. package/Buffers/buffer.js.map +1 -1
  4. package/Cameras/camera.d.ts +5 -5
  5. package/Cameras/camera.js +19 -19
  6. package/Cameras/camera.js.map +1 -1
  7. package/Engines/ICanvas.d.ts +2 -1
  8. package/Engines/ICanvas.js.map +1 -1
  9. package/Engines/constants.d.ts +96 -0
  10. package/Engines/constants.js +96 -0
  11. package/Engines/constants.js.map +1 -1
  12. package/Engines/thinEngine.js +2 -2
  13. package/Engines/thinEngine.js.map +1 -1
  14. package/Gizmos/gizmo.d.ts +14 -0
  15. package/Gizmos/gizmo.js +16 -0
  16. package/Gizmos/gizmo.js.map +1 -1
  17. package/Gizmos/gizmoManager.d.ts +12 -0
  18. package/Gizmos/gizmoManager.js +26 -0
  19. package/Gizmos/gizmoManager.js.map +1 -1
  20. package/Gizmos/positionGizmo.d.ts +16 -2
  21. package/Gizmos/positionGizmo.js +12 -2
  22. package/Gizmos/positionGizmo.js.map +1 -1
  23. package/Gizmos/rotationGizmo.d.ts +8 -0
  24. package/Gizmos/rotationGizmo.js +9 -0
  25. package/Gizmos/rotationGizmo.js.map +1 -1
  26. package/Gizmos/scaleGizmo.d.ts +15 -1
  27. package/Gizmos/scaleGizmo.js +11 -1
  28. package/Gizmos/scaleGizmo.js.map +1 -1
  29. package/Layers/effectLayer.js +4 -4
  30. package/Layers/effectLayer.js.map +1 -1
  31. package/Lights/Shadows/shadowGenerator.js +5 -5
  32. package/Lights/Shadows/shadowGenerator.js.map +1 -1
  33. package/Materials/Background/backgroundMaterial.js +16 -16
  34. package/Materials/Background/backgroundMaterial.js.map +1 -1
  35. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +8 -8
  36. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  37. package/Materials/Node/Blocks/Dual/fogBlock.js +2 -2
  38. package/Materials/Node/Blocks/Dual/fogBlock.js.map +1 -1
  39. package/Materials/Node/Blocks/Dual/lightBlock.js +6 -6
  40. package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
  41. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +2 -2
  42. package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
  43. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +7 -7
  44. package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
  45. package/Materials/Node/Blocks/Vertex/bonesBlock.js +3 -3
  46. package/Materials/Node/Blocks/Vertex/bonesBlock.js.map +1 -1
  47. package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js +3 -3
  48. package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js.map +1 -1
  49. package/Materials/Node/nodeMaterial.js +3 -3
  50. package/Materials/Node/nodeMaterial.js.map +1 -1
  51. package/Materials/PBR/pbrAnisotropicConfiguration.js +3 -3
  52. package/Materials/PBR/pbrAnisotropicConfiguration.js.map +1 -1
  53. package/Materials/PBR/pbrBaseMaterial.js +41 -41
  54. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  55. package/Materials/PBR/pbrClearCoatConfiguration.js +10 -10
  56. package/Materials/PBR/pbrClearCoatConfiguration.js.map +1 -1
  57. package/Materials/PBR/pbrIridescenceConfiguration.js +6 -6
  58. package/Materials/PBR/pbrIridescenceConfiguration.js.map +1 -1
  59. package/Materials/PBR/pbrSheenConfiguration.js +6 -6
  60. package/Materials/PBR/pbrSheenConfiguration.js.map +1 -1
  61. package/Materials/PBR/pbrSubSurfaceConfiguration.js +7 -7
  62. package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
  63. package/Materials/Textures/Loaders/ktxTextureLoader.js +1 -1
  64. package/Materials/Textures/Loaders/ktxTextureLoader.js.map +1 -1
  65. package/Materials/Textures/dynamicTexture.js +1 -1
  66. package/Materials/Textures/dynamicTexture.js.map +1 -1
  67. package/Materials/Textures/texture.js +1 -1
  68. package/Materials/Textures/texture.js.map +1 -1
  69. package/Materials/index.d.ts +1 -0
  70. package/Materials/index.js +1 -0
  71. package/Materials/index.js.map +1 -1
  72. package/Materials/material.decalMapConfiguration.js +3 -3
  73. package/Materials/material.decalMapConfiguration.js.map +1 -1
  74. package/Materials/material.detailMapConfiguration.js +3 -3
  75. package/Materials/material.detailMapConfiguration.js.map +1 -1
  76. package/Materials/material.js +2 -2
  77. package/Materials/material.js.map +1 -1
  78. package/Materials/materialHelper.d.ts +1 -4
  79. package/Materials/materialHelper.functions.d.ts +275 -0
  80. package/Materials/materialHelper.functions.js +823 -0
  81. package/Materials/materialHelper.functions.js.map +1 -0
  82. package/Materials/materialHelper.js +64 -589
  83. package/Materials/materialHelper.js.map +1 -1
  84. package/Materials/materialPluginBase.d.ts +1 -1
  85. package/Materials/materialPluginBase.js +1 -1
  86. package/Materials/materialPluginBase.js.map +1 -1
  87. package/Materials/shaderMaterial.js +8 -8
  88. package/Materials/shaderMaterial.js.map +1 -1
  89. package/Materials/standardMaterial.js +33 -33
  90. package/Materials/standardMaterial.js.map +1 -1
  91. package/Meshes/Compression/dracoCompression.d.ts +23 -2
  92. package/Meshes/Compression/dracoCompression.js +76 -236
  93. package/Meshes/Compression/dracoCompression.js.map +1 -1
  94. package/Meshes/Compression/dracoCompressionWorker.d.ts +44 -0
  95. package/Meshes/Compression/dracoCompressionWorker.js +189 -0
  96. package/Meshes/Compression/dracoCompressionWorker.js.map +1 -0
  97. package/Meshes/trailMesh.js +1 -1
  98. package/Meshes/trailMesh.js.map +1 -1
  99. package/Misc/basis.d.ts +6 -1
  100. package/Misc/basis.js +11 -231
  101. package/Misc/basis.js.map +1 -1
  102. package/Misc/basisWorker.d.ts +13 -0
  103. package/Misc/basisWorker.js +249 -0
  104. package/Misc/basisWorker.js.map +1 -0
  105. package/Misc/khronosTextureContainer2.d.ts +25 -3
  106. package/Misc/khronosTextureContainer2.js +35 -106
  107. package/Misc/khronosTextureContainer2.js.map +1 -1
  108. package/Misc/khronosTextureContainer2Worker.d.ts +12 -0
  109. package/Misc/khronosTextureContainer2Worker.js +136 -0
  110. package/Misc/khronosTextureContainer2Worker.js.map +1 -0
  111. package/Navigation/Plugins/recastJSPlugin.d.ts +1 -1
  112. package/Navigation/Plugins/recastJSPlugin.js.map +1 -1
  113. package/Particles/gpuParticleSystem.js +3 -3
  114. package/Particles/gpuParticleSystem.js.map +1 -1
  115. package/Particles/particleSystem.js +7 -3
  116. package/Particles/particleSystem.js.map +1 -1
  117. package/Physics/v2/IPhysicsEnginePlugin.d.ts +8 -0
  118. package/Physics/v2/IPhysicsEnginePlugin.js +9 -0
  119. package/Physics/v2/IPhysicsEnginePlugin.js.map +1 -1
  120. package/Physics/v2/Plugins/havokPlugin.d.ts +7 -1
  121. package/Physics/v2/Plugins/havokPlugin.js +19 -1
  122. package/Physics/v2/Plugins/havokPlugin.js.map +1 -1
  123. package/PostProcesses/volumetricLightScatteringPostProcess.js +2 -2
  124. package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
  125. package/Rendering/depthRenderer.js +4 -4
  126. package/Rendering/depthRenderer.js.map +1 -1
  127. package/Rendering/geometryBufferRenderer.js +5 -5
  128. package/Rendering/geometryBufferRenderer.js.map +1 -1
  129. package/Rendering/outlineRenderer.js +4 -4
  130. package/Rendering/outlineRenderer.js.map +1 -1
  131. package/package.json +1 -1
  132. package/scene.d.ts +4 -4
  133. package/scene.js.map +1 -1
@@ -12,7 +12,6 @@ import { Material } from "../Materials/material.js";
12
12
  import { MaterialPluginEvent } from "./materialPluginEvent.js";
13
13
  import { MaterialDefines } from "../Materials/materialDefines.js";
14
14
  import { PushMaterial } from "./pushMaterial.js";
15
- import { MaterialHelper } from "./materialHelper.js";
16
15
  import { Texture } from "../Materials/Textures/texture.js";
17
16
  import { RegisterClass } from "../Misc/typeStore.js";
18
17
  import { MaterialFlags } from "./materialFlags.js";
@@ -22,6 +21,7 @@ import "../Shaders/default.vertex.js";
22
21
  import { EffectFallbacks } from "./effectFallbacks.js";
23
22
  import { DetailMapConfiguration } from "./material.detailMapConfiguration.js";
24
23
  import { addClipPlaneUniforms, bindClipPlane } from "./clipPlaneMaterialHelper.js";
24
+ import { BindBonesParameters, BindFogParameters, BindLights, BindLogDepth, BindMorphTargetParameters, BindTextureMatrix, HandleFallbacksForShadows, PrepareAttributesForBakedVertexAnimation, PrepareAttributesForBones, PrepareAttributesForInstances, PrepareAttributesForMorphTargets, PrepareDefinesForAttributes, PrepareDefinesForFrameBoundValues, PrepareDefinesForLights, PrepareDefinesForMergedUV, PrepareDefinesForMisc, PrepareDefinesForMultiview, PrepareDefinesForOIT, PrepareDefinesForPrePass, PrepareUniformsAndSamplersList, } from "./materialHelper.functions.js";
25
25
  const onCreatedEffectParameters = { effect: null, subMesh: null };
26
26
  /** @internal */
27
27
  export class StandardMaterialDefines extends MaterialDefines {
@@ -548,14 +548,14 @@ export class StandardMaterial extends PushMaterial {
548
548
  }
549
549
  const engine = scene.getEngine();
550
550
  // Lights
551
- defines._needNormals = MaterialHelper.PrepareDefinesForLights(scene, mesh, defines, true, this._maxSimultaneousLights, this._disableLighting);
551
+ defines._needNormals = PrepareDefinesForLights(scene, mesh, defines, true, this._maxSimultaneousLights, this._disableLighting);
552
552
  // Multiview
553
- MaterialHelper.PrepareDefinesForMultiview(scene, defines);
553
+ PrepareDefinesForMultiview(scene, defines);
554
554
  // PrePass
555
555
  const oit = this.needAlphaBlendingForMesh(mesh) && this.getScene().useOrderIndependentTransparency;
556
- MaterialHelper.PrepareDefinesForPrePass(scene, defines, this.canRenderToMRT && !oit);
556
+ PrepareDefinesForPrePass(scene, defines, this.canRenderToMRT && !oit);
557
557
  // Order independant transparency
558
- MaterialHelper.PrepareDefinesForOIT(scene, defines, oit);
558
+ PrepareDefinesForOIT(scene, defines, oit);
559
559
  // Textures
560
560
  if (defines._areTexturesDirty) {
561
561
  this._eventInfo.hasRenderTargetTextures = false;
@@ -578,7 +578,7 @@ export class StandardMaterial extends PushMaterial {
578
578
  return false;
579
579
  }
580
580
  else {
581
- MaterialHelper.PrepareDefinesForMergedUV(this._diffuseTexture, defines, "DIFFUSE");
581
+ PrepareDefinesForMergedUV(this._diffuseTexture, defines, "DIFFUSE");
582
582
  }
583
583
  }
584
584
  else {
@@ -589,7 +589,7 @@ export class StandardMaterial extends PushMaterial {
589
589
  return false;
590
590
  }
591
591
  else {
592
- MaterialHelper.PrepareDefinesForMergedUV(this._ambientTexture, defines, "AMBIENT");
592
+ PrepareDefinesForMergedUV(this._ambientTexture, defines, "AMBIENT");
593
593
  }
594
594
  }
595
595
  else {
@@ -600,7 +600,7 @@ export class StandardMaterial extends PushMaterial {
600
600
  return false;
601
601
  }
602
602
  else {
603
- MaterialHelper.PrepareDefinesForMergedUV(this._opacityTexture, defines, "OPACITY");
603
+ PrepareDefinesForMergedUV(this._opacityTexture, defines, "OPACITY");
604
604
  defines.OPACITYRGB = this._opacityTexture.getAlphaFromRGB;
605
605
  }
606
606
  }
@@ -664,7 +664,7 @@ export class StandardMaterial extends PushMaterial {
664
664
  return false;
665
665
  }
666
666
  else {
667
- MaterialHelper.PrepareDefinesForMergedUV(this._emissiveTexture, defines, "EMISSIVE");
667
+ PrepareDefinesForMergedUV(this._emissiveTexture, defines, "EMISSIVE");
668
668
  }
669
669
  }
670
670
  else {
@@ -675,7 +675,7 @@ export class StandardMaterial extends PushMaterial {
675
675
  return false;
676
676
  }
677
677
  else {
678
- MaterialHelper.PrepareDefinesForMergedUV(this._lightmapTexture, defines, "LIGHTMAP");
678
+ PrepareDefinesForMergedUV(this._lightmapTexture, defines, "LIGHTMAP");
679
679
  defines.USELIGHTMAPASSHADOWMAP = this._useLightmapAsShadowmap;
680
680
  defines.RGBDLIGHTMAP = this._lightmapTexture.isRGBD;
681
681
  }
@@ -688,7 +688,7 @@ export class StandardMaterial extends PushMaterial {
688
688
  return false;
689
689
  }
690
690
  else {
691
- MaterialHelper.PrepareDefinesForMergedUV(this._specularTexture, defines, "SPECULAR");
691
+ PrepareDefinesForMergedUV(this._specularTexture, defines, "SPECULAR");
692
692
  defines.GLOSSINESS = this._useGlossinessFromSpecularMapAlpha;
693
693
  }
694
694
  }
@@ -701,7 +701,7 @@ export class StandardMaterial extends PushMaterial {
701
701
  return false;
702
702
  }
703
703
  else {
704
- MaterialHelper.PrepareDefinesForMergedUV(this._bumpTexture, defines, "BUMP");
704
+ PrepareDefinesForMergedUV(this._bumpTexture, defines, "BUMP");
705
705
  defines.PARALLAX = this._useParallax;
706
706
  defines.PARALLAX_RHS = scene.useRightHandedSystem;
707
707
  defines.PARALLAXOCCLUSION = this._useParallaxOcclusion;
@@ -787,15 +787,15 @@ export class StandardMaterial extends PushMaterial {
787
787
  }
788
788
  }
789
789
  // Misc.
790
- MaterialHelper.PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this._shouldTurnAlphaTestOn(mesh) || this._forceAlphaTest, defines, this._applyDecalMapAfterDetailMap);
790
+ PrepareDefinesForMisc(mesh, scene, this._useLogarithmicDepth, this.pointsCloud, this.fogEnabled, this._shouldTurnAlphaTestOn(mesh) || this._forceAlphaTest, defines, this._applyDecalMapAfterDetailMap);
791
791
  // Values that need to be evaluated on every frame
792
- MaterialHelper.PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances, null, subMesh.getRenderingMesh().hasThinInstances);
792
+ PrepareDefinesForFrameBoundValues(scene, engine, this, defines, useInstances, null, subMesh.getRenderingMesh().hasThinInstances);
793
793
  // External config
794
794
  this._eventInfo.defines = defines;
795
795
  this._eventInfo.mesh = mesh;
796
796
  this._callbackPluginEventPrepareDefinesBeforeAttributes(this._eventInfo);
797
797
  // Attribs
798
- MaterialHelper.PrepareDefinesForAttributes(mesh, defines, true, true, true);
798
+ PrepareDefinesForAttributes(mesh, defines, true, true, true);
799
799
  // External config
800
800
  this._callbackPluginEventPrepareDefines(this._eventInfo);
801
801
  // Get correct effect
@@ -835,7 +835,7 @@ export class StandardMaterial extends PushMaterial {
835
835
  if (defines.LOGARITHMICDEPTH) {
836
836
  fallbacks.addFallback(0, "LOGARITHMICDEPTH");
837
837
  }
838
- MaterialHelper.HandleFallbacksForShadows(defines, fallbacks, this._maxSimultaneousLights);
838
+ HandleFallbacksForShadows(defines, fallbacks, this._maxSimultaneousLights);
839
839
  if (defines.SPECULARTERM) {
840
840
  fallbacks.addFallback(0, "SPECULARTERM");
841
841
  }
@@ -873,10 +873,10 @@ export class StandardMaterial extends PushMaterial {
873
873
  if (defines.VERTEXCOLOR) {
874
874
  attribs.push(VertexBuffer.ColorKind);
875
875
  }
876
- MaterialHelper.PrepareAttributesForBones(attribs, mesh, defines, fallbacks);
877
- MaterialHelper.PrepareAttributesForInstances(attribs, defines);
878
- MaterialHelper.PrepareAttributesForMorphTargets(attribs, mesh, defines);
879
- MaterialHelper.PrepareAttributesForBakedVertexAnimation(attribs, mesh, defines);
876
+ PrepareAttributesForBones(attribs, mesh, defines, fallbacks);
877
+ PrepareAttributesForInstances(attribs, defines);
878
+ PrepareAttributesForMorphTargets(attribs, mesh, defines);
879
+ PrepareAttributesForBakedVertexAnimation(attribs, mesh, defines);
880
880
  let shaderName = "default";
881
881
  const uniforms = [
882
882
  "world",
@@ -968,7 +968,7 @@ export class StandardMaterial extends PushMaterial {
968
968
  ImageProcessingConfiguration.PrepareUniforms(uniforms, defines);
969
969
  ImageProcessingConfiguration.PrepareSamplers(samplers, defines);
970
970
  }
971
- MaterialHelper.PrepareUniformsAndSamplersList({
971
+ PrepareUniformsAndSamplersList({
972
972
  uniformsNames: uniforms,
973
973
  uniformBuffersNames: uniformBuffers,
974
974
  samplers: samplers,
@@ -1108,7 +1108,7 @@ export class StandardMaterial extends PushMaterial {
1108
1108
  }
1109
1109
  const mustRebind = this._mustRebind(scene, effect, subMesh, mesh.visibility);
1110
1110
  // Bones
1111
- MaterialHelper.BindBonesParameters(mesh, effect);
1111
+ BindBonesParameters(mesh, effect);
1112
1112
  const ubo = this._uniformBuffer;
1113
1113
  if (mustRebind) {
1114
1114
  this.bindViewProjection(effect);
@@ -1139,15 +1139,15 @@ export class StandardMaterial extends PushMaterial {
1139
1139
  if (scene.texturesEnabled) {
1140
1140
  if (this._diffuseTexture && StandardMaterial.DiffuseTextureEnabled) {
1141
1141
  ubo.updateFloat2("vDiffuseInfos", this._diffuseTexture.coordinatesIndex, this._diffuseTexture.level);
1142
- MaterialHelper.BindTextureMatrix(this._diffuseTexture, ubo, "diffuse");
1142
+ BindTextureMatrix(this._diffuseTexture, ubo, "diffuse");
1143
1143
  }
1144
1144
  if (this._ambientTexture && StandardMaterial.AmbientTextureEnabled) {
1145
1145
  ubo.updateFloat2("vAmbientInfos", this._ambientTexture.coordinatesIndex, this._ambientTexture.level);
1146
- MaterialHelper.BindTextureMatrix(this._ambientTexture, ubo, "ambient");
1146
+ BindTextureMatrix(this._ambientTexture, ubo, "ambient");
1147
1147
  }
1148
1148
  if (this._opacityTexture && StandardMaterial.OpacityTextureEnabled) {
1149
1149
  ubo.updateFloat2("vOpacityInfos", this._opacityTexture.coordinatesIndex, this._opacityTexture.level);
1150
- MaterialHelper.BindTextureMatrix(this._opacityTexture, ubo, "opacity");
1150
+ BindTextureMatrix(this._opacityTexture, ubo, "opacity");
1151
1151
  }
1152
1152
  if (this._hasAlphaChannel()) {
1153
1153
  ubo.updateFloat("alphaCutOff", this.alphaCutOff);
@@ -1163,19 +1163,19 @@ export class StandardMaterial extends PushMaterial {
1163
1163
  }
1164
1164
  if (this._emissiveTexture && StandardMaterial.EmissiveTextureEnabled) {
1165
1165
  ubo.updateFloat2("vEmissiveInfos", this._emissiveTexture.coordinatesIndex, this._emissiveTexture.level);
1166
- MaterialHelper.BindTextureMatrix(this._emissiveTexture, ubo, "emissive");
1166
+ BindTextureMatrix(this._emissiveTexture, ubo, "emissive");
1167
1167
  }
1168
1168
  if (this._lightmapTexture && StandardMaterial.LightmapTextureEnabled) {
1169
1169
  ubo.updateFloat2("vLightmapInfos", this._lightmapTexture.coordinatesIndex, this._lightmapTexture.level);
1170
- MaterialHelper.BindTextureMatrix(this._lightmapTexture, ubo, "lightmap");
1170
+ BindTextureMatrix(this._lightmapTexture, ubo, "lightmap");
1171
1171
  }
1172
1172
  if (this._specularTexture && StandardMaterial.SpecularTextureEnabled) {
1173
1173
  ubo.updateFloat2("vSpecularInfos", this._specularTexture.coordinatesIndex, this._specularTexture.level);
1174
- MaterialHelper.BindTextureMatrix(this._specularTexture, ubo, "specular");
1174
+ BindTextureMatrix(this._specularTexture, ubo, "specular");
1175
1175
  }
1176
1176
  if (this._bumpTexture && scene.getEngine().getCaps().standardDerivatives && StandardMaterial.BumpTextureEnabled) {
1177
1177
  ubo.updateFloat3("vBumpInfos", this._bumpTexture.coordinatesIndex, 1.0 / this._bumpTexture.level, this.parallaxScaleBias);
1178
- MaterialHelper.BindTextureMatrix(this._bumpTexture, ubo, "bump");
1178
+ BindTextureMatrix(this._bumpTexture, ubo, "bump");
1179
1179
  if (scene._mirroredCameraPosition) {
1180
1180
  ubo.updateFloat2("vTangentSpaceParams", this._invertNormalMapX ? 1.0 : -1.0, this._invertNormalMapY ? 1.0 : -1.0);
1181
1181
  }
@@ -1268,7 +1268,7 @@ export class StandardMaterial extends PushMaterial {
1268
1268
  if (mustRebind || !this.isFrozen) {
1269
1269
  // Lights
1270
1270
  if (scene.lightsEnabled && !this._disableLighting) {
1271
- MaterialHelper.BindLights(scene, mesh, effect, defines, this._maxSimultaneousLights);
1271
+ BindLights(scene, mesh, effect, defines, this._maxSimultaneousLights);
1272
1272
  }
1273
1273
  // View
1274
1274
  if ((scene.fogEnabled && mesh.applyFog && scene.fogMode !== Scene.FOGMODE_NONE) ||
@@ -1279,17 +1279,17 @@ export class StandardMaterial extends PushMaterial {
1279
1279
  this.bindView(effect);
1280
1280
  }
1281
1281
  // Fog
1282
- MaterialHelper.BindFogParameters(scene, mesh, effect);
1282
+ BindFogParameters(scene, mesh, effect);
1283
1283
  // Morph targets
1284
1284
  if (defines.NUM_MORPH_INFLUENCERS) {
1285
- MaterialHelper.BindMorphTargetParameters(mesh, effect);
1285
+ BindMorphTargetParameters(mesh, effect);
1286
1286
  }
1287
1287
  if (defines.BAKED_VERTEX_ANIMATION_TEXTURE) {
1288
1288
  mesh.bakedVertexAnimationManager?.bind(effect, defines.INSTANCES);
1289
1289
  }
1290
1290
  // Log. depth
1291
1291
  if (this.useLogarithmicDepth) {
1292
- MaterialHelper.BindLogDepth(defines, effect, scene);
1292
+ BindLogDepth(defines, effect, scene);
1293
1293
  }
1294
1294
  // image processing
1295
1295
  if (this._imageProcessingConfiguration && !this._imageProcessingConfiguration.applyByPostProcess) {