@babylonjs/core 6.45.0 → 6.46.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 (235) hide show
  1. package/Animations/animation.js +1 -1
  2. package/Animations/animation.js.map +1 -1
  3. package/BakedVertexAnimation/bakedVertexAnimationManager.js +2 -1
  4. package/BakedVertexAnimation/bakedVertexAnimationManager.js.map +1 -1
  5. package/Bones/skeleton.js +2 -2
  6. package/Bones/skeleton.js.map +1 -1
  7. package/Cameras/camera.d.ts +3 -3
  8. package/Cameras/camera.js +2 -1
  9. package/Cameras/camera.js.map +1 -1
  10. package/Cameras/cameraInputsManager.js +1 -1
  11. package/Cameras/cameraInputsManager.js.map +1 -1
  12. package/Cameras/targetCamera.js +4 -0
  13. package/Cameras/targetCamera.js.map +1 -1
  14. package/Compute/computeShader.d.ts +4 -2
  15. package/Compute/computeShader.js +7 -3
  16. package/Compute/computeShader.js.map +1 -1
  17. package/Debug/directionalLightFrustumViewer.js +6 -6
  18. package/Debug/directionalLightFrustumViewer.js.map +1 -1
  19. package/Engines/Extensions/engine.computeShader.d.ts +2 -1
  20. package/Engines/Extensions/engine.computeShader.js +1 -0
  21. package/Engines/Extensions/engine.computeShader.js.map +1 -1
  22. package/Engines/Extensions/engine.rawTexture.js +3 -3
  23. package/Engines/Extensions/engine.rawTexture.js.map +1 -1
  24. package/Engines/Native/nativePipelineContext.js +1 -1
  25. package/Engines/Native/nativePipelineContext.js.map +1 -1
  26. package/Engines/WebGL/webGLPipelineContext.js +1 -1
  27. package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
  28. package/Engines/WebGPU/webgpuComputeContext.js +7 -3
  29. package/Engines/WebGPU/webgpuComputeContext.js.map +1 -1
  30. package/Engines/engine.d.ts +1 -1
  31. package/Engines/thinEngine.js +2 -2
  32. package/Engines/thinEngine.js.map +1 -1
  33. package/Engines/webgpuEngine.js +2 -15
  34. package/Engines/webgpuEngine.js.map +1 -1
  35. package/Layers/glowLayer.js +2 -1
  36. package/Layers/glowLayer.js.map +1 -1
  37. package/Layers/highlightLayer.js +2 -1
  38. package/Layers/highlightLayer.js.map +1 -1
  39. package/Lights/light.js +2 -1
  40. package/Lights/light.js.map +1 -1
  41. package/Loading/Plugins/babylonFileLoader.js +9 -0
  42. package/Loading/Plugins/babylonFileLoader.js.map +1 -1
  43. package/Loading/sceneLoader.d.ts +6 -1
  44. package/Loading/sceneLoader.js +6 -5
  45. package/Loading/sceneLoader.js.map +1 -1
  46. package/Materials/Background/backgroundMaterial.js +2 -1
  47. package/Materials/Background/backgroundMaterial.js.map +1 -1
  48. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +1 -1
  49. package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
  50. package/Materials/Node/nodeMaterial.d.ts +2 -1
  51. package/Materials/Node/nodeMaterial.js +5 -1
  52. package/Materials/Node/nodeMaterial.js.map +1 -1
  53. package/Materials/PBR/pbrBaseMaterial.d.ts +1 -1
  54. package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
  55. package/Materials/PBR/pbrMaterial.js +2 -1
  56. package/Materials/PBR/pbrMaterial.js.map +1 -1
  57. package/Materials/PBR/pbrMetallicRoughnessMaterial.js +2 -1
  58. package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
  59. package/Materials/PBR/pbrSpecularGlossinessMaterial.js +2 -1
  60. package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
  61. package/Materials/Textures/baseTexture.js +2 -1
  62. package/Materials/Textures/baseTexture.js.map +1 -1
  63. package/Materials/Textures/cubeTexture.js +2 -1
  64. package/Materials/Textures/cubeTexture.js.map +1 -1
  65. package/Materials/Textures/rawCubeTexture.js +1 -1
  66. package/Materials/Textures/rawCubeTexture.js.map +1 -1
  67. package/Materials/Textures/texture.js +2 -1
  68. package/Materials/Textures/texture.js.map +1 -1
  69. package/Materials/colorCurves.d.ts +1 -1
  70. package/Materials/colorCurves.functions.d.ts +5 -0
  71. package/Materials/colorCurves.functions.js +8 -0
  72. package/Materials/colorCurves.functions.js.map +1 -0
  73. package/Materials/colorCurves.js +8 -8
  74. package/Materials/colorCurves.js.map +1 -1
  75. package/Materials/fresnelParameters.js +1 -1
  76. package/Materials/fresnelParameters.js.map +1 -1
  77. package/Materials/imageProcessingConfiguration.d.ts +3 -48
  78. package/Materials/imageProcessingConfiguration.defines.d.ts +46 -0
  79. package/Materials/imageProcessingConfiguration.defines.js +27 -0
  80. package/Materials/imageProcessingConfiguration.defines.js.map +1 -0
  81. package/Materials/imageProcessingConfiguration.functions.d.ts +13 -0
  82. package/Materials/imageProcessingConfiguration.functions.js +41 -0
  83. package/Materials/imageProcessingConfiguration.functions.js.map +1 -0
  84. package/Materials/imageProcessingConfiguration.js +18 -69
  85. package/Materials/imageProcessingConfiguration.js.map +1 -1
  86. package/Materials/material.js +2 -1
  87. package/Materials/material.js.map +1 -1
  88. package/Materials/materialHelper.d.ts +33 -33
  89. package/Materials/materialHelper.js +244 -286
  90. package/Materials/materialHelper.js.map +1 -1
  91. package/Materials/materialPluginBase.js +2 -1
  92. package/Materials/materialPluginBase.js.map +1 -1
  93. package/Materials/materialStencilState.js +2 -1
  94. package/Materials/materialStencilState.js.map +1 -1
  95. package/Materials/shaderMaterial.js +1 -1
  96. package/Materials/shaderMaterial.js.map +1 -1
  97. package/Materials/standardMaterial.d.ts +1 -1
  98. package/Materials/standardMaterial.js +2 -1
  99. package/Materials/standardMaterial.js.map +1 -1
  100. package/Materials/uniformBuffer.js +2 -2
  101. package/Materials/uniformBuffer.js.map +1 -1
  102. package/Maths/math.color.d.ts +392 -66
  103. package/Maths/math.color.js +541 -65
  104. package/Maths/math.color.js.map +1 -1
  105. package/Maths/math.like.d.ts +17 -28
  106. package/Maths/math.like.js.map +1 -1
  107. package/Maths/math.plane.d.ts +2 -1
  108. package/Maths/math.plane.js.map +1 -1
  109. package/Maths/math.polar.d.ts +1 -1
  110. package/Maths/math.polar.js.map +1 -1
  111. package/Maths/math.scalar.d.ts +6 -6
  112. package/Maths/math.scalar.functions.d.ts +51 -0
  113. package/Maths/math.scalar.functions.js +80 -0
  114. package/Maths/math.scalar.functions.js.map +1 -0
  115. package/Maths/math.scalar.js +48 -73
  116. package/Maths/math.scalar.js.map +1 -1
  117. package/Maths/math.vector.d.ts +571 -72
  118. package/Maths/math.vector.js +917 -119
  119. package/Maths/math.vector.js.map +1 -1
  120. package/Maths/math.viewport.d.ts +2 -1
  121. package/Maths/math.viewport.js.map +1 -1
  122. package/Maths/tensor.d.ts +411 -0
  123. package/Maths/tensor.js +3 -0
  124. package/Maths/tensor.js.map +1 -0
  125. package/Meshes/Node/Blocks/Set/setColorsBlock.js +20 -4
  126. package/Meshes/Node/Blocks/Set/setColorsBlock.js.map +1 -1
  127. package/Meshes/Node/nodeGeometry.js +2 -1
  128. package/Meshes/Node/nodeGeometry.js.map +1 -1
  129. package/Meshes/mesh.js +2 -2
  130. package/Meshes/mesh.js.map +1 -1
  131. package/Meshes/mesh.vertexData.d.ts +4 -0
  132. package/Meshes/mesh.vertexData.js +10 -0
  133. package/Meshes/mesh.vertexData.js.map +1 -1
  134. package/Meshes/transformNode.js +2 -1
  135. package/Meshes/transformNode.js.map +1 -1
  136. package/Misc/arrayTools.d.ts +2 -19
  137. package/Misc/arrayTools.js.map +1 -1
  138. package/Misc/decorators.d.ts +0 -80
  139. package/Misc/decorators.functions.d.ts +7 -0
  140. package/Misc/decorators.functions.js +52 -0
  141. package/Misc/decorators.functions.js.map +1 -0
  142. package/Misc/decorators.js +2 -318
  143. package/Misc/decorators.js.map +1 -1
  144. package/Misc/decorators.serialization.d.ts +81 -0
  145. package/Misc/decorators.serialization.js +269 -0
  146. package/Misc/decorators.serialization.js.map +1 -0
  147. package/Misc/index.d.ts +1 -0
  148. package/Misc/index.js +1 -0
  149. package/Misc/index.js.map +1 -1
  150. package/Misc/sceneRecorder.js +1 -1
  151. package/Misc/sceneRecorder.js.map +1 -1
  152. package/Misc/sceneSerializer.js +8 -1
  153. package/Misc/sceneSerializer.js.map +1 -1
  154. package/Misc/tools.functions.d.ts +14 -0
  155. package/Misc/tools.functions.js +23 -0
  156. package/Misc/tools.functions.js.map +1 -0
  157. package/Misc/tools.js +5 -6
  158. package/Misc/tools.js.map +1 -1
  159. package/Morph/morphTarget.js +2 -1
  160. package/Morph/morphTarget.js.map +1 -1
  161. package/Particles/EmitterTypes/boxParticleEmitter.js +8 -8
  162. package/Particles/EmitterTypes/boxParticleEmitter.js.map +1 -1
  163. package/Particles/baseParticleSystem.d.ts +8 -11
  164. package/Particles/baseParticleSystem.js +9 -40
  165. package/Particles/baseParticleSystem.js.map +1 -1
  166. package/Particles/gpuParticleSystem.d.ts +71 -1
  167. package/Particles/gpuParticleSystem.js +102 -1
  168. package/Particles/gpuParticleSystem.js.map +1 -1
  169. package/Particles/particle.d.ts +3 -3
  170. package/Particles/particle.js +3 -3
  171. package/Particles/particle.js.map +1 -1
  172. package/Particles/particleSystem.d.ts +81 -455
  173. package/Particles/particleSystem.functions.d.ts +61 -0
  174. package/Particles/particleSystem.functions.js +79 -0
  175. package/Particles/particleSystem.functions.js.map +1 -0
  176. package/Particles/particleSystem.js +390 -1984
  177. package/Particles/particleSystem.js.map +1 -1
  178. package/Particles/thinParticleSystem.d.ts +485 -0
  179. package/Particles/thinParticleSystem.js +1768 -0
  180. package/Particles/thinParticleSystem.js.map +1 -0
  181. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +2 -1
  182. package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
  183. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +2 -1
  184. package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
  185. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js +2 -1
  186. package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js.map +1 -1
  187. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +2 -1
  188. package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
  189. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js +2 -1
  190. package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js.map +1 -1
  191. package/PostProcesses/blackAndWhitePostProcess.js +2 -1
  192. package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
  193. package/PostProcesses/blurPostProcess.js +2 -1
  194. package/PostProcesses/blurPostProcess.js.map +1 -1
  195. package/PostProcesses/chromaticAberrationPostProcess.js +2 -1
  196. package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
  197. package/PostProcesses/colorCorrectionPostProcess.js +2 -1
  198. package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
  199. package/PostProcesses/convolutionPostProcess.js +2 -1
  200. package/PostProcesses/convolutionPostProcess.js.map +1 -1
  201. package/PostProcesses/displayPassPostProcess.js +1 -1
  202. package/PostProcesses/displayPassPostProcess.js.map +1 -1
  203. package/PostProcesses/filterPostProcess.js +2 -1
  204. package/PostProcesses/filterPostProcess.js.map +1 -1
  205. package/PostProcesses/fxaaPostProcess.js +1 -1
  206. package/PostProcesses/fxaaPostProcess.js.map +1 -1
  207. package/PostProcesses/grainPostProcess.js +2 -1
  208. package/PostProcesses/grainPostProcess.js.map +1 -1
  209. package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
  210. package/PostProcesses/motionBlurPostProcess.js +2 -1
  211. package/PostProcesses/motionBlurPostProcess.js.map +1 -1
  212. package/PostProcesses/passPostProcess.js +1 -1
  213. package/PostProcesses/passPostProcess.js.map +1 -1
  214. package/PostProcesses/postProcess.js +2 -1
  215. package/PostProcesses/postProcess.js.map +1 -1
  216. package/PostProcesses/refractionPostProcess.js +2 -1
  217. package/PostProcesses/refractionPostProcess.js.map +1 -1
  218. package/PostProcesses/screenSpaceCurvaturePostProcess.js +2 -1
  219. package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
  220. package/PostProcesses/screenSpaceReflectionPostProcess.js +2 -1
  221. package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
  222. package/PostProcesses/sharpenPostProcess.js +2 -1
  223. package/PostProcesses/sharpenPostProcess.js.map +1 -1
  224. package/Probes/reflectionProbe.js +2 -1
  225. package/Probes/reflectionProbe.js.map +1 -1
  226. package/Sprites/spriteManager.d.ts +4 -0
  227. package/Sprites/spriteManager.js.map +1 -1
  228. package/XR/features/WebXRControllerTeleportation.d.ts +9 -0
  229. package/XR/features/WebXRControllerTeleportation.js +75 -31
  230. package/XR/features/WebXRControllerTeleportation.js.map +1 -1
  231. package/node.js +2 -1
  232. package/node.js.map +1 -1
  233. package/package.json +1 -1
  234. package/types.d.ts +105 -0
  235. package/types.js.map +1 -1
@@ -23,7 +23,7 @@ export declare class MaterialHelper {
23
23
  * @param effect defines the effect to bind to the scene uniform buffer
24
24
  * @param sceneUbo defines the uniform buffer storing scene data
25
25
  */
26
- static BindSceneUniformBuffer(effect: Effect, sceneUbo: UniformBuffer): void;
26
+ static BindSceneUniformBuffer: (effect: Effect, sceneUbo: UniformBuffer) => void;
27
27
  /**
28
28
  * Helps preparing the defines values about the UVs in used in the effect.
29
29
  * UVs are shared as much as we can across channels in the shaders.
@@ -31,21 +31,21 @@ export declare class MaterialHelper {
31
31
  * @param defines The defines to update
32
32
  * @param key The channel key "diffuse", "specular"... used in the shader
33
33
  */
34
- static PrepareDefinesForMergedUV(texture: BaseTexture, defines: any, key: string): void;
34
+ static PrepareDefinesForMergedUV: (texture: BaseTexture, defines: any, key: string) => void;
35
35
  /**
36
36
  * Binds a texture matrix value to its corresponding uniform
37
37
  * @param texture The texture to bind the matrix for
38
38
  * @param uniformBuffer The uniform buffer receiving the data
39
39
  * @param key The channel key "diffuse", "specular"... used in the shader
40
40
  */
41
- static BindTextureMatrix(texture: BaseTexture, uniformBuffer: UniformBuffer, key: string): void;
41
+ static BindTextureMatrix: (texture: BaseTexture, uniformBuffer: UniformBuffer, key: string) => void;
42
42
  /**
43
43
  * Gets the current status of the fog (should it be enabled?)
44
44
  * @param mesh defines the mesh to evaluate for fog support
45
45
  * @param scene defines the hosting scene
46
46
  * @returns true if fog must be enabled
47
47
  */
48
- static GetFogState(mesh: AbstractMesh, scene: Scene): boolean;
48
+ static GetFogState: (mesh: AbstractMesh, scene: Scene) => boolean;
49
49
  /**
50
50
  * Helper used to prepare the list of defines associated with misc. values for shader compilation
51
51
  * @param mesh defines the current mesh
@@ -57,14 +57,14 @@ export declare class MaterialHelper {
57
57
  * @param defines defines the current list of defines
58
58
  * @param applyDecalAfterDetail Defines if the decal is applied after or before the detail
59
59
  */
60
- static PrepareDefinesForMisc(mesh: AbstractMesh, scene: Scene, useLogarithmicDepth: boolean, pointsCloud: boolean, fogEnabled: boolean, alphaTest: boolean, defines: any, applyDecalAfterDetail?: boolean): void;
60
+ static PrepareDefinesForMisc: (mesh: AbstractMesh, scene: Scene, useLogarithmicDepth: boolean, pointsCloud: boolean, fogEnabled: boolean, alphaTest: boolean, defines: any, applyDecalAfterDetail?: boolean) => void;
61
61
  /**
62
62
  * Helper used to prepare the defines relative to the active camera
63
63
  * @param scene defines the current scene
64
64
  * @param defines specifies the list of active defines
65
65
  * @returns true if the defines have been updated, else false
66
66
  */
67
- static PrepareDefinesForCamera(scene: Scene, defines: any): boolean;
67
+ static PrepareDefinesForCamera: (scene: Scene, defines: any) => boolean;
68
68
  /**
69
69
  * Helper used to prepare the list of defines associated with frame values for shader compilation
70
70
  * @param scene defines the current scene
@@ -75,25 +75,25 @@ export declare class MaterialHelper {
75
75
  * @param useClipPlane defines if clip plane have to be turned on
76
76
  * @param useThinInstances defines if thin instances have to be turned on
77
77
  */
78
- static PrepareDefinesForFrameBoundValues(scene: Scene, engine: Engine, material: Material, defines: any, useInstances: boolean, useClipPlane?: Nullable<boolean>, useThinInstances?: boolean): void;
78
+ static PrepareDefinesForFrameBoundValues: (scene: Scene, engine: Engine, material: Material, defines: any, useInstances: boolean, useClipPlane?: Nullable<boolean>, useThinInstances?: boolean) => void;
79
79
  /**
80
80
  * Prepares the defines for bones
81
81
  * @param mesh The mesh containing the geometry data we will draw
82
82
  * @param defines The defines to update
83
83
  */
84
- static PrepareDefinesForBones(mesh: AbstractMesh, defines: any): void;
84
+ static PrepareDefinesForBones: (mesh: AbstractMesh, defines: any) => void;
85
85
  /**
86
86
  * Prepares the defines for morph targets
87
87
  * @param mesh The mesh containing the geometry data we will draw
88
88
  * @param defines The defines to update
89
89
  */
90
- static PrepareDefinesForMorphTargets(mesh: AbstractMesh, defines: any): void;
90
+ static PrepareDefinesForMorphTargets: (mesh: AbstractMesh, defines: any) => void;
91
91
  /**
92
92
  * Prepares the defines for baked vertex animation
93
93
  * @param mesh The mesh containing the geometry data we will draw
94
94
  * @param defines The defines to update
95
95
  */
96
- static PrepareDefinesForBakedVertexAnimation(mesh: AbstractMesh, defines: any): void;
96
+ static PrepareDefinesForBakedVertexAnimation: (mesh: AbstractMesh, defines: any) => void;
97
97
  /**
98
98
  * Prepares the defines used in the shader depending on the attributes data available in the mesh
99
99
  * @param mesh The mesh containing the geometry data we will draw
@@ -105,27 +105,27 @@ export declare class MaterialHelper {
105
105
  * @param useBakedVertexAnimation Precise whether baked vertex animation should be used or not (override mesh info)
106
106
  * @returns false if defines are considered not dirty and have not been checked
107
107
  */
108
- static PrepareDefinesForAttributes(mesh: AbstractMesh, defines: any, useVertexColor: boolean, useBones: boolean, useMorphTargets?: boolean, useVertexAlpha?: boolean, useBakedVertexAnimation?: boolean): boolean;
108
+ static PrepareDefinesForAttributes: (mesh: AbstractMesh, defines: any, useVertexColor: boolean, useBones: boolean, useMorphTargets?: boolean, useVertexAlpha?: boolean, useBakedVertexAnimation?: boolean) => boolean;
109
109
  /**
110
110
  * Prepares the defines related to multiview
111
111
  * @param scene The scene we are intending to draw
112
112
  * @param defines The defines to update
113
113
  */
114
- static PrepareDefinesForMultiview(scene: Scene, defines: any): void;
114
+ static PrepareDefinesForMultiview: (scene: Scene, defines: any) => void;
115
115
  /**
116
116
  * Prepares the defines related to order independant transparency
117
117
  * @param scene The scene we are intending to draw
118
118
  * @param defines The defines to update
119
119
  * @param needAlphaBlending Determines if the material needs alpha blending
120
120
  */
121
- static PrepareDefinesForOIT(scene: Scene, defines: any, needAlphaBlending: boolean): void;
121
+ static PrepareDefinesForOIT: (scene: Scene, defines: any, needAlphaBlending: boolean) => void;
122
122
  /**
123
123
  * Prepares the defines related to the prepass
124
124
  * @param scene The scene we are intending to draw
125
125
  * @param defines The defines to update
126
126
  * @param canRenderToMRT Indicates if this material renders to several textures in the prepass
127
127
  */
128
- static PrepareDefinesForPrePass(scene: Scene, defines: any, canRenderToMRT: boolean): void;
128
+ static PrepareDefinesForPrePass: (scene: Scene, defines: any, canRenderToMRT: boolean) => void;
129
129
  /**
130
130
  * Prepares the defines related to the light information passed in parameter
131
131
  * @param scene The scene we are intending to draw
@@ -141,13 +141,13 @@ export declare class MaterialHelper {
141
141
  * @param state.specularEnabled
142
142
  * @param state.lightmapMode
143
143
  */
144
- static PrepareDefinesForLight(scene: Scene, mesh: AbstractMesh, light: Light, lightIndex: number, defines: any, specularSupported: boolean, state: {
144
+ static PrepareDefinesForLight: (scene: Scene, mesh: AbstractMesh, light: Light, lightIndex: number, defines: any, specularSupported: boolean, state: {
145
145
  needNormals: boolean;
146
146
  needRebuild: boolean;
147
147
  shadowEnabled: boolean;
148
148
  specularEnabled: boolean;
149
149
  lightmapMode: boolean;
150
- }): void;
150
+ }) => void;
151
151
  /**
152
152
  * Prepares the defines related to the light information passed in parameter
153
153
  * @param scene The scene we are intending to draw
@@ -158,7 +158,7 @@ export declare class MaterialHelper {
158
158
  * @param disableLighting Specifies whether the lighting is disabled (override scene and light)
159
159
  * @returns true if normals will be required for the rest of the effect
160
160
  */
161
- static PrepareDefinesForLights(scene: Scene, mesh: AbstractMesh, defines: any, specularSupported: boolean, maxSimultaneousLights?: number, disableLighting?: boolean): boolean;
161
+ static PrepareDefinesForLights: (scene: Scene, mesh: AbstractMesh, defines: any, specularSupported: boolean, maxSimultaneousLights?: number, disableLighting?: boolean) => boolean;
162
162
  /**
163
163
  * Prepares the uniforms and samplers list to be used in the effect (for a specific light)
164
164
  * @param lightIndex defines the light index
@@ -168,7 +168,7 @@ export declare class MaterialHelper {
168
168
  * @param uniformBuffersList defines an optional list of uniform buffers
169
169
  * @param updateOnlyBuffersList True to only update the uniformBuffersList array
170
170
  */
171
- static PrepareUniformsAndSamplersForLight(lightIndex: number, uniformsList: string[], samplersList: string[], projectedLightTexture?: any, uniformBuffersList?: Nullable<string[]>, updateOnlyBuffersList?: boolean): void;
171
+ static PrepareUniformsAndSamplersForLight: (lightIndex: number, uniformsList: string[], samplersList: string[], projectedLightTexture?: any, uniformBuffersList?: Nullable<string[]>, updateOnlyBuffersList?: boolean) => void;
172
172
  /**
173
173
  * Prepares the uniforms and samplers list to be used in the effect
174
174
  * @param uniformsListOrOptions The uniform names to prepare or an EffectCreationOptions containing the list and extra information
@@ -176,7 +176,7 @@ export declare class MaterialHelper {
176
176
  * @param defines The defines helping in the list generation
177
177
  * @param maxSimultaneousLights The maximum number of simultaneous light allowed in the effect
178
178
  */
179
- static PrepareUniformsAndSamplersList(uniformsListOrOptions: string[] | IEffectCreationOptions, samplersList?: string[], defines?: any, maxSimultaneousLights?: number): void;
179
+ static PrepareUniformsAndSamplersList: (uniformsListOrOptions: string[] | IEffectCreationOptions, samplersList?: string[], defines?: any, maxSimultaneousLights?: number) => void;
180
180
  /**
181
181
  * This helps decreasing rank by rank the shadow quality (0 being the highest rank and quality)
182
182
  * @param defines The defines to update while falling back
@@ -185,28 +185,28 @@ export declare class MaterialHelper {
185
185
  * @param rank the current rank of the Effect
186
186
  * @returns The newly affected rank
187
187
  */
188
- static HandleFallbacksForShadows(defines: any, fallbacks: EffectFallbacks, maxSimultaneousLights?: number, rank?: number): number;
188
+ static HandleFallbacksForShadows: (defines: any, fallbacks: EffectFallbacks, maxSimultaneousLights?: number, rank?: number) => number;
189
189
  /**
190
190
  * Prepares the list of attributes required for morph targets according to the effect defines.
191
191
  * @param attribs The current list of supported attribs
192
192
  * @param mesh The mesh to prepare the morph targets attributes for
193
193
  * @param influencers The number of influencers
194
194
  */
195
- static PrepareAttributesForMorphTargetsInfluencers(attribs: string[], mesh: AbstractMesh, influencers: number): void;
195
+ static PrepareAttributesForMorphTargetsInfluencers: (attribs: string[], mesh: AbstractMesh, influencers: number) => void;
196
196
  /**
197
197
  * Prepares the list of attributes required for morph targets according to the effect defines.
198
198
  * @param attribs The current list of supported attribs
199
199
  * @param mesh The mesh to prepare the morph targets attributes for
200
200
  * @param defines The current Defines of the effect
201
201
  */
202
- static PrepareAttributesForMorphTargets(attribs: string[], mesh: AbstractMesh, defines: any): void;
202
+ static PrepareAttributesForMorphTargets: (attribs: string[], mesh: AbstractMesh, defines: any) => void;
203
203
  /**
204
204
  * Prepares the list of attributes required for baked vertex animations according to the effect defines.
205
205
  * @param attribs The current list of supported attribs
206
206
  * @param mesh The mesh to prepare for baked vertex animations
207
207
  * @param defines The current Defines of the effect
208
208
  */
209
- static PrepareAttributesForBakedVertexAnimation(attribs: string[], mesh: AbstractMesh, defines: any): void;
209
+ static PrepareAttributesForBakedVertexAnimation: (attribs: string[], mesh: AbstractMesh, defines: any) => void;
210
210
  /**
211
211
  * Prepares the list of attributes required for bones according to the effect defines.
212
212
  * @param attribs The current list of supported attribs
@@ -214,26 +214,26 @@ export declare class MaterialHelper {
214
214
  * @param defines The current Defines of the effect
215
215
  * @param fallbacks The current effect fallback strategy
216
216
  */
217
- static PrepareAttributesForBones(attribs: string[], mesh: AbstractMesh, defines: any, fallbacks: EffectFallbacks): void;
217
+ static PrepareAttributesForBones: (attribs: string[], mesh: AbstractMesh, defines: any, fallbacks: EffectFallbacks) => void;
218
218
  /**
219
219
  * Check and prepare the list of attributes required for instances according to the effect defines.
220
220
  * @param attribs The current list of supported attribs
221
221
  * @param defines The current MaterialDefines of the effect
222
222
  */
223
- static PrepareAttributesForInstances(attribs: string[], defines: MaterialDefines): void;
223
+ static PrepareAttributesForInstances: (attribs: string[], defines: MaterialDefines) => void;
224
224
  /**
225
225
  * Add the list of attributes required for instances to the attribs array.
226
226
  * @param attribs The current list of supported attribs
227
227
  * @param needsPreviousMatrices If the shader needs previous matrices
228
228
  */
229
- static PushAttributesForInstances(attribs: string[], needsPreviousMatrices?: boolean): void;
229
+ static PushAttributesForInstances: (attribs: string[], needsPreviousMatrices?: boolean) => void;
230
230
  /**
231
231
  * Binds the light information to the effect.
232
232
  * @param light The light containing the generator
233
233
  * @param effect The effect we are binding the data to
234
234
  * @param lightIndex The light index in the effect used to render
235
235
  */
236
- static BindLightProperties(light: Light, effect: Effect, lightIndex: number): void;
236
+ static BindLightProperties: (light: Light, effect: Effect, lightIndex: number) => void;
237
237
  /**
238
238
  * Binds the lights information from the scene to the effect for the given mesh.
239
239
  * @param light Light to bind
@@ -243,7 +243,7 @@ export declare class MaterialHelper {
243
243
  * @param useSpecular Defines if specular is supported
244
244
  * @param receiveShadows Defines if the effect (mesh) we bind the light for receives shadows
245
245
  */
246
- static BindLight(light: Light, lightIndex: number, scene: Scene, effect: Effect, useSpecular: boolean, receiveShadows?: boolean): void;
246
+ static BindLight: (light: Light, lightIndex: number, scene: Scene, effect: Effect, useSpecular: boolean, receiveShadows?: boolean) => void;
247
247
  /**
248
248
  * Binds the lights information from the scene to the effect for the given mesh.
249
249
  * @param scene The scene the lights belongs to
@@ -252,7 +252,7 @@ export declare class MaterialHelper {
252
252
  * @param defines The generated defines for the effect
253
253
  * @param maxSimultaneousLights The maximum number of light that can be bound to the effect
254
254
  */
255
- static BindLights(scene: Scene, mesh: AbstractMesh, effect: Effect, defines: any, maxSimultaneousLights?: number): void;
255
+ static BindLights: (scene: Scene, mesh: AbstractMesh, effect: Effect, defines: any, maxSimultaneousLights?: number) => void;
256
256
  /**
257
257
  * Binds the fog information from the scene to the effect for the given mesh.
258
258
  * @param scene The scene the lights belongs to
@@ -260,25 +260,25 @@ export declare class MaterialHelper {
260
260
  * @param effect The effect we are binding the data to
261
261
  * @param linearSpace Defines if the fog effect is applied in linear space
262
262
  */
263
- static BindFogParameters(scene: Scene, mesh?: AbstractMesh, effect?: Effect, linearSpace?: boolean): void;
263
+ static BindFogParameters: (scene: Scene, mesh?: AbstractMesh, effect?: Effect, linearSpace?: boolean) => void;
264
264
  /**
265
265
  * Binds the bones information from the mesh to the effect.
266
266
  * @param mesh The mesh we are binding the information to render
267
267
  * @param effect The effect we are binding the data to
268
268
  * @param prePassConfiguration Configuration for the prepass, in case prepass is activated
269
269
  */
270
- static BindBonesParameters(mesh?: AbstractMesh, effect?: Effect, prePassConfiguration?: PrePassConfiguration): void;
270
+ static BindBonesParameters: (mesh?: AbstractMesh, effect?: Effect, prePassConfiguration?: PrePassConfiguration) => void;
271
271
  /**
272
272
  * Binds the morph targets information from the mesh to the effect.
273
273
  * @param abstractMesh The mesh we are binding the information to render
274
274
  * @param effect The effect we are binding the data to
275
275
  */
276
- static BindMorphTargetParameters(abstractMesh: AbstractMesh, effect: Effect): void;
276
+ static BindMorphTargetParameters: (abstractMesh: AbstractMesh, effect: Effect) => void;
277
277
  /**
278
278
  * Binds the logarithmic depth information from the scene to the effect for the given defines.
279
279
  * @param defines The generated defines used in the effect
280
280
  * @param effect The effect we are binding the data to
281
281
  * @param scene The scene we are willing to render with logarithmic scale for
282
282
  */
283
- static BindLogDepth(defines: any, effect: Effect, scene: Scene): void;
283
+ static BindLogDepth: (defines: any, effect: Effect, scene: Scene) => void;
284
284
  }