@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.
- package/Animations/animation.js +1 -1
- package/Animations/animation.js.map +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.js +2 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.js.map +1 -1
- package/Bones/skeleton.js +2 -2
- package/Bones/skeleton.js.map +1 -1
- package/Cameras/camera.d.ts +3 -3
- package/Cameras/camera.js +2 -1
- package/Cameras/camera.js.map +1 -1
- package/Cameras/cameraInputsManager.js +1 -1
- package/Cameras/cameraInputsManager.js.map +1 -1
- package/Cameras/targetCamera.js +4 -0
- package/Cameras/targetCamera.js.map +1 -1
- package/Compute/computeShader.d.ts +4 -2
- package/Compute/computeShader.js +7 -3
- package/Compute/computeShader.js.map +1 -1
- package/Debug/directionalLightFrustumViewer.js +6 -6
- package/Debug/directionalLightFrustumViewer.js.map +1 -1
- package/Engines/Extensions/engine.computeShader.d.ts +2 -1
- package/Engines/Extensions/engine.computeShader.js +1 -0
- package/Engines/Extensions/engine.computeShader.js.map +1 -1
- package/Engines/Extensions/engine.rawTexture.js +3 -3
- package/Engines/Extensions/engine.rawTexture.js.map +1 -1
- package/Engines/Native/nativePipelineContext.js +1 -1
- package/Engines/Native/nativePipelineContext.js.map +1 -1
- package/Engines/WebGL/webGLPipelineContext.js +1 -1
- package/Engines/WebGL/webGLPipelineContext.js.map +1 -1
- package/Engines/WebGPU/webgpuComputeContext.js +7 -3
- package/Engines/WebGPU/webgpuComputeContext.js.map +1 -1
- package/Engines/engine.d.ts +1 -1
- package/Engines/thinEngine.js +2 -2
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.js +2 -15
- package/Engines/webgpuEngine.js.map +1 -1
- package/Layers/glowLayer.js +2 -1
- package/Layers/glowLayer.js.map +1 -1
- package/Layers/highlightLayer.js +2 -1
- package/Layers/highlightLayer.js.map +1 -1
- package/Lights/light.js +2 -1
- package/Lights/light.js.map +1 -1
- package/Loading/Plugins/babylonFileLoader.js +9 -0
- package/Loading/Plugins/babylonFileLoader.js.map +1 -1
- package/Loading/sceneLoader.d.ts +6 -1
- package/Loading/sceneLoader.js +6 -5
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/Background/backgroundMaterial.js +2 -1
- package/Materials/Background/backgroundMaterial.js.map +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +1 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +2 -1
- package/Materials/Node/nodeMaterial.js +5 -1
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/PBR/pbrBaseMaterial.d.ts +1 -1
- package/Materials/PBR/pbrBaseMaterial.js.map +1 -1
- package/Materials/PBR/pbrMaterial.js +2 -1
- package/Materials/PBR/pbrMaterial.js.map +1 -1
- package/Materials/PBR/pbrMetallicRoughnessMaterial.js +2 -1
- package/Materials/PBR/pbrMetallicRoughnessMaterial.js.map +1 -1
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js +2 -1
- package/Materials/PBR/pbrSpecularGlossinessMaterial.js.map +1 -1
- package/Materials/Textures/baseTexture.js +2 -1
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.js +2 -1
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/rawCubeTexture.js +1 -1
- package/Materials/Textures/rawCubeTexture.js.map +1 -1
- package/Materials/Textures/texture.js +2 -1
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/colorCurves.d.ts +1 -1
- package/Materials/colorCurves.functions.d.ts +5 -0
- package/Materials/colorCurves.functions.js +8 -0
- package/Materials/colorCurves.functions.js.map +1 -0
- package/Materials/colorCurves.js +8 -8
- package/Materials/colorCurves.js.map +1 -1
- package/Materials/fresnelParameters.js +1 -1
- package/Materials/fresnelParameters.js.map +1 -1
- package/Materials/imageProcessingConfiguration.d.ts +3 -48
- package/Materials/imageProcessingConfiguration.defines.d.ts +46 -0
- package/Materials/imageProcessingConfiguration.defines.js +27 -0
- package/Materials/imageProcessingConfiguration.defines.js.map +1 -0
- package/Materials/imageProcessingConfiguration.functions.d.ts +13 -0
- package/Materials/imageProcessingConfiguration.functions.js +41 -0
- package/Materials/imageProcessingConfiguration.functions.js.map +1 -0
- package/Materials/imageProcessingConfiguration.js +18 -69
- package/Materials/imageProcessingConfiguration.js.map +1 -1
- package/Materials/material.js +2 -1
- package/Materials/material.js.map +1 -1
- package/Materials/materialHelper.d.ts +33 -33
- package/Materials/materialHelper.js +244 -286
- package/Materials/materialHelper.js.map +1 -1
- package/Materials/materialPluginBase.js +2 -1
- package/Materials/materialPluginBase.js.map +1 -1
- package/Materials/materialStencilState.js +2 -1
- package/Materials/materialStencilState.js.map +1 -1
- package/Materials/shaderMaterial.js +1 -1
- package/Materials/shaderMaterial.js.map +1 -1
- package/Materials/standardMaterial.d.ts +1 -1
- package/Materials/standardMaterial.js +2 -1
- package/Materials/standardMaterial.js.map +1 -1
- package/Materials/uniformBuffer.js +2 -2
- package/Materials/uniformBuffer.js.map +1 -1
- package/Maths/math.color.d.ts +392 -66
- package/Maths/math.color.js +541 -65
- package/Maths/math.color.js.map +1 -1
- package/Maths/math.like.d.ts +17 -28
- package/Maths/math.like.js.map +1 -1
- package/Maths/math.plane.d.ts +2 -1
- package/Maths/math.plane.js.map +1 -1
- package/Maths/math.polar.d.ts +1 -1
- package/Maths/math.polar.js.map +1 -1
- package/Maths/math.scalar.d.ts +6 -6
- package/Maths/math.scalar.functions.d.ts +51 -0
- package/Maths/math.scalar.functions.js +80 -0
- package/Maths/math.scalar.functions.js.map +1 -0
- package/Maths/math.scalar.js +48 -73
- package/Maths/math.scalar.js.map +1 -1
- package/Maths/math.vector.d.ts +571 -72
- package/Maths/math.vector.js +917 -119
- package/Maths/math.vector.js.map +1 -1
- package/Maths/math.viewport.d.ts +2 -1
- package/Maths/math.viewport.js.map +1 -1
- package/Maths/tensor.d.ts +411 -0
- package/Maths/tensor.js +3 -0
- package/Maths/tensor.js.map +1 -0
- package/Meshes/Node/Blocks/Set/setColorsBlock.js +20 -4
- package/Meshes/Node/Blocks/Set/setColorsBlock.js.map +1 -1
- package/Meshes/Node/nodeGeometry.js +2 -1
- package/Meshes/Node/nodeGeometry.js.map +1 -1
- package/Meshes/mesh.js +2 -2
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.d.ts +4 -0
- package/Meshes/mesh.vertexData.js +10 -0
- package/Meshes/mesh.vertexData.js.map +1 -1
- package/Meshes/transformNode.js +2 -1
- package/Meshes/transformNode.js.map +1 -1
- package/Misc/arrayTools.d.ts +2 -19
- package/Misc/arrayTools.js.map +1 -1
- package/Misc/decorators.d.ts +0 -80
- package/Misc/decorators.functions.d.ts +7 -0
- package/Misc/decorators.functions.js +52 -0
- package/Misc/decorators.functions.js.map +1 -0
- package/Misc/decorators.js +2 -318
- package/Misc/decorators.js.map +1 -1
- package/Misc/decorators.serialization.d.ts +81 -0
- package/Misc/decorators.serialization.js +269 -0
- package/Misc/decorators.serialization.js.map +1 -0
- package/Misc/index.d.ts +1 -0
- package/Misc/index.js +1 -0
- package/Misc/index.js.map +1 -1
- package/Misc/sceneRecorder.js +1 -1
- package/Misc/sceneRecorder.js.map +1 -1
- package/Misc/sceneSerializer.js +8 -1
- package/Misc/sceneSerializer.js.map +1 -1
- package/Misc/tools.functions.d.ts +14 -0
- package/Misc/tools.functions.js +23 -0
- package/Misc/tools.functions.js.map +1 -0
- package/Misc/tools.js +5 -6
- package/Misc/tools.js.map +1 -1
- package/Morph/morphTarget.js +2 -1
- package/Morph/morphTarget.js.map +1 -1
- package/Particles/EmitterTypes/boxParticleEmitter.js +8 -8
- package/Particles/EmitterTypes/boxParticleEmitter.js.map +1 -1
- package/Particles/baseParticleSystem.d.ts +8 -11
- package/Particles/baseParticleSystem.js +9 -40
- package/Particles/baseParticleSystem.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +71 -1
- package/Particles/gpuParticleSystem.js +102 -1
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particle.d.ts +3 -3
- package/Particles/particle.js +3 -3
- package/Particles/particle.js.map +1 -1
- package/Particles/particleSystem.d.ts +81 -455
- package/Particles/particleSystem.functions.d.ts +61 -0
- package/Particles/particleSystem.functions.js +79 -0
- package/Particles/particleSystem.functions.js.map +1 -0
- package/Particles/particleSystem.js +390 -1984
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/thinParticleSystem.d.ts +485 -0
- package/Particles/thinParticleSystem.js +1768 -0
- package/Particles/thinParticleSystem.js.map +1 -0
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js +2 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js +2 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js +2 -1
- package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js +2 -1
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js +2 -1
- package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.js.map +1 -1
- package/PostProcesses/blackAndWhitePostProcess.js +2 -1
- package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
- package/PostProcesses/blurPostProcess.js +2 -1
- package/PostProcesses/blurPostProcess.js.map +1 -1
- package/PostProcesses/chromaticAberrationPostProcess.js +2 -1
- package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
- package/PostProcesses/colorCorrectionPostProcess.js +2 -1
- package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
- package/PostProcesses/convolutionPostProcess.js +2 -1
- package/PostProcesses/convolutionPostProcess.js.map +1 -1
- package/PostProcesses/displayPassPostProcess.js +1 -1
- package/PostProcesses/displayPassPostProcess.js.map +1 -1
- package/PostProcesses/filterPostProcess.js +2 -1
- package/PostProcesses/filterPostProcess.js.map +1 -1
- package/PostProcesses/fxaaPostProcess.js +1 -1
- package/PostProcesses/fxaaPostProcess.js.map +1 -1
- package/PostProcesses/grainPostProcess.js +2 -1
- package/PostProcesses/grainPostProcess.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/PostProcesses/motionBlurPostProcess.js +2 -1
- package/PostProcesses/motionBlurPostProcess.js.map +1 -1
- package/PostProcesses/passPostProcess.js +1 -1
- package/PostProcesses/passPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.js +2 -1
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/refractionPostProcess.js +2 -1
- package/PostProcesses/refractionPostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.js +2 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceReflectionPostProcess.js +2 -1
- package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
- package/PostProcesses/sharpenPostProcess.js +2 -1
- package/PostProcesses/sharpenPostProcess.js.map +1 -1
- package/Probes/reflectionProbe.js +2 -1
- package/Probes/reflectionProbe.js.map +1 -1
- package/Sprites/spriteManager.d.ts +4 -0
- package/Sprites/spriteManager.js.map +1 -1
- package/XR/features/WebXRControllerTeleportation.d.ts +9 -0
- package/XR/features/WebXRControllerTeleportation.js +75 -31
- package/XR/features/WebXRControllerTeleportation.js.map +1 -1
- package/node.js +2 -1
- package/node.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +105 -0
- 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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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
|
-
})
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
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)
|
|
283
|
+
static BindLogDepth: (defines: any, effect: Effect, scene: Scene) => void;
|
|
284
284
|
}
|