@babylonjs/core 7.2.2 → 7.3.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/runtimeAnimation.d.ts +1 -0
- package/Animations/runtimeAnimation.js +12 -3
- package/Animations/runtimeAnimation.js.map +1 -1
- package/Audio/audioEngine.js +2 -2
- package/Audio/audioEngine.js.map +1 -1
- package/Bones/boneLookController.js +3 -0
- package/Bones/boneLookController.js.map +1 -1
- package/Buffers/buffer.d.ts +5 -5
- package/Buffers/buffer.js.map +1 -1
- package/Buffers/storageBuffer.d.ts +2 -2
- package/Buffers/storageBuffer.js.map +1 -1
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/flyCameraKeyboardInput.js.map +1 -1
- package/Cameras/Inputs/followCameraKeyboardMoveInput.js.map +1 -1
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.js.map +1 -1
- package/Compute/computeEffect.d.ts +3 -3
- package/Compute/computeEffect.js.map +1 -1
- package/Compute/computeShader.d.ts +10 -2
- package/Compute/computeShader.js +53 -35
- package/Compute/computeShader.js.map +1 -1
- package/DeviceInput/InputDevices/deviceSourceManager.d.ts +2 -2
- package/DeviceInput/InputDevices/deviceSourceManager.js.map +1 -1
- package/DeviceInput/internalDeviceSourceManager.d.ts +4 -4
- package/DeviceInput/internalDeviceSourceManager.js.map +1 -1
- package/DeviceInput/webDeviceInputSystem.d.ts +2 -2
- package/DeviceInput/webDeviceInputSystem.js.map +1 -1
- package/Engines/AbstractEngine/abstractEngine.alpha.d.ts +10 -0
- package/Engines/AbstractEngine/abstractEngine.alpha.js +29 -0
- package/Engines/AbstractEngine/abstractEngine.alpha.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.d.ts +17 -0
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.js +138 -0
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.dom.d.ts +61 -0
- package/Engines/AbstractEngine/abstractEngine.dom.js +27 -0
- package/Engines/AbstractEngine/abstractEngine.dom.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.loadingScreen.d.ts +30 -0
- package/Engines/AbstractEngine/abstractEngine.loadingScreen.js +48 -0
- package/Engines/AbstractEngine/abstractEngine.loadingScreen.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.query.d.ts +122 -0
- package/Engines/AbstractEngine/abstractEngine.query.js +175 -0
- package/Engines/AbstractEngine/abstractEngine.query.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.renderPass.d.ts +26 -0
- package/Engines/AbstractEngine/abstractEngine.renderPass.js +29 -0
- package/Engines/AbstractEngine/abstractEngine.renderPass.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.states.d.ts +162 -0
- package/Engines/AbstractEngine/abstractEngine.states.js +105 -0
- package/Engines/AbstractEngine/abstractEngine.states.js.map +1 -0
- package/Engines/AbstractEngine/abstractEngine.texture.d.ts +16 -0
- package/Engines/AbstractEngine/abstractEngine.texture.js +11 -0
- package/Engines/AbstractEngine/abstractEngine.texture.js.map +1 -0
- package/Engines/AbstractEngine/index.d.ts +8 -0
- package/Engines/AbstractEngine/index.js +10 -0
- package/Engines/AbstractEngine/index.js.map +1 -0
- package/Engines/Extensions/engine.alpha.d.ts +0 -24
- package/Engines/Extensions/engine.alpha.js +0 -35
- package/Engines/Extensions/engine.alpha.js.map +1 -1
- package/Engines/Extensions/engine.computeShader.d.ts +15 -2
- package/Engines/Extensions/engine.computeShader.js +5 -1
- package/Engines/Extensions/engine.computeShader.js.map +1 -1
- package/Engines/Extensions/engine.cubeTexture.d.ts +0 -8
- package/Engines/Extensions/engine.cubeTexture.js +2 -135
- package/Engines/Extensions/engine.cubeTexture.js.map +1 -1
- package/Engines/Extensions/engine.debugging.d.ts +2 -2
- package/Engines/Extensions/engine.debugging.js +5 -5
- package/Engines/Extensions/engine.debugging.js.map +1 -1
- package/Engines/Extensions/engine.dynamicTexture.js +3 -2
- package/Engines/Extensions/engine.dynamicTexture.js.map +1 -1
- package/Engines/Extensions/engine.multiview.js.map +1 -1
- package/Engines/Extensions/engine.query.d.ts +5 -120
- package/Engines/Extensions/engine.query.js +14 -150
- package/Engines/Extensions/engine.query.js.map +1 -1
- package/Engines/Extensions/engine.renderTarget.js +0 -9
- package/Engines/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/Extensions/engine.views.d.ts +3 -2
- package/Engines/Extensions/engine.views.js.map +1 -1
- package/Engines/Processors/iShaderProcessor.d.ts +2 -2
- package/Engines/Processors/iShaderProcessor.js.map +1 -1
- package/Engines/Processors/shaderProcessor.d.ts +3 -3
- package/Engines/Processors/shaderProcessor.js.map +1 -1
- package/Engines/WebGL/webGLRenderTargetWrapper.js +12 -9
- package/Engines/WebGL/webGLRenderTargetWrapper.js.map +1 -1
- package/Engines/WebGL/webGLShaderProcessors.d.ts +2 -2
- package/Engines/WebGL/webGLShaderProcessors.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.alpha.d.ts +35 -0
- package/Engines/WebGPU/Extensions/engine.alpha.js +4 -4
- package/Engines/WebGPU/Extensions/engine.alpha.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.computeShader.d.ts +9 -0
- package/Engines/WebGPU/Extensions/engine.computeShader.js +13 -2
- package/Engines/WebGPU/Extensions/engine.computeShader.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.cubeTexture.d.ts +78 -1
- package/Engines/WebGPU/Extensions/engine.cubeTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.dynamicTexture.d.ts +27 -1
- package/Engines/WebGPU/Extensions/engine.dynamicTexture.js +3 -3
- package/Engines/WebGPU/Extensions/engine.dynamicTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.externalTexture.d.ts +16 -0
- package/Engines/WebGPU/Extensions/engine.externalTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.multiRender.d.ts +55 -1
- package/Engines/WebGPU/Extensions/engine.multiRender.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.query.d.ts +1 -1
- package/Engines/WebGPU/Extensions/engine.query.js +1 -0
- package/Engines/WebGPU/Extensions/engine.query.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.rawTexture.d.ts +185 -1
- package/Engines/WebGPU/Extensions/engine.rawTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.readTexture.d.ts +10 -1
- package/Engines/WebGPU/Extensions/engine.readTexture.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTarget.d.ts +38 -1
- package/Engines/WebGPU/Extensions/engine.renderTarget.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.d.ts +13 -1
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.storageBuffer.d.ts +38 -1
- package/Engines/WebGPU/Extensions/engine.storageBuffer.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.textureSampler.d.ts +10 -0
- package/Engines/WebGPU/Extensions/engine.textureSampler.js.map +1 -1
- package/Engines/WebGPU/Extensions/engine.videoTexture.d.ts +14 -1
- package/Engines/WebGPU/Extensions/engine.videoTexture.js.map +1 -1
- package/Engines/WebGPU/webgpuShaderProcessorsGLSL.d.ts +2 -2
- package/Engines/WebGPU/webgpuShaderProcessorsGLSL.js.map +1 -1
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.d.ts +2 -0
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js +2 -0
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js.map +1 -1
- package/Engines/abstractEngine.d.ts +1695 -0
- package/Engines/abstractEngine.js +1362 -0
- package/Engines/abstractEngine.js.map +1 -0
- package/Engines/engine.common.d.ts +39 -0
- package/Engines/engine.common.js +226 -0
- package/Engines/engine.common.js.map +1 -0
- package/Engines/engine.d.ts +40 -447
- package/Engines/engine.js +64 -810
- package/Engines/engine.js.map +1 -1
- package/Engines/engineFactory.d.ts +2 -2
- package/Engines/engineFactory.js.map +1 -1
- package/Engines/engineStore.d.ts +4 -4
- package/Engines/engineStore.js.map +1 -1
- package/Engines/index.d.ts +3 -0
- package/Engines/index.js +3 -0
- package/Engines/index.js.map +1 -1
- package/Engines/nativeEngine.d.ts +1 -1
- package/Engines/nativeEngine.js +2 -1
- package/Engines/nativeEngine.js.map +1 -1
- package/Engines/nullEngine.d.ts +2 -2
- package/Engines/nullEngine.js +2 -3
- package/Engines/nullEngine.js.map +1 -1
- package/Engines/renderTargetWrapper.d.ts +3 -3
- package/Engines/renderTargetWrapper.js.map +1 -1
- package/Engines/thinEngine.d.ts +34 -597
- package/Engines/thinEngine.js +85 -1143
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/webgpuEngine.d.ts +147 -109
- package/Engines/webgpuEngine.js +249 -162
- package/Engines/webgpuEngine.js.map +1 -1
- package/Instrumentation/engineInstrumentation.d.ts +5 -4
- package/Instrumentation/engineInstrumentation.js.map +1 -1
- package/Layers/effectLayer.d.ts +2 -2
- package/Layers/effectLayer.js +3 -3
- package/Layers/effectLayer.js.map +1 -1
- package/Layers/effectLayerSceneComponent.js.map +1 -1
- package/Layers/glowLayer.js +3 -3
- package/Layers/glowLayer.js.map +1 -1
- package/Layers/highlightLayer.js +3 -3
- package/Layers/highlightLayer.js.map +1 -1
- package/Layers/layerSceneComponent.js.map +1 -1
- package/Loading/loadingScreen.js +2 -2
- package/Loading/loadingScreen.js.map +1 -1
- package/Loading/sceneLoader.d.ts +3 -3
- package/Loading/sceneLoader.js +1 -1
- package/Loading/sceneLoader.js.map +1 -1
- package/Materials/GreasedLine/greasedLinePluginMaterial.js.map +1 -1
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.js +6 -6
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/currentScreenBlock.d.ts +2 -3
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js +5 -5
- package/Materials/Node/Blocks/Dual/currentScreenBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/fogBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/fogBlock.js +4 -4
- package/Materials/Node/Blocks/Dual/fogBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/lightBlock.js +4 -4
- package/Materials/Node/Blocks/Dual/lightBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js +8 -7
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.js +9 -5
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.js.map +1 -1
- package/Materials/Node/Blocks/Dual/textureBlock.d.ts +4 -2
- package/Materials/Node/Blocks/Dual/textureBlock.js +43 -21
- package/Materials/Node/Blocks/Dual/textureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/TBNBlock.js +3 -3
- package/Materials/Node/Blocks/Fragment/TBNBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/derivativeBlock.js +9 -2
- package/Materials/Node/Blocks/Fragment/derivativeBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragCoordBlock.js +1 -1
- package/Materials/Node/Blocks/Fragment/fragCoordBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js +16 -8
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/frontFacingBlock.js +1 -1
- package/Materials/Node/Blocks/Fragment/frontFacingBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js +2 -2
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js +3 -3
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js +4 -4
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.js +2 -2
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js +3 -3
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/shadowMapBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Fragment/shadowMapBlock.js +4 -4
- package/Materials/Node/Blocks/Fragment/shadowMapBlock.js.map +1 -1
- package/Materials/Node/Blocks/Fragment/twirlBlock.js +9 -9
- package/Materials/Node/Blocks/Fragment/twirlBlock.js.map +1 -1
- package/Materials/Node/Blocks/Input/inputBlock.d.ts +6 -1
- package/Materials/Node/Blocks/Input/inputBlock.js +36 -12
- package/Materials/Node/Blocks/Input/inputBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/anisotropyBlock.d.ts +1 -1
- package/Materials/Node/Blocks/PBR/anisotropyBlock.js +1 -1
- package/Materials/Node/Blocks/PBR/anisotropyBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/clearCoatBlock.d.ts +1 -1
- package/Materials/Node/Blocks/PBR/clearCoatBlock.js +3 -3
- package/Materials/Node/Blocks/PBR/clearCoatBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.d.ts +1 -1
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +9 -9
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.d.ts +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.js +21 -21
- package/Materials/Node/Blocks/PBR/reflectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/refractionBlock.d.ts +1 -1
- package/Materials/Node/Blocks/PBR/refractionBlock.js +6 -6
- package/Materials/Node/Blocks/PBR/refractionBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.js +5 -0
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.js.map +1 -1
- package/Materials/Node/Blocks/Particle/particleBlendMultiplyBlock.js +2 -2
- package/Materials/Node/Blocks/Particle/particleBlendMultiplyBlock.js.map +1 -1
- package/Materials/Node/Blocks/Particle/particleRampGradientBlock.js +3 -3
- package/Materials/Node/Blocks/Particle/particleRampGradientBlock.js.map +1 -1
- package/Materials/Node/Blocks/Particle/particleTextureBlock.js +1 -1
- package/Materials/Node/Blocks/Particle/particleTextureBlock.js.map +1 -1
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.js +1 -1
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/bonesBlock.js +2 -2
- package/Materials/Node/Blocks/Vertex/bonesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/instancesBlock.js +5 -5
- package/Materials/Node/Blocks/Vertex/instancesBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.js +12 -12
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js +7 -7
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.js.map +1 -1
- package/Materials/Node/Blocks/Vertex/vertexOutputBlock.d.ts +1 -1
- package/Materials/Node/Blocks/Vertex/vertexOutputBlock.js +10 -3
- package/Materials/Node/Blocks/Vertex/vertexOutputBlock.js.map +1 -1
- package/Materials/Node/Blocks/addBlock.js +2 -1
- package/Materials/Node/Blocks/addBlock.js.map +1 -1
- package/Materials/Node/Blocks/arcTan2Block.js +3 -1
- package/Materials/Node/Blocks/arcTan2Block.js.map +1 -1
- package/Materials/Node/Blocks/clampBlock.js +1 -1
- package/Materials/Node/Blocks/clampBlock.js.map +1 -1
- package/Materials/Node/Blocks/cloudBlock.js +1 -1
- package/Materials/Node/Blocks/cloudBlock.js.map +1 -1
- package/Materials/Node/Blocks/colorMergerBlock.js +9 -7
- package/Materials/Node/Blocks/colorMergerBlock.js.map +1 -1
- package/Materials/Node/Blocks/colorSplitterBlock.js +5 -5
- package/Materials/Node/Blocks/colorSplitterBlock.js.map +1 -1
- package/Materials/Node/Blocks/conditionalBlock.js +18 -12
- package/Materials/Node/Blocks/conditionalBlock.js.map +1 -1
- package/Materials/Node/Blocks/crossBlock.js +1 -1
- package/Materials/Node/Blocks/crossBlock.js.map +1 -1
- package/Materials/Node/Blocks/curveBlock.js +48 -53
- package/Materials/Node/Blocks/curveBlock.js.map +1 -1
- package/Materials/Node/Blocks/customBlock.js +1 -1
- package/Materials/Node/Blocks/customBlock.js.map +1 -1
- package/Materials/Node/Blocks/desaturateBlock.js +5 -4
- package/Materials/Node/Blocks/desaturateBlock.js.map +1 -1
- package/Materials/Node/Blocks/distanceBlock.js +1 -1
- package/Materials/Node/Blocks/distanceBlock.js.map +1 -1
- package/Materials/Node/Blocks/divideBlock.js +2 -1
- package/Materials/Node/Blocks/divideBlock.js.map +1 -1
- package/Materials/Node/Blocks/dotBlock.js +1 -1
- package/Materials/Node/Blocks/dotBlock.js.map +1 -1
- package/Materials/Node/Blocks/elbowBlock.js +1 -1
- package/Materials/Node/Blocks/elbowBlock.js.map +1 -1
- package/Materials/Node/Blocks/fresnelBlock.js +1 -1
- package/Materials/Node/Blocks/fresnelBlock.js.map +1 -1
- package/Materials/Node/Blocks/gradientBlock.js +8 -7
- package/Materials/Node/Blocks/gradientBlock.js.map +1 -1
- package/Materials/Node/Blocks/lengthBlock.js +1 -1
- package/Materials/Node/Blocks/lengthBlock.js.map +1 -1
- package/Materials/Node/Blocks/lerpBlock.js +1 -1
- package/Materials/Node/Blocks/lerpBlock.js.map +1 -1
- package/Materials/Node/Blocks/matrixBuilderBlock.js +1 -1
- package/Materials/Node/Blocks/matrixBuilderBlock.js.map +1 -1
- package/Materials/Node/Blocks/matrixDeterminantBlock.js +1 -1
- package/Materials/Node/Blocks/matrixDeterminantBlock.js.map +1 -1
- package/Materials/Node/Blocks/matrixTransposeBlock.js +1 -1
- package/Materials/Node/Blocks/matrixTransposeBlock.js.map +1 -1
- package/Materials/Node/Blocks/maxBlock.js +1 -1
- package/Materials/Node/Blocks/maxBlock.js.map +1 -1
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js +1 -1
- package/Materials/Node/Blocks/meshAttributeExistsBlock.js.map +1 -1
- package/Materials/Node/Blocks/minBlock.js +1 -1
- package/Materials/Node/Blocks/minBlock.js.map +1 -1
- package/Materials/Node/Blocks/modBlock.js +1 -1
- package/Materials/Node/Blocks/modBlock.js.map +1 -1
- package/Materials/Node/Blocks/multiplyBlock.js +2 -1
- package/Materials/Node/Blocks/multiplyBlock.js.map +1 -1
- package/Materials/Node/Blocks/nLerpBlock.js +1 -1
- package/Materials/Node/Blocks/nLerpBlock.js.map +1 -1
- package/Materials/Node/Blocks/negateBlock.js +1 -1
- package/Materials/Node/Blocks/negateBlock.js.map +1 -1
- package/Materials/Node/Blocks/normalBlendBlock.js +1 -1
- package/Materials/Node/Blocks/normalBlendBlock.js.map +1 -1
- package/Materials/Node/Blocks/normalizeBlock.js +1 -1
- package/Materials/Node/Blocks/normalizeBlock.js.map +1 -1
- package/Materials/Node/Blocks/oneMinusBlock.js +1 -1
- package/Materials/Node/Blocks/oneMinusBlock.js.map +1 -1
- package/Materials/Node/Blocks/posterizeBlock.js +1 -1
- package/Materials/Node/Blocks/posterizeBlock.js.map +1 -1
- package/Materials/Node/Blocks/powBlock.js +1 -1
- package/Materials/Node/Blocks/powBlock.js.map +1 -1
- package/Materials/Node/Blocks/randomNumberBlock.js +1 -1
- package/Materials/Node/Blocks/randomNumberBlock.js.map +1 -1
- package/Materials/Node/Blocks/reciprocalBlock.js +2 -2
- package/Materials/Node/Blocks/reciprocalBlock.js.map +1 -1
- package/Materials/Node/Blocks/reflectBlock.js +1 -1
- package/Materials/Node/Blocks/reflectBlock.js.map +1 -1
- package/Materials/Node/Blocks/refractBlock.js +1 -1
- package/Materials/Node/Blocks/refractBlock.js.map +1 -1
- package/Materials/Node/Blocks/remapBlock.js +1 -1
- package/Materials/Node/Blocks/remapBlock.js.map +1 -1
- package/Materials/Node/Blocks/replaceColorBlock.js +1 -1
- package/Materials/Node/Blocks/replaceColorBlock.js.map +1 -1
- package/Materials/Node/Blocks/rotate2dBlock.js +1 -1
- package/Materials/Node/Blocks/rotate2dBlock.js.map +1 -1
- package/Materials/Node/Blocks/scaleBlock.js +1 -1
- package/Materials/Node/Blocks/scaleBlock.js.map +1 -1
- package/Materials/Node/Blocks/simplexPerlin3DBlock.js +1 -1
- package/Materials/Node/Blocks/simplexPerlin3DBlock.js.map +1 -1
- package/Materials/Node/Blocks/smoothStepBlock.js +3 -2
- package/Materials/Node/Blocks/smoothStepBlock.js.map +1 -1
- package/Materials/Node/Blocks/stepBlock.js +1 -1
- package/Materials/Node/Blocks/stepBlock.js.map +1 -1
- package/Materials/Node/Blocks/subtractBlock.js +2 -1
- package/Materials/Node/Blocks/subtractBlock.js.map +1 -1
- package/Materials/Node/Blocks/transformBlock.js +18 -10
- package/Materials/Node/Blocks/transformBlock.js.map +1 -1
- package/Materials/Node/Blocks/triPlanarBlock.d.ts +1 -1
- package/Materials/Node/Blocks/triPlanarBlock.js +2 -2
- package/Materials/Node/Blocks/triPlanarBlock.js.map +1 -1
- package/Materials/Node/Blocks/trigonometryBlock.js +1 -1
- package/Materials/Node/Blocks/trigonometryBlock.js.map +1 -1
- package/Materials/Node/Blocks/vectorMergerBlock.js +30 -27
- package/Materials/Node/Blocks/vectorMergerBlock.js.map +1 -1
- package/Materials/Node/Blocks/vectorSplitterBlock.js +9 -8
- package/Materials/Node/Blocks/vectorSplitterBlock.js.map +1 -1
- package/Materials/Node/Blocks/viewDirectionBlock.js +1 -1
- package/Materials/Node/Blocks/viewDirectionBlock.js.map +1 -1
- package/Materials/Node/Blocks/voronoiNoiseBlock.js +19 -8
- package/Materials/Node/Blocks/voronoiNoiseBlock.js.map +1 -1
- package/Materials/Node/Blocks/waveBlock.js +3 -3
- package/Materials/Node/Blocks/waveBlock.js.map +1 -1
- package/Materials/Node/Blocks/worleyNoise3DBlock.js +3 -3
- package/Materials/Node/Blocks/worleyNoise3DBlock.js.map +1 -1
- package/Materials/Node/nodeMaterial.d.ts +9 -3
- package/Materials/Node/nodeMaterial.js +29 -4
- package/Materials/Node/nodeMaterial.js.map +1 -1
- package/Materials/Node/nodeMaterialBlock.d.ts +0 -1
- package/Materials/Node/nodeMaterialBlock.js +6 -6
- package/Materials/Node/nodeMaterialBlock.js.map +1 -1
- package/Materials/Node/nodeMaterialBlockConnectionPoint.d.ts +4 -0
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js +12 -0
- package/Materials/Node/nodeMaterialBlockConnectionPoint.js.map +1 -1
- package/Materials/Node/nodeMaterialBuildState.d.ts +35 -3
- package/Materials/Node/nodeMaterialBuildState.js +169 -16
- package/Materials/Node/nodeMaterialBuildState.js.map +1 -1
- package/Materials/PBR/pbrSubSurfaceConfiguration.d.ts +18 -4
- package/Materials/PBR/pbrSubSurfaceConfiguration.js +60 -9
- package/Materials/PBR/pbrSubSurfaceConfiguration.js.map +1 -1
- package/Materials/Textures/Filtering/hdrFiltering.d.ts +2 -2
- package/Materials/Textures/Filtering/hdrFiltering.js.map +1 -1
- package/Materials/Textures/Loaders/basisTextureLoader.js +2 -2
- package/Materials/Textures/Loaders/basisTextureLoader.js.map +1 -1
- package/Materials/Textures/MultiviewRenderTarget.d.ts +1 -0
- package/Materials/Textures/MultiviewRenderTarget.js +1 -0
- package/Materials/Textures/MultiviewRenderTarget.js.map +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js +1 -1
- package/Materials/Textures/Procedurals/proceduralTexture.js.map +1 -1
- package/Materials/Textures/baseTexture.d.ts +3 -3
- package/Materials/Textures/baseTexture.js.map +1 -1
- package/Materials/Textures/colorGradingTexture.d.ts +2 -2
- package/Materials/Textures/colorGradingTexture.js.map +1 -1
- package/Materials/Textures/cubeTexture.d.ts +3 -2
- package/Materials/Textures/cubeTexture.js +1 -0
- package/Materials/Textures/cubeTexture.js.map +1 -1
- package/Materials/Textures/hdrCubeTexture.d.ts +2 -2
- package/Materials/Textures/hdrCubeTexture.js.map +1 -1
- package/Materials/Textures/htmlElementTexture.d.ts +2 -2
- package/Materials/Textures/htmlElementTexture.js.map +1 -1
- package/Materials/Textures/internalTexture.d.ts +3 -3
- package/Materials/Textures/internalTexture.js.map +1 -1
- package/Materials/Textures/rawTexture.d.ts +10 -10
- package/Materials/Textures/rawTexture.js.map +1 -1
- package/Materials/Textures/renderTargetTexture.d.ts +4 -4
- package/Materials/Textures/renderTargetTexture.js +4 -4
- package/Materials/Textures/renderTargetTexture.js.map +1 -1
- package/Materials/Textures/texture.d.ts +2 -2
- package/Materials/Textures/texture.js.map +1 -1
- package/Materials/Textures/thinTexture.d.ts +3 -3
- package/Materials/Textures/thinTexture.js +1 -1
- package/Materials/Textures/thinTexture.js.map +1 -1
- package/Materials/drawWrapper.d.ts +2 -3
- package/Materials/drawWrapper.functions.d.ts +8 -0
- package/Materials/drawWrapper.functions.js +9 -0
- package/Materials/drawWrapper.functions.js.map +1 -0
- package/Materials/drawWrapper.js +0 -3
- package/Materials/drawWrapper.js.map +1 -1
- package/Materials/effect.d.ts +4 -5
- package/Materials/effect.js.map +1 -1
- package/Materials/effectRenderer.d.ts +4 -4
- package/Materials/effectRenderer.js.map +1 -1
- package/Materials/index.d.ts +1 -0
- package/Materials/index.js +1 -0
- package/Materials/index.js.map +1 -1
- package/Materials/materialFlags.d.ts +6 -0
- package/Materials/materialFlags.js +15 -1
- package/Materials/materialFlags.js.map +1 -1
- package/Materials/materialHelper.functions.d.ts +2 -2
- package/Materials/materialHelper.functions.js.map +1 -1
- package/Materials/materialPluginBase.d.ts +4 -4
- package/Materials/materialPluginBase.js.map +1 -1
- package/Materials/materialPluginManager.d.ts +2 -2
- package/Materials/materialPluginManager.js.map +1 -1
- package/Materials/meshDebugPluginMaterial.js +1 -1
- package/Materials/meshDebugPluginMaterial.js.map +1 -1
- package/Materials/uniformBuffer.d.ts +2 -2
- package/Materials/uniformBuffer.js.map +1 -1
- package/Meshes/Builders/greasedLineBuilder.d.ts +6 -0
- package/Meshes/Builders/greasedLineBuilder.js +15 -8
- package/Meshes/Builders/greasedLineBuilder.js.map +1 -1
- package/Meshes/Compression/meshoptCompression.js +4 -3
- package/Meshes/Compression/meshoptCompression.js.map +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +2 -2
- package/Meshes/GreasedLine/greasedLineBaseMesh.js.map +1 -1
- package/Meshes/GreasedLine/greasedLineMesh.js +1 -1
- package/Meshes/GreasedLine/greasedLineMesh.js.map +1 -1
- package/Meshes/geometry.d.ts +2 -2
- package/Meshes/geometry.js +3 -2
- package/Meshes/geometry.js.map +1 -1
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/mesh.d.ts +3 -3
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/subMesh.d.ts +2 -2
- package/Meshes/subMesh.js.map +1 -1
- package/Misc/PerformanceViewer/performanceViewerCollectionStrategies.js.map +1 -1
- package/Misc/copyTextureToTexture.d.ts +2 -2
- package/Misc/copyTextureToTexture.js.map +1 -1
- package/Misc/dds.d.ts +3 -2
- package/Misc/dds.js +2 -1
- package/Misc/dds.js.map +1 -1
- package/Misc/dumpTools.d.ts +2 -2
- package/Misc/dumpTools.js.map +1 -1
- package/Misc/fileTools.js +3 -3
- package/Misc/fileTools.js.map +1 -1
- package/Misc/filesInput.d.ts +2 -2
- package/Misc/filesInput.js.map +1 -1
- package/Misc/khronosTextureContainer2.d.ts +8 -2
- package/Misc/khronosTextureContainer2.js +3 -2
- package/Misc/khronosTextureContainer2.js.map +1 -1
- package/Misc/minMaxReducer.d.ts +2 -2
- package/Misc/minMaxReducer.js.map +1 -1
- package/Misc/screenshotTools.d.ts +6 -6
- package/Misc/screenshotTools.js.map +1 -1
- package/Misc/textureTools.js.map +1 -1
- package/Misc/tools.d.ts +7 -7
- package/Misc/tools.functions.d.ts +26 -0
- package/Misc/tools.functions.js +62 -0
- package/Misc/tools.functions.js.map +1 -1
- package/Misc/tools.js.map +1 -1
- package/Misc/videoRecorder.d.ts +3 -3
- package/Misc/videoRecorder.js.map +1 -1
- package/Particles/baseParticleSystem.d.ts +2 -2
- package/Particles/baseParticleSystem.js.map +1 -1
- package/Particles/computeShaderParticleSystem.d.ts +2 -2
- package/Particles/computeShaderParticleSystem.js.map +1 -1
- package/Particles/gpuParticleSystem.d.ts +3 -3
- package/Particles/gpuParticleSystem.js +2 -2
- package/Particles/gpuParticleSystem.js.map +1 -1
- package/Particles/particle.js +1 -1
- package/Particles/particle.js.map +1 -1
- package/Particles/particleSystem.d.ts +3 -3
- package/Particles/particleSystem.js +3 -3
- package/Particles/particleSystem.js.map +1 -1
- package/Particles/particleSystemComponent.d.ts +2 -2
- package/Particles/particleSystemComponent.js +2 -2
- package/Particles/particleSystemComponent.js.map +1 -1
- package/Particles/subEmitter.d.ts +3 -3
- package/Particles/subEmitter.js.map +1 -1
- package/Particles/thinParticleSystem.d.ts +2 -2
- package/Particles/thinParticleSystem.js.map +1 -1
- package/Physics/v2/physicsBody.js +3 -3
- package/Physics/v2/physicsBody.js.map +1 -1
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.js.map +1 -1
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.js.map +1 -1
- package/PostProcesses/blackAndWhitePostProcess.d.ts +2 -2
- package/PostProcesses/blackAndWhitePostProcess.js.map +1 -1
- package/PostProcesses/bloomMergePostProcess.d.ts +2 -2
- package/PostProcesses/bloomMergePostProcess.js.map +1 -1
- package/PostProcesses/blurPostProcess.d.ts +2 -2
- package/PostProcesses/blurPostProcess.js.map +1 -1
- package/PostProcesses/chromaticAberrationPostProcess.d.ts +2 -2
- package/PostProcesses/chromaticAberrationPostProcess.js.map +1 -1
- package/PostProcesses/circleOfConfusionPostProcess.d.ts +2 -2
- package/PostProcesses/circleOfConfusionPostProcess.js.map +1 -1
- package/PostProcesses/colorCorrectionPostProcess.d.ts +2 -2
- package/PostProcesses/colorCorrectionPostProcess.js.map +1 -1
- package/PostProcesses/convolutionPostProcess.d.ts +2 -2
- package/PostProcesses/convolutionPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldBlurPostProcess.d.ts +2 -2
- package/PostProcesses/depthOfFieldBlurPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldEffect.js +1 -1
- package/PostProcesses/depthOfFieldEffect.js.map +1 -1
- package/PostProcesses/depthOfFieldMergePostProcess.d.ts +2 -2
- package/PostProcesses/depthOfFieldMergePostProcess.js.map +1 -1
- package/PostProcesses/displayPassPostProcess.d.ts +2 -2
- package/PostProcesses/displayPassPostProcess.js.map +1 -1
- package/PostProcesses/extractHighlightsPostProcess.d.ts +2 -2
- package/PostProcesses/extractHighlightsPostProcess.js.map +1 -1
- package/PostProcesses/filterPostProcess.d.ts +2 -2
- package/PostProcesses/filterPostProcess.js.map +1 -1
- package/PostProcesses/fxaaPostProcess.d.ts +2 -2
- package/PostProcesses/fxaaPostProcess.js +2 -2
- package/PostProcesses/fxaaPostProcess.js.map +1 -1
- package/PostProcesses/grainPostProcess.d.ts +2 -2
- package/PostProcesses/grainPostProcess.js.map +1 -1
- package/PostProcesses/imageProcessingPostProcess.d.ts +2 -2
- package/PostProcesses/imageProcessingPostProcess.js.map +1 -1
- package/PostProcesses/motionBlurPostProcess.d.ts +2 -2
- package/PostProcesses/motionBlurPostProcess.js.map +1 -1
- package/PostProcesses/passPostProcess.d.ts +3 -3
- package/PostProcesses/passPostProcess.js +2 -2
- package/PostProcesses/passPostProcess.js.map +1 -1
- package/PostProcesses/postProcess.d.ts +4 -5
- package/PostProcesses/postProcess.js +3 -3
- package/PostProcesses/postProcess.js.map +1 -1
- package/PostProcesses/refractionPostProcess.d.ts +2 -2
- package/PostProcesses/refractionPostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceCurvaturePostProcess.d.ts +2 -2
- package/PostProcesses/screenSpaceCurvaturePostProcess.js.map +1 -1
- package/PostProcesses/screenSpaceReflectionPostProcess.d.ts +2 -2
- package/PostProcesses/screenSpaceReflectionPostProcess.js.map +1 -1
- package/PostProcesses/sharpenPostProcess.d.ts +2 -2
- package/PostProcesses/sharpenPostProcess.js.map +1 -1
- package/PostProcesses/subSurfaceScatteringPostProcess.d.ts +2 -2
- package/PostProcesses/subSurfaceScatteringPostProcess.js.map +1 -1
- package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +2 -2
- package/PostProcesses/volumetricLightScatteringPostProcess.js.map +1 -1
- package/Rendering/GlobalIllumination/giRSMManager.js.map +1 -1
- package/Rendering/depthPeelingRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.d.ts +2 -2
- package/Rendering/fluidRenderer/fluidRenderingDepthTextureCopy.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingObject.d.ts +2 -2
- package/Rendering/fluidRenderer/fluidRenderingObject.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.d.ts +2 -2
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.js.map +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTextures.d.ts +2 -2
- package/Rendering/fluidRenderer/fluidRenderingTextures.js.map +1 -1
- package/Rendering/geometryBufferRenderer.js +24 -18
- package/Rendering/geometryBufferRenderer.js.map +1 -1
- package/Rendering/outlineRenderer.js.map +1 -1
- package/Rendering/prePassRenderer.js.map +1 -1
- package/Shaders/ShadersInclude/pbrBlockSubSurface.js +19 -3
- package/Shaders/ShadersInclude/pbrBlockSubSurface.js.map +1 -1
- package/Shaders/ShadersInclude/pbrFragmentDeclaration.js +4 -1
- package/Shaders/ShadersInclude/pbrFragmentDeclaration.js.map +1 -1
- package/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.js +1 -0
- package/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.js.map +1 -1
- package/Shaders/ShadersInclude/pbrVertexDeclaration.js +3 -0
- package/Shaders/ShadersInclude/pbrVertexDeclaration.js.map +1 -1
- package/Shaders/pbr.fragment.js +7 -0
- package/Shaders/pbr.fragment.js.map +1 -1
- package/Shaders/pbr.vertex.js +2 -0
- package/Shaders/pbr.vertex.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/fresnelFunction.d.ts +5 -0
- package/ShadersWGSL/ShadersInclude/fresnelFunction.js +13 -0
- package/ShadersWGSL/ShadersInclude/fresnelFunction.js.map +1 -0
- package/ShadersWGSL/ShadersInclude/helperFunctions.d.ts +5 -0
- package/ShadersWGSL/ShadersInclude/helperFunctions.js +68 -0
- package/ShadersWGSL/ShadersInclude/helperFunctions.js.map +1 -0
- package/Sprites/spriteRenderer.d.ts +2 -2
- package/Sprites/spriteRenderer.js.map +1 -1
- package/XR/features/WebXRDepthSensing.js.map +1 -1
- package/XR/features/WebXRImageTracking.js.map +1 -1
- package/XR/features/WebXRLayers.d.ts +2 -2
- package/XR/features/WebXRLayers.js.map +1 -1
- package/XR/features/WebXRLightEstimation.js.map +1 -1
- package/XR/features/WebXRRawCameraAccess.d.ts +1 -1
- package/XR/features/WebXRRawCameraAccess.js.map +1 -1
- package/XR/features/WebXRSpaceWarp.js +1 -3
- package/XR/features/WebXRSpaceWarp.js.map +1 -1
- package/XR/features/WebXRWalkingLocomotion.js.map +1 -1
- package/XR/webXRExperienceHelper.js.map +1 -1
- package/XR/webXRManagedOutputCanvas.d.ts +2 -2
- package/XR/webXRManagedOutputCanvas.js.map +1 -1
- package/XR/webXRRenderTargetTextureProvider.js.map +1 -1
- package/XR/webXRSessionManager.js.map +1 -1
- package/assetContainer.js.map +1 -1
- package/node.d.ts +2 -2
- package/node.js.map +1 -1
- package/package.json +1 -1
- package/scene.d.ts +3 -3
- package/scene.js.map +1 -1
package/Engines/engine.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
import { Observable } from "../Misc/observable";
|
|
3
2
|
import type { Nullable } from "../types";
|
|
4
3
|
import type { Scene } from "../scene";
|
|
5
4
|
import { InternalTexture } from "../Materials/Textures/internalTexture";
|
|
@@ -14,23 +13,19 @@ import type { IViewportLike, IColor4Like } from "../Maths/math.like";
|
|
|
14
13
|
import type { RenderTargetTexture } from "../Materials/Textures/renderTargetTexture";
|
|
15
14
|
import { PerformanceMonitor } from "../Misc/performanceMonitor";
|
|
16
15
|
import type { DataBuffer } from "../Buffers/dataBuffer";
|
|
17
|
-
import { PerfCounter } from "../Misc/perfCounter";
|
|
18
16
|
import type { RenderTargetWrapper } from "./renderTargetWrapper";
|
|
19
17
|
import "./Extensions/engine.alpha";
|
|
20
18
|
import "./Extensions/engine.readTexture";
|
|
21
19
|
import "./Extensions/engine.dynamicBuffer";
|
|
22
|
-
import
|
|
20
|
+
import "./AbstractEngine/abstractEngine.loadingScreen";
|
|
21
|
+
import "./AbstractEngine/abstractEngine.dom";
|
|
22
|
+
import "./AbstractEngine/abstractEngine.states";
|
|
23
|
+
import "./AbstractEngine/abstractEngine.renderPass";
|
|
24
|
+
import "./AbstractEngine/abstractEngine.texture";
|
|
23
25
|
import type { Material } from "../Materials/material";
|
|
24
26
|
import type { PostProcess } from "../PostProcesses/postProcess";
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/
|
|
28
|
-
interface IViewportOwnerLike {
|
|
29
|
-
/**
|
|
30
|
-
* Gets or sets the viewport
|
|
31
|
-
*/
|
|
32
|
-
viewport: IViewportLike;
|
|
33
|
-
}
|
|
27
|
+
import { AbstractEngine } from "./abstractEngine";
|
|
28
|
+
import "../Audio/audioEngine";
|
|
34
29
|
/**
|
|
35
30
|
* The engine class is responsible for interfacing with all lower-level APIs such as WebGL and Audio
|
|
36
31
|
*/
|
|
@@ -232,38 +227,16 @@ export declare class Engine extends ThinEngine {
|
|
|
232
227
|
*/
|
|
233
228
|
static get Version(): string;
|
|
234
229
|
/** Gets the list of created engines */
|
|
235
|
-
static get Instances():
|
|
230
|
+
static get Instances(): AbstractEngine[];
|
|
236
231
|
/**
|
|
237
232
|
* Gets the latest created engine
|
|
238
233
|
*/
|
|
239
|
-
static get LastCreatedEngine(): Nullable<
|
|
234
|
+
static get LastCreatedEngine(): Nullable<AbstractEngine>;
|
|
240
235
|
/**
|
|
241
236
|
* Gets the latest created scene
|
|
242
237
|
*/
|
|
243
238
|
static get LastCreatedScene(): Nullable<Scene>;
|
|
244
239
|
/** @internal */
|
|
245
|
-
/**
|
|
246
|
-
* Engine abstraction for loading and creating an image bitmap from a given source string.
|
|
247
|
-
* @param imageSource source to load the image from.
|
|
248
|
-
* @param options An object that sets options for the image's extraction.
|
|
249
|
-
* @returns ImageBitmap.
|
|
250
|
-
*/
|
|
251
|
-
_createImageBitmapFromSource(imageSource: string, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
252
|
-
/**
|
|
253
|
-
* Engine abstraction for createImageBitmap
|
|
254
|
-
* @param image source for image
|
|
255
|
-
* @param options An object that sets options for the image's extraction.
|
|
256
|
-
* @returns ImageBitmap
|
|
257
|
-
*/
|
|
258
|
-
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
259
|
-
/**
|
|
260
|
-
* Resize an image and returns the image data as an uint8array
|
|
261
|
-
* @param image image to resize
|
|
262
|
-
* @param bufferWidth destination buffer width
|
|
263
|
-
* @param bufferHeight destination buffer height
|
|
264
|
-
* @returns an uint8array containing RGBA values of bufferWidth * bufferHeight size
|
|
265
|
-
*/
|
|
266
|
-
resizeImageBitmap(image: HTMLImageElement | ImageBitmap, bufferWidth: number, bufferHeight: number): Uint8Array;
|
|
267
240
|
/**
|
|
268
241
|
* Will flag all materials in all scenes in all engines as dirty to trigger new shader compilation
|
|
269
242
|
* @param flag defines which part of the materials must be marked as dirty
|
|
@@ -277,136 +250,19 @@ export declare class Engine extends ThinEngine {
|
|
|
277
250
|
* @returns The loading screen
|
|
278
251
|
*/
|
|
279
252
|
static DefaultLoadingScreenFactory(canvas: HTMLCanvasElement): ILoadingScreen;
|
|
280
|
-
/**
|
|
281
|
-
* Method called to create the default rescale post process on each engine.
|
|
282
|
-
*/
|
|
283
|
-
static _RescalePostProcessFactory: Nullable<(engine: Engine) => PostProcess>;
|
|
284
|
-
/**
|
|
285
|
-
* Gets or sets a boolean to enable/disable IndexedDB support and avoid XHR on .manifest
|
|
286
|
-
**/
|
|
287
|
-
enableOfflineSupport: boolean;
|
|
288
|
-
/**
|
|
289
|
-
* Gets or sets a boolean to enable/disable checking manifest if IndexedDB support is enabled (js will always consider the database is up to date)
|
|
290
|
-
**/
|
|
291
|
-
disableManifestCheck: boolean;
|
|
292
|
-
/**
|
|
293
|
-
* Gets or sets a boolean to enable/disable the context menu (right-click) from appearing on the main canvas
|
|
294
|
-
*/
|
|
295
|
-
disableContextMenu: boolean;
|
|
296
|
-
/**
|
|
297
|
-
* Gets the list of created scenes
|
|
298
|
-
*/
|
|
299
|
-
scenes: Scene[];
|
|
300
|
-
/** @internal */
|
|
301
|
-
_virtualScenes: Scene[];
|
|
302
|
-
/**
|
|
303
|
-
* Event raised when a new scene is created
|
|
304
|
-
*/
|
|
305
|
-
onNewSceneAddedObservable: Observable<Scene>;
|
|
306
|
-
/**
|
|
307
|
-
* Gets the list of created postprocesses
|
|
308
|
-
*/
|
|
309
|
-
postProcesses: PostProcess[];
|
|
310
|
-
/**
|
|
311
|
-
* Gets a boolean indicating if the pointer is currently locked
|
|
312
|
-
*/
|
|
313
|
-
isPointerLock: boolean;
|
|
314
|
-
/**
|
|
315
|
-
* Observable event triggered each time the rendering canvas is resized
|
|
316
|
-
*/
|
|
317
|
-
onResizeObservable: Observable<Engine>;
|
|
318
|
-
/**
|
|
319
|
-
* Observable event triggered each time the canvas loses focus
|
|
320
|
-
*/
|
|
321
|
-
onCanvasBlurObservable: Observable<Engine>;
|
|
322
|
-
/**
|
|
323
|
-
* Observable event triggered each time the canvas gains focus
|
|
324
|
-
*/
|
|
325
|
-
onCanvasFocusObservable: Observable<Engine>;
|
|
326
|
-
/**
|
|
327
|
-
* Observable event triggered each time the canvas receives pointerout event
|
|
328
|
-
*/
|
|
329
|
-
onCanvasPointerOutObservable: Observable<PointerEvent>;
|
|
330
|
-
/**
|
|
331
|
-
* Observable raised when the engine begins a new frame
|
|
332
|
-
*/
|
|
333
|
-
onBeginFrameObservable: Observable<Engine>;
|
|
334
253
|
/**
|
|
335
254
|
* If set, will be used to request the next animation frame for the render loop
|
|
336
255
|
*/
|
|
337
256
|
customAnimationFrameRequester: Nullable<ICustomAnimationFrameRequester>;
|
|
338
|
-
/**
|
|
339
|
-
* Observable raised when the engine ends the current frame
|
|
340
|
-
*/
|
|
341
|
-
onEndFrameObservable: Observable<Engine>;
|
|
342
|
-
/**
|
|
343
|
-
* Observable raised when the engine is about to compile a shader
|
|
344
|
-
*/
|
|
345
|
-
onBeforeShaderCompilationObservable: Observable<Engine>;
|
|
346
|
-
/**
|
|
347
|
-
* Observable raised when the engine has just compiled a shader
|
|
348
|
-
*/
|
|
349
|
-
onAfterShaderCompilationObservable: Observable<Engine>;
|
|
350
|
-
/**
|
|
351
|
-
* Gets the audio engine
|
|
352
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/audio/playingSoundsMusic
|
|
353
|
-
* @ignorenaming
|
|
354
|
-
*/
|
|
355
|
-
static audioEngine: Nullable<IAudioEngine>;
|
|
356
|
-
/**
|
|
357
|
-
* Default AudioEngine factory responsible of creating the Audio Engine.
|
|
358
|
-
* By default, this will create a BabylonJS Audio Engine if the workload has been embedded.
|
|
359
|
-
*/
|
|
360
|
-
static AudioEngineFactory: (hostElement: Nullable<HTMLElement>, audioContext: Nullable<AudioContext>, audioDestination: Nullable<AudioDestinationNode | MediaStreamAudioDestinationNode>) => IAudioEngine;
|
|
361
|
-
/**
|
|
362
|
-
* Default offline support factory responsible of creating a tool used to store data locally.
|
|
363
|
-
* By default, this will create a Database object if the workload has been embedded.
|
|
364
|
-
*/
|
|
365
|
-
static OfflineProviderFactory: (urlToScene: string, callbackManifestChecked: (checked: boolean) => any, disableManifestCheck: boolean) => IOfflineProvider;
|
|
366
|
-
private _loadingScreen;
|
|
367
|
-
private _pointerLockRequested;
|
|
368
257
|
private _rescalePostProcess;
|
|
369
|
-
protected _deterministicLockstep: boolean;
|
|
370
|
-
protected _lockstepMaxSteps: number;
|
|
371
|
-
protected _timeStep: number;
|
|
372
258
|
protected get _supportsHardwareTextureRescaling(): boolean;
|
|
373
|
-
private
|
|
374
|
-
private _deltaTime;
|
|
375
|
-
/** @internal */
|
|
376
|
-
_drawCalls: PerfCounter;
|
|
377
|
-
/** Gets or sets the tab index to set to the rendering canvas. 1 is the minimum value to set to be able to capture keyboard events */
|
|
378
|
-
canvasTabIndex: number;
|
|
379
|
-
/**
|
|
380
|
-
* Turn this value on if you want to pause FPS computation when in background
|
|
381
|
-
*/
|
|
382
|
-
disablePerformanceMonitorInBackground: boolean;
|
|
259
|
+
private _measureFps;
|
|
383
260
|
private _performanceMonitor;
|
|
384
261
|
/**
|
|
385
262
|
* Gets the performance monitor attached to this engine
|
|
386
263
|
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/optimize_your_scene#engineinstrumentation
|
|
387
264
|
*/
|
|
388
265
|
get performanceMonitor(): PerformanceMonitor;
|
|
389
|
-
private _onFocus;
|
|
390
|
-
private _onBlur;
|
|
391
|
-
private _onCanvasPointerOut;
|
|
392
|
-
private _onCanvasBlur;
|
|
393
|
-
private _onCanvasFocus;
|
|
394
|
-
private _onCanvasContextMenu;
|
|
395
|
-
private _onFullscreenChange;
|
|
396
|
-
private _onPointerLockChange;
|
|
397
|
-
protected _compatibilityMode: boolean;
|
|
398
|
-
/**
|
|
399
|
-
* (WebGPU only) True (default) to be in compatibility mode, meaning rendering all existing scenes without artifacts (same rendering than WebGL).
|
|
400
|
-
* Setting the property to false will improve performances but may not work in some scenes if some precautions are not taken.
|
|
401
|
-
* See https://doc.babylonjs.com/setup/support/webGPU/webGPUOptimization/webGPUNonCompatibilityMode for more details
|
|
402
|
-
*/
|
|
403
|
-
get compatibilityMode(): boolean;
|
|
404
|
-
set compatibilityMode(mode: boolean);
|
|
405
|
-
/**
|
|
406
|
-
* Gets the HTML element used to attach event listeners
|
|
407
|
-
* @returns a HTML element
|
|
408
|
-
*/
|
|
409
|
-
getInputElement(): Nullable<HTMLElement>;
|
|
410
266
|
/**
|
|
411
267
|
* Creates a new engine
|
|
412
268
|
* @param canvasOrContext defines the canvas or WebGL context to use for rendering. If you provide a WebGL context, Babylon.js will not hook events on the canvas (like pointers, keyboards, etc...) so no event observables will be available. This is mostly used when Babylon.js is used as a plugin on a system which already used the WebGL context
|
|
@@ -421,144 +277,37 @@ export declare class Engine extends ThinEngine {
|
|
|
421
277
|
* @param canvas The canvas associated with this instance of the engine.
|
|
422
278
|
*/
|
|
423
279
|
protected _sharedInit(canvas: HTMLCanvasElement): void;
|
|
424
|
-
/** @internal */
|
|
425
|
-
_verifyPointerLock(): void;
|
|
426
280
|
/**
|
|
427
|
-
*
|
|
428
|
-
* @param
|
|
429
|
-
* @param
|
|
430
|
-
* @
|
|
431
|
-
|
|
432
|
-
getAspectRatio(viewportOwner: IViewportOwnerLike, useScreen?: boolean): number;
|
|
433
|
-
/**
|
|
434
|
-
* Gets current screen aspect ratio
|
|
435
|
-
* @returns a number defining the aspect ratio
|
|
436
|
-
*/
|
|
437
|
-
getScreenAspectRatio(): number;
|
|
438
|
-
/**
|
|
439
|
-
* Gets the client rect of the HTML canvas attached with the current webGL context
|
|
440
|
-
* @returns a client rectangle
|
|
441
|
-
*/
|
|
442
|
-
getRenderingCanvasClientRect(): Nullable<ClientRect>;
|
|
443
|
-
/**
|
|
444
|
-
* Gets the client rect of the HTML element used for events
|
|
445
|
-
* @returns a client rectangle
|
|
281
|
+
* Resize an image and returns the image data as an uint8array
|
|
282
|
+
* @param image image to resize
|
|
283
|
+
* @param bufferWidth destination buffer width
|
|
284
|
+
* @param bufferHeight destination buffer height
|
|
285
|
+
* @returns an uint8array containing RGBA values of bufferWidth * bufferHeight size
|
|
446
286
|
*/
|
|
447
|
-
|
|
287
|
+
resizeImageBitmap(image: HTMLImageElement | ImageBitmap, bufferWidth: number, bufferHeight: number): Uint8Array;
|
|
448
288
|
/**
|
|
449
|
-
*
|
|
450
|
-
* @
|
|
451
|
-
* @
|
|
289
|
+
* Engine abstraction for loading and creating an image bitmap from a given source string.
|
|
290
|
+
* @param imageSource source to load the image from.
|
|
291
|
+
* @param options An object that sets options for the image's extraction.
|
|
292
|
+
* @returns ImageBitmap
|
|
452
293
|
*/
|
|
453
|
-
|
|
294
|
+
_createImageBitmapFromSource(imageSource: string, options?: ImageBitmapOptions): Promise<ImageBitmap>;
|
|
454
295
|
/**
|
|
455
|
-
*
|
|
456
|
-
* @
|
|
457
|
-
* @returns the max steps
|
|
296
|
+
* Toggle full screen mode
|
|
297
|
+
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
458
298
|
*/
|
|
459
|
-
|
|
299
|
+
switchFullscreen(requestPointerLock: boolean): void;
|
|
460
300
|
/**
|
|
461
|
-
*
|
|
462
|
-
* @
|
|
301
|
+
* Enters full screen mode
|
|
302
|
+
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
463
303
|
*/
|
|
464
|
-
|
|
304
|
+
enterFullscreen(requestPointerLock: boolean): void;
|
|
465
305
|
/**
|
|
466
|
-
*
|
|
467
|
-
* @param texture defines the render target texture to use
|
|
468
|
-
* @param unbind defines whether or not to unbind the texture after generation. Defaults to true.
|
|
306
|
+
* Exits full screen mode
|
|
469
307
|
*/
|
|
308
|
+
exitFullscreen(): void;
|
|
470
309
|
generateMipMapsForCubemap(texture: InternalTexture, unbind?: boolean): void;
|
|
471
310
|
/** States */
|
|
472
|
-
/**
|
|
473
|
-
* Gets a boolean indicating if depth writing is enabled
|
|
474
|
-
* @returns the current depth writing state
|
|
475
|
-
*/
|
|
476
|
-
getDepthWrite(): boolean;
|
|
477
|
-
/**
|
|
478
|
-
* Enable or disable depth writing
|
|
479
|
-
* @param enable defines the state to set
|
|
480
|
-
*/
|
|
481
|
-
setDepthWrite(enable: boolean): void;
|
|
482
|
-
/**
|
|
483
|
-
* Gets a boolean indicating if stencil buffer is enabled
|
|
484
|
-
* @returns the current stencil buffer state
|
|
485
|
-
*/
|
|
486
|
-
getStencilBuffer(): boolean;
|
|
487
|
-
/**
|
|
488
|
-
* Enable or disable the stencil buffer
|
|
489
|
-
* @param enable defines if the stencil buffer must be enabled or disabled
|
|
490
|
-
*/
|
|
491
|
-
setStencilBuffer(enable: boolean): void;
|
|
492
|
-
/**
|
|
493
|
-
* Gets the current stencil mask
|
|
494
|
-
* @returns a number defining the new stencil mask to use
|
|
495
|
-
*/
|
|
496
|
-
getStencilMask(): number;
|
|
497
|
-
/**
|
|
498
|
-
* Sets the current stencil mask
|
|
499
|
-
* @param mask defines the new stencil mask to use
|
|
500
|
-
*/
|
|
501
|
-
setStencilMask(mask: number): void;
|
|
502
|
-
/**
|
|
503
|
-
* Gets the current stencil function
|
|
504
|
-
* @returns a number defining the stencil function to use
|
|
505
|
-
*/
|
|
506
|
-
getStencilFunction(): number;
|
|
507
|
-
/**
|
|
508
|
-
* Gets the current stencil reference value
|
|
509
|
-
* @returns a number defining the stencil reference value to use
|
|
510
|
-
*/
|
|
511
|
-
getStencilFunctionReference(): number;
|
|
512
|
-
/**
|
|
513
|
-
* Gets the current stencil mask
|
|
514
|
-
* @returns a number defining the stencil mask to use
|
|
515
|
-
*/
|
|
516
|
-
getStencilFunctionMask(): number;
|
|
517
|
-
/**
|
|
518
|
-
* Sets the current stencil function
|
|
519
|
-
* @param stencilFunc defines the new stencil function to use
|
|
520
|
-
*/
|
|
521
|
-
setStencilFunction(stencilFunc: number): void;
|
|
522
|
-
/**
|
|
523
|
-
* Sets the current stencil reference
|
|
524
|
-
* @param reference defines the new stencil reference to use
|
|
525
|
-
*/
|
|
526
|
-
setStencilFunctionReference(reference: number): void;
|
|
527
|
-
/**
|
|
528
|
-
* Sets the current stencil mask
|
|
529
|
-
* @param mask defines the new stencil mask to use
|
|
530
|
-
*/
|
|
531
|
-
setStencilFunctionMask(mask: number): void;
|
|
532
|
-
/**
|
|
533
|
-
* Gets the current stencil operation when stencil fails
|
|
534
|
-
* @returns a number defining stencil operation to use when stencil fails
|
|
535
|
-
*/
|
|
536
|
-
getStencilOperationFail(): number;
|
|
537
|
-
/**
|
|
538
|
-
* Gets the current stencil operation when depth fails
|
|
539
|
-
* @returns a number defining stencil operation to use when depth fails
|
|
540
|
-
*/
|
|
541
|
-
getStencilOperationDepthFail(): number;
|
|
542
|
-
/**
|
|
543
|
-
* Gets the current stencil operation when stencil passes
|
|
544
|
-
* @returns a number defining stencil operation to use when stencil passes
|
|
545
|
-
*/
|
|
546
|
-
getStencilOperationPass(): number;
|
|
547
|
-
/**
|
|
548
|
-
* Sets the stencil operation to use when stencil fails
|
|
549
|
-
* @param operation defines the stencil operation to use when stencil fails
|
|
550
|
-
*/
|
|
551
|
-
setStencilOperationFail(operation: number): void;
|
|
552
|
-
/**
|
|
553
|
-
* Sets the stencil operation to use when depth fails
|
|
554
|
-
* @param operation defines the stencil operation to use when depth fails
|
|
555
|
-
*/
|
|
556
|
-
setStencilOperationDepthFail(operation: number): void;
|
|
557
|
-
/**
|
|
558
|
-
* Sets the stencil operation to use when stencil passes
|
|
559
|
-
* @param operation defines the stencil operation to use when stencil passes
|
|
560
|
-
*/
|
|
561
|
-
setStencilOperationPass(operation: number): void;
|
|
562
311
|
/**
|
|
563
312
|
* Sets a boolean indicating if the dithering state is enabled or disabled
|
|
564
313
|
* @param value defines the dithering state
|
|
@@ -569,47 +318,6 @@ export declare class Engine extends ThinEngine {
|
|
|
569
318
|
* @param value defines the rasterizer state
|
|
570
319
|
*/
|
|
571
320
|
setRasterizerState(value: boolean): void;
|
|
572
|
-
/**
|
|
573
|
-
* Gets the current depth function
|
|
574
|
-
* @returns a number defining the depth function
|
|
575
|
-
*/
|
|
576
|
-
getDepthFunction(): Nullable<number>;
|
|
577
|
-
/**
|
|
578
|
-
* Sets the current depth function
|
|
579
|
-
* @param depthFunc defines the function to use
|
|
580
|
-
*/
|
|
581
|
-
setDepthFunction(depthFunc: number): void;
|
|
582
|
-
/**
|
|
583
|
-
* Sets the current depth function to GREATER
|
|
584
|
-
*/
|
|
585
|
-
setDepthFunctionToGreater(): void;
|
|
586
|
-
/**
|
|
587
|
-
* Sets the current depth function to GEQUAL
|
|
588
|
-
*/
|
|
589
|
-
setDepthFunctionToGreaterOrEqual(): void;
|
|
590
|
-
/**
|
|
591
|
-
* Sets the current depth function to LESS
|
|
592
|
-
*/
|
|
593
|
-
setDepthFunctionToLess(): void;
|
|
594
|
-
/**
|
|
595
|
-
* Sets the current depth function to LEQUAL
|
|
596
|
-
*/
|
|
597
|
-
setDepthFunctionToLessOrEqual(): void;
|
|
598
|
-
private _cachedStencilBuffer;
|
|
599
|
-
private _cachedStencilFunction;
|
|
600
|
-
private _cachedStencilMask;
|
|
601
|
-
private _cachedStencilOperationPass;
|
|
602
|
-
private _cachedStencilOperationFail;
|
|
603
|
-
private _cachedStencilOperationDepthFail;
|
|
604
|
-
private _cachedStencilReference;
|
|
605
|
-
/**
|
|
606
|
-
* Caches the state of the stencil buffer
|
|
607
|
-
*/
|
|
608
|
-
cacheStencilState(): void;
|
|
609
|
-
/**
|
|
610
|
-
* Restores the state of the stencil buffer
|
|
611
|
-
*/
|
|
612
|
-
restoreStencilState(): void;
|
|
613
321
|
/**
|
|
614
322
|
* Directly set the WebGL Viewport
|
|
615
323
|
* @param x defines the x coordinate of the viewport (in screen space)
|
|
@@ -643,7 +351,6 @@ export declare class Engine extends ThinEngine {
|
|
|
643
351
|
/**
|
|
644
352
|
* @internal
|
|
645
353
|
*/
|
|
646
|
-
_reportDrawCall(numDrawCalls?: number): void;
|
|
647
354
|
_loadFileAsync(url: string, offlineProvider?: IOfflineProvider, useArrayBuffer?: false): Promise<string>;
|
|
648
355
|
_loadFileAsync(url: string, offlineProvider?: IOfflineProvider, useArrayBuffer?: true): Promise<ArrayBuffer>;
|
|
649
356
|
/**
|
|
@@ -667,7 +374,7 @@ export declare class Engine extends ThinEngine {
|
|
|
667
374
|
*/
|
|
668
375
|
setDepthStencilTexture(channel: number, uniform: Nullable<WebGLUniformLocation>, texture: Nullable<RenderTargetTexture>, name?: string): void;
|
|
669
376
|
/**
|
|
670
|
-
* Sets a texture to the
|
|
377
|
+
* Sets a texture to the context from a postprocess
|
|
671
378
|
* @param channel defines the channel to use
|
|
672
379
|
* @param postProcess defines the source postprocess
|
|
673
380
|
* @param name name of the channel
|
|
@@ -690,27 +397,22 @@ export declare class Engine extends ThinEngine {
|
|
|
690
397
|
framebufferHeight: number;
|
|
691
398
|
}>);
|
|
692
399
|
protected _rebuildBuffers(): void;
|
|
693
|
-
|
|
400
|
+
/**
|
|
401
|
+
* Get Font size information
|
|
402
|
+
* @param font font name
|
|
403
|
+
* @returns an object containing ascent, height and descent
|
|
404
|
+
*/
|
|
405
|
+
getFontOffset(font: string): {
|
|
406
|
+
ascent: number;
|
|
407
|
+
height: number;
|
|
408
|
+
descent: number;
|
|
409
|
+
};
|
|
694
410
|
/** @internal */
|
|
695
411
|
_renderFrame(): void;
|
|
696
412
|
protected _cancelFrame(): void;
|
|
697
413
|
_renderLoop(): void;
|
|
698
414
|
/** @internal */
|
|
699
415
|
_renderViews(): boolean;
|
|
700
|
-
/**
|
|
701
|
-
* Toggle full screen mode
|
|
702
|
-
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
703
|
-
*/
|
|
704
|
-
switchFullscreen(requestPointerLock: boolean): void;
|
|
705
|
-
/**
|
|
706
|
-
* Enters full screen mode
|
|
707
|
-
* @param requestPointerLock defines if a pointer lock should be requested from the user
|
|
708
|
-
*/
|
|
709
|
-
enterFullscreen(requestPointerLock: boolean): void;
|
|
710
|
-
/**
|
|
711
|
-
* Exits full screen mode
|
|
712
|
-
*/
|
|
713
|
-
exitFullscreen(): void;
|
|
714
416
|
/**
|
|
715
417
|
* Enters Pointerlock mode
|
|
716
418
|
*/
|
|
@@ -723,10 +425,6 @@ export declare class Engine extends ThinEngine {
|
|
|
723
425
|
* Begin a new frame
|
|
724
426
|
*/
|
|
725
427
|
beginFrame(): void;
|
|
726
|
-
/**
|
|
727
|
-
* End the current frame
|
|
728
|
-
*/
|
|
729
|
-
endFrame(): void;
|
|
730
428
|
/**
|
|
731
429
|
* Force a specific size of the canvas
|
|
732
430
|
* @param width defines the new canvas' width
|
|
@@ -746,33 +444,6 @@ export declare class Engine extends ThinEngine {
|
|
|
746
444
|
* @internal
|
|
747
445
|
*/
|
|
748
446
|
_releaseRenderTargetWrapper(rtWrapper: RenderTargetWrapper): void;
|
|
749
|
-
protected static _RenderPassIdCounter: number;
|
|
750
|
-
/**
|
|
751
|
-
* Gets or sets the current render pass id
|
|
752
|
-
*/
|
|
753
|
-
currentRenderPassId: number;
|
|
754
|
-
private _renderPassNames;
|
|
755
|
-
/**
|
|
756
|
-
* Gets the names of the render passes that are currently created
|
|
757
|
-
* @returns list of the render pass names
|
|
758
|
-
*/
|
|
759
|
-
getRenderPassNames(): string[];
|
|
760
|
-
/**
|
|
761
|
-
* Gets the name of the current render pass
|
|
762
|
-
* @returns name of the current render pass
|
|
763
|
-
*/
|
|
764
|
-
getCurrentRenderPassName(): string;
|
|
765
|
-
/**
|
|
766
|
-
* Creates a render pass id
|
|
767
|
-
* @param name Name of the render pass (for debug purpose only)
|
|
768
|
-
* @returns the id of the new render pass
|
|
769
|
-
*/
|
|
770
|
-
createRenderPassId(name?: string): number;
|
|
771
|
-
/**
|
|
772
|
-
* Releases a render pass id
|
|
773
|
-
* @param id id of the render pass to release
|
|
774
|
-
*/
|
|
775
|
-
releaseRenderPassId(id: number): void;
|
|
776
447
|
/**
|
|
777
448
|
* @internal
|
|
778
449
|
* Rescales a texture
|
|
@@ -783,17 +454,6 @@ export declare class Engine extends ThinEngine {
|
|
|
783
454
|
* @param onComplete callback to be called when resize has completed
|
|
784
455
|
*/
|
|
785
456
|
_rescaleTexture(source: InternalTexture, destination: InternalTexture, scene: Nullable<any>, internalFormat: number, onComplete: () => void): void;
|
|
786
|
-
/**
|
|
787
|
-
* Gets the current framerate
|
|
788
|
-
* @returns a number representing the framerate
|
|
789
|
-
*/
|
|
790
|
-
getFps(): number;
|
|
791
|
-
/**
|
|
792
|
-
* Gets the time spent between current and previous frame
|
|
793
|
-
* @returns a number representing the delta time in ms
|
|
794
|
-
*/
|
|
795
|
-
getDeltaTime(): number;
|
|
796
|
-
private _measureFps;
|
|
797
457
|
/**
|
|
798
458
|
* Wraps an external web gl texture in a Babylon texture.
|
|
799
459
|
* @param texture defines the external texture
|
|
@@ -833,74 +493,7 @@ export declare class Engine extends ThinEngine {
|
|
|
833
493
|
*/
|
|
834
494
|
_readPixelsAsync(x: number, y: number, w: number, h: number, format: number, type: number, outputBuffer: ArrayBufferView): Promise<ArrayBufferView> | null;
|
|
835
495
|
dispose(): void;
|
|
836
|
-
private _disableTouchAction;
|
|
837
|
-
/**
|
|
838
|
-
* Display the loading screen
|
|
839
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
840
|
-
*/
|
|
841
|
-
displayLoadingUI(): void;
|
|
842
|
-
/**
|
|
843
|
-
* Hide the loading screen
|
|
844
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
845
|
-
*/
|
|
846
|
-
hideLoadingUI(): void;
|
|
847
|
-
/**
|
|
848
|
-
* Gets the current loading screen object
|
|
849
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
850
|
-
*/
|
|
851
|
-
get loadingScreen(): ILoadingScreen;
|
|
852
|
-
/**
|
|
853
|
-
* Sets the current loading screen object
|
|
854
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
855
|
-
*/
|
|
856
|
-
set loadingScreen(loadingScreen: ILoadingScreen);
|
|
857
|
-
/**
|
|
858
|
-
* Sets the current loading screen text
|
|
859
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
860
|
-
*/
|
|
861
|
-
set loadingUIText(text: string);
|
|
862
|
-
/**
|
|
863
|
-
* Sets the current loading screen background color
|
|
864
|
-
* @see https://doc.babylonjs.com/features/featuresDeepDive/scene/customLoadingScreen
|
|
865
|
-
*/
|
|
866
|
-
set loadingUIBackgroundColor(color: string);
|
|
867
|
-
/**
|
|
868
|
-
* creates and returns a new video element
|
|
869
|
-
* @param constraints video constraints
|
|
870
|
-
* @returns video element
|
|
871
|
-
*/
|
|
872
|
-
createVideoElement(constraints: MediaTrackConstraints): any;
|
|
873
|
-
/** Pointerlock and fullscreen */
|
|
874
|
-
/**
|
|
875
|
-
* Ask the browser to promote the current element to pointerlock mode
|
|
876
|
-
* @param element defines the DOM element to promote
|
|
877
|
-
*/
|
|
878
|
-
static _RequestPointerlock(element: HTMLElement): void;
|
|
879
|
-
/**
|
|
880
|
-
* Asks the browser to exit pointerlock mode
|
|
881
|
-
*/
|
|
882
|
-
static _ExitPointerlock(): void;
|
|
883
|
-
/**
|
|
884
|
-
* Ask the browser to promote the current element to fullscreen rendering mode
|
|
885
|
-
* @param element defines the DOM element to promote
|
|
886
|
-
*/
|
|
887
|
-
static _RequestFullscreen(element: HTMLElement): void;
|
|
888
|
-
/**
|
|
889
|
-
* Asks the browser to exit fullscreen mode
|
|
890
|
-
*/
|
|
891
|
-
static _ExitFullscreen(): void;
|
|
892
|
-
/**
|
|
893
|
-
* Get Font size information
|
|
894
|
-
* @param font font name
|
|
895
|
-
* @returns an object containing ascent, height and descent
|
|
896
|
-
*/
|
|
897
|
-
getFontOffset(font: string): {
|
|
898
|
-
ascent: number;
|
|
899
|
-
height: number;
|
|
900
|
-
descent: number;
|
|
901
|
-
};
|
|
902
496
|
}
|
|
903
|
-
export {};
|
|
904
497
|
|
|
905
498
|
// Mixins
|
|
906
499
|
declare global{
|