@babylonjs/core 8.2.0 → 8.2.2
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/Actions/abstractActionManager.d.ts +4 -4
- package/Actions/action.d.ts +9 -9
- package/Actions/actionEvent.d.ts +5 -5
- package/Actions/actionManager.d.ts +6 -6
- package/Actions/condition.d.ts +1 -1
- package/Actions/directActions.d.ts +3 -3
- package/Actions/directAudioActions.d.ts +3 -3
- package/Actions/index.d.ts +8 -8
- package/Actions/interpolateValueAction.d.ts +3 -3
- package/Animations/animatable.core.d.ts +2 -2
- package/Animations/animatable.d.ts +8 -8
- package/Animations/animatable.interface.d.ts +2 -2
- package/Animations/animation.d.ts +13 -13
- package/Animations/animationGroup.d.ts +8 -8
- package/Animations/animationKey.d.ts +1 -1
- package/Animations/index.d.ts +12 -12
- package/Animations/pathCursor.d.ts +2 -2
- package/Animations/runtimeAnimation.d.ts +4 -4
- package/Audio/Interfaces/IAudioEngine.d.ts +4 -4
- package/Audio/analyser.d.ts +2 -2
- package/Audio/audioEngine.d.ts +4 -4
- package/Audio/audioSceneComponent.d.ts +8 -8
- package/Audio/index.d.ts +8 -8
- package/Audio/sound.d.ts +6 -6
- package/Audio/soundTrack.d.ts +4 -4
- package/Audio/weightedsound.d.ts +1 -1
- package/AudioV2/abstractAudio/abstractAudioBus.d.ts +5 -5
- package/AudioV2/abstractAudio/abstractAudioNode.d.ts +2 -2
- package/AudioV2/abstractAudio/abstractSound.d.ts +12 -12
- package/AudioV2/abstractAudio/abstractSoundInstance.d.ts +4 -4
- package/AudioV2/abstractAudio/audioBus.d.ts +7 -7
- package/AudioV2/abstractAudio/audioEngineV2.d.ts +8 -8
- package/AudioV2/abstractAudio/components/spatialAudioAttacherComponent.d.ts +5 -5
- package/AudioV2/abstractAudio/index.d.ts +10 -10
- package/AudioV2/abstractAudio/mainAudioBus.d.ts +3 -3
- package/AudioV2/abstractAudio/mainAudioOut.d.ts +2 -2
- package/AudioV2/abstractAudio/staticSound.d.ts +5 -5
- package/AudioV2/abstractAudio/staticSoundBuffer.d.ts +1 -1
- package/AudioV2/abstractAudio/staticSoundInstance.d.ts +3 -3
- package/AudioV2/abstractAudio/streamingSound.d.ts +4 -4
- package/AudioV2/abstractAudio/streamingSoundInstance.d.ts +4 -4
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubGraph.d.ts +3 -3
- package/AudioV2/abstractAudio/subNodes/abstractAudioSubNode.d.ts +2 -2
- package/AudioV2/abstractAudio/subNodes/audioAnalyzerSubNode.d.ts +6 -6
- package/AudioV2/abstractAudio/subNodes/spatialAudioSubNode.d.ts +9 -9
- package/AudioV2/abstractAudio/subNodes/stereoAudioSubNode.d.ts +6 -6
- package/AudioV2/abstractAudio/subNodes/volumeAudioSubNode.d.ts +4 -4
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudio.d.ts +4 -4
- package/AudioV2/abstractAudio/subProperties/abstractSpatialAudioListener.d.ts +4 -4
- package/AudioV2/abstractAudio/subProperties/audioAnalyzer.d.ts +3 -3
- package/AudioV2/abstractAudio/subProperties/index.d.ts +4 -4
- package/AudioV2/abstractAudio/subProperties/spatialAudio.d.ts +6 -6
- package/AudioV2/abstractAudio/subProperties/spatialAudioListener.d.ts +6 -6
- package/AudioV2/abstractAudio/subProperties/stereoAudio.d.ts +2 -2
- package/AudioV2/index.d.ts +4 -4
- package/AudioV2/webAudio/index.d.ts +5 -5
- package/AudioV2/webAudio/subNodes/spatialWebAudioSubNode.d.ts +4 -4
- package/AudioV2/webAudio/subNodes/stereoWebAudioSubNode.d.ts +3 -3
- package/AudioV2/webAudio/subNodes/volumeWebAudioSubNode.d.ts +3 -3
- package/AudioV2/webAudio/subNodes/webAudioAnalyzerSubNode.d.ts +4 -4
- package/AudioV2/webAudio/subNodes/webAudioBaseSubGraph.d.ts +7 -7
- package/AudioV2/webAudio/subNodes/webAudioBusAndSoundSubGraph.d.ts +7 -7
- package/AudioV2/webAudio/subProperties/spatialWebAudio.d.ts +2 -2
- package/AudioV2/webAudio/subProperties/spatialWebAudioListener.d.ts +2 -2
- package/AudioV2/webAudio/webAudioBus.d.ts +7 -7
- package/AudioV2/webAudio/webAudioEngine.d.ts +11 -11
- package/AudioV2/webAudio/webAudioMainBus.d.ts +6 -6
- package/AudioV2/webAudio/webAudioMainOut.d.ts +3 -3
- package/AudioV2/webAudio/webAudioNode.d.ts +4 -4
- package/AudioV2/webAudio/webAudioStaticSound.d.ts +13 -13
- package/AudioV2/webAudio/webAudioStreamingSound.d.ts +10 -10
- package/AudioV2/webAudio/webAudioUnmuteUI.d.ts +1 -1
- package/BakedVertexAnimation/bakedVertexAnimationManager.d.ts +5 -5
- package/BakedVertexAnimation/index.d.ts +2 -2
- package/BakedVertexAnimation/vertexAnimationBaker.d.ts +4 -4
- package/Behaviors/Cameras/autoRotationBehavior.d.ts +3 -3
- package/Behaviors/Cameras/bouncingBehavior.d.ts +3 -3
- package/Behaviors/Cameras/framingBehavior.d.ts +7 -7
- package/Behaviors/Cameras/index.d.ts +3 -3
- package/Behaviors/Meshes/attachToBoxBehavior.d.ts +3 -3
- package/Behaviors/Meshes/baseSixDofDragBehavior.d.ts +9 -9
- package/Behaviors/Meshes/fadeInOutBehavior.d.ts +2 -2
- package/Behaviors/Meshes/followBehavior.d.ts +4 -4
- package/Behaviors/Meshes/handConstraintBehavior.d.ts +4 -4
- package/Behaviors/Meshes/index.d.ts +9 -9
- package/Behaviors/Meshes/multiPointerScaleBehavior.d.ts +2 -2
- package/Behaviors/Meshes/pointerDragBehavior.d.ts +8 -8
- package/Behaviors/Meshes/sixDofDragBehavior.d.ts +4 -4
- package/Behaviors/Meshes/surfaceMagnetismBehavior.d.ts +5 -5
- package/Behaviors/behavior.d.ts +1 -1
- package/Behaviors/index.d.ts +3 -3
- package/Bones/bone.d.ts +8 -8
- package/Bones/boneIKController.d.ts +4 -4
- package/Bones/boneLookController.d.ts +4 -4
- package/Bones/index.d.ts +4 -4
- package/Bones/skeleton.d.ts +13 -13
- package/Buffers/buffer.align.d.ts +2 -2
- package/Buffers/buffer.d.ts +3 -3
- package/Buffers/buffer.nonFloatVertexBuffers.d.ts +3 -3
- package/Buffers/bufferUtils.d.ts +1 -1
- package/Buffers/index.d.ts +5 -5
- package/Buffers/storageBuffer.d.ts +2 -2
- package/Cameras/Inputs/BaseCameraMouseWheelInput.d.ts +3 -3
- package/Cameras/Inputs/BaseCameraPointersInput.d.ts +5 -5
- package/Cameras/Inputs/arcRotateCameraGamepadInput.d.ts +4 -4
- package/Cameras/Inputs/arcRotateCameraKeyboardMoveInput.d.ts +2 -2
- package/Cameras/Inputs/arcRotateCameraMouseWheelInput.d.ts +4 -4
- package/Cameras/Inputs/arcRotateCameraPointersInput.d.ts +5 -5
- package/Cameras/Inputs/arcRotateCameraVRDeviceOrientationInput.d.ts +3 -3
- package/Cameras/Inputs/flyCameraKeyboardInput.d.ts +2 -2
- package/Cameras/Inputs/flyCameraMouseInput.d.ts +2 -2
- package/Cameras/Inputs/followCameraKeyboardMoveInput.d.ts +2 -2
- package/Cameras/Inputs/followCameraMouseWheelInput.d.ts +2 -2
- package/Cameras/Inputs/followCameraPointersInput.d.ts +4 -4
- package/Cameras/Inputs/freeCameraDeviceOrientationInput.d.ts +5 -5
- package/Cameras/Inputs/freeCameraGamepadInput.d.ts +4 -4
- package/Cameras/Inputs/freeCameraKeyboardMoveInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraMouseInput.d.ts +3 -3
- package/Cameras/Inputs/freeCameraMouseWheelInput.d.ts +4 -4
- package/Cameras/Inputs/freeCameraTouchInput.d.ts +2 -2
- package/Cameras/Inputs/freeCameraVirtualJoystickInput.d.ts +4 -4
- package/Cameras/Inputs/index.d.ts +19 -19
- package/Cameras/RigModes/index.d.ts +3 -3
- package/Cameras/RigModes/stereoscopicAnaglyphRigMode.d.ts +1 -1
- package/Cameras/RigModes/stereoscopicRigMode.d.ts +1 -1
- package/Cameras/RigModes/vrRigMode.d.ts +1 -1
- package/Cameras/Stereoscopic/anaglyphArcRotateCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/anaglyphFreeCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/anaglyphGamepadCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/anaglyphUniversalCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/index.d.ts +9 -9
- package/Cameras/Stereoscopic/stereoscopicArcRotateCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/stereoscopicFreeCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/stereoscopicGamepadCamera.d.ts +3 -3
- package/Cameras/Stereoscopic/stereoscopicScreenUniversalCamera.d.ts +5 -5
- package/Cameras/Stereoscopic/stereoscopicUniversalCamera.d.ts +3 -3
- package/Cameras/VR/index.d.ts +5 -5
- package/Cameras/VR/vrCameraMetrics.d.ts +1 -1
- package/Cameras/VR/vrDeviceOrientationArcRotateCamera.d.ts +5 -5
- package/Cameras/VR/vrDeviceOrientationFreeCamera.d.ts +4 -4
- package/Cameras/VR/vrDeviceOrientationGamepadCamera.d.ts +5 -5
- package/Cameras/VR/vrExperienceHelper.d.ts +15 -15
- package/Cameras/arcRotateCamera.d.ts +12 -12
- package/Cameras/arcRotateCameraInputsManager.d.ts +2 -2
- package/Cameras/camera.d.ts +16 -16
- package/Cameras/cameraInputsManager.d.ts +2 -2
- package/Cameras/deviceOrientationCamera.d.ts +5 -5
- package/Cameras/flyCamera.d.ts +6 -6
- package/Cameras/flyCameraInputsManager.d.ts +2 -2
- package/Cameras/followCamera.d.ts +6 -6
- package/Cameras/followCameraInputsManager.d.ts +2 -2
- package/Cameras/freeCamera.d.ts +5 -5
- package/Cameras/freeCameraInputsManager.d.ts +5 -5
- package/Cameras/gamepadCamera.d.ts +3 -3
- package/Cameras/index.d.ts +20 -20
- package/Cameras/targetCamera.d.ts +4 -4
- package/Cameras/touchCamera.d.ts +3 -3
- package/Cameras/universalCamera.d.ts +4 -4
- package/Cameras/virtualJoysticksCamera.d.ts +4 -4
- package/Collisions/collider.d.ts +4 -4
- package/Collisions/collisionCoordinator.d.ts +5 -5
- package/Collisions/index.d.ts +10 -10
- package/Collisions/intersectionInfo.d.ts +1 -1
- package/Collisions/meshCollisionData.d.ts +5 -5
- package/Collisions/pickingInfo.d.ts +6 -6
- package/Compat/index.d.ts +1 -1
- package/Compute/computeEffect.d.ts +4 -4
- package/Compute/computeShader.d.ts +8 -8
- package/Compute/index.d.ts +2 -2
- package/Culling/Helper/computeShaderBoundingHelper.d.ts +2 -2
- package/Culling/Helper/transformFeedbackBoundingHelper.d.ts +3 -3
- package/Culling/Octrees/index.d.ts +3 -3
- package/Culling/Octrees/octree.d.ts +7 -7
- package/Culling/Octrees/octreeBlock.d.ts +4 -4
- package/Culling/Octrees/octreeSceneComponent.d.ts +9 -9
- package/Culling/boundingBox.d.ts +6 -6
- package/Culling/boundingInfo.d.ts +7 -7
- package/Culling/boundingSphere.d.ts +3 -3
- package/Culling/index.d.ts +8 -8
- package/Culling/ray.core.d.ts +3 -3
- package/Culling/ray.d.ts +1 -1
- package/Debug/ISkeletonViewer.d.ts +2 -2
- package/Debug/axesViewer.d.ts +4 -4
- package/Debug/boneAxesViewer.d.ts +6 -6
- package/Debug/debugLayer.d.ts +4 -4
- package/Debug/directionalLightFrustumViewer.d.ts +3 -3
- package/Debug/index.d.ts +8 -8
- package/Debug/physicsViewer.d.ts +11 -11
- package/Debug/rayHelper.d.ts +6 -6
- package/Debug/skeletonViewer.d.ts +9 -9
- package/Decorators/nodeDecorator.d.ts +2 -2
- package/DeviceInput/InputDevices/deviceSource.d.ts +5 -5
- package/DeviceInput/InputDevices/deviceSourceManager.d.ts +8 -8
- package/DeviceInput/InputDevices/deviceTypes.d.ts +1 -1
- package/DeviceInput/eventFactory.d.ts +4 -4
- package/DeviceInput/index.d.ts +4 -4
- package/DeviceInput/inputInterfaces.d.ts +2 -2
- package/DeviceInput/internalDeviceSourceManager.d.ts +8 -8
- package/DeviceInput/nativeDeviceInputSystem.d.ts +3 -3
- package/DeviceInput/webDeviceInputSystem.d.ts +4 -4
- package/Engines/AbstractEngine/abstractEngine.alpha.d.ts +1 -1
- package/Engines/AbstractEngine/abstractEngine.cubeTexture.d.ts +4 -4
- package/Engines/AbstractEngine/abstractEngine.dom.d.ts +3 -3
- package/Engines/AbstractEngine/abstractEngine.loadingScreen.d.ts +2 -2
- package/Engines/AbstractEngine/abstractEngine.query.d.ts +3 -3
- package/Engines/AbstractEngine/abstractEngine.renderPass.d.ts +1 -1
- package/Engines/AbstractEngine/abstractEngine.states.d.ts +3 -3
- package/Engines/AbstractEngine/abstractEngine.texture.d.ts +4 -4
- package/Engines/AbstractEngine/abstractEngine.timeQuery.d.ts +3 -3
- package/Engines/AbstractEngine/abstractEngine.views.d.ts +4 -4
- package/Engines/AbstractEngine/index.d.ts +10 -10
- package/Engines/Extensions/engine.alpha.d.ts +1 -1
- package/Engines/Extensions/engine.computeShader.d.ts +7 -7
- package/Engines/Extensions/engine.cubeTexture.d.ts +5 -5
- package/Engines/Extensions/engine.debugging.d.ts +1 -1
- package/Engines/Extensions/engine.dynamicBuffer.d.ts +3 -3
- package/Engines/Extensions/engine.dynamicTexture.d.ts +4 -4
- package/Engines/Extensions/engine.multiRender.d.ts +5 -5
- package/Engines/Extensions/engine.multiview.d.ts +9 -9
- package/Engines/Extensions/engine.prefilteredCubeTexture.d.ts +4 -4
- package/Engines/Extensions/engine.query.d.ts +7 -7
- package/Engines/Extensions/engine.rawTexture.d.ts +4 -4
- package/Engines/Extensions/engine.readTexture.d.ts +4 -4
- package/Engines/Extensions/engine.renderTarget.d.ts +6 -6
- package/Engines/Extensions/engine.renderTargetCube.d.ts +3 -3
- package/Engines/Extensions/engine.renderTargetTexture.d.ts +3 -3
- package/Engines/Extensions/engine.textureSelector.d.ts +2 -2
- package/Engines/Extensions/engine.transformFeedback.d.ts +3 -3
- package/Engines/Extensions/engine.uniformBuffer.d.ts +4 -4
- package/Engines/Extensions/engine.videoTexture.d.ts +4 -4
- package/Engines/Extensions/engine.views.d.ts +1 -1
- package/Engines/Extensions/index.d.ts +20 -20
- package/Engines/IPipelineContext.d.ts +4 -4
- package/Engines/Native/index.d.ts +2 -2
- package/Engines/Native/nativeDataStream.d.ts +1 -1
- package/Engines/Native/nativeHardwareTexture.d.ts +3 -3
- package/Engines/Native/nativeInterfaces.d.ts +6 -6
- package/Engines/Native/nativePipelineContext.d.ts +8 -8
- package/Engines/Native/nativeRenderTargetWrapper.d.ts +5 -5
- package/Engines/Native/nativeShaderProcessingContext.d.ts +1 -1
- package/Engines/Native/nativeShaderProcessors.d.ts +4 -4
- package/Engines/Native/validatedNativeDataStream.d.ts +2 -2
- package/Engines/Processors/Expressions/Operators/index.d.ts +4 -4
- package/Engines/Processors/Expressions/Operators/shaderDefineAndOperator.d.ts +1 -1
- package/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.d.ts +1 -1
- package/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.js +2 -6
- package/Engines/Processors/Expressions/Operators/shaderDefineArithmeticOperator.js.map +1 -1
- package/Engines/Processors/Expressions/Operators/shaderDefineIsDefinedOperator.d.ts +1 -1
- package/Engines/Processors/Expressions/Operators/shaderDefineOrOperator.d.ts +1 -1
- package/Engines/Processors/Expressions/index.d.ts +2 -2
- package/Engines/Processors/iShaderProcessor.d.ts +8 -4
- package/Engines/Processors/iShaderProcessor.js.map +1 -1
- package/Engines/Processors/index.d.ts +9 -9
- package/Engines/Processors/shaderCodeConditionNode.d.ts +5 -3
- package/Engines/Processors/shaderCodeConditionNode.js +2 -2
- package/Engines/Processors/shaderCodeConditionNode.js.map +1 -1
- package/Engines/Processors/shaderCodeNode.d.ts +4 -2
- package/Engines/Processors/shaderCodeNode.js +3 -2
- package/Engines/Processors/shaderCodeNode.js.map +1 -1
- package/Engines/Processors/shaderCodeTestNode.d.ts +2 -2
- package/Engines/Processors/shaderProcessingOptions.d.ts +2 -2
- package/Engines/Processors/shaderProcessor.d.ts +6 -6
- package/Engines/Processors/shaderProcessor.js +16 -14
- package/Engines/Processors/shaderProcessor.js.map +1 -1
- package/Engines/WebGL/webGL2ShaderProcessors.d.ts +2 -2
- package/Engines/WebGL/webGLHardwareTexture.d.ts +2 -2
- package/Engines/WebGL/webGLPipelineContext.d.ts +6 -6
- package/Engines/WebGL/webGLRenderTargetWrapper.d.ts +5 -5
- package/Engines/WebGL/webGLShaderProcessors.d.ts +4 -4
- package/Engines/WebGPU/Extensions/engine.alpha.d.ts +2 -2
- package/Engines/WebGPU/Extensions/engine.computeShader.d.ts +7 -7
- package/Engines/WebGPU/Extensions/engine.cubeTexture.d.ts +5 -5
- package/Engines/WebGPU/Extensions/engine.dynamicTexture.d.ts +4 -4
- package/Engines/WebGPU/Extensions/engine.multiRender.d.ts +5 -5
- package/Engines/WebGPU/Extensions/engine.query.d.ts +1 -1
- package/Engines/WebGPU/Extensions/engine.rawTexture.d.ts +4 -4
- package/Engines/WebGPU/Extensions/engine.readTexture.d.ts +3 -3
- package/Engines/WebGPU/Extensions/engine.renderTarget.d.ts +6 -6
- package/Engines/WebGPU/Extensions/engine.renderTargetCube.d.ts +3 -3
- package/Engines/WebGPU/Extensions/engine.renderTargetTexture.d.ts +3 -3
- package/Engines/WebGPU/Extensions/engine.videoTexture.d.ts +4 -4
- package/Engines/WebGPU/Extensions/index.d.ts +13 -13
- package/Engines/WebGPU/webgpuBufferManager.d.ts +4 -4
- package/Engines/WebGPU/webgpuBundleList.d.ts +1 -1
- package/Engines/WebGPU/webgpuCacheBindGroups.d.ts +5 -5
- package/Engines/WebGPU/webgpuCacheRenderPipeline.d.ts +5 -5
- package/Engines/WebGPU/webgpuCacheRenderPipelineString.d.ts +2 -2
- package/Engines/WebGPU/webgpuCacheRenderPipelineTree.d.ts +2 -2
- package/Engines/WebGPU/webgpuCacheSampler.d.ts +2 -2
- package/Engines/WebGPU/webgpuClearQuad.d.ts +7 -7
- package/Engines/WebGPU/webgpuComputeContext.d.ts +3 -3
- package/Engines/WebGPU/webgpuComputePipelineContext.d.ts +3 -3
- package/Engines/WebGPU/webgpuDepthCullingState.d.ts +3 -3
- package/Engines/WebGPU/webgpuDrawContext.d.ts +4 -4
- package/Engines/WebGPU/webgpuExternalTexture.d.ts +1 -1
- package/Engines/WebGPU/webgpuHardwareTexture.d.ts +3 -3
- package/Engines/WebGPU/webgpuMaterialContext.d.ts +5 -5
- package/Engines/WebGPU/webgpuOcclusionQuery.d.ts +2 -2
- package/Engines/WebGPU/webgpuPerfCounter.d.ts +1 -1
- package/Engines/WebGPU/webgpuPipelineContext.d.ts +8 -8
- package/Engines/WebGPU/webgpuQuerySet.d.ts +3 -3
- package/Engines/WebGPU/webgpuRenderTargetWrapper.d.ts +4 -4
- package/Engines/WebGPU/webgpuShaderProcessingContext.d.ts +2 -2
- package/Engines/WebGPU/webgpuShaderProcessor.d.ts +4 -4
- package/Engines/WebGPU/webgpuShaderProcessorsGLSL.d.ts +5 -5
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.d.ts +22 -18
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js +64 -21
- package/Engines/WebGPU/webgpuShaderProcessorsWGSL.js.map +1 -1
- package/Engines/WebGPU/webgpuSnapshotRendering.d.ts +2 -2
- package/Engines/WebGPU/webgpuStencilStateComposer.d.ts +2 -2
- package/Engines/WebGPU/webgpuTextureHelper.d.ts +2 -2
- package/Engines/WebGPU/webgpuTextureManager.d.ts +6 -6
- package/Engines/WebGPU/webgpuTimestampQuery.d.ts +4 -4
- package/Engines/abstractEngine.d.ts +41 -41
- package/Engines/abstractEngine.js +2 -2
- package/Engines/abstractEngine.js.map +1 -1
- package/Engines/engine.common.d.ts +3 -3
- package/Engines/engine.d.ts +30 -30
- package/Engines/engineFactory.d.ts +1 -1
- package/Engines/engineStore.d.ts +4 -4
- package/Engines/index.d.ts +39 -39
- package/Engines/nativeEngine.d.ts +27 -27
- package/Engines/nullEngine.d.ts +13 -13
- package/Engines/renderTargetWrapper.d.ts +4 -4
- package/Engines/shaderStore.d.ts +1 -1
- package/Engines/thinEngine.d.ts +28 -28
- package/Engines/thinEngine.functions.d.ts +6 -6
- package/Engines/thinEngine.functions.js.map +1 -1
- package/Engines/thinEngine.js +3 -0
- package/Engines/thinEngine.js.map +1 -1
- package/Engines/thinWebGPUEngine.d.ts +8 -8
- package/Engines/webgpuEngine.d.ts +48 -48
- package/Events/deviceInputEvents.d.ts +1 -1
- package/Events/index.d.ts +4 -4
- package/Events/keyboardEvents.d.ts +1 -1
- package/Events/pointerEvents.d.ts +6 -6
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.d.ts +12 -7
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js +26 -7
- package/FlowGraph/Blocks/Data/Math/flowGraphMathBlocks.js.map +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMathCombineExtractBlocks.d.ts +1 -1
- package/FlowGraph/Blocks/Data/Math/flowGraphMatrixMathBlocks.d.ts +2 -2
- package/FlowGraph/Blocks/Data/Math/flowGraphVectorMathBlocks.d.ts +3 -3
- package/FlowGraph/Blocks/Data/Math/index.d.ts +4 -4
- package/FlowGraph/Blocks/Data/Transformers/flowGraphJsonPointerParserBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/Transformers/flowGraphTypeToTypeBlocks.d.ts +1 -1
- package/FlowGraph/Blocks/Data/Transformers/index.d.ts +2 -2
- package/FlowGraph/Blocks/Data/Utils/index.d.ts +5 -5
- package/FlowGraph/Blocks/Data/flowGraphBinaryOperationBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Data/flowGraphCachedOperationBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Data/flowGraphConditionalDataBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Data/flowGraphConstantBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/flowGraphConstantOperationBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Data/flowGraphGetPropertyBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Data/flowGraphGetVariableBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Data/flowGraphTernaryOperationBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Data/flowGraphTransformCoordinatesSystemBlock.d.ts +6 -6
- package/FlowGraph/Blocks/Data/flowGraphUnaryOperationBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Data/index.d.ts +12 -12
- package/FlowGraph/Blocks/Event/flowGraphMeshPickEventBlock.d.ts +6 -6
- package/FlowGraph/Blocks/Event/flowGraphPointerOutEventBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Event/flowGraphPointerOverEventBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Event/flowGraphReceiveCustomEventBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Event/flowGraphSceneReadyEventBlock.d.ts +2 -2
- package/FlowGraph/Blocks/Event/flowGraphSceneTickEventBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Event/flowGraphSendCustomEventBlock.d.ts +3 -3
- package/FlowGraph/Blocks/Event/index.d.ts +7 -7
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphInterpolationBlock.js.map +1 -1
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPauseAnimationBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/Animation/flowGraphPlayAnimationBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/Animation/flowGraphStopAnimationBlock.d.ts +3 -3
- package/FlowGraph/Blocks/Execution/Animation/index.d.ts +6 -6
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphBranchBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCancelDelayBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphCounterBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDebounceBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphDoNBlock.d.ts +6 -6
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphFlipFlopBlock.d.ts +1 -1
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphForLoopBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphMultiGateBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSequenceBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSetDelayBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphSwitchBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphThrottleBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWaitAllBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/ControlFlow/flowGraphWhileLoopBlock.d.ts +5 -5
- package/FlowGraph/Blocks/Execution/ControlFlow/index.d.ts +14 -14
- package/FlowGraph/Blocks/Execution/flowGraphConsoleLogBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/flowGraphSetVariableBlock.d.ts +4 -4
- package/FlowGraph/Blocks/Execution/index.d.ts +3 -3
- package/FlowGraph/Blocks/flowGraphBlockFactory.d.ts +2 -2
- package/FlowGraph/Blocks/index.d.ts +5 -5
- package/FlowGraph/CustomTypes/index.d.ts +2 -2
- package/FlowGraph/flowGraph.d.ts +9 -9
- package/FlowGraph/flowGraphAsyncExecutionBlock.d.ts +4 -4
- package/FlowGraph/flowGraphBlock.d.ts +7 -7
- package/FlowGraph/flowGraphContext.d.ts +10 -10
- package/FlowGraph/flowGraphCoordinator.d.ts +4 -4
- package/FlowGraph/flowGraphDataConnection.d.ts +4 -4
- package/FlowGraph/flowGraphEventBlock.d.ts +3 -3
- package/FlowGraph/flowGraphExecutionBlock.d.ts +4 -4
- package/FlowGraph/flowGraphExecutionBlockWithOutSignal.d.ts +3 -3
- package/FlowGraph/flowGraphParser.d.ts +10 -10
- package/FlowGraph/flowGraphPathConverter.d.ts +3 -3
- package/FlowGraph/flowGraphPathConverterComponent.d.ts +6 -6
- package/FlowGraph/flowGraphPathConverterComponent.js +1 -1
- package/FlowGraph/flowGraphPathConverterComponent.js.map +1 -1
- package/FlowGraph/flowGraphRichTypes.d.ts +4 -4
- package/FlowGraph/flowGraphSceneEventCoordinator.d.ts +1 -1
- package/FlowGraph/flowGraphSignalConnection.d.ts +3 -3
- package/FlowGraph/index.d.ts +18 -18
- package/FlowGraph/serialization.d.ts +2 -2
- package/FlowGraph/typeDefinitions.d.ts +1 -1
- package/FlowGraph/utils.d.ts +3 -3
- package/FrameGraph/Node/Blocks/Layers/glowLayerBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Layers/highlightLayerBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/anaglyphPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/basePostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/blackAndWhitePostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/bloomPostProcessBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/PostProcesses/blurPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/chromaticAberrationPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/circleOfConfusionPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/depthOfFieldPostProcessBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/PostProcesses/extractHighlightsPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/imageProcessingPostProcessBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/PostProcesses/passPostProcessBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/PostProcesses/ssrPostProcessBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Rendering/baseObjectRendererBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Rendering/baseShadowGeneratorBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Rendering/csmShadowGeneratorBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Rendering/geometryRendererBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Rendering/objectRendererBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Rendering/shadowGeneratorBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Rendering/taaObjectRendererBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Rendering/utilityLayerRendererBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Teleport/teleportInBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Teleport/teleportOutBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/Textures/clearBlock.d.ts +3 -3
- package/FrameGraph/Node/Blocks/Textures/copyTextureBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/Textures/generateMipmapsBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/cullObjectsBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/elbowBlock.d.ts +1 -1
- package/FrameGraph/Node/Blocks/executeBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/index.d.ts +30 -30
- package/FrameGraph/Node/Blocks/inputBlock.d.ts +3 -3
- package/FrameGraph/Node/Blocks/outputBlock.d.ts +2 -2
- package/FrameGraph/Node/Blocks/resourceContainerBlock.d.ts +1 -1
- package/FrameGraph/Node/nodeRenderGraph.d.ts +4 -4
- package/FrameGraph/Node/nodeRenderGraphBlock.d.ts +3 -3
- package/FrameGraph/Node/nodeRenderGraphBlockConnectionPoint.d.ts +2 -2
- package/FrameGraph/Node/nodeRenderGraphConnectionPointCustomObject.d.ts +2 -2
- package/FrameGraph/Passes/cullPass.d.ts +1 -1
- package/FrameGraph/Passes/renderPass.d.ts +1 -1
- package/FrameGraph/Tasks/Layers/baseLayerTask.d.ts +6 -6
- package/FrameGraph/Tasks/Layers/glowLayerTask.d.ts +1 -1
- package/FrameGraph/Tasks/Layers/highlightLayerTask.d.ts +1 -1
- package/FrameGraph/Tasks/Misc/cullObjectsTask.d.ts +1 -1
- package/FrameGraph/Tasks/Misc/executeTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/anaglyphTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/blackAndWhiteTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/bloomMergeTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/bloomTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/blurTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/chromaticAberrationTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/circleOfConfusionTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldBlurTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldMergeTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/depthOfFieldTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/extractHighlightsTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/imageProcessingTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/passTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/postProcessTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/ssrBlurTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/ssrRenderingPipelineTask.d.ts +1 -1
- package/FrameGraph/Tasks/PostProcesses/ssrTask.d.ts +1 -1
- package/FrameGraph/Tasks/Rendering/csmShadowGeneratorTask.d.ts +2 -2
- package/FrameGraph/Tasks/Rendering/geometryRendererTask.d.ts +2 -2
- package/FrameGraph/Tasks/Rendering/objectRendererTask.d.ts +2 -2
- package/FrameGraph/Tasks/Rendering/shadowGeneratorTask.d.ts +2 -2
- package/FrameGraph/Tasks/Rendering/taaObjectRendererTask.d.ts +1 -1
- package/FrameGraph/Tasks/Rendering/utilityLayerRendererTask.d.ts +1 -1
- package/FrameGraph/Tasks/Texture/clearTextureTask.d.ts +2 -2
- package/FrameGraph/Tasks/Texture/copyToBackbufferColorTask.d.ts +1 -1
- package/FrameGraph/Tasks/Texture/copyToTextureTask.d.ts +1 -1
- package/FrameGraph/Tasks/Texture/generateMipMapsTask.d.ts +1 -1
- package/FrameGraph/frameGraph.d.ts +5 -5
- package/FrameGraph/frameGraphRenderContext.d.ts +1 -1
- package/FrameGraph/frameGraphTextureManager.d.ts +2 -2
- package/FrameGraph/index.d.ts +43 -43
- package/Gamepads/dualShockGamepad.d.ts +2 -2
- package/Gamepads/gamepad.d.ts +1 -1
- package/Gamepads/gamepadManager.d.ts +4 -4
- package/Gamepads/gamepadSceneComponent.d.ts +7 -7
- package/Gamepads/index.d.ts +5 -5
- package/Gamepads/xboxGamepad.d.ts +2 -2
- package/Gizmos/axisDragGizmo.d.ts +16 -16
- package/Gizmos/axisScaleGizmo.d.ts +15 -15
- package/Gizmos/boundingBoxGizmo.d.ts +15 -15
- package/Gizmos/cameraGizmo.d.ts +11 -11
- package/Gizmos/gizmo.d.ts +12 -12
- package/Gizmos/gizmoManager.d.ts +18 -18
- package/Gizmos/index.d.ts +12 -12
- package/Gizmos/lightGizmo.d.ts +13 -13
- package/Gizmos/planeDragGizmo.d.ts +15 -15
- package/Gizmos/planeRotationGizmo.d.ts +17 -17
- package/Gizmos/positionGizmo.d.ts +15 -15
- package/Gizmos/rotationGizmo.d.ts +15 -15
- package/Gizmos/scaleGizmo.d.ts +16 -16
- package/Helpers/environmentHelper.d.ts +10 -10
- package/Helpers/index.d.ts +5 -5
- package/Helpers/photoDome.d.ts +3 -3
- package/Helpers/sceneHelpers.d.ts +13 -13
- package/Helpers/textureDome.d.ts +7 -7
- package/Helpers/videoDome.d.ts +3 -3
- package/IAssetContainer.d.ts +23 -23
- package/Inputs/pointerPickingConfiguration.d.ts +1 -1
- package/Inputs/scene.inputManager.d.ts +8 -8
- package/Instrumentation/engineInstrumentation.d.ts +4 -4
- package/Instrumentation/index.d.ts +3 -3
- package/Instrumentation/sceneInstrumentation.d.ts +2 -2
- package/Instrumentation/timeToken.d.ts +1 -1
- package/Layers/effectLayer.d.ts +16 -16
- package/Layers/effectLayerSceneComponent.d.ts +4 -4
- package/Layers/glowLayer.d.ts +13 -13
- package/Layers/highlightLayer.d.ts +14 -14
- package/Layers/index.d.ts +23 -23
- package/Layers/layer.d.ts +7 -7
- package/Layers/layerSceneComponent.d.ts +2 -2
- package/Layers/thinEffectLayer.d.ts +13 -13
- package/Layers/thinGlowLayer.d.ts +10 -10
- package/Layers/thinHighlightLayer.d.ts +3 -3
- package/LensFlares/index.d.ts +7 -7
- package/LensFlares/lensFlare.d.ts +5 -5
- package/LensFlares/lensFlareSystem.d.ts +5 -5
- package/LensFlares/lensFlareSystemSceneComponent.d.ts +5 -5
- package/Lights/Shadows/cascadedShadowGenerator.d.ts +10 -10
- package/Lights/Shadows/index.d.ts +11 -11
- package/Lights/Shadows/shadowGenerator.d.ts +16 -16
- package/Lights/Shadows/shadowGeneratorSceneComponent.d.ts +2 -2
- package/Lights/areaLight.d.ts +1 -1
- package/Lights/directionalLight.d.ts +8 -8
- package/Lights/hemisphericLight.d.ts +7 -7
- package/Lights/index.d.ts +10 -10
- package/Lights/light.d.ts +12 -12
- package/Lights/pointLight.d.ts +5 -5
- package/Lights/rectAreaLight.d.ts +2 -2
- package/Lights/shadowLight.d.ts +5 -5
- package/Lights/spotLight.d.ts +9 -9
- package/Loading/Plugins/index.d.ts +2 -2
- package/Loading/index.d.ts +4 -4
- package/Loading/sceneLoader.d.ts +16 -16
- package/Materials/Background/backgroundMaterial.d.ts +13 -13
- package/Materials/Background/index.d.ts +5 -5
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.d.ts +19 -11
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js +28 -1
- package/Materials/GaussianSplatting/gaussianSplattingMaterial.js.map +1 -1
- package/Materials/GreasedLine/greasedLineMaterialDefaults.d.ts +3 -3
- package/Materials/GreasedLine/greasedLineMaterialInterfaces.d.ts +4 -4
- package/Materials/GreasedLine/greasedLinePluginMaterial.d.ts +14 -14
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersGLSL.d.ts +1 -1
- package/Materials/GreasedLine/greasedLinePluginMaterialShadersWGSL.d.ts +1 -1
- package/Materials/GreasedLine/greasedLineSimpleMaterial.d.ts +8 -8
- package/Materials/Node/Blocks/Dual/clipPlanesBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Dual/currentScreenBlock.d.ts +9 -9
- package/Materials/Node/Blocks/Dual/fogBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Dual/imageSourceBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Dual/index.d.ts +37 -37
- package/Materials/Node/Blocks/Dual/lightBlock.d.ts +10 -10
- package/Materials/Node/Blocks/Dual/reflectionTextureBaseBlock.d.ts +12 -12
- package/Materials/Node/Blocks/Dual/reflectionTextureBlock.d.ts +5 -5
- package/Materials/Node/Blocks/Dual/sceneDepthBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Dual/textureBlock.d.ts +12 -12
- package/Materials/Node/Blocks/Fragment/TBNBlock.d.ts +6 -6
- package/Materials/Node/Blocks/Fragment/derivativeBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/discardBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/fragCoordBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/fragDepthBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/fragmentOutputBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Fragment/frontFacingBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/heightToNormalBlock.d.ts +4 -4
- package/Materials/Node/Blocks/Fragment/imageProcessingBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Fragment/index.d.ts +33 -33
- package/Materials/Node/Blocks/Fragment/perturbNormalBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Fragment/prePassOutputBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/screenSizeBlock.d.ts +4 -4
- package/Materials/Node/Blocks/Fragment/screenSpaceBlock.d.ts +4 -4
- package/Materials/Node/Blocks/Fragment/shadowMapBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Fragment/twirlBlock.d.ts +3 -3
- package/Materials/Node/Blocks/GaussianSplatting/gaussianBlock.d.ts +3 -3
- package/Materials/Node/Blocks/GaussianSplatting/gaussianSplattingBlock.d.ts +3 -3
- package/Materials/Node/Blocks/GaussianSplatting/gaussianSplattingBlock.js +3 -1
- package/Materials/Node/Blocks/GaussianSplatting/gaussianSplattingBlock.js.map +1 -1
- package/Materials/Node/Blocks/GaussianSplatting/index.d.ts +5 -5
- package/Materials/Node/Blocks/GaussianSplatting/splatReaderBlock.d.ts +4 -4
- package/Materials/Node/Blocks/Input/index.d.ts +3 -3
- package/Materials/Node/Blocks/Input/inputBlock.d.ts +13 -13
- package/Materials/Node/Blocks/Input/prePassTextureBlock.d.ts +6 -6
- package/Materials/Node/Blocks/PBR/anisotropyBlock.d.ts +7 -7
- package/Materials/Node/Blocks/PBR/clearCoatBlock.d.ts +10 -10
- package/Materials/Node/Blocks/PBR/index.d.ts +8 -8
- package/Materials/Node/Blocks/PBR/iridescenceBlock.d.ts +7 -7
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.d.ts +10 -10
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js +5 -3
- package/Materials/Node/Blocks/PBR/pbrMetallicRoughnessBlock.js.map +1 -1
- package/Materials/Node/Blocks/PBR/reflectionBlock.d.ts +11 -11
- package/Materials/Node/Blocks/PBR/refractionBlock.d.ts +10 -10
- package/Materials/Node/Blocks/PBR/sheenBlock.d.ts +8 -8
- package/Materials/Node/Blocks/PBR/subSurfaceBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Particle/index.d.ts +3 -3
- package/Materials/Node/Blocks/Particle/particleBlendMultiplyBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Particle/particleRampGradientBlock.d.ts +3 -3
- package/Materials/Node/Blocks/Particle/particleTextureBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Teleport/index.d.ts +2 -2
- package/Materials/Node/Blocks/Teleport/teleportInBlock.d.ts +4 -4
- package/Materials/Node/Blocks/Teleport/teleportOutBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Vertex/bonesBlock.d.ts +8 -8
- package/Materials/Node/Blocks/Vertex/index.d.ts +17 -17
- package/Materials/Node/Blocks/Vertex/instancesBlock.d.ts +6 -6
- package/Materials/Node/Blocks/Vertex/lightInformationBlock.d.ts +10 -10
- package/Materials/Node/Blocks/Vertex/morphTargetsBlock.d.ts +7 -7
- package/Materials/Node/Blocks/Vertex/vertexOutputBlock.d.ts +3 -3
- package/Materials/Node/Blocks/addBlock.d.ts +2 -2
- package/Materials/Node/Blocks/arcTan2Block.d.ts +3 -3
- package/Materials/Node/Blocks/baseMathBlock.d.ts +2 -2
- package/Materials/Node/Blocks/biPlanarBlock.d.ts +2 -2
- package/Materials/Node/Blocks/clampBlock.d.ts +4 -4
- package/Materials/Node/Blocks/cloudBlock.d.ts +4 -4
- package/Materials/Node/Blocks/colorConverterBlock.d.ts +3 -3
- package/Materials/Node/Blocks/colorMergerBlock.d.ts +4 -4
- package/Materials/Node/Blocks/colorSplitterBlock.d.ts +3 -3
- package/Materials/Node/Blocks/conditionalBlock.d.ts +5 -5
- package/Materials/Node/Blocks/crossBlock.d.ts +3 -3
- package/Materials/Node/Blocks/curveBlock.d.ts +4 -4
- package/Materials/Node/Blocks/customBlock.d.ts +3 -3
- package/Materials/Node/Blocks/debugBlock.d.ts +3 -3
- package/Materials/Node/Blocks/desaturateBlock.d.ts +3 -3
- package/Materials/Node/Blocks/distanceBlock.d.ts +3 -3
- package/Materials/Node/Blocks/divideBlock.d.ts +2 -2
- package/Materials/Node/Blocks/dotBlock.d.ts +3 -3
- package/Materials/Node/Blocks/elbowBlock.d.ts +4 -4
- package/Materials/Node/Blocks/fresnelBlock.d.ts +5 -5
- package/Materials/Node/Blocks/gradientBlock.d.ts +6 -6
- package/Materials/Node/Blocks/index.d.ts +70 -70
- package/Materials/Node/Blocks/lengthBlock.d.ts +3 -3
- package/Materials/Node/Blocks/lerpBlock.d.ts +3 -3
- package/Materials/Node/Blocks/loopBlock.d.ts +3 -3
- package/Materials/Node/Blocks/matrixBuilderBlock.d.ts +3 -3
- package/Materials/Node/Blocks/matrixDeterminantBlock.d.ts +3 -3
- package/Materials/Node/Blocks/matrixSplitterBlock.d.ts +3 -3
- package/Materials/Node/Blocks/matrixTransposeBlock.d.ts +3 -3
- package/Materials/Node/Blocks/maxBlock.d.ts +3 -3
- package/Materials/Node/Blocks/meshAttributeExistsBlock.d.ts +3 -3
- package/Materials/Node/Blocks/minBlock.d.ts +3 -3
- package/Materials/Node/Blocks/modBlock.d.ts +3 -3
- package/Materials/Node/Blocks/multiplyBlock.d.ts +2 -2
- package/Materials/Node/Blocks/nLerpBlock.d.ts +3 -3
- package/Materials/Node/Blocks/negateBlock.d.ts +3 -3
- package/Materials/Node/Blocks/normalBlendBlock.d.ts +3 -3
- package/Materials/Node/Blocks/normalizeBlock.d.ts +3 -3
- package/Materials/Node/Blocks/oneMinusBlock.d.ts +3 -3
- package/Materials/Node/Blocks/posterizeBlock.d.ts +3 -3
- package/Materials/Node/Blocks/powBlock.d.ts +3 -3
- package/Materials/Node/Blocks/randomNumberBlock.d.ts +4 -4
- package/Materials/Node/Blocks/reciprocalBlock.d.ts +3 -3
- package/Materials/Node/Blocks/reflectBlock.d.ts +3 -3
- package/Materials/Node/Blocks/refractBlock.d.ts +3 -3
- package/Materials/Node/Blocks/remapBlock.d.ts +5 -5
- package/Materials/Node/Blocks/replaceColorBlock.d.ts +3 -3
- package/Materials/Node/Blocks/rotate2dBlock.d.ts +3 -3
- package/Materials/Node/Blocks/scaleBlock.d.ts +3 -3
- package/Materials/Node/Blocks/simplexPerlin3DBlock.d.ts +3 -3
- package/Materials/Node/Blocks/smoothStepBlock.d.ts +3 -3
- package/Materials/Node/Blocks/stepBlock.d.ts +3 -3
- package/Materials/Node/Blocks/storageReadBlock.d.ts +3 -3
- package/Materials/Node/Blocks/storageWriteBlock.d.ts +3 -3
- package/Materials/Node/Blocks/subtractBlock.d.ts +2 -2
- package/Materials/Node/Blocks/transformBlock.d.ts +6 -6
- package/Materials/Node/Blocks/triPlanarBlock.d.ts +12 -12
- package/Materials/Node/Blocks/trigonometryBlock.d.ts +4 -4
- package/Materials/Node/Blocks/vectorMergerBlock.d.ts +4 -4
- package/Materials/Node/Blocks/vectorSplitterBlock.d.ts +3 -3
- package/Materials/Node/Blocks/viewDirectionBlock.d.ts +4 -4
- package/Materials/Node/Blocks/voronoiNoiseBlock.d.ts +3 -3
- package/Materials/Node/Blocks/waveBlock.d.ts +4 -4
- package/Materials/Node/Blocks/worleyNoise3DBlock.d.ts +4 -4
- package/Materials/Node/Enums/index.d.ts +5 -5
- package/Materials/Node/Optimizers/index.d.ts +1 -1
- package/Materials/Node/Optimizers/nodeMaterialOptimizer.d.ts +1 -1
- package/Materials/Node/index.d.ts +9 -9
- package/Materials/Node/nodeMaterial.d.ts +36 -36
- package/Materials/Node/nodeMaterialBlock.d.ts +12 -12
- package/Materials/Node/nodeMaterialBlockConnectionPoint.d.ts +6 -6
- package/Materials/Node/nodeMaterialBuildState.d.ts +6 -6
- package/Materials/Node/nodeMaterialBuildStateSharedData.d.ts +6 -6
- package/Materials/Node/nodeMaterialConnectionPointCustomObject.d.ts +4 -4
- package/Materials/Node/nodeMaterialDefault.d.ts +1 -1
- package/Materials/Occlusion/index.d.ts +1 -1
- package/Materials/Occlusion/occlusionMaterial.d.ts +4 -4
- package/Materials/PBR/index.d.ts +15 -15
- package/Materials/PBR/pbrAnisotropicConfiguration.d.ts +11 -11
- package/Materials/PBR/pbrBRDFConfiguration.d.ts +3 -3
- package/Materials/PBR/pbrBaseMaterial.d.ts +24 -24
- package/Materials/PBR/pbrBaseSimpleMaterial.d.ts +5 -5
- package/Materials/PBR/pbrClearCoatConfiguration.d.ts +12 -12
- package/Materials/PBR/pbrIridescenceConfiguration.d.ts +9 -9
- package/Materials/PBR/pbrMaterial.d.ts +7 -7
- package/Materials/PBR/pbrMaterial.decalMap.d.ts +2 -2
- package/Materials/PBR/pbrMetallicRoughnessMaterial.d.ts +5 -5
- package/Materials/PBR/pbrSheenConfiguration.d.ts +12 -12
- package/Materials/PBR/pbrSpecularGlossinessMaterial.d.ts +5 -5
- package/Materials/PBR/pbrSubSurfaceConfiguration.d.ts +14 -14
- package/Materials/Textures/Filtering/hdrFiltering.d.ts +2 -2
- package/Materials/Textures/Filtering/hdrIrradianceFiltering.d.ts +2 -2
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.d.ts +1 -1
- package/Materials/Textures/Loaders/EXR/exrLoader.compression.huf.d.ts +1 -1
- package/Materials/Textures/Loaders/EXR/exrLoader.decoder.d.ts +3 -3
- package/Materials/Textures/Loaders/EXR/exrLoader.header.d.ts +2 -2
- package/Materials/Textures/Loaders/EXR/exrLoader.interfaces.d.ts +1 -1
- package/Materials/Textures/Loaders/EXR/index.d.ts +7 -7
- package/Materials/Textures/Loaders/basisTextureLoader.d.ts +3 -3
- package/Materials/Textures/Loaders/ddsTextureLoader.d.ts +3 -3
- package/Materials/Textures/Loaders/envTextureLoader.d.ts +3 -3
- package/Materials/Textures/Loaders/exrTextureLoader.d.ts +2 -2
- package/Materials/Textures/Loaders/hdrTextureLoader.d.ts +2 -2
- package/Materials/Textures/Loaders/iesTextureLoader.d.ts +2 -2
- package/Materials/Textures/Loaders/index.d.ts +11 -11
- package/Materials/Textures/Loaders/internalTextureLoader.d.ts +2 -2
- package/Materials/Textures/Loaders/ktxTextureLoader.d.ts +3 -3
- package/Materials/Textures/Loaders/textureLoaderManager.d.ts +2 -2
- package/Materials/Textures/Loaders/tgaTextureLoader.d.ts +2 -2
- package/Materials/Textures/MultiviewRenderTarget.d.ts +2 -2
- package/Materials/Textures/Packer/frame.d.ts +1 -1
- package/Materials/Textures/Packer/index.d.ts +2 -2
- package/Materials/Textures/Packer/packer.d.ts +5 -5
- package/Materials/Textures/Procedurals/customProceduralTexture.d.ts +5 -5
- package/Materials/Textures/Procedurals/index.d.ts +4 -4
- package/Materials/Textures/Procedurals/noiseProceduralTexture.d.ts +5 -5
- package/Materials/Textures/Procedurals/proceduralTexture.d.ts +10 -10
- package/Materials/Textures/Procedurals/proceduralTextureSceneComponent.d.ts +2 -2
- package/Materials/Textures/baseTexture.d.ts +10 -10
- package/Materials/Textures/baseTexture.polynomial.d.ts +3 -3
- package/Materials/Textures/colorGradingTexture.d.ts +5 -5
- package/Materials/Textures/cubeTexture.d.ts +7 -7
- package/Materials/Textures/dynamicTexture.d.ts +6 -6
- package/Materials/Textures/dynamicTexture.js +4 -0
- package/Materials/Textures/dynamicTexture.js.map +1 -1
- package/Materials/Textures/equiRectangularCubeTexture.d.ts +3 -3
- package/Materials/Textures/externalTexture.d.ts +1 -1
- package/Materials/Textures/hdrCubeTexture.d.ts +7 -7
- package/Materials/Textures/htmlElementTexture.d.ts +8 -8
- package/Materials/Textures/index.d.ts +39 -39
- package/Materials/Textures/internalTexture.d.ts +8 -8
- package/Materials/Textures/mirrorTexture.d.ts +3 -3
- package/Materials/Textures/multiRenderTarget.d.ts +6 -6
- package/Materials/Textures/prePassRenderTarget.d.ts +8 -8
- package/Materials/Textures/rawCubeTexture.d.ts +4 -4
- package/Materials/Textures/rawTexture.d.ts +4 -4
- package/Materials/Textures/rawTexture2DArray.d.ts +3 -3
- package/Materials/Textures/rawTexture3D.d.ts +3 -3
- package/Materials/Textures/refractionTexture.d.ts +3 -3
- package/Materials/Textures/renderTargetTexture.d.ts +17 -17
- package/Materials/Textures/texture.d.ts +12 -12
- package/Materials/Textures/textureCreationOptions.d.ts +1 -1
- package/Materials/Textures/textureSampler.d.ts +1 -1
- package/Materials/Textures/thinRenderTargetTexture.d.ts +6 -6
- package/Materials/Textures/thinTexture.d.ts +4 -4
- package/Materials/Textures/videoTexture.d.ts +7 -7
- package/Materials/clipPlaneMaterialHelper.d.ts +2 -2
- package/Materials/colorCurves.d.ts +1 -1
- package/Materials/drawWrapper.d.ts +6 -6
- package/Materials/drawWrapper.functions.d.ts +2 -2
- package/Materials/effect.d.ts +14 -14
- package/Materials/effect.functions.d.ts +2 -2
- package/Materials/effect.webgl.functions.d.ts +1 -1
- package/Materials/effectFallbacks.d.ts +3 -3
- package/Materials/effectRenderer.d.ts +10 -10
- package/Materials/fresnelParameters.d.ts +2 -2
- package/Materials/iEffectFallbacks.d.ts +1 -1
- package/Materials/imageProcessingConfiguration.d.ts +7 -7
- package/Materials/imageProcessingConfiguration.defines.d.ts +1 -1
- package/Materials/imageProcessingConfiguration.functions.d.ts +1 -1
- package/Materials/index.d.ts +49 -49
- package/Materials/material.d.ts +26 -26
- package/Materials/material.decalMap.d.ts +3 -3
- package/Materials/material.decalMapConfiguration.d.ts +5 -5
- package/Materials/material.detailMapConfiguration.d.ts +9 -9
- package/Materials/materialHelper.d.ts +12 -12
- package/Materials/materialHelper.functions.d.ts +12 -12
- package/Materials/materialPluginBase.d.ts +15 -15
- package/Materials/materialPluginEvent.d.ts +10 -10
- package/Materials/materialPluginFactoryExport.d.ts +3 -3
- package/Materials/materialPluginManager.d.ts +8 -8
- package/Materials/materialStencilState.d.ts +2 -2
- package/Materials/meshDebugPluginMaterial.d.ts +8 -8
- package/Materials/multiMaterial.d.ts +6 -6
- package/Materials/prePassConfiguration.d.ts +4 -4
- package/Materials/pushMaterial.d.ts +8 -8
- package/Materials/shaderMaterial.d.ts +15 -15
- package/Materials/shadowDepthWrapper.d.ts +6 -6
- package/Materials/standardMaterial.d.ts +19 -19
- package/Materials/standardMaterial.decalMap.d.ts +2 -2
- package/Materials/uniformBuffer.d.ts +6 -6
- package/Materials/uniformBufferEffectCommonAccessor.d.ts +3 -3
- package/Maths/index.d.ts +8 -8
- package/Maths/math.axis.d.ts +1 -1
- package/Maths/math.color.d.ts +3 -3
- package/Maths/math.d.ts +10 -10
- package/Maths/math.frustum.d.ts +3 -3
- package/Maths/math.functions.d.ts +3 -3
- package/Maths/math.isovector.d.ts +1 -1
- package/Maths/math.like.d.ts +1 -1
- package/Maths/math.path.d.ts +3 -3
- package/Maths/math.plane.d.ts +3 -3
- package/Maths/math.polar.d.ts +2 -2
- package/Maths/math.vector.d.ts +6 -6
- package/Maths/math.vector.functions.d.ts +1 -1
- package/Maths/math.vertexFormat.d.ts +1 -1
- package/Maths/math.viewport.d.ts +1 -1
- package/Maths/sphericalPolynomial.d.ts +2 -2
- package/Maths/tensor.d.ts +1 -1
- package/Meshes/Builders/boxBuilder.d.ts +6 -6
- package/Meshes/Builders/capsuleBuilder.d.ts +5 -5
- package/Meshes/Builders/cylinderBuilder.d.ts +6 -6
- package/Meshes/Builders/decalBuilder.d.ts +3 -3
- package/Meshes/Builders/discBuilder.d.ts +5 -5
- package/Meshes/Builders/geodesicBuilder.d.ts +5 -5
- package/Meshes/Builders/goldbergBuilder.d.ts +5 -5
- package/Meshes/Builders/greasedLineBuilder.d.ts +11 -11
- package/Meshes/Builders/groundBuilder.d.ts +6 -6
- package/Meshes/Builders/hemisphereBuilder.d.ts +2 -2
- package/Meshes/Builders/icoSphereBuilder.d.ts +5 -5
- package/Meshes/Builders/index.d.ts +25 -25
- package/Meshes/Builders/latheBuilder.d.ts +5 -5
- package/Meshes/Builders/linesBuilder.d.ts +7 -7
- package/Meshes/Builders/planeBuilder.d.ts +6 -6
- package/Meshes/Builders/polygonBuilder.d.ts +7 -7
- package/Meshes/Builders/polyhedronBuilder.d.ts +6 -6
- package/Meshes/Builders/ribbonBuilder.d.ts +6 -6
- package/Meshes/Builders/shapeBuilder.d.ts +5 -5
- package/Meshes/Builders/sphereBuilder.d.ts +5 -5
- package/Meshes/Builders/textBuilder.d.ts +6 -6
- package/Meshes/Builders/tiledBoxBuilder.d.ts +6 -6
- package/Meshes/Builders/tiledPlaneBuilder.d.ts +5 -5
- package/Meshes/Builders/torusBuilder.d.ts +4 -4
- package/Meshes/Builders/torusKnotBuilder.d.ts +4 -4
- package/Meshes/Builders/tubeBuilder.d.ts +5 -5
- package/Meshes/Compression/dracoCodec.d.ts +2 -2
- package/Meshes/Compression/dracoCompression.d.ts +6 -6
- package/Meshes/Compression/dracoCompressionWorker.d.ts +1 -1
- package/Meshes/Compression/dracoDecoder.d.ts +6 -6
- package/Meshes/Compression/dracoEncoder.d.ts +5 -5
- package/Meshes/Compression/index.d.ts +4 -4
- package/Meshes/Compression/meshoptCompression.d.ts +1 -1
- package/Meshes/GaussianSplatting/gaussianSplattingMesh.d.ts +3 -3
- package/Meshes/GreasedLine/greasedLineBaseMesh.d.ts +8 -8
- package/Meshes/GreasedLine/greasedLineMesh.d.ts +11 -11
- package/Meshes/GreasedLine/greasedLineRibbonMesh.d.ts +11 -11
- package/Meshes/Node/Blocks/Instances/instantiateBaseBlock.d.ts +5 -5
- package/Meshes/Node/Blocks/Instances/instantiateBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Instances/instantiateLinearBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Instances/instantiateOnFacesBlock.d.ts +6 -6
- package/Meshes/Node/Blocks/Instances/instantiateOnVerticesBlock.d.ts +5 -5
- package/Meshes/Node/Blocks/Instances/instantiateOnVolumeBlock.d.ts +6 -6
- package/Meshes/Node/Blocks/Instances/instantiateRadialBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/alignBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/rotationXBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/rotationYBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/rotationZBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/scalingBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Matrices/translationBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Set/aggregatorBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Set/latticeBlock.d.ts +5 -5
- package/Meshes/Node/Blocks/Set/setColorsBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Set/setMaterialIDBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Set/setNormalsBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Set/setPositionsBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Set/setTangentsBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Set/setUVsBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Sources/boxBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/capsuleBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/cylinderBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/discBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/gridBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/icoSphereBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/meshBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/Sources/nullBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/Sources/planeBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/pointListBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/sphereBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Sources/torusBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Teleport/teleportInBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/Teleport/teleportOutBlock.d.ts +5 -5
- package/Meshes/Node/Blocks/Textures/geometryTextureBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/Textures/geometryTextureFetchBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/booleanGeometryBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/boundingBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/cleanGeometryBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/computeNormalsBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/conditionBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/debugBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryArcTan2Block.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryClampBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryCollectionBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryCrossBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryCurveBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryDesaturateBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryDistanceBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryDotBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryEaseBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryElbowBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryInfoBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryInputBlock.d.ts +6 -6
- package/Meshes/Node/Blocks/geometryInterceptorBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryLengthBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryLerpBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryModBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryNLerpBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryOptimizeBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/geometryOutputBlock.d.ts +4 -4
- package/Meshes/Node/Blocks/geometryPosterizeBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryPowBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryReplaceColorBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryRotate2dBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometrySmoothStepBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryStepBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/geometryTransformBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/geometryTrigonometryBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/intFloatConverterBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/mapRangeBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/mappingBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/mathBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/matrixComposeBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/mergeGeometryBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/noiseBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/normalizeVectorBlock.d.ts +3 -3
- package/Meshes/Node/Blocks/randomBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/subdivideBlock.d.ts +2 -2
- package/Meshes/Node/Blocks/vectorConverterBlock.d.ts +3 -3
- package/Meshes/Node/index.d.ts +87 -87
- package/Meshes/Node/nodeGeometry.d.ts +9 -9
- package/Meshes/Node/nodeGeometryBlock.d.ts +6 -6
- package/Meshes/Node/nodeGeometryBlockConnectionPoint.d.ts +5 -5
- package/Meshes/Node/nodeGeometryBuildState.d.ts +8 -8
- package/Meshes/WebGL/webGLDataBuffer.d.ts +1 -1
- package/Meshes/WebGPU/webgpuDataBuffer.d.ts +2 -2
- package/Meshes/abstractMesh.d.ts +37 -32
- package/Meshes/abstractMesh.decalMap.d.ts +3 -3
- package/Meshes/abstractMesh.hotSpot.d.ts +1 -1
- package/Meshes/abstractMesh.js +1 -1
- package/Meshes/abstractMesh.js.map +1 -1
- package/Meshes/buffer.d.ts +1 -1
- package/Meshes/csg.d.ts +7 -7
- package/Meshes/csg2.d.ts +2 -2
- package/Meshes/geodesicMesh.d.ts +2 -2
- package/Meshes/geometry.d.ts +12 -12
- package/Meshes/goldbergMesh.d.ts +5 -5
- package/Meshes/groundMesh.d.ts +3 -3
- package/Meshes/index.d.ts +55 -55
- package/Meshes/instancedMesh.d.ts +16 -16
- package/Meshes/instancedMesh.js.map +1 -1
- package/Meshes/lattice.d.ts +1 -1
- package/Meshes/lattice.material.d.ts +1 -1
- package/Meshes/linesMesh.d.ts +9 -9
- package/Meshes/mesh.d.ts +30 -30
- package/Meshes/mesh.js +1 -1
- package/Meshes/mesh.js.map +1 -1
- package/Meshes/mesh.vertexData.d.ts +9 -9
- package/Meshes/mesh.vertexData.subdivide.d.ts +1 -1
- package/Meshes/meshBuilder.d.ts +23 -23
- package/Meshes/meshLODLevel.d.ts +2 -2
- package/Meshes/meshSimplification.d.ts +1 -1
- package/Meshes/meshSimplificationSceneComponent.d.ts +6 -6
- package/Meshes/meshUVSpaceRenderer.d.ts +2 -2
- package/Meshes/meshUtils.d.ts +4 -4
- package/Meshes/polygonMesh.d.ts +5 -5
- package/Meshes/subMesh.d.ts +17 -17
- package/Meshes/subMesh.project.d.ts +3 -3
- package/Meshes/thinInstanceMesh.d.ts +4 -4
- package/Meshes/trailMesh.d.ts +3 -3
- package/Meshes/transformNode.d.ts +9 -9
- package/Misc/HighDynamicRange/cubemapToSphericalPolynomial.d.ts +4 -4
- package/Misc/HighDynamicRange/hdr.d.ts +1 -1
- package/Misc/HighDynamicRange/index.d.ts +3 -3
- package/Misc/HighDynamicRange/panoramaToCubemap.d.ts +1 -1
- package/Misc/PerformanceViewer/index.d.ts +4 -4
- package/Misc/PerformanceViewer/performanceViewerCollectionStrategies.d.ts +1 -1
- package/Misc/PerformanceViewer/performanceViewerCollector.d.ts +4 -4
- package/Misc/arrayTools.d.ts +1 -1
- package/Misc/assetsManager.d.ts +15 -15
- package/Misc/basis.d.ts +1 -1
- package/Misc/brdfTextureTools.d.ts +2 -2
- package/Misc/copyTextureToTexture.d.ts +3 -3
- package/Misc/copyTools.d.ts +3 -3
- package/Misc/dds.d.ts +4 -4
- package/Misc/decorators.d.ts +1 -1
- package/Misc/decorators.serialization.d.ts +7 -7
- package/Misc/depthReducer.d.ts +5 -5
- package/Misc/dumpTools.d.ts +1 -1
- package/Misc/environmentTextureTools.d.ts +5 -5
- package/Misc/equirectangularCapture.d.ts +5 -5
- package/Misc/fileRequest.d.ts +1 -1
- package/Misc/fileTools.d.ts +6 -6
- package/Misc/filesInput.d.ts +4 -4
- package/Misc/gradients.d.ts +2 -2
- package/Misc/greasedLineTools.d.ts +8 -8
- package/Misc/index.d.ts +82 -82
- package/Misc/interfaces/iClipPlanesHolder.d.ts +2 -2
- package/Misc/interfaces/iPerfViewer.d.ts +1 -1
- package/Misc/khronosTextureContainer.d.ts +1 -1
- package/Misc/khronosTextureContainer2.d.ts +5 -5
- package/Misc/meshExploder.d.ts +1 -1
- package/Misc/minMaxReducer.d.ts +9 -9
- package/Misc/observable.d.ts +1 -1
- package/Misc/observable.extensions.d.ts +3 -3
- package/Misc/observableCoroutine.d.ts +2 -2
- package/Misc/pivotTools.d.ts +1 -1
- package/Misc/pressureObserverWrapper.d.ts +1 -1
- package/Misc/reflector.d.ts +1 -1
- package/Misc/retryStrategy.d.ts +1 -1
- package/Misc/rgbdTextureTools.d.ts +3 -3
- package/Misc/sceneOptimizer.d.ts +2 -2
- package/Misc/sceneRecorder.d.ts +1 -1
- package/Misc/sceneSerializer.d.ts +1 -1
- package/Misc/screenshotTools.d.ts +4 -4
- package/Misc/stringDictionary.d.ts +1 -1
- package/Misc/textureTools.d.ts +3 -3
- package/Misc/tga.d.ts +1 -1
- package/Misc/timer.d.ts +4 -4
- package/Misc/tools.d.ts +10 -10
- package/Misc/trajectoryClassifier.d.ts +2 -2
- package/Misc/videoRecorder.d.ts +2 -2
- package/Misc/virtualJoystick.d.ts +2 -2
- package/Misc/webRequest.d.ts +2 -2
- package/Misc/workerPool.d.ts +1 -1
- package/Morph/index.d.ts +2 -2
- package/Morph/morphTarget.d.ts +7 -7
- package/Morph/morphTargetManager.d.ts +5 -5
- package/Navigation/INavigationEngine.d.ts +4 -4
- package/Navigation/Plugins/index.d.ts +1 -1
- package/Navigation/Plugins/recastJSPlugin.d.ts +6 -6
- package/Navigation/index.d.ts +2 -2
- package/ObjectModel/index.d.ts +1 -1
- package/Offline/database.d.ts +1 -1
- package/Offline/index.d.ts +2 -2
- package/Particles/EmitterTypes/IParticleEmitterType.d.ts +6 -6
- package/Particles/EmitterTypes/boxParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/coneParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/customParticleEmitter.d.ts +7 -7
- package/Particles/EmitterTypes/cylinderParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/hemisphericParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/index.d.ts +9 -9
- package/Particles/EmitterTypes/meshParticleEmitter.d.ts +9 -9
- package/Particles/EmitterTypes/pointParticleEmitter.d.ts +6 -6
- package/Particles/EmitterTypes/sphereParticleEmitter.d.ts +6 -6
- package/Particles/IGPUParticleSystemPlatform.d.ts +5 -5
- package/Particles/IParticleSystem.d.ts +13 -13
- package/Particles/baseParticleSystem.d.ts +23 -23
- package/Particles/cloudPoint.d.ts +6 -6
- package/Particles/computeShaderParticleSystem.d.ts +9 -9
- package/Particles/gpuParticleSystem.d.ts +25 -25
- package/Particles/index.d.ts +21 -21
- package/Particles/particle.d.ts +6 -6
- package/Particles/particleHelper.d.ts +6 -6
- package/Particles/particleSystem.d.ts +13 -13
- package/Particles/particleSystem.functions.d.ts +5 -5
- package/Particles/particleSystemComponent.d.ts +5 -5
- package/Particles/particleSystemSet.d.ts +6 -6
- package/Particles/pointsCloudSystem.d.ts +5 -5
- package/Particles/solidParticle.d.ts +9 -9
- package/Particles/solidParticleSystem.d.ts +11 -11
- package/Particles/subEmitter.d.ts +3 -3
- package/Particles/thinParticleSystem.d.ts +16 -16
- package/Particles/webgl2ParticleSystem.d.ts +10 -10
- package/Physics/IPhysicsEngine.d.ts +4 -4
- package/Physics/Plugins/ammoJSPlugin.d.ts +1 -1
- package/Physics/Plugins/cannonJSPlugin.d.ts +1 -1
- package/Physics/Plugins/oimoJSPlugin.d.ts +1 -1
- package/Physics/castingResult.d.ts +3 -3
- package/Physics/index.d.ts +10 -10
- package/Physics/joinedPhysicsEngineComponent.d.ts +9 -9
- package/Physics/physicsEngine.d.ts +1 -1
- package/Physics/physicsEngineComponent.d.ts +3 -3
- package/Physics/physicsHelper.d.ts +6 -6
- package/Physics/physicsImpostor.d.ts +1 -1
- package/Physics/physicsJoint.d.ts +1 -1
- package/Physics/physicsPointProximityQuery.d.ts +3 -3
- package/Physics/physicsRaycastResult.d.ts +2 -2
- package/Physics/physicsShapeCastQuery.d.ts +3 -3
- package/Physics/physicsShapeProximityCastQuery.d.ts +3 -3
- package/Physics/proximityCastResult.d.ts +1 -1
- package/Physics/shapeCastResult.d.ts +1 -1
- package/Physics/v1/IPhysicsEnginePlugin.d.ts +6 -6
- package/Physics/v1/Plugins/ammoJSPlugin.d.ts +7 -7
- package/Physics/v1/Plugins/cannonJSPlugin.d.ts +8 -8
- package/Physics/v1/Plugins/index.d.ts +3 -3
- package/Physics/v1/Plugins/oimoJSPlugin.d.ts +8 -8
- package/Physics/v1/index.d.ts +6 -6
- package/Physics/v1/physicsEngine.d.ts +7 -7
- package/Physics/v1/physicsEngineComponent.d.ts +7 -7
- package/Physics/v1/physicsImpostor.d.ts +11 -11
- package/Physics/v1/physicsJoint.d.ts +2 -2
- package/Physics/v2/IPhysicsEnginePlugin.d.ts +12 -12
- package/Physics/v2/Plugins/havokPlugin.d.ts +18 -18
- package/Physics/v2/Plugins/index.d.ts +1 -1
- package/Physics/v2/characterController.d.ts +5 -5
- package/Physics/v2/index.d.ts +10 -10
- package/Physics/v2/physicsAggregate.d.ts +8 -8
- package/Physics/v2/physicsBody.d.ts +9 -9
- package/Physics/v2/physicsConstraint.d.ts +5 -5
- package/Physics/v2/physicsEngine.d.ts +7 -7
- package/Physics/v2/physicsEngineComponent.d.ts +7 -7
- package/Physics/v2/physicsShape.d.ts +10 -10
- package/Physics/v2/ragdoll.d.ts +7 -7
- package/PostProcesses/RenderPipeline/Pipelines/defaultRenderingPipeline.d.ts +15 -15
- package/PostProcesses/RenderPipeline/Pipelines/index.d.ts +19 -19
- package/PostProcesses/RenderPipeline/Pipelines/lensRenderingPipeline.d.ts +7 -7
- package/PostProcesses/RenderPipeline/Pipelines/ssao2RenderingPipeline.d.ts +4 -4
- package/PostProcesses/RenderPipeline/Pipelines/ssaoRenderingPipeline.d.ts +6 -6
- package/PostProcesses/RenderPipeline/Pipelines/ssrRenderingPipeline.d.ts +8 -8
- package/PostProcesses/RenderPipeline/Pipelines/standardRenderingPipeline.d.ts +15 -15
- package/PostProcesses/RenderPipeline/Pipelines/taaRenderingPipeline.d.ts +4 -4
- package/PostProcesses/RenderPipeline/index.d.ts +5 -5
- package/PostProcesses/RenderPipeline/postProcessRenderEffect.d.ts +4 -4
- package/PostProcesses/RenderPipeline/postProcessRenderPipeline.d.ts +6 -6
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManager.d.ts +2 -2
- package/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.d.ts +4 -4
- package/PostProcesses/anaglyphPostProcess.d.ts +3 -3
- package/PostProcesses/blackAndWhitePostProcess.d.ts +7 -7
- package/PostProcesses/bloomEffect.d.ts +6 -6
- package/PostProcesses/bloomMergePostProcess.d.ts +6 -6
- package/PostProcesses/blurPostProcess.d.ts +8 -8
- package/PostProcesses/chromaticAberrationPostProcess.d.ts +8 -8
- package/PostProcesses/circleOfConfusionPostProcess.d.ts +7 -7
- package/PostProcesses/colorCorrectionPostProcess.d.ts +6 -6
- package/PostProcesses/convolutionPostProcess.d.ts +6 -6
- package/PostProcesses/depthOfFieldBlurPostProcess.d.ts +6 -6
- package/PostProcesses/depthOfFieldBlurPostProcess.js +9 -3
- package/PostProcesses/depthOfFieldBlurPostProcess.js.map +1 -1
- package/PostProcesses/depthOfFieldEffect.d.ts +7 -7
- package/PostProcesses/depthOfFieldMergePostProcess.d.ts +5 -5
- package/PostProcesses/displayPassPostProcess.d.ts +6 -6
- package/PostProcesses/extractHighlightsPostProcess.d.ts +6 -6
- package/PostProcesses/filterPostProcess.d.ts +7 -7
- package/PostProcesses/fxaaPostProcess.d.ts +6 -6
- package/PostProcesses/grainPostProcess.d.ts +6 -6
- package/PostProcesses/highlightsPostProcess.d.ts +4 -4
- package/PostProcesses/imageProcessingPostProcess.d.ts +10 -10
- package/PostProcesses/index.d.ts +93 -93
- package/PostProcesses/motionBlurPostProcess.d.ts +9 -9
- package/PostProcesses/passPostProcess.d.ts +7 -7
- package/PostProcesses/postProcess.d.ts +21 -21
- package/PostProcesses/postProcessManager.d.ts +6 -6
- package/PostProcesses/refractionPostProcess.d.ts +9 -9
- package/PostProcesses/screenSpaceCurvaturePostProcess.d.ts +8 -8
- package/PostProcesses/screenSpaceReflectionPostProcess.d.ts +7 -7
- package/PostProcesses/sharpenPostProcess.d.ts +7 -7
- package/PostProcesses/stereoscopicInterlacePostProcess.d.ts +3 -3
- package/PostProcesses/subSurfaceScatteringPostProcess.d.ts +12 -12
- package/PostProcesses/thinAnaglyphPostProcess.d.ts +1 -1
- package/PostProcesses/thinBlackAndWhitePostProcess.d.ts +1 -1
- package/PostProcesses/thinBloomEffect.d.ts +3 -3
- package/PostProcesses/thinBloomMergePostProcess.d.ts +1 -1
- package/PostProcesses/thinBlurPostProcess.d.ts +1 -1
- package/PostProcesses/thinBlurPostProcess.js +1 -0
- package/PostProcesses/thinBlurPostProcess.js.map +1 -1
- package/PostProcesses/thinChromaticAberrationPostProcess.d.ts +2 -2
- package/PostProcesses/thinCircleOfConfusionPostProcess.d.ts +1 -1
- package/PostProcesses/thinDepthOfFieldBlurPostProcess.d.ts +1 -1
- package/PostProcesses/thinDepthOfFieldEffect.d.ts +5 -5
- package/PostProcesses/thinDepthOfFieldEffect.js +3 -3
- package/PostProcesses/thinDepthOfFieldEffect.js.map +1 -1
- package/PostProcesses/thinDepthOfFieldMergePostProcess.d.ts +1 -1
- package/PostProcesses/thinExtractHighlightsPostProcess.d.ts +1 -1
- package/PostProcesses/thinImageProcessingPostProcess.d.ts +2 -2
- package/PostProcesses/thinSSRBlurCombinerPostProcess.d.ts +1 -1
- package/PostProcesses/thinSSRBlurPostProcess.d.ts +2 -2
- package/PostProcesses/thinTAAPostProcess.d.ts +1 -1
- package/PostProcesses/tonemapPostProcess.d.ts +3 -3
- package/PostProcesses/volumetricLightScatteringPostProcess.d.ts +13 -13
- package/PostProcesses/vrDistortionCorrectionPostProcess.d.ts +4 -4
- package/PostProcesses/vrMultiviewToSingleviewPostProcess.d.ts +5 -5
- package/Probes/index.d.ts +1 -1
- package/Probes/reflectionProbe.d.ts +6 -6
- package/Rendering/GlobalIllumination/giRSM.d.ts +1 -1
- package/Rendering/GlobalIllumination/giRSMManager.d.ts +1 -1
- package/Rendering/GlobalIllumination/index.d.ts +10 -10
- package/Rendering/IBLShadows/iblShadowsAccumulationPass.d.ts +4 -4
- package/Rendering/IBLShadows/iblShadowsRenderPipeline.d.ts +6 -6
- package/Rendering/IBLShadows/iblShadowsSpatialBlurPass.d.ts +3 -3
- package/Rendering/IBLShadows/iblShadowsVoxelRenderer.d.ts +8 -8
- package/Rendering/IBLShadows/iblShadowsVoxelTracingPass.d.ts +4 -4
- package/Rendering/boundingBoxRenderer.d.ts +11 -11
- package/Rendering/depthPeelingRenderer.d.ts +7 -7
- package/Rendering/depthPeelingSceneComponent.d.ts +5 -5
- package/Rendering/depthRenderer.d.ts +10 -10
- package/Rendering/depthRendererSceneComponent.d.ts +6 -6
- package/Rendering/edgesRenderer.d.ts +14 -14
- package/Rendering/fluidRenderer/fluidRenderer.d.ts +3 -3
- package/Rendering/fluidRenderer/fluidRenderingObjectCustomParticles.d.ts +1 -1
- package/Rendering/fluidRenderer/fluidRenderingObjectParticleSystem.d.ts +1 -1
- package/Rendering/fluidRenderer/fluidRenderingTargetRenderer.d.ts +2 -2
- package/Rendering/fluidRenderer/index.d.ts +23 -23
- package/Rendering/geometryBufferRenderer.d.ts +11 -11
- package/Rendering/geometryBufferRendererSceneComponent.d.ts +5 -5
- package/Rendering/iblCdfGenerator.d.ts +7 -7
- package/Rendering/iblCdfGeneratorSceneComponent.d.ts +5 -5
- package/Rendering/index.d.ts +86 -86
- package/Rendering/motionBlurConfiguration.d.ts +1 -1
- package/Rendering/objectRenderer.d.ts +2 -2
- package/Rendering/outlineRenderer.d.ts +6 -6
- package/Rendering/prePassEffectConfiguration.d.ts +1 -1
- package/Rendering/prePassRenderer.d.ts +11 -11
- package/Rendering/prePassRendererSceneComponent.d.ts +7 -7
- package/Rendering/renderingGroup.d.ts +9 -9
- package/Rendering/renderingManager.d.ts +10 -10
- package/Rendering/screenSpaceReflections2Configuration.d.ts +1 -1
- package/Rendering/screenSpaceReflectionsConfiguration.d.ts +1 -1
- package/Rendering/ssao2Configuration.d.ts +1 -1
- package/Rendering/subSurfaceConfiguration.d.ts +4 -4
- package/Rendering/subSurfaceSceneComponent.d.ts +5 -5
- package/Rendering/utilityLayerRenderer.d.ts +7 -7
- package/Shaders/ShadersInclude/backgroundUboDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/bumpFragmentFunctions.d.ts +1 -1
- package/Shaders/ShadersInclude/defaultFragmentDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/defaultUboDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/defaultVertexDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/gaussianSplatting.js +9 -1
- package/Shaders/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/Shaders/ShadersInclude/gaussianSplattingFragmentDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/gaussianSplattingUboDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/geometryUboDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/lightsFragmentFunctions.d.ts +1 -1
- package/Shaders/ShadersInclude/lineUboDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/pbrBlockAlbedoOpacity.d.ts +1 -1
- package/Shaders/ShadersInclude/pbrDirectLightingSetupFunctions.d.ts +1 -1
- package/Shaders/ShadersInclude/pbrFragmentDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/pbrFragmentExtraDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/pbrFragmentSamplersDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/pbrUboDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/pbrVertexDeclaration.d.ts +1 -1
- package/Shaders/ShadersInclude/shadowMapFragmentExtraDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/shadowMapUboDeclaration.d.ts +2 -2
- package/Shaders/ShadersInclude/shadowMapVertexDeclaration.d.ts +2 -2
- package/Shaders/background.fragment.d.ts +18 -18
- package/Shaders/background.vertex.d.ts +18 -18
- package/Shaders/boundingBoxRenderer.fragment.d.ts +2 -2
- package/Shaders/boundingBoxRenderer.vertex.d.ts +2 -2
- package/Shaders/color.fragment.d.ts +4 -4
- package/Shaders/color.vertex.d.ts +11 -11
- package/Shaders/copyTextureToTexture.fragment.d.ts +1 -1
- package/Shaders/default.fragment.d.ts +28 -28
- package/Shaders/default.vertex.d.ts +33 -33
- package/Shaders/depth.fragment.d.ts +3 -3
- package/Shaders/depth.vertex.d.ts +14 -14
- package/Shaders/extractHighlights.fragment.d.ts +1 -1
- package/Shaders/gaussianSplatting.fragment.d.ts +5 -5
- package/Shaders/gaussianSplatting.vertex.d.ts +10 -10
- package/Shaders/gaussianSplatting.vertex.js +1 -1
- package/Shaders/gaussianSplatting.vertex.js.map +1 -1
- package/Shaders/geometry.fragment.d.ts +7 -7
- package/Shaders/geometry.vertex.d.ts +15 -15
- package/Shaders/glowMapGeneration.fragment.d.ts +3 -3
- package/Shaders/glowMapGeneration.vertex.d.ts +12 -12
- package/Shaders/gpuRenderParticles.fragment.d.ts +9 -9
- package/Shaders/gpuRenderParticles.vertex.d.ts +6 -6
- package/Shaders/gpuTransform.vertex.d.ts +8 -8
- package/Shaders/grain.fragment.d.ts +1 -1
- package/Shaders/greasedLine.vertex.d.ts +2 -2
- package/Shaders/hdrFiltering.fragment.d.ts +4 -4
- package/Shaders/hdrIrradianceFiltering.fragment.d.ts +4 -4
- package/Shaders/iblCdfy.fragment.d.ts +1 -1
- package/Shaders/iblIcdf.fragment.d.ts +1 -1
- package/Shaders/iblScaledLuminance.fragment.d.ts +1 -1
- package/Shaders/iblVoxelGrid.vertex.d.ts +10 -10
- package/Shaders/imageProcessing.fragment.d.ts +3 -3
- package/Shaders/kernelBlur.fragment.d.ts +4 -4
- package/Shaders/kernelBlur.vertex.d.ts +2 -2
- package/Shaders/layer.fragment.d.ts +1 -1
- package/Shaders/line.fragment.d.ts +4 -4
- package/Shaders/line.vertex.d.ts +8 -8
- package/Shaders/meshUVSpaceRenderer.vertex.d.ts +10 -10
- package/Shaders/outline.fragment.d.ts +4 -4
- package/Shaders/outline.vertex.d.ts +14 -14
- package/Shaders/particles.fragment.d.ts +9 -9
- package/Shaders/particles.vertex.d.ts +6 -6
- package/Shaders/pbr.fragment.d.ts +58 -58
- package/Shaders/pbr.vertex.d.ts +33 -33
- package/Shaders/picking.vertex.d.ts +10 -10
- package/Shaders/rgbdDecode.fragment.d.ts +1 -1
- package/Shaders/rgbdEncode.fragment.d.ts +1 -1
- package/Shaders/screenSpaceReflection2.fragment.d.ts +3 -3
- package/Shaders/screenSpaceReflection2BlurCombiner.fragment.d.ts +3 -3
- package/Shaders/shadowMap.fragment.d.ts +4 -4
- package/Shaders/shadowMap.vertex.d.ts +17 -17
- package/Shaders/spriteMap.fragment.d.ts +4 -4
- package/Shaders/spriteMap.vertex.d.ts +3 -3
- package/Shaders/sprites.fragment.d.ts +5 -5
- package/Shaders/sprites.vertex.d.ts +3 -3
- package/Shaders/standard.fragment.d.ts +1 -1
- package/Shaders/subSurfaceScattering.fragment.d.ts +4 -4
- package/Shaders/velocity.vertex.d.ts +2 -2
- package/Shaders/volumetricLightScatteringPass.vertex.d.ts +10 -10
- package/ShadersWGSL/ShadersInclude/backgroundUboDeclaration.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/bumpFragmentFunctions.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/defaultUboDeclaration.d.ts +2 -2
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js +11 -2
- package/ShadersWGSL/ShadersInclude/gaussianSplatting.js.map +1 -1
- package/ShadersWGSL/ShadersInclude/gaussianSplattingFragmentDeclaration.d.ts +2 -2
- package/ShadersWGSL/ShadersInclude/gaussianSplattingUboDeclaration.d.ts +2 -2
- package/ShadersWGSL/ShadersInclude/lightsFragmentFunctions.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/pbrBlockAlbedoOpacity.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/pbrDirectLightingSetupFunctions.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/pbrFragmentExtraDeclaration.d.ts +1 -1
- package/ShadersWGSL/ShadersInclude/pbrFragmentSamplersDeclaration.d.ts +2 -2
- package/ShadersWGSL/ShadersInclude/pbrUboDeclaration.d.ts +2 -2
- package/ShadersWGSL/ShadersInclude/shadowMapFragmentExtraDeclaration.d.ts +2 -2
- package/ShadersWGSL/background.fragment.d.ts +16 -16
- package/ShadersWGSL/background.vertex.d.ts +16 -16
- package/ShadersWGSL/color.fragment.d.ts +4 -4
- package/ShadersWGSL/color.vertex.d.ts +11 -11
- package/ShadersWGSL/copyTextureToTexture.fragment.d.ts +1 -1
- package/ShadersWGSL/default.fragment.d.ts +26 -26
- package/ShadersWGSL/default.vertex.d.ts +31 -31
- package/ShadersWGSL/depth.fragment.d.ts +3 -3
- package/ShadersWGSL/depth.vertex.d.ts +12 -12
- package/ShadersWGSL/extractHighlights.fragment.d.ts +1 -1
- package/ShadersWGSL/gaussianSplatting.fragment.d.ts +5 -5
- package/ShadersWGSL/gaussianSplatting.vertex.d.ts +10 -10
- package/ShadersWGSL/gaussianSplatting.vertex.js +2 -2
- package/ShadersWGSL/gaussianSplatting.vertex.js.map +1 -1
- package/ShadersWGSL/geometry.fragment.d.ts +6 -6
- package/ShadersWGSL/geometry.vertex.d.ts +14 -14
- package/ShadersWGSL/glowMapGeneration.fragment.d.ts +3 -3
- package/ShadersWGSL/glowMapGeneration.vertex.d.ts +12 -12
- package/ShadersWGSL/grain.fragment.d.ts +1 -1
- package/ShadersWGSL/greasedLine.vertex.d.ts +4 -4
- package/ShadersWGSL/hdrFiltering.fragment.d.ts +4 -4
- package/ShadersWGSL/hdrIrradianceFiltering.fragment.d.ts +4 -4
- package/ShadersWGSL/iblIcdf.fragment.d.ts +1 -1
- package/ShadersWGSL/iblScaledLuminance.fragment.d.ts +1 -1
- package/ShadersWGSL/iblVoxelGrid.vertex.d.ts +10 -10
- package/ShadersWGSL/imageProcessing.fragment.d.ts +3 -3
- package/ShadersWGSL/kernelBlur.fragment.d.ts +4 -4
- package/ShadersWGSL/kernelBlur.vertex.d.ts +2 -2
- package/ShadersWGSL/layer.fragment.d.ts +1 -1
- package/ShadersWGSL/line.fragment.d.ts +4 -4
- package/ShadersWGSL/line.vertex.d.ts +8 -8
- package/ShadersWGSL/meshUVSpaceRenderer.vertex.d.ts +10 -10
- package/ShadersWGSL/outline.fragment.d.ts +4 -4
- package/ShadersWGSL/outline.vertex.d.ts +14 -14
- package/ShadersWGSL/particles.fragment.d.ts +9 -9
- package/ShadersWGSL/particles.vertex.d.ts +6 -6
- package/ShadersWGSL/pbr.fragment.d.ts +56 -56
- package/ShadersWGSL/pbr.vertex.d.ts +31 -31
- package/ShadersWGSL/picking.vertex.d.ts +10 -10
- package/ShadersWGSL/rgbdDecode.fragment.d.ts +1 -1
- package/ShadersWGSL/rgbdEncode.fragment.d.ts +1 -1
- package/ShadersWGSL/screenSpaceReflection2.fragment.d.ts +3 -3
- package/ShadersWGSL/screenSpaceReflection2BlurCombiner.fragment.d.ts +3 -3
- package/ShadersWGSL/shadowMap.fragment.d.ts +4 -4
- package/ShadersWGSL/shadowMap.vertex.d.ts +17 -17
- package/ShadersWGSL/sprites.fragment.d.ts +5 -5
- package/ShadersWGSL/sprites.vertex.d.ts +3 -3
- package/ShadersWGSL/subSurfaceScattering.fragment.d.ts +4 -4
- package/Sprites/index.d.ts +10 -10
- package/Sprites/sprite.d.ts +9 -9
- package/Sprites/spriteManager.d.ts +9 -9
- package/Sprites/spriteMap.d.ts +7 -7
- package/Sprites/spritePackedManager.d.ts +3 -3
- package/Sprites/spriteRenderer.d.ts +8 -8
- package/Sprites/spriteSceneComponent.d.ts +10 -10
- package/Sprites/thinSprite.d.ts +2 -2
- package/States/alphaCullingState.d.ts +1 -1
- package/States/depthCullingState.d.ts +1 -1
- package/States/index.d.ts +4 -4
- package/States/stencilState.d.ts +1 -1
- package/States/stencilStateComposer.d.ts +1 -1
- package/XR/features/Layers/WebXRProjectionLayer.d.ts +1 -1
- package/XR/features/WebXRAbstractFeature.d.ts +4 -4
- package/XR/features/WebXRAnchorSystem.d.ts +6 -6
- package/XR/features/WebXRBackgroundRemover.d.ts +4 -4
- package/XR/features/WebXRControllerMovement.d.ts +9 -9
- package/XR/features/WebXRControllerPhysics.d.ts +6 -6
- package/XR/features/WebXRControllerPointerSelection.d.ts +10 -10
- package/XR/features/WebXRControllerTeleportation.d.ts +12 -12
- package/XR/features/WebXRDOMOverlay.d.ts +3 -3
- package/XR/features/WebXRDepthSensing.d.ts +6 -6
- package/XR/features/WebXREyeTracking.d.ts +5 -5
- package/XR/features/WebXRFeaturePointSystem.d.ts +4 -4
- package/XR/features/WebXRHandTracking.d.ts +11 -11
- package/XR/features/WebXRHitTest.d.ts +5 -5
- package/XR/features/WebXRHitTestLegacy.d.ts +6 -6
- package/XR/features/WebXRImageTracking.d.ts +5 -5
- package/XR/features/WebXRLayers.d.ts +8 -8
- package/XR/features/WebXRLightEstimation.d.ts +9 -9
- package/XR/features/WebXRMeshDetector.d.ts +6 -6
- package/XR/features/WebXRNearInteraction.d.ts +13 -13
- package/XR/features/WebXRPlaneDetector.d.ts +5 -5
- package/XR/features/WebXRRawCameraAccess.d.ts +4 -4
- package/XR/features/WebXRSpaceWarp.d.ts +10 -10
- package/XR/features/WebXRWalkingLocomotion.d.ts +4 -4
- package/XR/features/index.d.ts +23 -23
- package/XR/index.d.ts +14 -14
- package/XR/motionController/index.d.ts +9 -9
- package/XR/motionController/webXRAbstractMotionController.d.ts +5 -5
- package/XR/motionController/webXRControllerComponent.d.ts +3 -3
- package/XR/motionController/webXRGenericHandController.d.ts +4 -4
- package/XR/motionController/webXRGenericMotionController.d.ts +4 -4
- package/XR/motionController/webXRHTCViveMotionController.d.ts +4 -4
- package/XR/motionController/webXRMicrosoftMixedRealityController.d.ts +4 -4
- package/XR/motionController/webXRMotionControllerManager.d.ts +2 -2
- package/XR/motionController/webXROculusTouchMotionController.d.ts +4 -4
- package/XR/motionController/webXRProfiledMotionController.d.ts +4 -4
- package/XR/native/index.d.ts +2 -2
- package/XR/native/nativeXRRenderTarget.d.ts +7 -7
- package/XR/webXRCamera.d.ts +7 -7
- package/XR/webXRDefaultExperience.d.ts +16 -16
- package/XR/webXREnterExitUI.d.ts +5 -5
- package/XR/webXRExperienceHelper.d.ts +7 -7
- package/XR/webXRFeaturesManager.d.ts +2 -2
- package/XR/webXRInput.d.ts +6 -6
- package/XR/webXRInputSource.d.ts +7 -7
- package/XR/webXRLayerWrapper.d.ts +3 -3
- package/XR/webXRManagedOutputCanvas.d.ts +5 -5
- package/XR/webXRRenderTargetTextureProvider.d.ts +5 -5
- package/XR/webXRSessionManager.d.ts +9 -9
- package/XR/webXRTypes.d.ts +2 -2
- package/XR/webXRWebGLLayer.d.ts +6 -6
- package/assetContainer.d.ts +27 -27
- package/index.d.ts +49 -49
- package/node.d.ts +15 -15
- package/package.json +1 -1
- package/scene.d.ts +62 -62
- package/sceneComponent.d.ts +12 -12
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { IAnimatable } from "../../Animations/animatable.interface";
|
|
3
|
-
import { Color3 } from "../../Maths/math.color";
|
|
4
|
-
import type { SmartArray } from "../../Misc/smartArray";
|
|
5
|
-
import type { BaseTexture } from "../../Materials/Textures/baseTexture";
|
|
6
|
-
import type { RenderTargetTexture } from "../../Materials/Textures/renderTargetTexture";
|
|
7
|
-
import type { UniformBuffer } from "../../Materials/uniformBuffer";
|
|
8
|
-
import type { EffectFallbacks } from "../effectFallbacks";
|
|
9
|
-
import type { SubMesh } from "../../Meshes/subMesh";
|
|
10
|
-
import { MaterialPluginBase } from "../materialPluginBase";
|
|
11
|
-
import { MaterialDefines } from "../materialDefines";
|
|
12
|
-
import type { Engine } from "../../Engines/engine";
|
|
13
|
-
import type { Scene } from "../../scene";
|
|
14
|
-
import type { PBRBaseMaterial } from "./pbrBaseMaterial";
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { IAnimatable } from "../../Animations/animatable.interface.js";
|
|
3
|
+
import { Color3 } from "../../Maths/math.color.js";
|
|
4
|
+
import type { SmartArray } from "../../Misc/smartArray.js";
|
|
5
|
+
import type { BaseTexture } from "../../Materials/Textures/baseTexture.js";
|
|
6
|
+
import type { RenderTargetTexture } from "../../Materials/Textures/renderTargetTexture.js";
|
|
7
|
+
import type { UniformBuffer } from "../../Materials/uniformBuffer.js";
|
|
8
|
+
import type { EffectFallbacks } from "../effectFallbacks.js";
|
|
9
|
+
import type { SubMesh } from "../../Meshes/subMesh.js";
|
|
10
|
+
import { MaterialPluginBase } from "../materialPluginBase.js";
|
|
11
|
+
import { MaterialDefines } from "../materialDefines.js";
|
|
12
|
+
import type { Engine } from "../../Engines/engine.js";
|
|
13
|
+
import type { Scene } from "../../scene.js";
|
|
14
|
+
import type { PBRBaseMaterial } from "./pbrBaseMaterial.js";
|
|
15
15
|
/**
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseTexture } from "../baseTexture";
|
|
2
|
-
import type { AbstractEngine } from "../../../Engines/abstractEngine";
|
|
1
|
+
import type { BaseTexture } from "../baseTexture.js";
|
|
2
|
+
import type { AbstractEngine } from "../../../Engines/abstractEngine.js";
|
|
3
3
|
/**
|
|
4
4
|
* Options for texture filtering
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseTexture } from "../baseTexture";
|
|
2
|
-
import type { AbstractEngine } from "../../../Engines/abstractEngine";
|
|
1
|
+
import { BaseTexture } from "../baseTexture.js";
|
|
2
|
+
import type { AbstractEngine } from "../../../Engines/abstractEngine.js";
|
|
3
3
|
/**
|
|
4
4
|
* Options for texture filtering
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DataCursor } from "./exrLoader.core";
|
|
2
|
-
import { type IEXRDecoder, type IEXRHeader } from "./exrLoader.interfaces";
|
|
3
|
-
import { EXROutputType } from "./exrLoader.configuration";
|
|
1
|
+
import type { DataCursor } from "./exrLoader.core.js";
|
|
2
|
+
import { type IEXRDecoder, type IEXRHeader } from "./exrLoader.interfaces.js";
|
|
3
|
+
import { EXROutputType } from "./exrLoader.configuration.js";
|
|
4
4
|
/**
|
|
5
5
|
* Inspired by https://github.com/sciecode/three.js/blob/dev/examples/jsm/loaders/EXRLoader.js
|
|
6
6
|
* Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DataCursor } from "./exrLoader.core";
|
|
2
|
-
import type { IEXRHeader } from "./exrLoader.interfaces";
|
|
1
|
+
import type { DataCursor } from "./exrLoader.core.js";
|
|
2
|
+
import type { IEXRHeader } from "./exrLoader.interfaces.js";
|
|
3
3
|
/**
|
|
4
4
|
* Gets the EXR header
|
|
5
5
|
* @param dataView defines the data view to read from
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Nullable } from "../../../../types.js";
|
|
2
|
-
import type { DataCursor } from "./exrLoader.core";
|
|
2
|
+
import type { DataCursor } from "./exrLoader.core.js";
|
|
3
3
|
export declare const INT32_SIZE = 4;
|
|
4
4
|
export declare const FLOAT32_SIZE = 4;
|
|
5
5
|
export declare const INT8_SIZE = 1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from "./exrLoader.compression";
|
|
2
|
-
export * from "./exrLoader.compression.huf";
|
|
3
|
-
export * from "./exrLoader.compression.rle";
|
|
4
|
-
export * from "./exrLoader.configuration";
|
|
5
|
-
export * from "./exrLoader.core";
|
|
6
|
-
export * from "./exrLoader.decoder";
|
|
7
|
-
export * from "./exrLoader.header";
|
|
1
|
+
export * from "./exrLoader.compression.js";
|
|
2
|
+
export * from "./exrLoader.compression.huf.js";
|
|
3
|
+
export * from "./exrLoader.compression.rle.js";
|
|
4
|
+
export * from "./exrLoader.configuration.js";
|
|
5
|
+
export * from "./exrLoader.core.js";
|
|
6
|
+
export * from "./exrLoader.decoder.js";
|
|
7
|
+
export * from "./exrLoader.header.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
3
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
3
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
4
4
|
/**
|
|
5
5
|
* Loader for .basis file format
|
|
6
6
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
3
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
3
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
4
4
|
/**
|
|
5
5
|
* Implementation of the DDS Texture Loader.
|
|
6
6
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
3
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
3
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
4
4
|
/**
|
|
5
5
|
* Implementation of the ENV Texture Loader.
|
|
6
6
|
* @internal
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Nullable } from "../../../types.js";
|
|
2
|
-
import type { InternalTexture } from "../internalTexture";
|
|
3
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
2
|
+
import type { InternalTexture } from "../internalTexture.js";
|
|
3
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
4
4
|
/**
|
|
5
5
|
* Inspired by https://github.com/sciecode/three.js/blob/dev/examples/jsm/loaders/EXRLoader.js
|
|
6
6
|
* Referred to the original Industrial Light & Magic OpenEXR implementation and the TinyEXR / Syoyo Fujita
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
2
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
2
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
3
3
|
/**
|
|
4
4
|
* Implementation of the HDR Texture Loader.
|
|
5
5
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalTexture } from "../internalTexture";
|
|
2
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { InternalTexture } from "../internalTexture.js";
|
|
2
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
3
3
|
/**
|
|
4
4
|
* Implementation of the IES Texture Loader.
|
|
5
5
|
* @internal
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export * from "./internalTextureLoader";
|
|
2
|
-
export * from "./ddsTextureLoader";
|
|
3
|
-
export * from "./envTextureLoader";
|
|
4
|
-
export * from "./ktxTextureLoader";
|
|
5
|
-
export * from "./tgaTextureLoader";
|
|
6
|
-
export * from "./hdrTextureLoader";
|
|
7
|
-
export * from "./basisTextureLoader";
|
|
8
|
-
export * from "./exrTextureLoader";
|
|
9
|
-
export * from "./iesTextureLoader";
|
|
10
|
-
export * from "./textureLoaderManager";
|
|
11
|
-
export * from "./EXR/index";
|
|
1
|
+
export * from "./internalTextureLoader.js";
|
|
2
|
+
export * from "./ddsTextureLoader.js";
|
|
3
|
+
export * from "./envTextureLoader.js";
|
|
4
|
+
export * from "./ktxTextureLoader.js";
|
|
5
|
+
export * from "./tgaTextureLoader.js";
|
|
6
|
+
export * from "./hdrTextureLoader.js";
|
|
7
|
+
export * from "./basisTextureLoader.js";
|
|
8
|
+
export * from "./exrTextureLoader.js";
|
|
9
|
+
export * from "./iesTextureLoader.js";
|
|
10
|
+
export * from "./textureLoaderManager.js";
|
|
11
|
+
export * from "./EXR/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { InternalTexture } from "../internalTexture";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { InternalTexture } from "../internalTexture.js";
|
|
3
3
|
/**
|
|
4
4
|
* This represents the required contract to create a new type of texture loader.
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
3
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
3
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
4
4
|
/**
|
|
5
5
|
* Implementation of the KTX Texture Loader.
|
|
6
6
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
2
|
-
import type { Nullable } from "../../../types";
|
|
1
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
2
|
+
import type { Nullable } from "../../../types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Registers a texture loader.
|
|
5
5
|
* If a loader for the extension exists in the registry, it will be replaced.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { InternalTexture } from "../../../Materials/Textures/internalTexture";
|
|
2
|
-
import type { IInternalTextureLoader } from "./internalTextureLoader";
|
|
1
|
+
import type { InternalTexture } from "../../../Materials/Textures/internalTexture.js";
|
|
2
|
+
import type { IInternalTextureLoader } from "./internalTextureLoader.js";
|
|
3
3
|
/**
|
|
4
4
|
* Implementation of the TGA Texture Loader.
|
|
5
5
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RenderTargetTexture } from "../Textures/renderTargetTexture";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
1
|
+
import { RenderTargetTexture } from "../Textures/renderTargetTexture.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
3
|
/**
|
|
4
4
|
* Renders to multiple views with a single draw call
|
|
5
5
|
* Only for WebGL backends
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./packer";
|
|
2
|
-
export * from "./frame";
|
|
1
|
+
export * from "./packer.js";
|
|
2
|
+
export * from "./frame.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { AbstractMesh } from "../../../Meshes/abstractMesh";
|
|
2
|
-
import type { Scene } from "../../../scene";
|
|
3
|
-
import type { Nullable } from "../../../types";
|
|
4
|
-
import { Color3, Color4 } from "../../../Maths/math.color";
|
|
5
|
-
import { TexturePackerFrame } from "./frame";
|
|
1
|
+
import type { AbstractMesh } from "../../../Meshes/abstractMesh.js";
|
|
2
|
+
import type { Scene } from "../../../scene.js";
|
|
3
|
+
import type { Nullable } from "../../../types.js";
|
|
4
|
+
import { Color3, Color4 } from "../../../Maths/math.color.js";
|
|
5
|
+
import { TexturePackerFrame } from "./frame.js";
|
|
6
6
|
/**
|
|
7
7
|
* Defines the basic options interface of a TexturePacker
|
|
8
8
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Scene } from "../../../scene";
|
|
2
|
-
import { Texture } from "../../../Materials/Textures/texture";
|
|
3
|
-
import type { IProceduralTextureCreationOptions } from "./proceduralTexture";
|
|
4
|
-
import { ProceduralTexture } from "./proceduralTexture";
|
|
5
|
-
import type { TextureSize } from "../../../Materials/Textures/textureCreationOptions";
|
|
1
|
+
import type { Scene } from "../../../scene.js";
|
|
2
|
+
import { Texture } from "../../../Materials/Textures/texture.js";
|
|
3
|
+
import type { IProceduralTextureCreationOptions } from "./proceduralTexture.js";
|
|
4
|
+
import { ProceduralTexture } from "./proceduralTexture.js";
|
|
5
|
+
import type { TextureSize } from "../../../Materials/Textures/textureCreationOptions.js";
|
|
6
6
|
/**
|
|
7
7
|
* Options to create a Custom Procedural Texture.
|
|
8
8
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from "./customProceduralTexture";
|
|
2
|
-
export * from "./noiseProceduralTexture";
|
|
3
|
-
export * from "./proceduralTexture";
|
|
4
|
-
export * from "./proceduralTextureSceneComponent";
|
|
1
|
+
export * from "./customProceduralTexture.js";
|
|
2
|
+
export * from "./noiseProceduralTexture.js";
|
|
3
|
+
export * from "./proceduralTexture.js";
|
|
4
|
+
export * from "./proceduralTextureSceneComponent.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Nullable } from "../../../types";
|
|
2
|
-
import type { Scene } from "../../../scene";
|
|
3
|
-
import type { Texture } from "../../../Materials/Textures/texture";
|
|
4
|
-
import { ProceduralTexture } from "./proceduralTexture";
|
|
5
|
-
import "../../../Shaders/noise.fragment";
|
|
1
|
+
import type { Nullable } from "../../../types.js";
|
|
2
|
+
import type { Scene } from "../../../scene.js";
|
|
3
|
+
import type { Texture } from "../../../Materials/Textures/texture.js";
|
|
4
|
+
import { ProceduralTexture } from "./proceduralTexture.js";
|
|
5
|
+
import "../../../Shaders/noise.fragment.js";
|
|
6
6
|
/**
|
|
7
7
|
* Class used to generate noise procedural textures
|
|
8
8
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Observable } from "../../../Misc/observable";
|
|
2
|
-
import type { Nullable } from "../../../types";
|
|
3
|
-
import type { Scene } from "../../../scene";
|
|
4
|
-
import type { Matrix, Vector4, Vector3, Vector2 } from "../../../Maths/math.vector";
|
|
5
|
-
import type { Color4, Color3 } from "../../../Maths/math.color";
|
|
6
|
-
import type { Effect } from "../../../Materials/effect";
|
|
7
|
-
import { Texture } from "../../../Materials/Textures/texture";
|
|
8
|
-
import type { RenderTargetTextureOptions } from "../../../Materials/Textures/renderTargetTexture";
|
|
9
|
-
import type { NodeMaterial } from "../../Node/nodeMaterial";
|
|
10
|
-
import type { TextureSize } from "../../../Materials/Textures/textureCreationOptions";
|
|
1
|
+
import { Observable } from "../../../Misc/observable.js";
|
|
2
|
+
import type { Nullable } from "../../../types.js";
|
|
3
|
+
import type { Scene } from "../../../scene.js";
|
|
4
|
+
import type { Matrix, Vector4, Vector3, Vector2 } from "../../../Maths/math.vector.js";
|
|
5
|
+
import type { Color4, Color3 } from "../../../Maths/math.color.js";
|
|
6
|
+
import type { Effect } from "../../../Materials/effect.js";
|
|
7
|
+
import { Texture } from "../../../Materials/Textures/texture.js";
|
|
8
|
+
import type { RenderTargetTextureOptions } from "../../../Materials/Textures/renderTargetTexture.js";
|
|
9
|
+
import type { NodeMaterial } from "../../Node/nodeMaterial.js";
|
|
10
|
+
import type { TextureSize } from "../../../Materials/Textures/textureCreationOptions.js";
|
|
11
11
|
import { ShaderLanguage } from "../../shaderLanguage.js";
|
|
12
12
|
import type { ThinTexture } from "../thinTexture.js";
|
|
13
13
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Scene } from "../../../scene";
|
|
2
|
-
import type { ISceneComponent } from "../../../sceneComponent";
|
|
1
|
+
import type { Scene } from "../../../scene.js";
|
|
2
|
+
import type { ISceneComponent } from "../../../sceneComponent.js";
|
|
3
3
|
/**
|
|
4
4
|
* Defines the Procedural Texture scene component responsible to manage any Procedural Texture
|
|
5
5
|
* in a given scene.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Observable } from "../../Misc/observable";
|
|
2
|
-
import type { Nullable } from "../../types";
|
|
3
|
-
import type { Scene } from "../../scene";
|
|
4
|
-
import { Matrix } from "../../Maths/math.vector";
|
|
5
|
-
import type { InternalTexture } from "../../Materials/Textures/internalTexture";
|
|
6
|
-
import type { IAnimatable } from "../../Animations/animatable.interface";
|
|
7
|
-
import "../../Misc/fileTools";
|
|
8
|
-
import type { AbstractEngine } from "../../Engines/abstractEngine";
|
|
9
|
-
import { ThinTexture } from "./thinTexture";
|
|
10
|
-
import type { Animation } from "../../Animations/animation";
|
|
1
|
+
import { Observable } from "../../Misc/observable.js";
|
|
2
|
+
import type { Nullable } from "../../types.js";
|
|
3
|
+
import type { Scene } from "../../scene.js";
|
|
4
|
+
import { Matrix } from "../../Maths/math.vector.js";
|
|
5
|
+
import type { InternalTexture } from "../../Materials/Textures/internalTexture.js";
|
|
6
|
+
import type { IAnimatable } from "../../Animations/animatable.interface.js";
|
|
7
|
+
import "../../Misc/fileTools.js";
|
|
8
|
+
import type { AbstractEngine } from "../../Engines/abstractEngine.js";
|
|
9
|
+
import { ThinTexture } from "./thinTexture.js";
|
|
10
|
+
import type { Animation } from "../../Animations/animation.js";
|
|
11
11
|
import type { IAssetContainer } from "../../IAssetContainer.js";
|
|
12
12
|
/**
|
|
13
13
|
* Base class of all the textures in babylon.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { SphericalPolynomial } from "../../Maths/sphericalPolynomial";
|
|
3
|
-
declare module "./baseTexture" {
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { SphericalPolynomial } from "../../Maths/sphericalPolynomial.js";
|
|
3
|
+
declare module "./baseTexture.js" {
|
|
4
4
|
interface BaseTexture {
|
|
5
5
|
/**
|
|
6
6
|
* Get the polynomial representation of the texture data.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
3
|
-
import { Matrix } from "../../Maths/math.vector";
|
|
4
|
-
import { BaseTexture } from "../../Materials/Textures/baseTexture";
|
|
5
|
-
import type { AbstractEngine } from "../../Engines/abstractEngine";
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
|
+
import { Matrix } from "../../Maths/math.vector.js";
|
|
4
|
+
import { BaseTexture } from "../../Materials/Textures/baseTexture.js";
|
|
5
|
+
import type { AbstractEngine } from "../../Engines/abstractEngine.js";
|
|
6
6
|
/**
|
|
7
7
|
* This represents a color grading texture. This acts as a lookup table LUT, useful during post process
|
|
8
8
|
* It can help converting any input color in a desired output one. This can then be used to create effects
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
3
|
-
import { Matrix, Vector3 } from "../../Maths/math.vector";
|
|
4
|
-
import { BaseTexture } from "../../Materials/Textures/baseTexture";
|
|
5
|
-
import type { AbstractEngine } from "../../Engines/abstractEngine";
|
|
6
|
-
import { Observable } from "../../Misc/observable";
|
|
7
|
-
import "../../Engines/AbstractEngine/abstractEngine.cubeTexture";
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
|
+
import { Matrix, Vector3 } from "../../Maths/math.vector.js";
|
|
4
|
+
import { BaseTexture } from "../../Materials/Textures/baseTexture.js";
|
|
5
|
+
import type { AbstractEngine } from "../../Engines/abstractEngine.js";
|
|
6
|
+
import { Observable } from "../../Misc/observable.js";
|
|
7
|
+
import "../../Engines/AbstractEngine/abstractEngine.cubeTexture.js";
|
|
8
8
|
/**
|
|
9
9
|
* Defines the available options when creating a cube texture
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
3
|
-
import type { ITextureCreationOptions } from "../../Materials/Textures/texture";
|
|
4
|
-
import { Texture } from "../../Materials/Textures/texture";
|
|
5
|
-
import type { ICanvas, ICanvasRenderingContext } from "../../Engines/ICanvas";
|
|
6
|
-
import "../../Engines/Extensions/engine.dynamicTexture";
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
|
+
import type { ITextureCreationOptions } from "../../Materials/Textures/texture.js";
|
|
4
|
+
import { Texture } from "../../Materials/Textures/texture.js";
|
|
5
|
+
import type { ICanvas, ICanvasRenderingContext } from "../../Engines/ICanvas.js";
|
|
6
|
+
import "../../Engines/Extensions/engine.dynamicTexture.js";
|
|
7
7
|
/**
|
|
8
8
|
* Interface defining options used to create a dynamic texture
|
|
9
9
|
*/
|
|
@@ -111,6 +111,10 @@ export class DynamicTexture extends Texture {
|
|
|
111
111
|
* @param allowGPUOptimization true to allow some specific GPU optimizations (subject to engine feature "allowGPUOptimizationsForGUI" being true)
|
|
112
112
|
*/
|
|
113
113
|
update(invertY, premulAlpha = false, allowGPUOptimization = false) {
|
|
114
|
+
// When disposed, this._texture will be null.
|
|
115
|
+
if (!this._texture) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
114
118
|
this._getEngine().updateDynamicTexture(this._texture, this._canvas, invertY === undefined ? true : invertY, premulAlpha, this._format || undefined, undefined, allowGPUOptimization);
|
|
115
119
|
}
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C,gBAAgB,CAAC,CAAC;QAE5F,eAAe;QACf,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QACpC,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,kBAAkB;QAClB,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAC9B,UAAU,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;OAGG;IACa,SAAS;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;QAClF,CAAC;QAED,MAAM,mBAAmB,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;QAC9C,IAAI,cAAc,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAChD,mBAAmB,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAChE,CAAC;QAED,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC5C,mBAAmB,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAErD,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,MAAqD;QACjF,OAAQ,MAA4B,CAAC,SAAS,KAAK,SAAS,CAAC;IACjE,CAAC;IAED,gBAAgB;IACA,QAAQ;QACpB,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;CACJ","sourcesContent":["import { Logger } from \"../../Misc/logger\";\r\nimport type { Nullable } from \"../../types\";\r\nimport type { Scene } from \"../../scene\";\r\nimport type { ISize } from \"../../Maths/math.size\";\r\nimport type { ITextureCreationOptions } from \"../../Materials/Textures/texture\";\r\nimport { Texture } from \"../../Materials/Textures/texture\";\r\nimport { Constants } from \"../../Engines/constants\";\r\nimport type { ICanvas, ICanvasRenderingContext } from \"../../Engines/ICanvas\";\r\n\r\nimport \"../../Engines/Extensions/engine.dynamicTexture\";\r\n\r\n/**\r\n * Interface defining options used to create a dynamic texture\r\n */\r\nexport interface IDynamicTextureOptions extends ITextureCreationOptions {\r\n /** defines the width of the texture (default: 0) */\r\n width?: number;\r\n /** defines the height of the texture (default: 0) */\r\n height?: number;\r\n /** defines the hosting scene (default: null) */\r\n scene?: Nullable<Scene>;\r\n}\r\n\r\n/**\r\n * A class extending Texture allowing drawing on a texture\r\n * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/dynamicTexture\r\n */\r\nexport class DynamicTexture extends Texture {\r\n private _generateMipMaps: boolean;\r\n private _canvas: ICanvas;\r\n private _ownCanvas: boolean;\r\n private _context: ICanvasRenderingContext;\r\n\r\n /**\r\n * Creates a DynamicTexture\r\n * @param name defines the name of the texture\r\n * @param canvasOrSize provides 3 alternatives for width and height of texture, a canvas, object with width and height properties, number for both width and height\r\n * @param options The options to be used when constructing the dynamic texture\r\n */\r\n constructor(name: string, canvasOrSize: ICanvas | { width: number; height: number } | number, options?: IDynamicTextureOptions);\r\n\r\n /**\r\n * Creates a DynamicTexture\r\n * @param name defines the name of the texture\r\n * @param options provides 3 alternatives for width and height of texture, a canvas, object with width and height properties, number for both width and height\r\n * @param scene defines the scene where you want the texture\r\n * @param generateMipMaps defines the use of MinMaps or not (default is false)\r\n * @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)\r\n * @param format defines the texture format to use (default is Engine.TEXTUREFORMAT_RGBA)\r\n * @param invertY defines if the texture needs to be inverted on the y axis during loading\r\n */\r\n constructor(\r\n name: string,\r\n options: ICanvas | { width: number; height: number } | number,\r\n scene?: Nullable<Scene>,\r\n generateMipMaps?: boolean,\r\n samplingMode?: number,\r\n format?: number,\r\n invertY?: boolean\r\n );\r\n\r\n /** @internal */\r\n constructor(\r\n name: string,\r\n canvasOrSize: ICanvas | { width: number; height: number } | number,\r\n sceneOrOptions?: Nullable<Scene> | IDynamicTextureOptions,\r\n generateMipMaps?: boolean,\r\n samplingMode?: number,\r\n format?: number,\r\n invertY?: boolean\r\n );\r\n\r\n /** @internal */\r\n constructor(\r\n name: string,\r\n canvasOrSize: ICanvas | { width: number; height: number } | number,\r\n sceneOrOptions?: Nullable<Scene> | IDynamicTextureOptions,\r\n generateMipMaps: boolean = false,\r\n samplingMode: number = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE,\r\n format: number = Constants.TEXTUREFORMAT_RGBA,\r\n invertY?: boolean\r\n ) {\r\n const isScene = !sceneOrOptions || (sceneOrOptions as Scene)._isScene;\r\n const scene = isScene ? (sceneOrOptions as Scene) : (sceneOrOptions as IDynamicTextureOptions)?.scene;\r\n const noMipmap = isScene ? !generateMipMaps : (sceneOrOptions as IDynamicTextureOptions);\r\n\r\n super(null, scene, noMipmap, invertY, samplingMode, undefined, undefined, undefined, undefined, format);\r\n\r\n this.name = name;\r\n this.wrapU = Texture.CLAMP_ADDRESSMODE;\r\n this.wrapV = Texture.CLAMP_ADDRESSMODE;\r\n\r\n this._generateMipMaps = generateMipMaps;\r\n\r\n const engine = this._getEngine();\r\n if (!engine) {\r\n return;\r\n }\r\n\r\n if ((canvasOrSize as ICanvas).getContext) {\r\n this._canvas = canvasOrSize as ICanvas;\r\n this._ownCanvas = false;\r\n this._texture = engine.createDynamicTexture(this._canvas.width, this._canvas.height, generateMipMaps, samplingMode);\r\n } else {\r\n this._canvas = engine.createCanvas(1, 1);\r\n this._ownCanvas = true;\r\n\r\n const optionsAsSize = canvasOrSize as ISize;\r\n if (optionsAsSize.width || optionsAsSize.width === 0) {\r\n this._texture = engine.createDynamicTexture(optionsAsSize.width, optionsAsSize.height, generateMipMaps, samplingMode);\r\n } else {\r\n this._texture = engine.createDynamicTexture(canvasOrSize as number, canvasOrSize as number, generateMipMaps, samplingMode);\r\n }\r\n }\r\n\r\n const textureSize = this.getSize();\r\n\r\n if (this._canvas.width !== textureSize.width) {\r\n this._canvas.width = textureSize.width;\r\n }\r\n if (this._canvas.height !== textureSize.height) {\r\n this._canvas.height = textureSize.height;\r\n }\r\n this._context = this._canvas.getContext(\"2d\");\r\n }\r\n\r\n /**\r\n * Get the current class name of the texture useful for serialization or dynamic coding.\r\n * @returns \"DynamicTexture\"\r\n */\r\n public override getClassName(): string {\r\n return \"DynamicTexture\";\r\n }\r\n\r\n /**\r\n * Gets the current state of canRescale\r\n */\r\n public override get canRescale(): boolean {\r\n return true;\r\n }\r\n\r\n private _recreate(textureSize: ISize): void {\r\n this._canvas.width = textureSize.width;\r\n this._canvas.height = textureSize.height;\r\n\r\n this.releaseInternalTexture();\r\n\r\n this._texture = this._getEngine()!.createDynamicTexture(textureSize.width, textureSize.height, this._generateMipMaps, this.samplingMode);\r\n }\r\n\r\n /**\r\n * Scales the texture\r\n * @param ratio the scale factor to apply to both width and height\r\n */\r\n public override scale(ratio: number): void {\r\n const textureSize = this.getSize();\r\n\r\n textureSize.width *= ratio;\r\n textureSize.height *= ratio;\r\n\r\n this._recreate(textureSize);\r\n }\r\n\r\n /**\r\n * Resizes the texture\r\n * @param width the new width\r\n * @param height the new height\r\n */\r\n public scaleTo(width: number, height: number): void {\r\n const textureSize = this.getSize();\r\n\r\n textureSize.width = width;\r\n textureSize.height = height;\r\n\r\n this._recreate(textureSize);\r\n }\r\n\r\n /**\r\n * Gets the context of the canvas used by the texture\r\n * @returns the canvas context of the dynamic texture\r\n */\r\n public getContext(): ICanvasRenderingContext {\r\n return this._context;\r\n }\r\n\r\n /**\r\n * Clears the texture\r\n * @param clearColor Defines the clear color to use\r\n */\r\n public clear(clearColor?: string): void {\r\n const size = this.getSize();\r\n if (clearColor) {\r\n this._context.fillStyle = clearColor;\r\n }\r\n this._context.clearRect(0, 0, size.width, size.height);\r\n }\r\n\r\n /**\r\n * Updates the texture\r\n * @param invertY defines the direction for the Y axis (default is true - y increases downwards)\r\n * @param premulAlpha defines if alpha is stored as premultiplied (default is false)\r\n * @param allowGPUOptimization true to allow some specific GPU optimizations (subject to engine feature \"allowGPUOptimizationsForGUI\" being true)\r\n */\r\n public update(invertY?: boolean, premulAlpha = false, allowGPUOptimization = false): void {\r\n this._getEngine()!.updateDynamicTexture(\r\n this._texture,\r\n this._canvas,\r\n invertY === undefined ? true : invertY,\r\n premulAlpha,\r\n this._format || undefined,\r\n undefined,\r\n allowGPUOptimization\r\n );\r\n }\r\n\r\n /**\r\n * Draws text onto the texture\r\n * @param text defines the text to be drawn\r\n * @param x defines the placement of the text from the left\r\n * @param y defines the placement of the text from the top when invertY is true and from the bottom when false\r\n * @param font defines the font to be used with font-style, font-size, font-name\r\n * @param color defines the color used for the text\r\n * @param fillColor defines the color for the canvas, use null to not overwrite canvas (this bleands with the background to replace, use the clear function)\r\n * @param invertY defines the direction for the Y axis (default is true - y increases downwards)\r\n * @param update defines whether texture is immediately update (default is true)\r\n */\r\n public drawText(\r\n text: string,\r\n x: number | null | undefined,\r\n y: number | null | undefined,\r\n font: string,\r\n color: string | null,\r\n fillColor: string | null,\r\n invertY?: boolean,\r\n update = true\r\n ) {\r\n const size = this.getSize();\r\n if (fillColor) {\r\n this._context.fillStyle = fillColor;\r\n this._context.fillRect(0, 0, size.width, size.height);\r\n }\r\n\r\n this._context.font = font;\r\n if (x === null || x === undefined) {\r\n const textSize = this._context.measureText(text);\r\n x = (size.width - textSize.width) / 2;\r\n }\r\n if (y === null || y === undefined) {\r\n const fontSize = parseInt(font.replace(/\\D/g, \"\"));\r\n y = size.height / 2 + fontSize / 3.65;\r\n }\r\n\r\n this._context.fillStyle = color || \"\";\r\n this._context.fillText(text, x, y);\r\n\r\n if (update) {\r\n this.update(invertY);\r\n }\r\n }\r\n\r\n /**\r\n * Disposes the dynamic texture.\r\n */\r\n public override dispose(): void {\r\n super.dispose();\r\n\r\n if (this._ownCanvas) {\r\n this._canvas?.remove?.();\r\n }\r\n (this._canvas as any) = null;\r\n (this._context as any) = null;\r\n }\r\n\r\n /**\r\n * Clones the texture\r\n * @returns the clone of the texture.\r\n */\r\n public override clone(): DynamicTexture {\r\n const scene = this.getScene();\r\n\r\n if (!scene) {\r\n return this;\r\n }\r\n\r\n const textureSize = this.getSize();\r\n const newTexture = new DynamicTexture(this.name, textureSize, scene, this._generateMipMaps);\r\n\r\n // Base texture\r\n newTexture.hasAlpha = this.hasAlpha;\r\n newTexture.level = this.level;\r\n\r\n // Dynamic Texture\r\n newTexture.wrapU = this.wrapU;\r\n newTexture.wrapV = this.wrapV;\r\n\r\n return newTexture;\r\n }\r\n\r\n /**\r\n * Serializes the dynamic texture. The scene should be ready before the dynamic texture is serialized\r\n * @returns a serialized dynamic texture object\r\n */\r\n public override serialize(): any {\r\n const scene = this.getScene();\r\n if (scene && !scene.isReady()) {\r\n Logger.Warn(\"The scene must be ready before serializing the dynamic texture\");\r\n }\r\n\r\n const serializationObject = super.serialize();\r\n if (DynamicTexture._IsCanvasElement(this._canvas)) {\r\n serializationObject.base64String = this._canvas.toDataURL();\r\n }\r\n\r\n serializationObject.invertY = this._invertY;\r\n serializationObject.samplingMode = this.samplingMode;\r\n\r\n return serializationObject;\r\n }\r\n\r\n private static _IsCanvasElement(canvas: HTMLCanvasElement | OffscreenCanvas | ICanvas): canvas is HTMLCanvasElement {\r\n return (canvas as HTMLCanvasElement).toDataURL !== undefined;\r\n }\r\n\r\n /** @internal */\r\n public override _rebuild(): void {\r\n this.update();\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"dynamicTexture.js","sourceRoot":"","sources":["../../../../../dev/core/src/Materials/Textures/dynamicTexture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAK3C,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,gDAAgD,CAA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,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,OAAO,UAAU,CAAC;IACtB,CAAC;IAED;;;OAGG;IACa,SAAS;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC9B,IAAI,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5B,MAAM,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;QAClF,CAAC;QAED,MAAM,mBAAmB,GAAG,KAAK,CAAC,SAAS,EAAE,CAAC;QAC9C,IAAI,cAAc,CAAC,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAChD,mBAAmB,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC;QAChE,CAAC;QAED,mBAAmB,CAAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC5C,mBAAmB,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QAErD,OAAO,mBAAmB,CAAC;IAC/B,CAAC;IAEO,MAAM,CAAC,gBAAgB,CAAC,MAAqD;QACjF,OAAQ,MAA4B,CAAC,SAAS,KAAK,SAAS,CAAC;IACjE,CAAC;IAED,gBAAgB;IACA,QAAQ;QACpB,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;CACJ","sourcesContent":["import { Logger } from \"../../Misc/logger\";\r\nimport type { Nullable } from \"../../types\";\r\nimport type { Scene } from \"../../scene\";\r\nimport type { ISize } from \"../../Maths/math.size\";\r\nimport type { ITextureCreationOptions } from \"../../Materials/Textures/texture\";\r\nimport { Texture } from \"../../Materials/Textures/texture\";\r\nimport { Constants } from \"../../Engines/constants\";\r\nimport type { ICanvas, ICanvasRenderingContext } from \"../../Engines/ICanvas\";\r\n\r\nimport \"../../Engines/Extensions/engine.dynamicTexture\";\r\n\r\n/**\r\n * Interface defining options used to create a dynamic texture\r\n */\r\nexport interface IDynamicTextureOptions extends ITextureCreationOptions {\r\n /** defines the width of the texture (default: 0) */\r\n width?: number;\r\n /** defines the height of the texture (default: 0) */\r\n height?: number;\r\n /** defines the hosting scene (default: null) */\r\n scene?: Nullable<Scene>;\r\n}\r\n\r\n/**\r\n * A class extending Texture allowing drawing on a texture\r\n * @see https://doc.babylonjs.com/features/featuresDeepDive/materials/using/dynamicTexture\r\n */\r\nexport class DynamicTexture extends Texture {\r\n private _generateMipMaps: boolean;\r\n private _canvas: ICanvas;\r\n private _ownCanvas: boolean;\r\n private _context: ICanvasRenderingContext;\r\n\r\n /**\r\n * Creates a DynamicTexture\r\n * @param name defines the name of the texture\r\n * @param canvasOrSize provides 3 alternatives for width and height of texture, a canvas, object with width and height properties, number for both width and height\r\n * @param options The options to be used when constructing the dynamic texture\r\n */\r\n constructor(name: string, canvasOrSize: ICanvas | { width: number; height: number } | number, options?: IDynamicTextureOptions);\r\n\r\n /**\r\n * Creates a DynamicTexture\r\n * @param name defines the name of the texture\r\n * @param options provides 3 alternatives for width and height of texture, a canvas, object with width and height properties, number for both width and height\r\n * @param scene defines the scene where you want the texture\r\n * @param generateMipMaps defines the use of MinMaps or not (default is false)\r\n * @param samplingMode defines the sampling mode to use (default is Texture.TRILINEAR_SAMPLINGMODE)\r\n * @param format defines the texture format to use (default is Engine.TEXTUREFORMAT_RGBA)\r\n * @param invertY defines if the texture needs to be inverted on the y axis during loading\r\n */\r\n constructor(\r\n name: string,\r\n options: ICanvas | { width: number; height: number } | number,\r\n scene?: Nullable<Scene>,\r\n generateMipMaps?: boolean,\r\n samplingMode?: number,\r\n format?: number,\r\n invertY?: boolean\r\n );\r\n\r\n /** @internal */\r\n constructor(\r\n name: string,\r\n canvasOrSize: ICanvas | { width: number; height: number } | number,\r\n sceneOrOptions?: Nullable<Scene> | IDynamicTextureOptions,\r\n generateMipMaps?: boolean,\r\n samplingMode?: number,\r\n format?: number,\r\n invertY?: boolean\r\n );\r\n\r\n /** @internal */\r\n constructor(\r\n name: string,\r\n canvasOrSize: ICanvas | { width: number; height: number } | number,\r\n sceneOrOptions?: Nullable<Scene> | IDynamicTextureOptions,\r\n generateMipMaps: boolean = false,\r\n samplingMode: number = Constants.TEXTURE_TRILINEAR_SAMPLINGMODE,\r\n format: number = Constants.TEXTUREFORMAT_RGBA,\r\n invertY?: boolean\r\n ) {\r\n const isScene = !sceneOrOptions || (sceneOrOptions as Scene)._isScene;\r\n const scene = isScene ? (sceneOrOptions as Scene) : (sceneOrOptions as IDynamicTextureOptions)?.scene;\r\n const noMipmap = isScene ? !generateMipMaps : (sceneOrOptions as IDynamicTextureOptions);\r\n\r\n super(null, scene, noMipmap, invertY, samplingMode, undefined, undefined, undefined, undefined, format);\r\n\r\n this.name = name;\r\n this.wrapU = Texture.CLAMP_ADDRESSMODE;\r\n this.wrapV = Texture.CLAMP_ADDRESSMODE;\r\n\r\n this._generateMipMaps = generateMipMaps;\r\n\r\n const engine = this._getEngine();\r\n if (!engine) {\r\n return;\r\n }\r\n\r\n if ((canvasOrSize as ICanvas).getContext) {\r\n this._canvas = canvasOrSize as ICanvas;\r\n this._ownCanvas = false;\r\n this._texture = engine.createDynamicTexture(this._canvas.width, this._canvas.height, generateMipMaps, samplingMode);\r\n } else {\r\n this._canvas = engine.createCanvas(1, 1);\r\n this._ownCanvas = true;\r\n\r\n const optionsAsSize = canvasOrSize as ISize;\r\n if (optionsAsSize.width || optionsAsSize.width === 0) {\r\n this._texture = engine.createDynamicTexture(optionsAsSize.width, optionsAsSize.height, generateMipMaps, samplingMode);\r\n } else {\r\n this._texture = engine.createDynamicTexture(canvasOrSize as number, canvasOrSize as number, generateMipMaps, samplingMode);\r\n }\r\n }\r\n\r\n const textureSize = this.getSize();\r\n\r\n if (this._canvas.width !== textureSize.width) {\r\n this._canvas.width = textureSize.width;\r\n }\r\n if (this._canvas.height !== textureSize.height) {\r\n this._canvas.height = textureSize.height;\r\n }\r\n this._context = this._canvas.getContext(\"2d\");\r\n }\r\n\r\n /**\r\n * Get the current class name of the texture useful for serialization or dynamic coding.\r\n * @returns \"DynamicTexture\"\r\n */\r\n public override getClassName(): string {\r\n return \"DynamicTexture\";\r\n }\r\n\r\n /**\r\n * Gets the current state of canRescale\r\n */\r\n public override get canRescale(): boolean {\r\n return true;\r\n }\r\n\r\n private _recreate(textureSize: ISize): void {\r\n this._canvas.width = textureSize.width;\r\n this._canvas.height = textureSize.height;\r\n\r\n this.releaseInternalTexture();\r\n\r\n this._texture = this._getEngine()!.createDynamicTexture(textureSize.width, textureSize.height, this._generateMipMaps, this.samplingMode);\r\n }\r\n\r\n /**\r\n * Scales the texture\r\n * @param ratio the scale factor to apply to both width and height\r\n */\r\n public override scale(ratio: number): void {\r\n const textureSize = this.getSize();\r\n\r\n textureSize.width *= ratio;\r\n textureSize.height *= ratio;\r\n\r\n this._recreate(textureSize);\r\n }\r\n\r\n /**\r\n * Resizes the texture\r\n * @param width the new width\r\n * @param height the new height\r\n */\r\n public scaleTo(width: number, height: number): void {\r\n const textureSize = this.getSize();\r\n\r\n textureSize.width = width;\r\n textureSize.height = height;\r\n\r\n this._recreate(textureSize);\r\n }\r\n\r\n /**\r\n * Gets the context of the canvas used by the texture\r\n * @returns the canvas context of the dynamic texture\r\n */\r\n public getContext(): ICanvasRenderingContext {\r\n return this._context;\r\n }\r\n\r\n /**\r\n * Clears the texture\r\n * @param clearColor Defines the clear color to use\r\n */\r\n public clear(clearColor?: string): void {\r\n const size = this.getSize();\r\n if (clearColor) {\r\n this._context.fillStyle = clearColor;\r\n }\r\n this._context.clearRect(0, 0, size.width, size.height);\r\n }\r\n\r\n /**\r\n * Updates the texture\r\n * @param invertY defines the direction for the Y axis (default is true - y increases downwards)\r\n * @param premulAlpha defines if alpha is stored as premultiplied (default is false)\r\n * @param allowGPUOptimization true to allow some specific GPU optimizations (subject to engine feature \"allowGPUOptimizationsForGUI\" being true)\r\n */\r\n public update(invertY?: boolean, premulAlpha = false, allowGPUOptimization = false): void {\r\n // When disposed, this._texture will be null.\r\n if (!this._texture) {\r\n return;\r\n }\r\n\r\n this._getEngine()!.updateDynamicTexture(\r\n this._texture,\r\n this._canvas,\r\n invertY === undefined ? true : invertY,\r\n premulAlpha,\r\n this._format || undefined,\r\n undefined,\r\n allowGPUOptimization\r\n );\r\n }\r\n\r\n /**\r\n * Draws text onto the texture\r\n * @param text defines the text to be drawn\r\n * @param x defines the placement of the text from the left\r\n * @param y defines the placement of the text from the top when invertY is true and from the bottom when false\r\n * @param font defines the font to be used with font-style, font-size, font-name\r\n * @param color defines the color used for the text\r\n * @param fillColor defines the color for the canvas, use null to not overwrite canvas (this bleands with the background to replace, use the clear function)\r\n * @param invertY defines the direction for the Y axis (default is true - y increases downwards)\r\n * @param update defines whether texture is immediately update (default is true)\r\n */\r\n public drawText(\r\n text: string,\r\n x: number | null | undefined,\r\n y: number | null | undefined,\r\n font: string,\r\n color: string | null,\r\n fillColor: string | null,\r\n invertY?: boolean,\r\n update = true\r\n ) {\r\n const size = this.getSize();\r\n if (fillColor) {\r\n this._context.fillStyle = fillColor;\r\n this._context.fillRect(0, 0, size.width, size.height);\r\n }\r\n\r\n this._context.font = font;\r\n if (x === null || x === undefined) {\r\n const textSize = this._context.measureText(text);\r\n x = (size.width - textSize.width) / 2;\r\n }\r\n if (y === null || y === undefined) {\r\n const fontSize = parseInt(font.replace(/\\D/g, \"\"));\r\n y = size.height / 2 + fontSize / 3.65;\r\n }\r\n\r\n this._context.fillStyle = color || \"\";\r\n this._context.fillText(text, x, y);\r\n\r\n if (update) {\r\n this.update(invertY);\r\n }\r\n }\r\n\r\n /**\r\n * Disposes the dynamic texture.\r\n */\r\n public override dispose(): void {\r\n super.dispose();\r\n\r\n if (this._ownCanvas) {\r\n this._canvas?.remove?.();\r\n }\r\n (this._canvas as any) = null;\r\n (this._context as any) = null;\r\n }\r\n\r\n /**\r\n * Clones the texture\r\n * @returns the clone of the texture.\r\n */\r\n public override clone(): DynamicTexture {\r\n const scene = this.getScene();\r\n\r\n if (!scene) {\r\n return this;\r\n }\r\n\r\n const textureSize = this.getSize();\r\n const newTexture = new DynamicTexture(this.name, textureSize, scene, this._generateMipMaps);\r\n\r\n // Base texture\r\n newTexture.hasAlpha = this.hasAlpha;\r\n newTexture.level = this.level;\r\n\r\n // Dynamic Texture\r\n newTexture.wrapU = this.wrapU;\r\n newTexture.wrapV = this.wrapV;\r\n\r\n return newTexture;\r\n }\r\n\r\n /**\r\n * Serializes the dynamic texture. The scene should be ready before the dynamic texture is serialized\r\n * @returns a serialized dynamic texture object\r\n */\r\n public override serialize(): any {\r\n const scene = this.getScene();\r\n if (scene && !scene.isReady()) {\r\n Logger.Warn(\"The scene must be ready before serializing the dynamic texture\");\r\n }\r\n\r\n const serializationObject = super.serialize();\r\n if (DynamicTexture._IsCanvasElement(this._canvas)) {\r\n serializationObject.base64String = this._canvas.toDataURL();\r\n }\r\n\r\n serializationObject.invertY = this._invertY;\r\n serializationObject.samplingMode = this.samplingMode;\r\n\r\n return serializationObject;\r\n }\r\n\r\n private static _IsCanvasElement(canvas: HTMLCanvasElement | OffscreenCanvas | ICanvas): canvas is HTMLCanvasElement {\r\n return (canvas as HTMLCanvasElement).toDataURL !== undefined;\r\n }\r\n\r\n /** @internal */\r\n public override _rebuild(): void {\r\n this.update();\r\n }\r\n}\r\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BaseTexture } from "./baseTexture";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
3
|
-
import type { Nullable } from "../../types";
|
|
1
|
+
import { BaseTexture } from "./baseTexture.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
|
+
import type { Nullable } from "../../types.js";
|
|
4
4
|
/**
|
|
5
5
|
* This represents a texture coming from an equirectangular image supported by the web browser canvas.
|
|
6
6
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Nullable } from "../../types";
|
|
2
|
-
import type { Scene } from "../../scene";
|
|
3
|
-
import { Matrix, Vector3 } from "../../Maths/math.vector";
|
|
4
|
-
import { BaseTexture } from "../../Materials/Textures/baseTexture";
|
|
5
|
-
import { Observable } from "../../Misc/observable";
|
|
6
|
-
import type { AbstractEngine } from "../../Engines/abstractEngine";
|
|
7
|
-
import "../../Materials/Textures/baseTexture.polynomial";
|
|
1
|
+
import type { Nullable } from "../../types.js";
|
|
2
|
+
import type { Scene } from "../../scene.js";
|
|
3
|
+
import { Matrix, Vector3 } from "../../Maths/math.vector.js";
|
|
4
|
+
import { BaseTexture } from "../../Materials/Textures/baseTexture.js";
|
|
5
|
+
import { Observable } from "../../Misc/observable.js";
|
|
6
|
+
import type { AbstractEngine } from "../../Engines/abstractEngine.js";
|
|
7
|
+
import "../../Materials/Textures/baseTexture.polynomial.js";
|
|
8
8
|
/**
|
|
9
9
|
* This represents a texture coming from an HDR input.
|
|
10
10
|
*
|