@aura3d/engine 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +153 -25
- package/dist/animation/AnimationController.d.ts +8 -0
- package/dist/animation/AnimationController.d.ts.map +1 -1
- package/dist/animation/AnimationController.js +93 -0
- package/dist/animation/AnimationController.js.map +1 -1
- package/dist/animation/AnimationMixer.d.ts +4 -1
- package/dist/animation/AnimationMixer.d.ts.map +1 -1
- package/dist/animation/AnimationMixer.js +47 -29
- package/dist/animation/AnimationMixer.js.map +1 -1
- package/dist/animation/FootIk.d.ts +50 -0
- package/dist/animation/FootIk.d.ts.map +1 -1
- package/dist/animation/FootIk.js +224 -8
- package/dist/animation/FootIk.js.map +1 -1
- package/dist/animation/HumanoidRetargeting.d.ts +6 -2
- package/dist/animation/HumanoidRetargeting.d.ts.map +1 -1
- package/dist/animation/HumanoidRetargeting.js +18 -8
- package/dist/animation/HumanoidRetargeting.js.map +1 -1
- package/dist/animation/IK.d.ts +26 -0
- package/dist/animation/IK.d.ts.map +1 -1
- package/dist/animation/IK.js +515 -0
- package/dist/animation/IK.js.map +1 -1
- package/dist/animation/Keyframe.d.ts.map +1 -1
- package/dist/animation/Keyframe.js +13 -12
- package/dist/animation/Keyframe.js.map +1 -1
- package/dist/animation/LocomotionEvidence.d.ts +34 -0
- package/dist/animation/LocomotionEvidence.d.ts.map +1 -0
- package/dist/animation/LocomotionEvidence.js +48 -0
- package/dist/animation/LocomotionEvidence.js.map +1 -0
- package/dist/animation/RootMotion.d.ts +13 -4
- package/dist/animation/RootMotion.d.ts.map +1 -1
- package/dist/animation/RootMotion.js +21 -1
- package/dist/animation/RootMotion.js.map +1 -1
- package/dist/animation/SpringBones.d.ts +80 -0
- package/dist/animation/SpringBones.d.ts.map +1 -1
- package/dist/animation/SpringBones.js +593 -49
- package/dist/animation/SpringBones.js.map +1 -1
- package/dist/animation/browser-index.d.ts +1 -1
- package/dist/animation/browser-index.d.ts.map +1 -1
- package/dist/animation/browser-index.js +1 -1
- package/dist/animation/browser-index.js.map +1 -1
- package/dist/animation/contracts/index.d.ts +2 -0
- package/dist/animation/contracts/index.d.ts.map +1 -0
- package/dist/animation/contracts/index.js +7 -0
- package/dist/animation/contracts/index.js.map +1 -0
- package/dist/animation/contracts/pose.d.ts +25 -0
- package/dist/animation/contracts/pose.d.ts.map +1 -0
- package/dist/animation/contracts/pose.js +41 -0
- package/dist/animation/contracts/pose.js.map +1 -0
- package/dist/animation/experimental/CrowdAnimation.d.ts +13 -0
- package/dist/animation/experimental/CrowdAnimation.d.ts.map +1 -0
- package/dist/animation/experimental/CrowdAnimation.js +14 -0
- package/dist/animation/experimental/CrowdAnimation.js.map +1 -0
- package/dist/animation/index.d.ts +2 -1
- package/dist/animation/index.d.ts.map +1 -1
- package/dist/animation/index.js +2 -1
- package/dist/animation/index.js.map +1 -1
- package/dist/animation/lanes/index.d.ts +17 -0
- package/dist/animation/lanes/index.d.ts.map +1 -0
- package/dist/animation/lanes/index.js +17 -0
- package/dist/animation/lanes/index.js.map +1 -0
- package/dist/animation/lanes/prd01.d.ts +6 -0
- package/dist/animation/lanes/prd01.d.ts.map +1 -0
- package/dist/animation/lanes/prd01.js +6 -0
- package/dist/animation/lanes/prd01.js.map +1 -0
- package/dist/animation/lanes/prd02.d.ts +6 -0
- package/dist/animation/lanes/prd02.d.ts.map +1 -0
- package/dist/animation/lanes/prd02.js +6 -0
- package/dist/animation/lanes/prd02.js.map +1 -0
- package/dist/animation/lanes/prd03.d.ts +6 -0
- package/dist/animation/lanes/prd03.d.ts.map +1 -0
- package/dist/animation/lanes/prd03.js +6 -0
- package/dist/animation/lanes/prd03.js.map +1 -0
- package/dist/animation/lanes/prd04.d.ts +6 -0
- package/dist/animation/lanes/prd04.d.ts.map +1 -0
- package/dist/animation/lanes/prd04.js +6 -0
- package/dist/animation/lanes/prd04.js.map +1 -0
- package/dist/animation/lanes/prd05.d.ts +6 -0
- package/dist/animation/lanes/prd05.d.ts.map +1 -0
- package/dist/animation/lanes/prd05.js +6 -0
- package/dist/animation/lanes/prd05.js.map +1 -0
- package/dist/animation/lanes/prd06.d.ts +37 -0
- package/dist/animation/lanes/prd06.d.ts.map +1 -0
- package/dist/animation/lanes/prd06.js +26 -0
- package/dist/animation/lanes/prd06.js.map +1 -0
- package/dist/animation/lanes/prd07.d.ts +6 -0
- package/dist/animation/lanes/prd07.d.ts.map +1 -0
- package/dist/animation/lanes/prd07.js +6 -0
- package/dist/animation/lanes/prd07.js.map +1 -0
- package/dist/animation/lanes/prd08.d.ts +6 -0
- package/dist/animation/lanes/prd08.d.ts.map +1 -0
- package/dist/animation/lanes/prd08.js +6 -0
- package/dist/animation/lanes/prd08.js.map +1 -0
- package/dist/animation/lanes/prd09.d.ts +6 -0
- package/dist/animation/lanes/prd09.d.ts.map +1 -0
- package/dist/animation/lanes/prd09.js +6 -0
- package/dist/animation/lanes/prd09.js.map +1 -0
- package/dist/animation/lanes/prd10.d.ts +6 -0
- package/dist/animation/lanes/prd10.d.ts.map +1 -0
- package/dist/animation/lanes/prd10.js +6 -0
- package/dist/animation/lanes/prd10.js.map +1 -0
- package/dist/animation/lanes/prd11.d.ts +6 -0
- package/dist/animation/lanes/prd11.d.ts.map +1 -0
- package/dist/animation/lanes/prd11.js +6 -0
- package/dist/animation/lanes/prd11.js.map +1 -0
- package/dist/animation/lanes/prd12.d.ts +6 -0
- package/dist/animation/lanes/prd12.d.ts.map +1 -0
- package/dist/animation/lanes/prd12.js +6 -0
- package/dist/animation/lanes/prd12.js.map +1 -0
- package/dist/animation/lanes/prd13.d.ts +6 -0
- package/dist/animation/lanes/prd13.d.ts.map +1 -0
- package/dist/animation/lanes/prd13.js +6 -0
- package/dist/animation/lanes/prd13.js.map +1 -0
- package/dist/animation/lanes/prd14.d.ts +6 -0
- package/dist/animation/lanes/prd14.d.ts.map +1 -0
- package/dist/animation/lanes/prd14.js +6 -0
- package/dist/animation/lanes/prd14.js.map +1 -0
- package/dist/animation/lanes/prd15.d.ts +6 -0
- package/dist/animation/lanes/prd15.d.ts.map +1 -0
- package/dist/animation/lanes/prd15.js +6 -0
- package/dist/animation/lanes/prd15.js.map +1 -0
- package/dist/animation/pose/BoneMask.d.ts +39 -0
- package/dist/animation/pose/BoneMask.d.ts.map +1 -0
- package/dist/animation/pose/BoneMask.js +160 -0
- package/dist/animation/pose/BoneMask.js.map +1 -0
- package/dist/animation/pose/CcdIkConstraint.d.ts +38 -0
- package/dist/animation/pose/CcdIkConstraint.d.ts.map +1 -0
- package/dist/animation/pose/CcdIkConstraint.js +198 -0
- package/dist/animation/pose/CcdIkConstraint.js.map +1 -0
- package/dist/animation/pose/CompiledClip.d.ts +48 -0
- package/dist/animation/pose/CompiledClip.d.ts.map +1 -0
- package/dist/animation/pose/CompiledClip.js +209 -0
- package/dist/animation/pose/CompiledClip.js.map +1 -0
- package/dist/animation/pose/LookAtConstraint.d.ts +48 -0
- package/dist/animation/pose/LookAtConstraint.d.ts.map +1 -0
- package/dist/animation/pose/LookAtConstraint.js +251 -0
- package/dist/animation/pose/LookAtConstraint.js.map +1 -0
- package/dist/animation/pose/MotionMetrics.d.ts +136 -0
- package/dist/animation/pose/MotionMetrics.d.ts.map +1 -0
- package/dist/animation/pose/MotionMetrics.js +253 -0
- package/dist/animation/pose/MotionMetrics.js.map +1 -0
- package/dist/animation/pose/PoseBuffer.d.ts +23 -0
- package/dist/animation/pose/PoseBuffer.d.ts.map +1 -0
- package/dist/animation/pose/PoseBuffer.js +48 -0
- package/dist/animation/pose/PoseBuffer.js.map +1 -0
- package/dist/animation/pose/PoseInertializer.d.ts +38 -0
- package/dist/animation/pose/PoseInertializer.d.ts.map +1 -0
- package/dist/animation/pose/PoseInertializer.js +208 -0
- package/dist/animation/pose/PoseInertializer.js.map +1 -0
- package/dist/animation/pose/PoseMixer.d.ts +256 -0
- package/dist/animation/pose/PoseMixer.d.ts.map +1 -0
- package/dist/animation/pose/PoseMixer.js +848 -0
- package/dist/animation/pose/PoseMixer.js.map +1 -0
- package/dist/animation/pose/Retarget.d.ts +77 -0
- package/dist/animation/pose/Retarget.d.ts.map +1 -0
- package/dist/animation/pose/Retarget.js +378 -0
- package/dist/animation/pose/Retarget.js.map +1 -0
- package/dist/animation/pose/RetargetCache.d.ts +21 -0
- package/dist/animation/pose/RetargetCache.d.ts.map +1 -0
- package/dist/animation/pose/RetargetCache.js +102 -0
- package/dist/animation/pose/RetargetCache.js.map +1 -0
- package/dist/animation/pose/RetargetWorker.d.ts +21 -0
- package/dist/animation/pose/RetargetWorker.d.ts.map +1 -0
- package/dist/animation/pose/RetargetWorker.js +56 -0
- package/dist/animation/pose/RetargetWorker.js.map +1 -0
- package/dist/animation/pose/SkeletonBinding.d.ts +55 -0
- package/dist/animation/pose/SkeletonBinding.d.ts.map +1 -0
- package/dist/animation/pose/SkeletonBinding.js +62 -0
- package/dist/animation/pose/SkeletonBinding.js.map +1 -0
- package/dist/animation/pose/blendKernels.d.ts +32 -0
- package/dist/animation/pose/blendKernels.d.ts.map +1 -0
- package/dist/animation/pose/blendKernels.js +101 -0
- package/dist/animation/pose/blendKernels.js.map +1 -0
- package/dist/animation/pose/makeClipAdditive.d.ts +22 -0
- package/dist/animation/pose/makeClipAdditive.d.ts.map +1 -0
- package/dist/animation/pose/makeClipAdditive.js +101 -0
- package/dist/animation/pose/makeClipAdditive.js.map +1 -0
- package/dist/animation/pose/poseMixerFlags.d.ts +18 -0
- package/dist/animation/pose/poseMixerFlags.d.ts.map +1 -0
- package/dist/animation/pose/poseMixerFlags.js +30 -0
- package/dist/animation/pose/poseMixerFlags.js.map +1 -0
- package/dist/animation/pose/quatFlat.d.ts +16 -0
- package/dist/animation/pose/quatFlat.d.ts.map +1 -0
- package/dist/animation/pose/quatFlat.js +88 -0
- package/dist/animation/pose/quatFlat.js.map +1 -0
- package/dist/animation/pose/retarget.worker.d.ts +25 -0
- package/dist/animation/pose/retarget.worker.d.ts.map +1 -0
- package/dist/animation/pose/retarget.worker.js +22 -0
- package/dist/animation/pose/retarget.worker.js.map +1 -0
- package/dist/assets/AdvancedAssetCorpus.d.ts.map +1 -1
- package/dist/assets/AdvancedAssetCorpus.js +7 -12
- package/dist/assets/AdvancedAssetCorpus.js.map +1 -1
- package/dist/assets/AssetDecoderRegistry.d.ts +56 -0
- package/dist/assets/AssetDecoderRegistry.d.ts.map +1 -0
- package/dist/assets/AssetDecoderRegistry.js +225 -0
- package/dist/assets/AssetDecoderRegistry.js.map +1 -0
- package/dist/assets/GLTFAnimationRuntime.d.ts +300 -6
- package/dist/assets/GLTFAnimationRuntime.d.ts.map +1 -1
- package/dist/assets/GLTFAnimationRuntime.js +981 -60
- package/dist/assets/GLTFAnimationRuntime.js.map +1 -1
- package/dist/assets/GLTFAssetParseCache.d.ts +24 -0
- package/dist/assets/GLTFAssetParseCache.d.ts.map +1 -0
- package/dist/assets/GLTFAssetParseCache.js +100 -0
- package/dist/assets/GLTFAssetParseCache.js.map +1 -0
- package/dist/assets/GLTFCompressionDecoders.d.ts +1 -0
- package/dist/assets/GLTFCompressionDecoders.d.ts.map +1 -1
- package/dist/assets/GLTFCompressionDecoders.js +20 -5
- package/dist/assets/GLTFCompressionDecoders.js.map +1 -1
- package/dist/assets/GLTFExtensionSupport.js +3 -3
- package/dist/assets/GLTFExtensionSupport.js.map +1 -1
- package/dist/assets/GLTFLoader.d.ts +28 -1
- package/dist/assets/GLTFLoader.d.ts.map +1 -1
- package/dist/assets/GLTFLoader.js +197 -30
- package/dist/assets/GLTFLoader.js.map +1 -1
- package/dist/assets/GLTFRenderResources.d.ts +77 -2
- package/dist/assets/GLTFRenderResources.d.ts.map +1 -1
- package/dist/assets/GLTFRenderResources.js +310 -153
- package/dist/assets/GLTFRenderResources.js.map +1 -1
- package/dist/assets/KTX2BasisTextureTranscoder.d.ts +70 -12
- package/dist/assets/KTX2BasisTextureTranscoder.d.ts.map +1 -1
- package/dist/assets/KTX2BasisTextureTranscoder.js +225 -184
- package/dist/assets/KTX2BasisTextureTranscoder.js.map +1 -1
- package/dist/assets/KTX2TargetSelection.d.ts +25 -0
- package/dist/assets/KTX2TargetSelection.d.ts.map +1 -0
- package/dist/assets/KTX2TargetSelection.js +36 -0
- package/dist/assets/KTX2TargetSelection.js.map +1 -0
- package/dist/assets/KTX2TranscodeDriver.d.ts +70 -0
- package/dist/assets/KTX2TranscodeDriver.d.ts.map +1 -0
- package/dist/assets/KTX2TranscodeDriver.js +104 -0
- package/dist/assets/KTX2TranscodeDriver.js.map +1 -0
- package/dist/assets/KTX2TranscodeWorker.d.ts +30 -0
- package/dist/assets/KTX2TranscodeWorker.d.ts.map +1 -0
- package/dist/assets/KTX2TranscodeWorker.js +230 -0
- package/dist/assets/KTX2TranscodeWorker.js.map +1 -0
- package/dist/assets/MikkTSpaceTangents.d.ts +43 -0
- package/dist/assets/MikkTSpaceTangents.d.ts.map +1 -0
- package/dist/assets/MikkTSpaceTangents.js +149 -0
- package/dist/assets/MikkTSpaceTangents.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionAssetCorpus.d.ts.map +1 -1
- package/dist/assets/asset-corpus/ProductionAssetCorpus.js +7 -13
- package/dist/assets/asset-corpus/ProductionAssetCorpus.js.map +1 -1
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.d.ts +43 -0
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.d.ts.map +1 -1
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.js +146 -22
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.js.map +1 -1
- package/dist/assets/assetPhaseMarks.d.ts +14 -0
- package/dist/assets/assetPhaseMarks.d.ts.map +1 -0
- package/dist/assets/assetPhaseMarks.js +23 -0
- package/dist/assets/assetPhaseMarks.js.map +1 -0
- package/dist/assets/browser-index.d.ts +5 -1
- package/dist/assets/browser-index.d.ts.map +1 -1
- package/dist/assets/browser-index.js +3 -1
- package/dist/assets/browser-index.js.map +1 -1
- package/dist/assets/contracts/decoders.d.ts +15 -0
- package/dist/assets/contracts/decoders.d.ts.map +1 -0
- package/dist/assets/contracts/decoders.js +8 -0
- package/dist/assets/contracts/decoders.js.map +1 -0
- package/dist/assets/decoderLoad.d.ts +28 -0
- package/dist/assets/decoderLoad.d.ts.map +1 -0
- package/dist/assets/decoderLoad.js +49 -0
- package/dist/assets/decoderLoad.js.map +1 -0
- package/dist/assets/gltf/ImageDecode.d.ts +18 -0
- package/dist/assets/gltf/ImageDecode.d.ts.map +1 -0
- package/dist/assets/gltf/ImageDecode.js +140 -0
- package/dist/assets/gltf/ImageDecode.js.map +1 -0
- package/dist/assets/gltf-runtime.d.ts +1 -1
- package/dist/assets/gltf-runtime.d.ts.map +1 -1
- package/dist/assets/gltf-runtime.js.map +1 -1
- package/dist/assets/index.d.ts +5 -1
- package/dist/assets/index.d.ts.map +1 -1
- package/dist/assets/index.js +3 -1
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/lanes/index.d.ts +17 -0
- package/dist/assets/lanes/index.d.ts.map +1 -0
- package/dist/assets/lanes/index.js +17 -0
- package/dist/assets/lanes/index.js.map +1 -0
- package/dist/assets/lanes/prd01.d.ts +6 -0
- package/dist/assets/lanes/prd01.d.ts.map +1 -0
- package/dist/assets/lanes/prd01.js +6 -0
- package/dist/assets/lanes/prd01.js.map +1 -0
- package/dist/assets/lanes/prd02.d.ts +6 -0
- package/dist/assets/lanes/prd02.d.ts.map +1 -0
- package/dist/assets/lanes/prd02.js +6 -0
- package/dist/assets/lanes/prd02.js.map +1 -0
- package/dist/assets/lanes/prd03.d.ts +6 -0
- package/dist/assets/lanes/prd03.d.ts.map +1 -0
- package/dist/assets/lanes/prd03.js +6 -0
- package/dist/assets/lanes/prd03.js.map +1 -0
- package/dist/assets/lanes/prd04.d.ts +6 -0
- package/dist/assets/lanes/prd04.d.ts.map +1 -0
- package/dist/assets/lanes/prd04.js +6 -0
- package/dist/assets/lanes/prd04.js.map +1 -0
- package/dist/assets/lanes/prd05.d.ts +14 -0
- package/dist/assets/lanes/prd05.d.ts.map +1 -0
- package/dist/assets/lanes/prd05.js +14 -0
- package/dist/assets/lanes/prd05.js.map +1 -0
- package/dist/assets/lanes/prd06.d.ts +6 -0
- package/dist/assets/lanes/prd06.d.ts.map +1 -0
- package/dist/assets/lanes/prd06.js +6 -0
- package/dist/assets/lanes/prd06.js.map +1 -0
- package/dist/assets/lanes/prd07.d.ts +6 -0
- package/dist/assets/lanes/prd07.d.ts.map +1 -0
- package/dist/assets/lanes/prd07.js +6 -0
- package/dist/assets/lanes/prd07.js.map +1 -0
- package/dist/assets/lanes/prd08.d.ts +6 -0
- package/dist/assets/lanes/prd08.d.ts.map +1 -0
- package/dist/assets/lanes/prd08.js +6 -0
- package/dist/assets/lanes/prd08.js.map +1 -0
- package/dist/assets/lanes/prd09.d.ts +6 -0
- package/dist/assets/lanes/prd09.d.ts.map +1 -0
- package/dist/assets/lanes/prd09.js +6 -0
- package/dist/assets/lanes/prd09.js.map +1 -0
- package/dist/assets/lanes/prd10.d.ts +6 -0
- package/dist/assets/lanes/prd10.d.ts.map +1 -0
- package/dist/assets/lanes/prd10.js +6 -0
- package/dist/assets/lanes/prd10.js.map +1 -0
- package/dist/assets/lanes/prd11.d.ts +6 -0
- package/dist/assets/lanes/prd11.d.ts.map +1 -0
- package/dist/assets/lanes/prd11.js +6 -0
- package/dist/assets/lanes/prd11.js.map +1 -0
- package/dist/assets/lanes/prd12.d.ts +6 -0
- package/dist/assets/lanes/prd12.d.ts.map +1 -0
- package/dist/assets/lanes/prd12.js +6 -0
- package/dist/assets/lanes/prd12.js.map +1 -0
- package/dist/assets/lanes/prd13.d.ts +6 -0
- package/dist/assets/lanes/prd13.d.ts.map +1 -0
- package/dist/assets/lanes/prd13.js +6 -0
- package/dist/assets/lanes/prd13.js.map +1 -0
- package/dist/assets/lanes/prd14.d.ts +6 -0
- package/dist/assets/lanes/prd14.d.ts.map +1 -0
- package/dist/assets/lanes/prd14.js +6 -0
- package/dist/assets/lanes/prd14.js.map +1 -0
- package/dist/assets/lanes/prd15.d.ts +6 -0
- package/dist/assets/lanes/prd15.d.ts.map +1 -0
- package/dist/assets/lanes/prd15.js +6 -0
- package/dist/assets/lanes/prd15.js.map +1 -0
- package/dist/assets/vite/auraDecoders.d.ts +31 -0
- package/dist/assets/vite/auraDecoders.d.ts.map +1 -0
- package/dist/assets/vite/auraDecoders.js +89 -0
- package/dist/assets/vite/auraDecoders.js.map +1 -0
- package/dist/audio/AudioSource.d.ts +7 -0
- package/dist/audio/AudioSource.d.ts.map +1 -1
- package/dist/audio/AudioSource.js +21 -0
- package/dist/audio/AudioSource.js.map +1 -1
- package/dist/audio/PositionalEmitter.js +1 -1
- package/dist/audio/PositionalEmitter.js.map +1 -1
- package/dist/audio/contracts/gameSound.d.ts +94 -0
- package/dist/audio/contracts/gameSound.d.ts.map +1 -0
- package/dist/audio/contracts/gameSound.js +63 -0
- package/dist/audio/contracts/gameSound.js.map +1 -0
- package/dist/audio/game-sound/EngineLoop.d.ts +44 -0
- package/dist/audio/game-sound/EngineLoop.d.ts.map +1 -0
- package/dist/audio/game-sound/EngineLoop.js +114 -0
- package/dist/audio/game-sound/EngineLoop.js.map +1 -0
- package/dist/audio/game-sound/GameSoundEngine.d.ts +129 -0
- package/dist/audio/game-sound/GameSoundEngine.d.ts.map +1 -0
- package/dist/audio/game-sound/GameSoundEngine.js +563 -0
- package/dist/audio/game-sound/GameSoundEngine.js.map +1 -0
- package/dist/audio/game-sound/LoopHandle.d.ts +30 -0
- package/dist/audio/game-sound/LoopHandle.d.ts.map +1 -0
- package/dist/audio/game-sound/LoopHandle.js +78 -0
- package/dist/audio/game-sound/LoopHandle.js.map +1 -0
- package/dist/audio/game-sound/MasterChain.d.ts +57 -0
- package/dist/audio/game-sound/MasterChain.d.ts.map +1 -0
- package/dist/audio/game-sound/MasterChain.js +144 -0
- package/dist/audio/game-sound/MasterChain.js.map +1 -0
- package/dist/audio/game-sound/MusicController.d.ts +59 -0
- package/dist/audio/game-sound/MusicController.d.ts.map +1 -0
- package/dist/audio/game-sound/MusicController.js +210 -0
- package/dist/audio/game-sound/MusicController.js.map +1 -0
- package/dist/audio/game-sound/ReverbSend.d.ts +30 -0
- package/dist/audio/game-sound/ReverbSend.d.ts.map +1 -0
- package/dist/audio/game-sound/ReverbSend.js +69 -0
- package/dist/audio/game-sound/ReverbSend.js.map +1 -0
- package/dist/audio/game-sound/SpatialVoice.d.ts +30 -0
- package/dist/audio/game-sound/SpatialVoice.d.ts.map +1 -0
- package/dist/audio/game-sound/SpatialVoice.js +115 -0
- package/dist/audio/game-sound/SpatialVoice.js.map +1 -0
- package/dist/audio/game-sound/Voice.d.ts +139 -0
- package/dist/audio/game-sound/Voice.d.ts.map +1 -0
- package/dist/audio/game-sound/Voice.js +319 -0
- package/dist/audio/game-sound/Voice.js.map +1 -0
- package/dist/audio/game-sound/formatProbe.d.ts +19 -0
- package/dist/audio/game-sound/formatProbe.d.ts.map +1 -0
- package/dist/audio/game-sound/formatProbe.js +36 -0
- package/dist/audio/game-sound/formatProbe.js.map +1 -0
- package/dist/audio/game-sound/listenerSync.d.ts +55 -0
- package/dist/audio/game-sound/listenerSync.d.ts.map +1 -0
- package/dist/audio/game-sound/listenerSync.js +37 -0
- package/dist/audio/game-sound/listenerSync.js.map +1 -0
- package/dist/audio/game-sound/loudness.d.ts +35 -0
- package/dist/audio/game-sound/loudness.d.ts.map +1 -0
- package/dist/audio/game-sound/loudness.js +135 -0
- package/dist/audio/game-sound/loudness.js.map +1 -0
- package/dist/audio/game-sound/rng.d.ts +26 -0
- package/dist/audio/game-sound/rng.d.ts.map +1 -0
- package/dist/audio/game-sound/rng.js +57 -0
- package/dist/audio/game-sound/rng.js.map +1 -0
- package/dist/audio/game-sound/types.d.ts +96 -0
- package/dist/audio/game-sound/types.d.ts.map +1 -0
- package/dist/audio/game-sound/types.js +19 -0
- package/dist/audio/game-sound/types.js.map +1 -0
- package/dist/audio/index.d.ts +16 -0
- package/dist/audio/index.d.ts.map +1 -1
- package/dist/audio/index.js +13 -0
- package/dist/audio/index.js.map +1 -1
- package/dist/aura3d-cli/admission/artDirection.d.ts +28 -0
- package/dist/aura3d-cli/admission/artDirection.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/artDirection.js +47 -0
- package/dist/aura3d-cli/admission/artDirection.js.map +1 -0
- package/dist/aura3d-cli/admission/audio.d.ts +19 -0
- package/dist/aura3d-cli/admission/audio.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/audio.js +31 -0
- package/dist/aura3d-cli/admission/audio.js.map +1 -0
- package/dist/aura3d-cli/admission/builder-patterns.d.ts +25 -0
- package/dist/aura3d-cli/admission/builder-patterns.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/builder-patterns.js +40 -0
- package/dist/aura3d-cli/admission/builder-patterns.js.map +1 -0
- package/dist/aura3d-cli/admission/gates.d.ts +136 -0
- package/dist/aura3d-cli/admission/gates.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/gates.js +335 -0
- package/dist/aura3d-cli/admission/gates.js.map +1 -0
- package/dist/aura3d-cli/admission/glb.d.ts +64 -0
- package/dist/aura3d-cli/admission/glb.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/glb.js +128 -0
- package/dist/aura3d-cli/admission/glb.js.map +1 -0
- package/dist/aura3d-cli/admission/index.d.ts +8 -0
- package/dist/aura3d-cli/admission/index.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/index.js +8 -0
- package/dist/aura3d-cli/admission/index.js.map +1 -0
- package/dist/aura3d-cli/admission/profiles.d.ts +52 -0
- package/dist/aura3d-cli/admission/profiles.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/profiles.js +91 -0
- package/dist/aura3d-cli/admission/profiles.js.map +1 -0
- package/dist/aura3d-cli/admission/qrFlags.d.ts +12 -0
- package/dist/aura3d-cli/admission/qrFlags.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/qrFlags.js +48 -0
- package/dist/aura3d-cli/admission/qrFlags.js.map +1 -0
- package/dist/aura3d-cli/admission/routeGates.d.ts +36 -0
- package/dist/aura3d-cli/admission/routeGates.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/routeGates.js +144 -0
- package/dist/aura3d-cli/admission/routeGates.js.map +1 -0
- package/dist/aura3d-cli/admission/texel.d.ts +50 -0
- package/dist/aura3d-cli/admission/texel.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/texel.js +177 -0
- package/dist/aura3d-cli/admission/texel.js.map +1 -0
- package/dist/aura3d-cli/admission/textureStats.d.ts +45 -0
- package/dist/aura3d-cli/admission/textureStats.d.ts.map +1 -0
- package/dist/aura3d-cli/admission/textureStats.js +201 -0
- package/dist/aura3d-cli/admission/textureStats.js.map +1 -0
- package/dist/aura3d-cli/animation-asset-validator.d.ts +44 -0
- package/dist/aura3d-cli/animation-asset-validator.d.ts.map +1 -1
- package/dist/aura3d-cli/animation-asset-validator.js +80 -1
- package/dist/aura3d-cli/animation-asset-validator.js.map +1 -1
- package/dist/aura3d-cli/asset-core-types.d.ts +99 -4
- package/dist/aura3d-cli/asset-core-types.d.ts.map +1 -1
- package/dist/aura3d-cli/asset-inspection-types.d.ts +8 -0
- package/dist/aura3d-cli/asset-inspection-types.d.ts.map +1 -1
- package/dist/aura3d-cli/asset-manifest.d.ts +1 -0
- package/dist/aura3d-cli/asset-manifest.d.ts.map +1 -1
- package/dist/aura3d-cli/asset-manifest.js +13 -4
- package/dist/aura3d-cli/asset-manifest.js.map +1 -1
- package/dist/aura3d-cli/asset-route-typegen.d.ts +37 -0
- package/dist/aura3d-cli/asset-route-typegen.d.ts.map +1 -0
- package/dist/aura3d-cli/asset-route-typegen.js +179 -0
- package/dist/aura3d-cli/asset-route-typegen.js.map +1 -0
- package/dist/aura3d-cli/cli-help.d.ts +1 -1
- package/dist/aura3d-cli/cli-help.d.ts.map +1 -1
- package/dist/aura3d-cli/cli-help.js +9 -4
- package/dist/aura3d-cli/cli-help.js.map +1 -1
- package/dist/aura3d-cli/cli-options.d.ts +7 -0
- package/dist/aura3d-cli/cli-options.d.ts.map +1 -1
- package/dist/aura3d-cli/cli-options.js +33 -2
- package/dist/aura3d-cli/cli-options.js.map +1 -1
- package/dist/aura3d-cli/cli.d.ts +1 -1
- package/dist/aura3d-cli/cli.d.ts.map +1 -1
- package/dist/aura3d-cli/cli.js +126 -11
- package/dist/aura3d-cli/cli.js.map +1 -1
- package/dist/aura3d-cli/codemods/engine-entry-imports.d.ts +22 -0
- package/dist/aura3d-cli/codemods/engine-entry-imports.d.ts.map +1 -0
- package/dist/aura3d-cli/codemods/engine-entry-imports.js +159 -0
- package/dist/aura3d-cli/codemods/engine-entry-imports.js.map +1 -0
- package/dist/aura3d-cli/codemods/lean-imports.d.ts +40 -0
- package/dist/aura3d-cli/codemods/lean-imports.d.ts.map +1 -0
- package/dist/aura3d-cli/codemods/lean-imports.js +175 -0
- package/dist/aura3d-cli/codemods/lean-imports.js.map +1 -0
- package/dist/aura3d-cli/codemods/renderer-imports.d.ts +36 -0
- package/dist/aura3d-cli/codemods/renderer-imports.d.ts.map +1 -0
- package/dist/aura3d-cli/codemods/renderer-imports.js +364 -0
- package/dist/aura3d-cli/codemods/renderer-imports.js.map +1 -0
- package/dist/aura3d-cli/codemods/renderer-mode.d.ts +38 -0
- package/dist/aura3d-cli/codemods/renderer-mode.d.ts.map +1 -0
- package/dist/aura3d-cli/codemods/renderer-mode.js +130 -0
- package/dist/aura3d-cli/codemods/renderer-mode.js.map +1 -0
- package/dist/aura3d-cli/commands/prd01/index.d.ts +8 -0
- package/dist/aura3d-cli/commands/prd01/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd01/index.js +39 -0
- package/dist/aura3d-cli/commands/prd01/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd02/environmentsBake.d.ts +6 -0
- package/dist/aura3d-cli/commands/prd02/environmentsBake.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd02/environmentsBake.js +174 -0
- package/dist/aura3d-cli/commands/prd02/environmentsBake.js.map +1 -0
- package/dist/aura3d-cli/commands/prd02/index.d.ts +2 -0
- package/dist/aura3d-cli/commands/prd02/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd02/index.js +26 -0
- package/dist/aura3d-cli/commands/prd02/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd02/migrateLighting.d.ts +17 -0
- package/dist/aura3d-cli/commands/prd02/migrateLighting.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd02/migrateLighting.js +86 -0
- package/dist/aura3d-cli/commands/prd02/migrateLighting.js.map +1 -0
- package/dist/aura3d-cli/commands/prd02/migrateLightingSweep.d.ts +20 -0
- package/dist/aura3d-cli/commands/prd02/migrateLightingSweep.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd02/migrateLightingSweep.js +105 -0
- package/dist/aura3d-cli/commands/prd02/migrateLightingSweep.js.map +1 -0
- package/dist/aura3d-cli/commands/prd03/index.d.ts +7 -0
- package/dist/aura3d-cli/commands/prd03/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd03/index.js +9 -0
- package/dist/aura3d-cli/commands/prd03/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd04/index.d.ts +10 -0
- package/dist/aura3d-cli/commands/prd04/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd04/index.js +10 -0
- package/dist/aura3d-cli/commands/prd04/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd04/modelTintReport.d.ts +16 -0
- package/dist/aura3d-cli/commands/prd04/modelTintReport.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd04/modelTintReport.js +114 -0
- package/dist/aura3d-cli/commands/prd04/modelTintReport.js.map +1 -0
- package/dist/aura3d-cli/commands/prd04/pinEmissiveDefaults.d.ts +3 -0
- package/dist/aura3d-cli/commands/prd04/pinEmissiveDefaults.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd04/pinEmissiveDefaults.js +36 -0
- package/dist/aura3d-cli/commands/prd04/pinEmissiveDefaults.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/admit.d.ts +54 -0
- package/dist/aura3d-cli/commands/prd05/admit.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/admit.js +153 -0
- package/dist/aura3d-cli/commands/prd05/admit.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/codemods/assetsRouteModules.d.ts +3 -0
- package/dist/aura3d-cli/commands/prd05/codemods/assetsRouteModules.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/codemods/assetsRouteModules.js +92 -0
- package/dist/aura3d-cli/commands/prd05/codemods/assetsRouteModules.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/index.d.ts +9 -0
- package/dist/aura3d-cli/commands/prd05/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/index.js +171 -0
- package/dist/aura3d-cli/commands/prd05/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/library.d.ts +23 -0
- package/dist/aura3d-cli/commands/prd05/library.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/library.js +245 -0
- package/dist/aura3d-cli/commands/prd05/library.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/lookdev.d.ts +14 -0
- package/dist/aura3d-cli/commands/prd05/lookdev.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/lookdev.js +68 -0
- package/dist/aura3d-cli/commands/prd05/lookdev.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/optimize.d.ts +16 -0
- package/dist/aura3d-cli/commands/prd05/optimize.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/optimize.js +55 -0
- package/dist/aura3d-cli/commands/prd05/optimize.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/prune.d.ts +26 -0
- package/dist/aura3d-cli/commands/prd05/prune.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/prune.js +104 -0
- package/dist/aura3d-cli/commands/prd05/prune.js.map +1 -0
- package/dist/aura3d-cli/commands/prd05/review.d.ts +24 -0
- package/dist/aura3d-cli/commands/prd05/review.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd05/review.js +40 -0
- package/dist/aura3d-cli/commands/prd05/review.js.map +1 -0
- package/dist/aura3d-cli/commands/prd06/index.d.ts +6 -0
- package/dist/aura3d-cli/commands/prd06/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd06/index.js +86 -0
- package/dist/aura3d-cli/commands/prd06/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd06/inspectAnimationClips.d.ts +86 -0
- package/dist/aura3d-cli/commands/prd06/inspectAnimationClips.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd06/inspectAnimationClips.js +168 -0
- package/dist/aura3d-cli/commands/prd06/inspectAnimationClips.js.map +1 -0
- package/dist/aura3d-cli/commands/prd06/validateHero.d.ts +18 -0
- package/dist/aura3d-cli/commands/prd06/validateHero.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd06/validateHero.js +91 -0
- package/dist/aura3d-cli/commands/prd06/validateHero.js.map +1 -0
- package/dist/aura3d-cli/commands/prd07/codemods.d.ts +28 -0
- package/dist/aura3d-cli/commands/prd07/codemods.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd07/codemods.js +155 -0
- package/dist/aura3d-cli/commands/prd07/codemods.js.map +1 -0
- package/dist/aura3d-cli/commands/prd07/index.d.ts +2 -0
- package/dist/aura3d-cli/commands/prd07/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd07/index.js +151 -0
- package/dist/aura3d-cli/commands/prd07/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd08/feelLint.d.ts +13 -0
- package/dist/aura3d-cli/commands/prd08/feelLint.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd08/feelLint.js +32 -0
- package/dist/aura3d-cli/commands/prd08/feelLint.js.map +1 -0
- package/dist/aura3d-cli/commands/prd08/index.d.ts +2 -0
- package/dist/aura3d-cli/commands/prd08/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd08/index.js +16 -0
- package/dist/aura3d-cli/commands/prd08/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd08/motionReport.d.ts +94 -0
- package/dist/aura3d-cli/commands/prd08/motionReport.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd08/motionReport.js +197 -0
- package/dist/aura3d-cli/commands/prd08/motionReport.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/audio-wrapper.d.ts +9 -0
- package/dist/aura3d-cli/commands/prd09/codemods/audio-wrapper.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/audio-wrapper.js +30 -0
- package/dist/aura3d-cli/commands/prd09/codemods/audio-wrapper.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/capture-branches.d.ts +10 -0
- package/dist/aura3d-cli/commands/prd09/codemods/capture-branches.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/capture-branches.js +54 -0
- package/dist/aura3d-cli/commands/prd09/codemods/capture-branches.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/evidence-globals.d.ts +8 -0
- package/dist/aura3d-cli/commands/prd09/codemods/evidence-globals.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/evidence-globals.js +19 -0
- package/dist/aura3d-cli/commands/prd09/codemods/evidence-globals.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/perf-script.d.ts +8 -0
- package/dist/aura3d-cli/commands/prd09/codemods/perf-script.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/codemods/perf-script.js +24 -0
- package/dist/aura3d-cli/commands/prd09/codemods/perf-script.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/index.d.ts +8 -0
- package/dist/aura3d-cli/commands/prd09/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/index.js +19 -0
- package/dist/aura3d-cli/commands/prd09/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/perf-report.d.ts +56 -0
- package/dist/aura3d-cli/commands/prd09/perf-report.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/perf-report.js +118 -0
- package/dist/aura3d-cli/commands/prd09/perf-report.js.map +1 -0
- package/dist/aura3d-cli/commands/prd09/sfx-admit.d.ts +18 -0
- package/dist/aura3d-cli/commands/prd09/sfx-admit.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd09/sfx-admit.js +120 -0
- package/dist/aura3d-cli/commands/prd09/sfx-admit.js.map +1 -0
- package/dist/aura3d-cli/commands/prd10/index.d.ts +2 -0
- package/dist/aura3d-cli/commands/prd10/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd10/index.js +109 -0
- package/dist/aura3d-cli/commands/prd10/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd11/batchOptout.d.ts +35 -0
- package/dist/aura3d-cli/commands/prd11/batchOptout.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd11/batchOptout.js +155 -0
- package/dist/aura3d-cli/commands/prd11/batchOptout.js.map +1 -0
- package/dist/aura3d-cli/commands/prd11/index.d.ts +2 -0
- package/dist/aura3d-cli/commands/prd11/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd11/index.js +13 -0
- package/dist/aura3d-cli/commands/prd11/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd11/perfGate.d.ts +15 -0
- package/dist/aura3d-cli/commands/prd11/perfGate.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd11/perfGate.js +98 -0
- package/dist/aura3d-cli/commands/prd11/perfGate.js.map +1 -0
- package/dist/aura3d-cli/commands/prd13/index.d.ts +15 -0
- package/dist/aura3d-cli/commands/prd13/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd13/index.js +26 -0
- package/dist/aura3d-cli/commands/prd13/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd13/run.d.ts +10 -0
- package/dist/aura3d-cli/commands/prd13/run.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd13/run.js +29 -0
- package/dist/aura3d-cli/commands/prd13/run.js.map +1 -0
- package/dist/aura3d-cli/commands/prd14/index.d.ts +6 -0
- package/dist/aura3d-cli/commands/prd14/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd14/index.js +6 -0
- package/dist/aura3d-cli/commands/prd14/index.js.map +1 -0
- package/dist/aura3d-cli/commands/prd15/index.d.ts +8 -0
- package/dist/aura3d-cli/commands/prd15/index.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/prd15/index.js +152 -0
- package/dist/aura3d-cli/commands/prd15/index.js.map +1 -0
- package/dist/aura3d-cli/commands/registry.d.ts +19 -0
- package/dist/aura3d-cli/commands/registry.d.ts.map +1 -0
- package/dist/aura3d-cli/commands/registry.js +19 -0
- package/dist/aura3d-cli/commands/registry.js.map +1 -0
- package/dist/aura3d-cli/contracts/assetManifest.d.ts +80 -0
- package/dist/aura3d-cli/contracts/assetManifest.d.ts.map +1 -0
- package/dist/aura3d-cli/contracts/assetManifest.js +9 -0
- package/dist/aura3d-cli/contracts/assetManifest.js.map +1 -0
- package/dist/aura3d-cli/contracts/commands.d.ts +53 -0
- package/dist/aura3d-cli/contracts/commands.d.ts.map +1 -0
- package/dist/aura3d-cli/contracts/commands.js +37 -0
- package/dist/aura3d-cli/contracts/commands.js.map +1 -0
- package/dist/aura3d-cli/index.d.ts +17 -1
- package/dist/aura3d-cli/index.d.ts.map +1 -1
- package/dist/aura3d-cli/index.js +271 -71
- package/dist/aura3d-cli/index.js.map +1 -1
- package/dist/aura3d-cli/library-manifest.d.ts +86 -0
- package/dist/aura3d-cli/library-manifest.d.ts.map +1 -0
- package/dist/aura3d-cli/library-manifest.js +95 -0
- package/dist/aura3d-cli/library-manifest.js.map +1 -0
- package/dist/aura3d-cli/look/capture.d.ts +51 -0
- package/dist/aura3d-cli/look/capture.d.ts.map +1 -0
- package/dist/aura3d-cli/look/capture.js +229 -0
- package/dist/aura3d-cli/look/capture.js.map +1 -0
- package/dist/aura3d-cli/look/judge.d.ts +24 -0
- package/dist/aura3d-cli/look/judge.d.ts.map +1 -0
- package/dist/aura3d-cli/look/judge.js +151 -0
- package/dist/aura3d-cli/look/judge.js.map +1 -0
- package/dist/aura3d-cli/look/lint-static.d.ts +45 -0
- package/dist/aura3d-cli/look/lint-static.d.ts.map +1 -0
- package/dist/aura3d-cli/look/lint-static.js +241 -0
- package/dist/aura3d-cli/look/lint-static.js.map +1 -0
- package/dist/aura3d-cli/look/rubric.d.ts +70 -0
- package/dist/aura3d-cli/look/rubric.d.ts.map +1 -0
- package/dist/aura3d-cli/look/rubric.js +169 -0
- package/dist/aura3d-cli/look/rubric.js.map +1 -0
- package/dist/aura3d-cli/meshy/import.d.ts +7 -1
- package/dist/aura3d-cli/meshy/import.d.ts.map +1 -1
- package/dist/aura3d-cli/meshy/import.js +80 -6
- package/dist/aura3d-cli/meshy/import.js.map +1 -1
- package/dist/aura3d-cli/migrate-three/CompatibilityWarnings.d.ts +6 -0
- package/dist/aura3d-cli/migrate-three/CompatibilityWarnings.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/CompatibilityWarnings.js +24 -0
- package/dist/aura3d-cli/migrate-three/CompatibilityWarnings.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/ImportMap.d.ts +19 -0
- package/dist/aura3d-cli/migrate-three/ImportMap.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/ImportMap.js +35 -0
- package/dist/aura3d-cli/migrate-three/ImportMap.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/R3fMigration.d.ts +32 -0
- package/dist/aura3d-cli/migrate-three/R3fMigration.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/R3fMigration.js +70 -0
- package/dist/aura3d-cli/migrate-three/R3fMigration.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/ThreeToA3DAdapter.d.ts +8 -0
- package/dist/aura3d-cli/migrate-three/ThreeToA3DAdapter.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/ThreeToA3DAdapter.js +20 -0
- package/dist/aura3d-cli/migrate-three/ThreeToA3DAdapter.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/emit.d.ts +21 -0
- package/dist/aura3d-cli/migrate-three/emit.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/emit.js +117 -0
- package/dist/aura3d-cli/migrate-three/emit.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/mappings.d.ts +21 -0
- package/dist/aura3d-cli/migrate-three/mappings.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/mappings.js +42 -0
- package/dist/aura3d-cli/migrate-three/mappings.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/parse.d.ts +20 -0
- package/dist/aura3d-cli/migrate-three/parse.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/parse.js +56 -0
- package/dist/aura3d-cli/migrate-three/parse.js.map +1 -0
- package/dist/aura3d-cli/migrate-three/report.d.ts +18 -0
- package/dist/aura3d-cli/migrate-three/report.d.ts.map +1 -0
- package/dist/aura3d-cli/migrate-three/report.js +16 -0
- package/dist/aura3d-cli/migrate-three/report.js.map +1 -0
- package/dist/aura3d-cli/pull-bridge/adapters.d.ts +1 -1
- package/dist/aura3d-cli/pull-bridge/adapters.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge/adapters.js +17 -4
- package/dist/aura3d-cli/pull-bridge/adapters.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge/provenance.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge/provenance.js +3 -2
- package/dist/aura3d-cli/pull-bridge/provenance.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge/pullable.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge/pullable.js +14 -3
- package/dist/aura3d-cli/pull-bridge/pullable.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge/scoring.d.ts +36 -8
- package/dist/aura3d-cli/pull-bridge/scoring.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge/scoring.js +143 -47
- package/dist/aura3d-cli/pull-bridge/scoring.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge/search.d.ts +2 -0
- package/dist/aura3d-cli/pull-bridge/search.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge/search.js +17 -10
- package/dist/aura3d-cli/pull-bridge/search.js.map +1 -1
- package/dist/aura3d-cli/pull-bridge.d.ts +2 -2
- package/dist/aura3d-cli/pull-bridge.d.ts.map +1 -1
- package/dist/aura3d-cli/pull-bridge.js +24 -8
- package/dist/aura3d-cli/pull-bridge.js.map +1 -1
- package/dist/controls/FirstPersonControls.d.ts +1 -1
- package/dist/controls/FirstPersonControls.d.ts.map +1 -1
- package/dist/controls/FirstPersonControls.js +1 -1
- package/dist/controls/FirstPersonControls.js.map +1 -1
- package/dist/controls/FlyControls.d.ts +2 -1
- package/dist/controls/FlyControls.d.ts.map +1 -1
- package/dist/controls/FlyControls.js +2 -1
- package/dist/controls/FlyControls.js.map +1 -1
- package/dist/controls/MapControls.d.ts +1 -1
- package/dist/controls/MapControls.d.ts.map +1 -1
- package/dist/controls/MapControls.js +3 -3
- package/dist/controls/MapControls.js.map +1 -1
- package/dist/controls/OrbitControls.d.ts +19 -4
- package/dist/controls/OrbitControls.d.ts.map +1 -1
- package/dist/controls/OrbitControls.js +26 -8
- package/dist/controls/OrbitControls.js.map +1 -1
- package/dist/controls/PointerLockControls.d.ts +1 -1
- package/dist/controls/PointerLockControls.d.ts.map +1 -1
- package/dist/controls/PointerLockControls.js +1 -1
- package/dist/controls/PointerLockControls.js.map +1 -1
- package/dist/controls/TrackballControls.d.ts.map +1 -1
- package/dist/controls/TrackballControls.js +2 -0
- package/dist/controls/TrackballControls.js.map +1 -1
- package/dist/controls/engine/CameraRig.d.ts +12 -0
- package/dist/controls/engine/CameraRig.d.ts.map +1 -0
- package/dist/controls/engine/CameraRig.js +32 -0
- package/dist/controls/engine/CameraRig.js.map +1 -0
- package/dist/controls/engine/ControlTypes.d.ts +17 -0
- package/dist/controls/engine/ControlTypes.d.ts.map +1 -0
- package/dist/controls/engine/ControlTypes.js +4 -0
- package/dist/controls/engine/ControlTypes.js.map +1 -0
- package/dist/controls/engine/EditorFlyControls.d.ts +20 -0
- package/dist/controls/engine/EditorFlyControls.d.ts.map +1 -0
- package/dist/controls/engine/EditorFlyControls.js +44 -0
- package/dist/controls/engine/EditorFlyControls.js.map +1 -0
- package/dist/controls/engine/FirstPersonControls.d.ts +22 -0
- package/dist/controls/engine/FirstPersonControls.d.ts.map +1 -0
- package/dist/controls/engine/FirstPersonControls.js +44 -0
- package/dist/controls/engine/FirstPersonControls.js.map +1 -0
- package/dist/controls/engine/OrbitControls.d.ts +92 -0
- package/dist/controls/engine/OrbitControls.d.ts.map +1 -0
- package/dist/controls/engine/OrbitControls.js +270 -0
- package/dist/controls/engine/OrbitControls.js.map +1 -0
- package/dist/controls/engine/PointerLockControls.d.ts +11 -0
- package/dist/controls/engine/PointerLockControls.d.ts.map +1 -0
- package/dist/controls/engine/PointerLockControls.js +31 -0
- package/dist/controls/engine/PointerLockControls.js.map +1 -0
- package/dist/controls/engine/SceneCameraAdapter.d.ts +10 -0
- package/dist/controls/engine/SceneCameraAdapter.d.ts.map +1 -0
- package/dist/controls/engine/SceneCameraAdapter.js +90 -0
- package/dist/controls/engine/SceneCameraAdapter.js.map +1 -0
- package/dist/controls/engine/ThirdPersonFollowControls.d.ts +20 -0
- package/dist/controls/engine/ThirdPersonFollowControls.d.ts.map +1 -0
- package/dist/controls/engine/ThirdPersonFollowControls.js +33 -0
- package/dist/controls/engine/ThirdPersonFollowControls.js.map +1 -0
- package/dist/controls/index.d.ts +15 -0
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +12 -0
- package/dist/controls/index.js.map +1 -1
- package/dist/create-aura3d/agent-skills.d.ts +38 -0
- package/dist/create-aura3d/agent-skills.d.ts.map +1 -0
- package/dist/create-aura3d/agent-skills.js +103 -0
- package/dist/create-aura3d/agent-skills.js.map +1 -0
- package/dist/create-aura3d/cli.js +32 -5
- package/dist/create-aura3d/cli.js.map +1 -1
- package/dist/create-aura3d/index.d.ts +32 -1
- package/dist/create-aura3d/index.d.ts.map +1 -1
- package/dist/create-aura3d/index.js +52 -10
- package/dist/create-aura3d/index.js.map +1 -1
- package/dist/create-aura3d/showcase-spec-artifacts.d.ts +1 -1
- package/dist/create-aura3d/showcase-spec-game-geometry-extractor.js +8 -11
- package/dist/create-aura3d/showcase-spec-game-geometry-extractor.js.map +1 -1
- package/dist/create-aura3d/template-hdri.d.ts +12 -0
- package/dist/create-aura3d/template-hdri.d.ts.map +1 -0
- package/dist/create-aura3d/template-hdri.js +49 -0
- package/dist/create-aura3d/template-hdri.js.map +1 -0
- package/dist/engine/advanced-runtime/A3DRenderer.d.ts +3 -43
- package/dist/engine/advanced-runtime/A3DRenderer.d.ts.map +1 -1
- package/dist/engine/advanced-runtime/A3DRenderer.js +12 -145
- package/dist/engine/advanced-runtime/A3DRenderer.js.map +1 -1
- package/dist/engine/advanced-runtime/a3dCompat.d.ts +24 -0
- package/dist/engine/advanced-runtime/a3dCompat.d.ts.map +1 -0
- package/dist/engine/advanced-runtime/a3dCompat.js +48 -0
- package/dist/engine/advanced-runtime/a3dCompat.js.map +1 -0
- package/dist/engine/agent-api/AnimationController.d.ts +29 -1
- package/dist/engine/agent-api/AnimationController.d.ts.map +1 -1
- package/dist/engine/agent-api/AnimationController.js +212 -10
- package/dist/engine/agent-api/AnimationController.js.map +1 -1
- package/dist/engine/agent-api/AnimationDirector.d.ts +1 -1
- package/dist/engine/agent-api/AnimationDirector.d.ts.map +1 -1
- package/dist/engine/agent-api/AnimationDirector.js +2 -0
- package/dist/engine/agent-api/AnimationDirector.js.map +1 -1
- package/dist/engine/agent-api/AnimationPerformance.d.ts +1 -1
- package/dist/engine/agent-api/AnimationPerformance.d.ts.map +1 -1
- package/dist/engine/agent-api/AnimationPerformance.js +1 -0
- package/dist/engine/agent-api/AnimationPerformance.js.map +1 -1
- package/dist/engine/agent-api/AnimationRenderQueue.d.ts.map +1 -1
- package/dist/engine/agent-api/AnimationRenderQueue.js +2 -0
- package/dist/engine/agent-api/AnimationRenderQueue.js.map +1 -1
- package/dist/engine/agent-api/AnimationRouteProof.d.ts.map +1 -1
- package/dist/engine/agent-api/AnimationRouteProof.js +1 -0
- package/dist/engine/agent-api/AnimationRouteProof.js.map +1 -1
- package/dist/engine/agent-api/ApplicationKits.d.ts +1 -1
- package/dist/engine/agent-api/ApplicationKits.d.ts.map +1 -1
- package/dist/engine/agent-api/ApplicationKits.js +2 -0
- package/dist/engine/agent-api/ApplicationKits.js.map +1 -1
- package/dist/engine/agent-api/AssetDecoders.d.ts +72 -9
- package/dist/engine/agent-api/AssetDecoders.d.ts.map +1 -1
- package/dist/engine/agent-api/AssetDecoders.js +147 -9
- package/dist/engine/agent-api/AssetDecoders.js.map +1 -1
- package/dist/engine/agent-api/AssetEvidence.d.ts +1 -1
- package/dist/engine/agent-api/AssetEvidence.d.ts.map +1 -1
- package/dist/engine/agent-api/AudioMuxer.d.ts.map +1 -1
- package/dist/engine/agent-api/AudioMuxer.js +1 -0
- package/dist/engine/agent-api/AudioMuxer.js.map +1 -1
- package/dist/engine/agent-api/AudioVisemeAnalyzer.d.ts.map +1 -1
- package/dist/engine/agent-api/AudioVisemeAnalyzer.js +1 -0
- package/dist/engine/agent-api/AudioVisemeAnalyzer.js.map +1 -1
- package/dist/engine/agent-api/AuraAppHandle.d.ts +6 -0
- package/dist/engine/agent-api/AuraAppHandle.d.ts.map +1 -1
- package/dist/engine/agent-api/AuraAppHandle.js +1 -0
- package/dist/engine/agent-api/AuraAppHandle.js.map +1 -1
- package/dist/engine/agent-api/AuraVoiceBridge.d.ts.map +1 -1
- package/dist/engine/agent-api/AuraVoiceBridge.js +3 -0
- package/dist/engine/agent-api/AuraVoiceBridge.js.map +1 -1
- package/dist/engine/agent-api/CameraChoreographer.d.ts.map +1 -1
- package/dist/engine/agent-api/CameraChoreographer.js +21 -2
- package/dist/engine/agent-api/CameraChoreographer.js.map +1 -1
- package/dist/engine/agent-api/CameraPathEditor.d.ts +1 -1
- package/dist/engine/agent-api/CameraPathEditor.d.ts.map +1 -1
- package/dist/engine/agent-api/CameraPresetLibrary.d.ts +1 -1
- package/dist/engine/agent-api/CameraPresetLibrary.d.ts.map +1 -1
- package/dist/engine/agent-api/CameraPresetLibrary.js +4 -2
- package/dist/engine/agent-api/CameraPresetLibrary.js.map +1 -1
- package/dist/engine/agent-api/CameraProjection.d.ts +2 -0
- package/dist/engine/agent-api/CameraProjection.d.ts.map +1 -0
- package/dist/engine/agent-api/CameraProjection.js +2 -0
- package/dist/engine/agent-api/CameraProjection.js.map +1 -0
- package/dist/engine/agent-api/CaptionExporter.d.ts.map +1 -1
- package/dist/engine/agent-api/CaptionExporter.js +1 -0
- package/dist/engine/agent-api/CaptionExporter.js.map +1 -1
- package/dist/engine/agent-api/CharacterAssembly.d.ts +1 -1
- package/dist/engine/agent-api/CharacterAssembly.d.ts.map +1 -1
- package/dist/engine/agent-api/CharacterAssembly.js +1 -0
- package/dist/engine/agent-api/CharacterAssembly.js.map +1 -1
- package/dist/engine/agent-api/Decals.d.ts +2 -2
- package/dist/engine/agent-api/Decals.d.ts.map +1 -1
- package/dist/engine/agent-api/Decals.js +21 -5
- package/dist/engine/agent-api/Decals.js.map +1 -1
- package/dist/engine/agent-api/DeferredFrameResources.d.ts +2 -0
- package/dist/engine/agent-api/DeferredFrameResources.d.ts.map +1 -0
- package/dist/engine/agent-api/DeferredFrameResources.js +2 -0
- package/dist/engine/agent-api/DeferredFrameResources.js.map +1 -0
- package/dist/engine/agent-api/FfmpegFrameEncoder.d.ts.map +1 -1
- package/dist/engine/agent-api/FfmpegFrameEncoder.js +1 -0
- package/dist/engine/agent-api/FfmpegFrameEncoder.js.map +1 -1
- package/dist/engine/agent-api/FocusSelection.d.ts +1 -1
- package/dist/engine/agent-api/FocusSelection.d.ts.map +1 -1
- package/dist/engine/agent-api/FocusSelection.js +1 -0
- package/dist/engine/agent-api/FocusSelection.js.map +1 -1
- package/dist/engine/agent-api/FootPlanting.d.ts +6 -0
- package/dist/engine/agent-api/FootPlanting.d.ts.map +1 -1
- package/dist/engine/agent-api/FootPlanting.js +2 -1
- package/dist/engine/agent-api/FootPlanting.js.map +1 -1
- package/dist/engine/agent-api/FrameEncoder.d.ts.map +1 -1
- package/dist/engine/agent-api/FrameEncoder.js +1 -0
- package/dist/engine/agent-api/FrameEncoder.js.map +1 -1
- package/dist/engine/agent-api/FrameLoop.d.ts +61 -1
- package/dist/engine/agent-api/FrameLoop.d.ts.map +1 -1
- package/dist/engine/agent-api/FrameLoop.js +122 -9
- package/dist/engine/agent-api/FrameLoop.js.map +1 -1
- package/dist/engine/agent-api/GameAppRuntime.d.ts +20 -0
- package/dist/engine/agent-api/GameAppRuntime.d.ts.map +1 -1
- package/dist/engine/agent-api/GameAppRuntime.js +83 -5
- package/dist/engine/agent-api/GameAppRuntime.js.map +1 -1
- package/dist/engine/agent-api/GameAssetValidation.d.ts +1 -1
- package/dist/engine/agent-api/GameAssetValidation.d.ts.map +1 -1
- package/dist/engine/agent-api/GameAssetValidation.js +3 -0
- package/dist/engine/agent-api/GameAssetValidation.js.map +1 -1
- package/dist/engine/agent-api/GameCameraRigs.d.ts +4 -15
- package/dist/engine/agent-api/GameCameraRigs.d.ts.map +1 -1
- package/dist/engine/agent-api/GameCameraRigs.js +10 -80
- package/dist/engine/agent-api/GameCameraRigs.js.map +1 -1
- package/dist/engine/agent-api/GameCharacterAnimation.d.ts +202 -0
- package/dist/engine/agent-api/GameCharacterAnimation.d.ts.map +1 -0
- package/dist/engine/agent-api/GameCharacterAnimation.js +430 -0
- package/dist/engine/agent-api/GameCharacterAnimation.js.map +1 -0
- package/dist/engine/agent-api/GameEvidence.d.ts +11 -1
- package/dist/engine/agent-api/GameEvidence.d.ts.map +1 -1
- package/dist/engine/agent-api/GameEvidence.js +7 -1
- package/dist/engine/agent-api/GameEvidence.js.map +1 -1
- package/dist/engine/agent-api/GameFeel.d.ts +18 -0
- package/dist/engine/agent-api/GameFeel.d.ts.map +1 -1
- package/dist/engine/agent-api/GameFeel.js +37 -1
- package/dist/engine/agent-api/GameFeel.js.map +1 -1
- package/dist/engine/agent-api/GameGenreKits.d.ts +76 -1
- package/dist/engine/agent-api/GameGenreKits.d.ts.map +1 -1
- package/dist/engine/agent-api/GameGenreKits.js +132 -6
- package/dist/engine/agent-api/GameGenreKits.js.map +1 -1
- package/dist/engine/agent-api/GameInspector.d.ts.map +1 -1
- package/dist/engine/agent-api/GameInspector.js +3 -0
- package/dist/engine/agent-api/GameInspector.js.map +1 -1
- package/dist/engine/agent-api/GameRuntime.d.ts +84 -12
- package/dist/engine/agent-api/GameRuntime.d.ts.map +1 -1
- package/dist/engine/agent-api/GameRuntime.js +241 -216
- package/dist/engine/agent-api/GameRuntime.js.map +1 -1
- package/dist/engine/agent-api/GameSceneBridge.d.ts.map +1 -1
- package/dist/engine/agent-api/GameSceneBridge.js +1 -0
- package/dist/engine/agent-api/GameSceneBridge.js.map +1 -1
- package/dist/engine/agent-api/GameSceneGeometryBindings.d.ts +29 -5
- package/dist/engine/agent-api/GameSceneGeometryBindings.d.ts.map +1 -1
- package/dist/engine/agent-api/GameSceneGeometryBindings.js +72 -0
- package/dist/engine/agent-api/GameSceneGeometryBindings.js.map +1 -1
- package/dist/engine/agent-api/GameSceneGeometryMath.d.ts.map +1 -1
- package/dist/engine/agent-api/GameSceneGeometryMath.js +1 -0
- package/dist/engine/agent-api/GameSceneGeometryMath.js.map +1 -1
- package/dist/engine/agent-api/LabelTelemetry.d.ts +9 -3
- package/dist/engine/agent-api/LabelTelemetry.d.ts.map +1 -1
- package/dist/engine/agent-api/LabelTelemetry.js +18 -4
- package/dist/engine/agent-api/LabelTelemetry.js.map +1 -1
- package/dist/engine/agent-api/MediaRecorderFrameEncoder.d.ts.map +1 -1
- package/dist/engine/agent-api/MediaRecorderFrameEncoder.js +1 -0
- package/dist/engine/agent-api/MediaRecorderFrameEncoder.js.map +1 -1
- package/dist/engine/agent-api/ModelInstanceMatrices.d.ts +2 -0
- package/dist/engine/agent-api/ModelInstanceMatrices.d.ts.map +1 -0
- package/dist/engine/agent-api/ModelInstanceMatrices.js +2 -0
- package/dist/engine/agent-api/ModelInstanceMatrices.js.map +1 -0
- package/dist/engine/agent-api/NavigationCrowds.d.ts +28 -0
- package/dist/engine/agent-api/NavigationCrowds.d.ts.map +1 -1
- package/dist/engine/agent-api/NavigationCrowds.js +83 -1
- package/dist/engine/agent-api/NavigationCrowds.js.map +1 -1
- package/dist/engine/agent-api/PerformanceBlender.d.ts.map +1 -1
- package/dist/engine/agent-api/PerformanceBlender.js +1 -0
- package/dist/engine/agent-api/PerformanceBlender.js.map +1 -1
- package/dist/engine/agent-api/PngSequenceEncoder.d.ts.map +1 -1
- package/dist/engine/agent-api/PngSequenceEncoder.js +1 -0
- package/dist/engine/agent-api/PngSequenceEncoder.js.map +1 -1
- package/dist/engine/agent-api/PngTexturePixels.d.ts +9 -0
- package/dist/engine/agent-api/PngTexturePixels.d.ts.map +1 -0
- package/dist/engine/agent-api/PngTexturePixels.js +53 -0
- package/dist/engine/agent-api/PngTexturePixels.js.map +1 -0
- package/dist/engine/agent-api/PromptAnimationContract.d.ts +1 -1
- package/dist/engine/agent-api/PromptAnimationContract.d.ts.map +1 -1
- package/dist/engine/agent-api/PromptAnimationContract.js +2 -0
- package/dist/engine/agent-api/PromptAnimationContract.js.map +1 -1
- package/dist/engine/agent-api/PromptAnimationEvidence.d.ts +1 -1
- package/dist/engine/agent-api/PromptAnimationEvidence.d.ts.map +1 -1
- package/dist/engine/agent-api/PromptAnimationEvidence.js +3 -0
- package/dist/engine/agent-api/PromptAnimationEvidence.js.map +1 -1
- package/dist/engine/agent-api/RootDiagnosticSnapshot.d.ts +2 -0
- package/dist/engine/agent-api/RootDiagnosticSnapshot.d.ts.map +1 -0
- package/dist/engine/agent-api/RootDiagnosticSnapshot.js +2 -0
- package/dist/engine/agent-api/RootDiagnosticSnapshot.js.map +1 -0
- package/dist/engine/agent-api/RootFrameClock.d.ts +2 -0
- package/dist/engine/agent-api/RootFrameClock.d.ts.map +1 -0
- package/dist/engine/agent-api/RootFrameClock.js +2 -0
- package/dist/engine/agent-api/RootFrameClock.js.map +1 -0
- package/dist/engine/agent-api/RootGeometry.d.ts +2 -0
- package/dist/engine/agent-api/RootGeometry.d.ts.map +1 -1
- package/dist/engine/agent-api/RootGeometry.js +4 -0
- package/dist/engine/agent-api/RootGeometry.js.map +1 -1
- package/dist/engine/agent-api/RootPerformanceQuality.d.ts +2 -0
- package/dist/engine/agent-api/RootPerformanceQuality.d.ts.map +1 -0
- package/dist/engine/agent-api/RootPerformanceQuality.js +2 -0
- package/dist/engine/agent-api/RootPerformanceQuality.js.map +1 -0
- package/dist/engine/agent-api/RootRuntimeSupport.d.ts +63 -0
- package/dist/engine/agent-api/RootRuntimeSupport.d.ts.map +1 -0
- package/dist/engine/agent-api/RootRuntimeSupport.js +173 -0
- package/dist/engine/agent-api/RootRuntimeSupport.js.map +1 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.d.ts +22 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.d.ts.map +1 -1
- package/dist/engine/agent-api/RuntimeNodeHandle.js +2 -0
- package/dist/engine/agent-api/RuntimeNodeHandle.js.map +1 -1
- package/dist/engine/agent-api/SceneGroundingUtils.d.ts +2 -1
- package/dist/engine/agent-api/SceneGroundingUtils.d.ts.map +1 -1
- package/dist/engine/agent-api/SceneGroundingUtils.js.map +1 -1
- package/dist/engine/agent-api/SceneQueries.d.ts +1 -1
- package/dist/engine/agent-api/SceneQueries.d.ts.map +1 -1
- package/dist/engine/agent-api/SceneSequencer.d.ts.map +1 -1
- package/dist/engine/agent-api/SceneSequencer.js +2 -0
- package/dist/engine/agent-api/SceneSequencer.js.map +1 -1
- package/dist/engine/agent-api/ShotTimeline.d.ts +1 -1
- package/dist/engine/agent-api/ShotTimeline.d.ts.map +1 -1
- package/dist/engine/agent-api/ShotTimeline.js +3 -0
- package/dist/engine/agent-api/ShotTimeline.js.map +1 -1
- package/dist/engine/agent-api/ShotTransitionEngine.d.ts.map +1 -1
- package/dist/engine/agent-api/ShotTransitionEngine.js +1 -0
- package/dist/engine/agent-api/ShotTransitionEngine.js.map +1 -1
- package/dist/engine/agent-api/SpatialAnchoring.d.ts +1 -0
- package/dist/engine/agent-api/SpatialAnchoring.d.ts.map +1 -1
- package/dist/engine/agent-api/SpatialAnchoring.js +1 -1
- package/dist/engine/agent-api/SpatialAnchoring.js.map +1 -1
- package/dist/engine/agent-api/ThumbnailGenerator.d.ts.map +1 -1
- package/dist/engine/agent-api/ThumbnailGenerator.js +1 -0
- package/dist/engine/agent-api/ThumbnailGenerator.js.map +1 -1
- package/dist/engine/agent-api/VisemeController.d.ts +9 -0
- package/dist/engine/agent-api/VisemeController.d.ts.map +1 -1
- package/dist/engine/agent-api/VisemeController.js +8 -0
- package/dist/engine/agent-api/VisemeController.js.map +1 -1
- package/dist/engine/agent-api/WebCodecsFrameEncoder.d.ts.map +1 -1
- package/dist/engine/agent-api/WebCodecsFrameEncoder.js +1 -0
- package/dist/engine/agent-api/WebCodecsFrameEncoder.js.map +1 -1
- package/dist/engine/agent-api/WorldLabelRenderer.d.ts +13 -2
- package/dist/engine/agent-api/WorldLabelRenderer.d.ts.map +1 -1
- package/dist/engine/agent-api/WorldLabelRenderer.js +58 -26
- package/dist/engine/agent-api/WorldLabelRenderer.js.map +1 -1
- package/dist/engine/agent-api/app/actorAnimationHandle.d.ts +106 -0
- package/dist/engine/agent-api/app/actorAnimationHandle.d.ts.map +1 -0
- package/dist/engine/agent-api/app/actorAnimationHandle.js +522 -0
- package/dist/engine/agent-api/app/actorAnimationHandle.js.map +1 -0
- package/dist/engine/agent-api/app/canvas.d.ts +7 -0
- package/dist/engine/agent-api/app/canvas.d.ts.map +1 -0
- package/dist/engine/agent-api/app/canvas.js +88 -0
- package/dist/engine/agent-api/app/canvas.js.map +1 -0
- package/dist/engine/agent-api/app/colorManagement.d.ts +4 -0
- package/dist/engine/agent-api/app/colorManagement.d.ts.map +1 -0
- package/dist/engine/agent-api/app/colorManagement.js +24 -0
- package/dist/engine/agent-api/app/colorManagement.js.map +1 -0
- package/dist/engine/agent-api/app/createAuraApp.d.ts +3 -0
- package/dist/engine/agent-api/app/createAuraApp.d.ts.map +1 -0
- package/dist/engine/agent-api/app/createAuraApp.js +775 -0
- package/dist/engine/agent-api/app/createAuraApp.js.map +1 -0
- package/dist/engine/agent-api/app/createGameApp.d.ts +4 -0
- package/dist/engine/agent-api/app/createGameApp.d.ts.map +1 -0
- package/dist/engine/agent-api/app/createGameApp.js +15 -0
- package/dist/engine/agent-api/app/createGameApp.js.map +1 -0
- package/dist/engine/agent-api/app/degradation.d.ts +3 -0
- package/dist/engine/agent-api/app/degradation.d.ts.map +1 -0
- package/dist/engine/agent-api/app/degradation.js +6 -0
- package/dist/engine/agent-api/app/degradation.js.map +1 -0
- package/dist/engine/agent-api/app/errorOverlay.d.ts +9 -0
- package/dist/engine/agent-api/app/errorOverlay.d.ts.map +1 -0
- package/dist/engine/agent-api/app/errorOverlay.js +94 -0
- package/dist/engine/agent-api/app/errorOverlay.js.map +1 -0
- package/dist/engine/agent-api/app/errors.d.ts +5 -0
- package/dist/engine/agent-api/app/errors.d.ts.map +1 -0
- package/dist/engine/agent-api/app/errors.js +9 -0
- package/dist/engine/agent-api/app/errors.js.map +1 -0
- package/dist/engine/agent-api/app/frameAlpha.d.ts +18 -0
- package/dist/engine/agent-api/app/frameAlpha.d.ts.map +1 -0
- package/dist/engine/agent-api/app/frameAlpha.js +32 -0
- package/dist/engine/agent-api/app/frameAlpha.js.map +1 -0
- package/dist/engine/agent-api/app/frameLoop.d.ts +23 -0
- package/dist/engine/agent-api/app/frameLoop.d.ts.map +1 -0
- package/dist/engine/agent-api/app/frameLoop.js +360 -0
- package/dist/engine/agent-api/app/frameLoop.js.map +1 -0
- package/dist/engine/agent-api/app/liveApps.d.ts +5 -0
- package/dist/engine/agent-api/app/liveApps.d.ts.map +1 -0
- package/dist/engine/agent-api/app/liveApps.js +67 -0
- package/dist/engine/agent-api/app/liveApps.js.map +1 -0
- package/dist/engine/agent-api/app/mountRenderer.d.ts +10 -0
- package/dist/engine/agent-api/app/mountRenderer.d.ts.map +1 -0
- package/dist/engine/agent-api/app/mountRenderer.js +31 -0
- package/dist/engine/agent-api/app/mountRenderer.js.map +1 -0
- package/dist/engine/agent-api/app/pixelRatio.d.ts +37 -0
- package/dist/engine/agent-api/app/pixelRatio.d.ts.map +1 -0
- package/dist/engine/agent-api/app/pixelRatio.js +36 -0
- package/dist/engine/agent-api/app/pixelRatio.js.map +1 -0
- package/dist/engine/agent-api/app/rendererOptions.d.ts +45 -0
- package/dist/engine/agent-api/app/rendererOptions.d.ts.map +1 -0
- package/dist/engine/agent-api/app/rendererOptions.js +208 -0
- package/dist/engine/agent-api/app/rendererOptions.js.map +1 -0
- package/dist/engine/agent-api/app/routeState.d.ts +5 -0
- package/dist/engine/agent-api/app/routeState.d.ts.map +1 -0
- package/dist/engine/agent-api/app/routeState.js +26 -0
- package/dist/engine/agent-api/app/routeState.js.map +1 -0
- package/dist/engine/agent-api/app/runtimeNodes.d.ts +45 -0
- package/dist/engine/agent-api/app/runtimeNodes.d.ts.map +1 -0
- package/dist/engine/agent-api/app/runtimeNodes.js +376 -0
- package/dist/engine/agent-api/app/runtimeNodes.js.map +1 -0
- package/dist/engine/agent-api/app/screenshot.d.ts +11 -0
- package/dist/engine/agent-api/app/screenshot.d.ts.map +1 -0
- package/dist/engine/agent-api/app/screenshot.js +32 -0
- package/dist/engine/agent-api/app/screenshot.js.map +1 -0
- package/dist/engine/agent-api/camera/CameraController.d.ts +61 -0
- package/dist/engine/agent-api/camera/CameraController.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/CameraController.js +394 -0
- package/dist/engine/agent-api/camera/CameraController.js.map +1 -0
- package/dist/engine/agent-api/camera/OccluderFade.d.ts +52 -0
- package/dist/engine/agent-api/camera/OccluderFade.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/OccluderFade.js +70 -0
- package/dist/engine/agent-api/camera/OccluderFade.js.map +1 -0
- package/dist/engine/agent-api/camera/Probe.d.ts +66 -0
- package/dist/engine/agent-api/camera/Probe.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/Probe.js +155 -0
- package/dist/engine/agent-api/camera/Probe.js.map +1 -0
- package/dist/engine/agent-api/camera/Spline.d.ts +60 -0
- package/dist/engine/agent-api/camera/Spline.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/Spline.js +191 -0
- package/dist/engine/agent-api/camera/Spline.js.map +1 -0
- package/dist/engine/agent-api/camera/Spring.d.ts +40 -0
- package/dist/engine/agent-api/camera/Spring.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/Spring.js +63 -0
- package/dist/engine/agent-api/camera/Spring.js.map +1 -0
- package/dist/engine/agent-api/camera/collision.d.ts +27 -0
- package/dist/engine/agent-api/camera/collision.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/collision.js +43 -0
- package/dist/engine/agent-api/camera/collision.js.map +1 -0
- package/dist/engine/agent-api/camera/ease.d.ts +7 -0
- package/dist/engine/agent-api/camera/ease.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/ease.js +17 -0
- package/dist/engine/agent-api/camera/ease.js.map +1 -0
- package/dist/engine/agent-api/camera/extension.d.ts +54 -0
- package/dist/engine/agent-api/camera/extension.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/extension.js +439 -0
- package/dist/engine/agent-api/camera/extension.js.map +1 -0
- package/dist/engine/agent-api/camera/framing.d.ts +31 -0
- package/dist/engine/agent-api/camera/framing.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/framing.js +50 -0
- package/dist/engine/agent-api/camera/framing.js.map +1 -0
- package/dist/engine/agent-api/camera/gameDirector.d.ts +74 -0
- package/dist/engine/agent-api/camera/gameDirector.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/gameDirector.js +138 -0
- package/dist/engine/agent-api/camera/gameDirector.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/cinematicBars.d.ts +50 -0
- package/dist/engine/agent-api/camera/layers/cinematicBars.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/cinematicBars.js +96 -0
- package/dist/engine/agent-api/camera/layers/cinematicBars.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/fovKick.d.ts +8 -0
- package/dist/engine/agent-api/camera/layers/fovKick.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/fovKick.js +30 -0
- package/dist/engine/agent-api/camera/layers/fovKick.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/index.d.ts +12 -0
- package/dist/engine/agent-api/camera/layers/index.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/index.js +12 -0
- package/dist/engine/agent-api/camera/layers/index.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/lookAt.d.ts +13 -0
- package/dist/engine/agent-api/camera/layers/lookAt.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/lookAt.js +27 -0
- package/dist/engine/agent-api/camera/layers/lookAt.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/punch.d.ts +9 -0
- package/dist/engine/agent-api/camera/layers/punch.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/punch.js +47 -0
- package/dist/engine/agent-api/camera/layers/punch.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/shared.d.ts +16 -0
- package/dist/engine/agent-api/camera/layers/shared.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/shared.js +38 -0
- package/dist/engine/agent-api/camera/layers/shared.js.map +1 -0
- package/dist/engine/agent-api/camera/layers/trauma.d.ts +14 -0
- package/dist/engine/agent-api/camera/layers/trauma.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers/trauma.js +86 -0
- package/dist/engine/agent-api/camera/layers/trauma.js.map +1 -0
- package/dist/engine/agent-api/camera/layers.d.ts +26 -0
- package/dist/engine/agent-api/camera/layers.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/layers.js +220 -0
- package/dist/engine/agent-api/camera/layers.js.map +1 -0
- package/dist/engine/agent-api/camera/leanAdapters.d.ts +33 -0
- package/dist/engine/agent-api/camera/leanAdapters.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/leanAdapters.js +79 -0
- package/dist/engine/agent-api/camera/leanAdapters.js.map +1 -0
- package/dist/engine/agent-api/camera/quat.d.ts +24 -0
- package/dist/engine/agent-api/camera/quat.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/quat.js +117 -0
- package/dist/engine/agent-api/camera/quat.js.map +1 -0
- package/dist/engine/agent-api/camera/rigDamping.d.ts +10 -0
- package/dist/engine/agent-api/camera/rigDamping.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigDamping.js +21 -0
- package/dist/engine/agent-api/camera/rigDamping.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/altitude.d.ts +25 -0
- package/dist/engine/agent-api/camera/rigs/altitude.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/altitude.js +91 -0
- package/dist/engine/agent-api/camera/rigs/altitude.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/chase.d.ts +40 -0
- package/dist/engine/agent-api/camera/rigs/chase.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/chase.js +104 -0
- package/dist/engine/agent-api/camera/rigs/chase.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/fighting.d.ts +17 -0
- package/dist/engine/agent-api/camera/rigs/fighting.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/fighting.js +60 -0
- package/dist/engine/agent-api/camera/rigs/fighting.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/flight.d.ts +39 -0
- package/dist/engine/agent-api/camera/rigs/flight.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/flight.js +102 -0
- package/dist/engine/agent-api/camera/rigs/flight.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/follow2d.d.ts +21 -0
- package/dist/engine/agent-api/camera/rigs/follow2d.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/follow2d.js +83 -0
- package/dist/engine/agent-api/camera/rigs/follow2d.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/fromSpec.d.ts +76 -0
- package/dist/engine/agent-api/camera/rigs/fromSpec.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/fromSpec.js +170 -0
- package/dist/engine/agent-api/camera/rigs/fromSpec.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/orbit.d.ts +44 -0
- package/dist/engine/agent-api/camera/rigs/orbit.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/orbit.js +118 -0
- package/dist/engine/agent-api/camera/rigs/orbit.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/rail.d.ts +3 -0
- package/dist/engine/agent-api/camera/rigs/rail.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/rail.js +79 -0
- package/dist/engine/agent-api/camera/rigs/rail.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/registry.d.ts +14 -0
- package/dist/engine/agent-api/camera/rigs/registry.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/registry.js +8 -0
- package/dist/engine/agent-api/camera/rigs/registry.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/rigUtils.d.ts +32 -0
- package/dist/engine/agent-api/camera/rigs/rigUtils.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/rigUtils.js +49 -0
- package/dist/engine/agent-api/camera/rigs/rigUtils.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/shoulder.d.ts +16 -0
- package/dist/engine/agent-api/camera/rigs/shoulder.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/shoulder.js +54 -0
- package/dist/engine/agent-api/camera/rigs/shoulder.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/shoulderCamera.d.ts +25 -0
- package/dist/engine/agent-api/camera/rigs/shoulderCamera.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/shoulderCamera.js +62 -0
- package/dist/engine/agent-api/camera/rigs/shoulderCamera.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/static.d.ts +10 -0
- package/dist/engine/agent-api/camera/rigs/static.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/static.js +23 -0
- package/dist/engine/agent-api/camera/rigs/static.js.map +1 -0
- package/dist/engine/agent-api/camera/rigs/topDown.d.ts +31 -0
- package/dist/engine/agent-api/camera/rigs/topDown.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/rigs/topDown.js +87 -0
- package/dist/engine/agent-api/camera/rigs/topDown.js.map +1 -0
- package/dist/engine/agent-api/camera/sceneNodes.d.ts +3 -0
- package/dist/engine/agent-api/camera/sceneNodes.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/sceneNodes.js +51 -0
- package/dist/engine/agent-api/camera/sceneNodes.js.map +1 -0
- package/dist/engine/agent-api/camera/staticBounds.d.ts +33 -0
- package/dist/engine/agent-api/camera/staticBounds.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/staticBounds.js +76 -0
- package/dist/engine/agent-api/camera/staticBounds.js.map +1 -0
- package/dist/engine/agent-api/camera/subject.d.ts +58 -0
- package/dist/engine/agent-api/camera/subject.d.ts.map +1 -0
- package/dist/engine/agent-api/camera/subject.js +57 -0
- package/dist/engine/agent-api/camera/subject.js.map +1 -0
- package/dist/engine/agent-api/color.d.ts +21 -0
- package/dist/engine/agent-api/color.d.ts.map +1 -0
- package/dist/engine/agent-api/color.js +201 -0
- package/dist/engine/agent-api/color.js.map +1 -0
- package/dist/engine/agent-api/colorUtils.d.ts +9 -0
- package/dist/engine/agent-api/colorUtils.d.ts.map +1 -0
- package/dist/engine/agent-api/colorUtils.js +83 -0
- package/dist/engine/agent-api/colorUtils.js.map +1 -0
- package/dist/engine/agent-api/compiler/actors.d.ts +74 -0
- package/dist/engine/agent-api/compiler/actors.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/actors.js +288 -0
- package/dist/engine/agent-api/compiler/actors.js.map +1 -0
- package/dist/engine/agent-api/compiler/animation.d.ts +70 -0
- package/dist/engine/agent-api/compiler/animation.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/animation.js +492 -0
- package/dist/engine/agent-api/compiler/animation.js.map +1 -0
- package/dist/engine/agent-api/compiler/camera.d.ts +10 -0
- package/dist/engine/agent-api/compiler/camera.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/camera.js +137 -0
- package/dist/engine/agent-api/compiler/camera.js.map +1 -0
- package/dist/engine/agent-api/compiler/color.d.ts +51 -0
- package/dist/engine/agent-api/compiler/color.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/color.js +87 -0
- package/dist/engine/agent-api/compiler/color.js.map +1 -0
- package/dist/engine/agent-api/compiler/compileScene.d.ts +93 -0
- package/dist/engine/agent-api/compiler/compileScene.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/compileScene.js +518 -0
- package/dist/engine/agent-api/compiler/compileScene.js.map +1 -0
- package/dist/engine/agent-api/compiler/degradation.d.ts +12 -0
- package/dist/engine/agent-api/compiler/degradation.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/degradation.js +27 -0
- package/dist/engine/agent-api/compiler/degradation.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd01.d.ts +17 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd01.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd01.js +55 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd01.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd02.d.ts +5 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd02.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd02.js +12 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd02.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd03.d.ts +20 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd03.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd03.js +41 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd03.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd04.d.ts +8 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd04.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd04.js +29 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd04.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd05.d.ts +5 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd05.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd05.js +32 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd05.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd06.d.ts +23 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd06.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd06.js +26 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd06.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd07.d.ts +19 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd07.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd07.js +10 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd07.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd09.d.ts +9 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd09.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd09.js +8 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd09.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd10.d.ts +5 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd10.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd10.js +73 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd10.js.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd15.d.ts +5 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd15.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd15.js +19 -0
- package/dist/engine/agent-api/compiler/diagnosticOnly.prd15.js.map +1 -0
- package/dist/engine/agent-api/compiler/effects.d.ts +7 -0
- package/dist/engine/agent-api/compiler/effects.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/effects.js +118 -0
- package/dist/engine/agent-api/compiler/effects.js.map +1 -0
- package/dist/engine/agent-api/compiler/environment.d.ts +95 -0
- package/dist/engine/agent-api/compiler/environment.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/environment.js +396 -0
- package/dist/engine/agent-api/compiler/environment.js.map +1 -0
- package/dist/engine/agent-api/compiler/errors.d.ts +22 -0
- package/dist/engine/agent-api/compiler/errors.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/errors.js +30 -0
- package/dist/engine/agent-api/compiler/errors.js.map +1 -0
- package/dist/engine/agent-api/compiler/fog.d.ts +15 -0
- package/dist/engine/agent-api/compiler/fog.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/fog.js +110 -0
- package/dist/engine/agent-api/compiler/fog.js.map +1 -0
- package/dist/engine/agent-api/compiler/geometry.d.ts +76 -0
- package/dist/engine/agent-api/compiler/geometry.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/geometry.js +343 -0
- package/dist/engine/agent-api/compiler/geometry.js.map +1 -0
- package/dist/engine/agent-api/compiler/handlers.d.ts +17 -0
- package/dist/engine/agent-api/compiler/handlers.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/handlers.js +55 -0
- package/dist/engine/agent-api/compiler/handlers.js.map +1 -0
- package/dist/engine/agent-api/compiler/labels.d.ts +44 -0
- package/dist/engine/agent-api/compiler/labels.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/labels.js +190 -0
- package/dist/engine/agent-api/compiler/labels.js.map +1 -0
- package/dist/engine/agent-api/compiler/lights.d.ts +117 -0
- package/dist/engine/agent-api/compiler/lights.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/lights.js +486 -0
- package/dist/engine/agent-api/compiler/lights.js.map +1 -0
- package/dist/engine/agent-api/compiler/modelMaterials.d.ts +3 -0
- package/dist/engine/agent-api/compiler/modelMaterials.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/modelMaterials.js +11 -0
- package/dist/engine/agent-api/compiler/modelMaterials.js.map +1 -0
- package/dist/engine/agent-api/compiler/observations.d.ts +84 -0
- package/dist/engine/agent-api/compiler/observations.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/observations.js +383 -0
- package/dist/engine/agent-api/compiler/observations.js.map +1 -0
- package/dist/engine/agent-api/compiler/optionCoverage.d.ts +3 -0
- package/dist/engine/agent-api/compiler/optionCoverage.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/optionCoverage.js +290 -0
- package/dist/engine/agent-api/compiler/optionCoverage.js.map +1 -0
- package/dist/engine/agent-api/compiler/postprocess.d.ts +7 -0
- package/dist/engine/agent-api/compiler/postprocess.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/postprocess.js +324 -0
- package/dist/engine/agent-api/compiler/postprocess.js.map +1 -0
- package/dist/engine/agent-api/compiler/primitives.d.ts +156 -0
- package/dist/engine/agent-api/compiler/primitives.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/primitives.js +439 -0
- package/dist/engine/agent-api/compiler/primitives.js.map +1 -0
- package/dist/engine/agent-api/compiler/renderInput.d.ts +9 -0
- package/dist/engine/agent-api/compiler/renderInput.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/renderInput.js +337 -0
- package/dist/engine/agent-api/compiler/renderInput.js.map +1 -0
- package/dist/engine/agent-api/compiler/renderer.d.ts +19 -0
- package/dist/engine/agent-api/compiler/renderer.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/renderer.js +411 -0
- package/dist/engine/agent-api/compiler/renderer.js.map +1 -0
- package/dist/engine/agent-api/compiler/sceneGraph.d.ts +81 -0
- package/dist/engine/agent-api/compiler/sceneGraph.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/sceneGraph.js +348 -0
- package/dist/engine/agent-api/compiler/sceneGraph.js.map +1 -0
- package/dist/engine/agent-api/compiler/shadows.d.ts +100 -0
- package/dist/engine/agent-api/compiler/shadows.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/shadows.js +175 -0
- package/dist/engine/agent-api/compiler/shadows.js.map +1 -0
- package/dist/engine/agent-api/compiler/sky.d.ts +5 -0
- package/dist/engine/agent-api/compiler/sky.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/sky.js +31 -0
- package/dist/engine/agent-api/compiler/sky.js.map +1 -0
- package/dist/engine/agent-api/compiler/text.d.ts +8 -0
- package/dist/engine/agent-api/compiler/text.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/text.js +37 -0
- package/dist/engine/agent-api/compiler/text.js.map +1 -0
- package/dist/engine/agent-api/compiler/textures.d.ts +54 -0
- package/dist/engine/agent-api/compiler/textures.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/textures.js +552 -0
- package/dist/engine/agent-api/compiler/textures.js.map +1 -0
- package/dist/engine/agent-api/compiler/world.d.ts +31 -0
- package/dist/engine/agent-api/compiler/world.d.ts.map +1 -0
- package/dist/engine/agent-api/compiler/world.js +391 -0
- package/dist/engine/agent-api/compiler/world.js.map +1 -0
- package/dist/engine/agent-api/controls/TouchControls.d.ts +53 -0
- package/dist/engine/agent-api/controls/TouchControls.d.ts.map +1 -0
- package/dist/engine/agent-api/controls/TouchControls.js +169 -0
- package/dist/engine/agent-api/controls/TouchControls.js.map +1 -0
- package/dist/engine/agent-api/devtools/diagnosticPreview.d.ts +27 -0
- package/dist/engine/agent-api/devtools/diagnosticPreview.d.ts.map +1 -0
- package/dist/engine/agent-api/devtools/diagnosticPreview.js +433 -0
- package/dist/engine/agent-api/devtools/diagnosticPreview.js.map +1 -0
- package/dist/engine/agent-api/devtools/lazySystems.d.ts +7 -0
- package/dist/engine/agent-api/devtools/lazySystems.d.ts.map +1 -0
- package/dist/engine/agent-api/devtools/lazySystems.js +8 -0
- package/dist/engine/agent-api/devtools/lazySystems.js.map +1 -0
- package/dist/engine/agent-api/devtools/rendererReports.d.ts +2 -0
- package/dist/engine/agent-api/devtools/rendererReports.d.ts.map +1 -0
- package/dist/engine/agent-api/devtools/rendererReports.js +5 -0
- package/dist/engine/agent-api/devtools/rendererReports.js.map +1 -0
- package/dist/engine/agent-api/devtools/routeHealth.d.ts +7 -0
- package/dist/engine/agent-api/devtools/routeHealth.d.ts.map +1 -0
- package/dist/engine/agent-api/devtools/routeHealth.js +11 -0
- package/dist/engine/agent-api/devtools/routeHealth.js.map +1 -0
- package/dist/engine/agent-api/devtools/sceneKitBudgets.d.ts +12 -0
- package/dist/engine/agent-api/devtools/sceneKitBudgets.d.ts.map +1 -0
- package/dist/engine/agent-api/devtools/sceneKitBudgets.js +27 -0
- package/dist/engine/agent-api/devtools/sceneKitBudgets.js.map +1 -0
- package/dist/engine/agent-api/diagnostics.d.ts +29 -0
- package/dist/engine/agent-api/diagnostics.d.ts.map +1 -0
- package/dist/engine/agent-api/diagnostics.js +103 -0
- package/dist/engine/agent-api/diagnostics.js.map +1 -0
- package/dist/engine/agent-api/engineSurface.d.ts +95 -0
- package/dist/engine/agent-api/engineSurface.d.ts.map +1 -0
- package/dist/engine/agent-api/engineSurface.js +141 -0
- package/dist/engine/agent-api/engineSurface.js.map +1 -0
- package/dist/engine/agent-api/feel/FeelBus.d.ts +94 -0
- package/dist/engine/agent-api/feel/FeelBus.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/FeelBus.js +134 -0
- package/dist/engine/agent-api/feel/FeelBus.js.map +1 -0
- package/dist/engine/agent-api/feel/Noise.d.ts +20 -0
- package/dist/engine/agent-api/feel/Noise.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/Noise.js +44 -0
- package/dist/engine/agent-api/feel/Noise.js.map +1 -0
- package/dist/engine/agent-api/feel/ScreenOverlay.d.ts +27 -0
- package/dist/engine/agent-api/feel/ScreenOverlay.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/ScreenOverlay.js +46 -0
- package/dist/engine/agent-api/feel/ScreenOverlay.js.map +1 -0
- package/dist/engine/agent-api/feel/bindFeelSound.d.ts +37 -0
- package/dist/engine/agent-api/feel/bindFeelSound.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/bindFeelSound.js +31 -0
- package/dist/engine/agent-api/feel/bindFeelSound.js.map +1 -0
- package/dist/engine/agent-api/feel/combatFeel.d.ts +23 -0
- package/dist/engine/agent-api/feel/combatFeel.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/combatFeel.js +15 -0
- package/dist/engine/agent-api/feel/combatFeel.js.map +1 -0
- package/dist/engine/agent-api/feel/extension.d.ts +41 -0
- package/dist/engine/agent-api/feel/extension.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/extension.js +208 -0
- package/dist/engine/agent-api/feel/extension.js.map +1 -0
- package/dist/engine/agent-api/feel/lint/evidenceOnlyFeel.d.ts +22 -0
- package/dist/engine/agent-api/feel/lint/evidenceOnlyFeel.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/lint/evidenceOnlyFeel.js +33 -0
- package/dist/engine/agent-api/feel/lint/evidenceOnlyFeel.js.map +1 -0
- package/dist/engine/agent-api/feel/lint/feelSourceScan.d.ts +20 -0
- package/dist/engine/agent-api/feel/lint/feelSourceScan.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/lint/feelSourceScan.js +91 -0
- package/dist/engine/agent-api/feel/lint/feelSourceScan.js.map +1 -0
- package/dist/engine/agent-api/feel/presets.d.ts +34 -0
- package/dist/engine/agent-api/feel/presets.d.ts.map +1 -0
- package/dist/engine/agent-api/feel/presets.js +97 -0
- package/dist/engine/agent-api/feel/presets.js.map +1 -0
- package/dist/engine/agent-api/gameRules.d.ts +7 -0
- package/dist/engine/agent-api/gameRules.d.ts.map +1 -0
- package/dist/engine/agent-api/gameRules.js +20 -0
- package/dist/engine/agent-api/gameRules.js.map +1 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts +7 -6
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/humanoid-walk-runtime.js +5 -3
- package/dist/engine/agent-api/humanoid-walk-runtime.js.map +1 -1
- package/dist/engine/agent-api/index.d.ts +282 -3485
- package/dist/engine/agent-api/index.d.ts.map +1 -1
- package/dist/engine/agent-api/index.js +214 -13333
- package/dist/engine/agent-api/index.js.map +1 -1
- package/dist/engine/agent-api/lazyNamespace.d.ts +4 -0
- package/dist/engine/agent-api/lazyNamespace.d.ts.map +1 -0
- package/dist/engine/agent-api/lazyNamespace.js +59 -0
- package/dist/engine/agent-api/lazyNamespace.js.map +1 -0
- package/dist/engine/agent-api/lazySystemEvidence.d.ts +15 -0
- package/dist/engine/agent-api/lazySystemEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/lazySystemEvidence.js +44 -0
- package/dist/engine/agent-api/lazySystemEvidence.js.map +1 -0
- package/dist/engine/agent-api/lean-game.d.ts +1 -1
- package/dist/engine/agent-api/lean-game.js +1 -1
- package/dist/engine/agent-api/lean-product.d.ts +1 -1
- package/dist/engine/agent-api/lean-product.js +1 -1
- package/dist/engine/agent-api/lean.d.ts +1 -1
- package/dist/engine/agent-api/lean.js +1 -1
- package/dist/engine/agent-api/looks/contractAvailability.d.ts +6 -0
- package/dist/engine/agent-api/looks/contractAvailability.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/contractAvailability.js +20 -0
- package/dist/engine/agent-api/looks/contractAvailability.js.map +1 -0
- package/dist/engine/agent-api/looks/fakeEffectNames.d.ts +14 -0
- package/dist/engine/agent-api/looks/fakeEffectNames.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/fakeEffectNames.js +93 -0
- package/dist/engine/agent-api/looks/fakeEffectNames.js.map +1 -0
- package/dist/engine/agent-api/looks/generatedCodeWarnings.d.ts +14 -0
- package/dist/engine/agent-api/looks/generatedCodeWarnings.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/generatedCodeWarnings.js +63 -0
- package/dist/engine/agent-api/looks/generatedCodeWarnings.js.map +1 -0
- package/dist/engine/agent-api/looks/lookDiagnostics.d.ts +4 -0
- package/dist/engine/agent-api/looks/lookDiagnostics.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/lookDiagnostics.js +52 -0
- package/dist/engine/agent-api/looks/lookDiagnostics.js.map +1 -0
- package/dist/engine/agent-api/looks/lookLint.d.ts +8 -0
- package/dist/engine/agent-api/looks/lookLint.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/lookLint.js +275 -0
- package/dist/engine/agent-api/looks/lookLint.js.map +1 -0
- package/dist/engine/agent-api/looks/lookNodeHandler.d.ts +8 -0
- package/dist/engine/agent-api/looks/lookNodeHandler.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/lookNodeHandler.js +50 -0
- package/dist/engine/agent-api/looks/lookNodeHandler.js.map +1 -0
- package/dist/engine/agent-api/looks/lookPresets.d.ts +84 -0
- package/dist/engine/agent-api/looks/lookPresets.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/lookPresets.js +306 -0
- package/dist/engine/agent-api/looks/lookPresets.js.map +1 -0
- package/dist/engine/agent-api/looks/looks.d.ts +60 -0
- package/dist/engine/agent-api/looks/looks.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/looks.js +339 -0
- package/dist/engine/agent-api/looks/looks.js.map +1 -0
- package/dist/engine/agent-api/looks/structuralQA.d.ts +35 -0
- package/dist/engine/agent-api/looks/structuralQA.d.ts.map +1 -0
- package/dist/engine/agent-api/looks/structuralQA.js +556 -0
- package/dist/engine/agent-api/looks/structuralQA.js.map +1 -0
- package/dist/engine/agent-api/nodes/animation.d.ts +77 -0
- package/dist/engine/agent-api/nodes/animation.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/animation.js +51 -0
- package/dist/engine/agent-api/nodes/animation.js.map +1 -0
- package/dist/engine/agent-api/nodes/assets.d.ts +4 -0
- package/dist/engine/agent-api/nodes/assets.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/assets.js +19 -0
- package/dist/engine/agent-api/nodes/assets.js.map +1 -0
- package/dist/engine/agent-api/nodes/builder.d.ts +40 -0
- package/dist/engine/agent-api/nodes/builder.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/builder.js +48 -0
- package/dist/engine/agent-api/nodes/builder.js.map +1 -0
- package/dist/engine/agent-api/nodes/camera.d.ts +75 -0
- package/dist/engine/agent-api/nodes/camera.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/camera.js +241 -0
- package/dist/engine/agent-api/nodes/camera.js.map +1 -0
- package/dist/engine/agent-api/nodes/character.d.ts +23 -0
- package/dist/engine/agent-api/nodes/character.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/character.js +421 -0
- package/dist/engine/agent-api/nodes/character.js.map +1 -0
- package/dist/engine/agent-api/nodes/charts.d.ts +17 -0
- package/dist/engine/agent-api/nodes/charts.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/charts.js +41 -0
- package/dist/engine/agent-api/nodes/charts.js.map +1 -0
- package/dist/engine/agent-api/nodes/city.d.ts +30 -0
- package/dist/engine/agent-api/nodes/city.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/city.js +366 -0
- package/dist/engine/agent-api/nodes/city.js.map +1 -0
- package/dist/engine/agent-api/nodes/editor.d.ts +12 -0
- package/dist/engine/agent-api/nodes/editor.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/editor.js +12 -0
- package/dist/engine/agent-api/nodes/editor.js.map +1 -0
- package/dist/engine/agent-api/nodes/effects.composite.d.ts +38 -0
- package/dist/engine/agent-api/nodes/effects.composite.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/effects.composite.js +11 -0
- package/dist/engine/agent-api/nodes/effects.composite.js.map +1 -0
- package/dist/engine/agent-api/nodes/effects.d.ts +111 -0
- package/dist/engine/agent-api/nodes/effects.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/effects.js +323 -0
- package/dist/engine/agent-api/nodes/effects.js.map +1 -0
- package/dist/engine/agent-api/nodes/effects.lighting.d.ts +17 -0
- package/dist/engine/agent-api/nodes/effects.lighting.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/effects.lighting.js +18 -0
- package/dist/engine/agent-api/nodes/effects.lighting.js.map +1 -0
- package/dist/engine/agent-api/nodes/effects.post.d.ts +44 -0
- package/dist/engine/agent-api/nodes/effects.post.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/effects.post.js +139 -0
- package/dist/engine/agent-api/nodes/effects.post.js.map +1 -0
- package/dist/engine/agent-api/nodes/environments.composite.d.ts +38 -0
- package/dist/engine/agent-api/nodes/environments.composite.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/environments.composite.js +17 -0
- package/dist/engine/agent-api/nodes/environments.composite.js.map +1 -0
- package/dist/engine/agent-api/nodes/environments.d.ts +101 -0
- package/dist/engine/agent-api/nodes/environments.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/environments.js +109 -0
- package/dist/engine/agent-api/nodes/environments.js.map +1 -0
- package/dist/engine/agent-api/nodes/environments.world.d.ts +31 -0
- package/dist/engine/agent-api/nodes/environments.world.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/environments.world.js +32 -0
- package/dist/engine/agent-api/nodes/environments.world.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/frameLoopDefaults.d.ts +34 -0
- package/dist/engine/agent-api/nodes/game/frameLoopDefaults.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/frameLoopDefaults.js +32 -0
- package/dist/engine/agent-api/nodes/game/frameLoopDefaults.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/index.d.ts +153 -0
- package/dist/engine/agent-api/nodes/game/index.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/index.js +130 -0
- package/dist/engine/agent-api/nodes/game/index.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/instanceTransforms.d.ts +34 -0
- package/dist/engine/agent-api/nodes/game/instanceTransforms.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/instanceTransforms.js +145 -0
- package/dist/engine/agent-api/nodes/game/instanceTransforms.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/lookSignature.d.ts +28 -0
- package/dist/engine/agent-api/nodes/game/lookSignature.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/lookSignature.js +45 -0
- package/dist/engine/agent-api/nodes/game/lookSignature.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/racingCamera.d.ts +3 -0
- package/dist/engine/agent-api/nodes/game/racingCamera.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/racingCamera.js +51 -0
- package/dist/engine/agent-api/nodes/game/racingCamera.js.map +1 -0
- package/dist/engine/agent-api/nodes/game/runtime.d.ts +3 -0
- package/dist/engine/agent-api/nodes/game/runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/game/runtime.js +30 -0
- package/dist/engine/agent-api/nodes/game/runtime.js.map +1 -0
- package/dist/engine/agent-api/nodes/gameFeel.d.ts +10 -0
- package/dist/engine/agent-api/nodes/gameFeel.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/gameFeel.js +4 -0
- package/dist/engine/agent-api/nodes/gameFeel.js.map +1 -0
- package/dist/engine/agent-api/nodes/games.d.ts +27 -0
- package/dist/engine/agent-api/nodes/games.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/games.js +191 -0
- package/dist/engine/agent-api/nodes/games.js.map +1 -0
- package/dist/engine/agent-api/nodes/geometry.d.ts +8 -0
- package/dist/engine/agent-api/nodes/geometry.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/geometry.js +9 -0
- package/dist/engine/agent-api/nodes/geometry.js.map +1 -0
- package/dist/engine/agent-api/nodes/groups.d.ts +16 -0
- package/dist/engine/agent-api/nodes/groups.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/groups.js +56 -0
- package/dist/engine/agent-api/nodes/groups.js.map +1 -0
- package/dist/engine/agent-api/nodes/instances.d.ts +71 -0
- package/dist/engine/agent-api/nodes/instances.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/instances.js +126 -0
- package/dist/engine/agent-api/nodes/instances.js.map +1 -0
- package/dist/engine/agent-api/nodes/interactions.d.ts +35 -0
- package/dist/engine/agent-api/nodes/interactions.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/interactions.js +41 -0
- package/dist/engine/agent-api/nodes/interactions.js.map +1 -0
- package/dist/engine/agent-api/nodes/labels.d.ts +13 -0
- package/dist/engine/agent-api/nodes/labels.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/labels.js +61 -0
- package/dist/engine/agent-api/nodes/labels.js.map +1 -0
- package/dist/engine/agent-api/nodes/lights.d.ts +78 -0
- package/dist/engine/agent-api/nodes/lights.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/lights.js +111 -0
- package/dist/engine/agent-api/nodes/lights.js.map +1 -0
- package/dist/engine/agent-api/nodes/material.d.ts +84 -0
- package/dist/engine/agent-api/nodes/material.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/material.js +405 -0
- package/dist/engine/agent-api/nodes/material.js.map +1 -0
- package/dist/engine/agent-api/nodes/materialTools.d.ts +7 -0
- package/dist/engine/agent-api/nodes/materialTools.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/materialTools.js +311 -0
- package/dist/engine/agent-api/nodes/materialTools.js.map +1 -0
- package/dist/engine/agent-api/nodes/model.d.ts +20 -0
- package/dist/engine/agent-api/nodes/model.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/model.js +61 -0
- package/dist/engine/agent-api/nodes/model.js.map +1 -0
- package/dist/engine/agent-api/nodes/neon.d.ts +15 -0
- package/dist/engine/agent-api/nodes/neon.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/neon.js +22 -0
- package/dist/engine/agent-api/nodes/neon.js.map +1 -0
- package/dist/engine/agent-api/nodes/particles.d.ts +25 -0
- package/dist/engine/agent-api/nodes/particles.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/particles.js +46 -0
- package/dist/engine/agent-api/nodes/particles.js.map +1 -0
- package/dist/engine/agent-api/nodes/physics.d.ts +49 -0
- package/dist/engine/agent-api/nodes/physics.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/physics.js +508 -0
- package/dist/engine/agent-api/nodes/physics.js.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/cityBlock.d.ts +3 -0
- package/dist/engine/agent-api/nodes/prefabs/cityBlock.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/cityBlock.js +114 -0
- package/dist/engine/agent-api/nodes/prefabs/cityBlock.js.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/gamePresentation.d.ts +22 -0
- package/dist/engine/agent-api/nodes/prefabs/gamePresentation.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/gamePresentation.js +871 -0
- package/dist/engine/agent-api/nodes/prefabs/gamePresentation.js.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/index.d.ts +43 -0
- package/dist/engine/agent-api/nodes/prefabs/index.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prefabs/index.js +632 -0
- package/dist/engine/agent-api/nodes/prefabs/index.js.map +1 -0
- package/dist/engine/agent-api/nodes/primitives.d.ts +12 -0
- package/dist/engine/agent-api/nodes/primitives.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/primitives.js +37 -0
- package/dist/engine/agent-api/nodes/primitives.js.map +1 -0
- package/dist/engine/agent-api/nodes/probes.d.ts +48 -0
- package/dist/engine/agent-api/nodes/probes.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/probes.js +34 -0
- package/dist/engine/agent-api/nodes/probes.js.map +1 -0
- package/dist/engine/agent-api/nodes/product.d.ts +18 -0
- package/dist/engine/agent-api/nodes/product.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/product.js +68 -0
- package/dist/engine/agent-api/nodes/product.js.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlan.d.ts +17 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlan.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlan.js +168 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlan.js.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanMappings.d.ts +59 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanMappings.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanMappings.js +71 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanMappings.js.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanV2.d.ts +58 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanV2.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanV2.js +285 -0
- package/dist/engine/agent-api/nodes/prompt/promptPlanV2.js.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptRecipes.d.ts +19 -0
- package/dist/engine/agent-api/nodes/prompt/promptRecipes.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/prompt/promptRecipes.js +214 -0
- package/dist/engine/agent-api/nodes/prompt/promptRecipes.js.map +1 -0
- package/dist/engine/agent-api/nodes/promptPlans.d.ts +4 -0
- package/dist/engine/agent-api/nodes/promptPlans.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/promptPlans.js +24 -0
- package/dist/engine/agent-api/nodes/promptPlans.js.map +1 -0
- package/dist/engine/agent-api/nodes/scene.d.ts +28 -0
- package/dist/engine/agent-api/nodes/scene.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/scene.js +113 -0
- package/dist/engine/agent-api/nodes/scene.js.map +1 -0
- package/dist/engine/agent-api/nodes/sceneKits.d.ts +21 -0
- package/dist/engine/agent-api/nodes/sceneKits.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/sceneKits.js +91 -0
- package/dist/engine/agent-api/nodes/sceneKits.js.map +1 -0
- package/dist/engine/agent-api/nodes/shadows.d.ts +21 -0
- package/dist/engine/agent-api/nodes/shadows.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/shadows.js +35 -0
- package/dist/engine/agent-api/nodes/shadows.js.map +1 -0
- package/dist/engine/agent-api/nodes/sky.d.ts +46 -0
- package/dist/engine/agent-api/nodes/sky.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/sky.js +121 -0
- package/dist/engine/agent-api/nodes/sky.js.map +1 -0
- package/dist/engine/agent-api/nodes/solar.d.ts +17 -0
- package/dist/engine/agent-api/nodes/solar.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/solar.js +64 -0
- package/dist/engine/agent-api/nodes/solar.js.map +1 -0
- package/dist/engine/agent-api/nodes/text3d.d.ts +11 -0
- package/dist/engine/agent-api/nodes/text3d.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/text3d.js +42 -0
- package/dist/engine/agent-api/nodes/text3d.js.map +1 -0
- package/dist/engine/agent-api/nodes/timeline.d.ts +6 -0
- package/dist/engine/agent-api/nodes/timeline.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/timeline.js +22 -0
- package/dist/engine/agent-api/nodes/timeline.js.map +1 -0
- package/dist/engine/agent-api/nodes/types/runtime.d.ts +656 -0
- package/dist/engine/agent-api/nodes/types/runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/types/runtime.js +4 -0
- package/dist/engine/agent-api/nodes/types/runtime.js.map +1 -0
- package/dist/engine/agent-api/nodes/types.d.ts +2043 -0
- package/dist/engine/agent-api/nodes/types.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/types.js +3 -0
- package/dist/engine/agent-api/nodes/types.js.map +1 -0
- package/dist/engine/agent-api/nodes/ui.d.ts +40 -0
- package/dist/engine/agent-api/nodes/ui.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/ui.js +104 -0
- package/dist/engine/agent-api/nodes/ui.js.map +1 -0
- package/dist/engine/agent-api/nodes/visualScripting.d.ts +7 -0
- package/dist/engine/agent-api/nodes/visualScripting.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/visualScripting.js +8 -0
- package/dist/engine/agent-api/nodes/visualScripting.js.map +1 -0
- package/dist/engine/agent-api/nodes/water.d.ts +23 -0
- package/dist/engine/agent-api/nodes/water.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/water.js +57 -0
- package/dist/engine/agent-api/nodes/water.js.map +1 -0
- package/dist/engine/agent-api/nodes/weather.d.ts +39 -0
- package/dist/engine/agent-api/nodes/weather.d.ts.map +1 -0
- package/dist/engine/agent-api/nodes/weather.js +88 -0
- package/dist/engine/agent-api/nodes/weather.js.map +1 -0
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts +4 -2
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/particle-fountain-runtime.js +3 -2
- package/dist/engine/agent-api/particle-fountain-runtime.js.map +1 -1
- package/dist/engine/agent-api/performanceEvidence.d.ts +11 -0
- package/dist/engine/agent-api/performanceEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/performanceEvidence.js +93 -0
- package/dist/engine/agent-api/performanceEvidence.js.map +1 -0
- package/dist/engine/agent-api/platform.d.ts +10 -0
- package/dist/engine/agent-api/platform.d.ts.map +1 -0
- package/dist/engine/agent-api/platform.js +18 -0
- package/dist/engine/agent-api/platform.js.map +1 -0
- package/dist/engine/agent-api/postBridge.d.ts +233 -0
- package/dist/engine/agent-api/postBridge.d.ts.map +1 -0
- package/dist/engine/agent-api/postBridge.js +711 -0
- package/dist/engine/agent-api/postBridge.js.map +1 -0
- package/dist/engine/agent-api/postPresets.d.ts +46 -0
- package/dist/engine/agent-api/postPresets.d.ts.map +1 -0
- package/dist/engine/agent-api/postPresets.js +179 -0
- package/dist/engine/agent-api/postPresets.js.map +1 -0
- package/dist/engine/agent-api/product-viewer-runtime.d.ts +6 -4
- package/dist/engine/agent-api/product-viewer-runtime.d.ts.map +1 -1
- package/dist/engine/agent-api/product-viewer-runtime.js +6 -3
- package/dist/engine/agent-api/product-viewer-runtime.js.map +1 -1
- package/dist/engine/agent-api/public/devtools.d.ts +5 -0
- package/dist/engine/agent-api/public/devtools.d.ts.map +1 -0
- package/dist/engine/agent-api/public/devtools.js +8 -0
- package/dist/engine/agent-api/public/devtools.js.map +1 -0
- package/dist/engine/agent-api/publishedUnion.d.ts +156 -0
- package/dist/engine/agent-api/publishedUnion.d.ts.map +1 -0
- package/dist/engine/agent-api/publishedUnion.js +92 -0
- package/dist/engine/agent-api/publishedUnion.js.map +1 -0
- package/dist/engine/agent-api/rendererDiagnostics.d.ts +15 -0
- package/dist/engine/agent-api/rendererDiagnostics.d.ts.map +1 -0
- package/dist/engine/agent-api/rendererDiagnostics.js +322 -0
- package/dist/engine/agent-api/rendererDiagnostics.js.map +1 -0
- package/dist/engine/agent-api/rendererReports.d.ts +45 -0
- package/dist/engine/agent-api/rendererReports.d.ts.map +1 -0
- package/dist/engine/agent-api/rendererReports.js +17 -0
- package/dist/engine/agent-api/rendererReports.js.map +1 -0
- package/dist/engine/agent-api/runtimeEvidence.d.ts +7 -0
- package/dist/engine/agent-api/runtimeEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/runtimeEvidence.js +112 -0
- package/dist/engine/agent-api/runtimeEvidence.js.map +1 -0
- package/dist/engine/agent-api/sceneEvidence.d.ts +4 -0
- package/dist/engine/agent-api/sceneEvidence.d.ts.map +1 -0
- package/dist/engine/agent-api/sceneEvidence.js +94 -0
- package/dist/engine/agent-api/sceneEvidence.js.map +1 -0
- package/dist/engine/agent-api/sceneGraph.d.ts +111 -0
- package/dist/engine/agent-api/sceneGraph.d.ts.map +1 -0
- package/dist/engine/agent-api/sceneGraph.js +502 -0
- package/dist/engine/agent-api/sceneGraph.js.map +1 -0
- package/dist/engine/agent-api/sceneKitDiagnostics.d.ts +14 -0
- package/dist/engine/agent-api/sceneKitDiagnostics.d.ts.map +1 -0
- package/dist/engine/agent-api/sceneKitDiagnostics.js +278 -0
- package/dist/engine/agent-api/sceneKitDiagnostics.js.map +1 -0
- package/dist/engine/agent-api/sceneMath.d.ts +50 -0
- package/dist/engine/agent-api/sceneMath.d.ts.map +1 -0
- package/dist/engine/agent-api/sceneMath.js +354 -0
- package/dist/engine/agent-api/sceneMath.js.map +1 -0
- package/dist/engine/agent-api/time/FixedStepDriver.d.ts +108 -0
- package/dist/engine/agent-api/time/FixedStepDriver.d.ts.map +1 -0
- package/dist/engine/agent-api/time/FixedStepDriver.js +169 -0
- package/dist/engine/agent-api/time/FixedStepDriver.js.map +1 -0
- package/dist/engine/agent-api/time/Interpolation.d.ts +55 -0
- package/dist/engine/agent-api/time/Interpolation.d.ts.map +1 -0
- package/dist/engine/agent-api/time/Interpolation.js +181 -0
- package/dist/engine/agent-api/time/Interpolation.js.map +1 -0
- package/dist/engine/agent-api/time/TimeController.d.ts +63 -0
- package/dist/engine/agent-api/time/TimeController.d.ts.map +1 -0
- package/dist/engine/agent-api/time/TimeController.js +139 -0
- package/dist/engine/agent-api/time/TimeController.js.map +1 -0
- package/dist/engine/agent-api/vehicle/BicycleModel.d.ts +107 -0
- package/dist/engine/agent-api/vehicle/BicycleModel.d.ts.map +1 -0
- package/dist/engine/agent-api/vehicle/BicycleModel.js +207 -0
- package/dist/engine/agent-api/vehicle/BicycleModel.js.map +1 -0
- package/dist/engine/agent-api/vfx/atlas.d.ts +30 -0
- package/dist/engine/agent-api/vfx/atlas.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/atlas.js +45 -0
- package/dist/engine/agent-api/vfx/atlas.js.map +1 -0
- package/dist/engine/agent-api/vfx/atmosphere-api.d.ts +6 -0
- package/dist/engine/agent-api/vfx/atmosphere-api.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/atmosphere-api.js +34 -0
- package/dist/engine/agent-api/vfx/atmosphere-api.js.map +1 -0
- package/dist/engine/agent-api/vfx/bridge.d.ts +15 -0
- package/dist/engine/agent-api/vfx/bridge.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/bridge.js +59 -0
- package/dist/engine/agent-api/vfx/bridge.js.map +1 -0
- package/dist/engine/agent-api/vfx/diagnostics.d.ts +4 -0
- package/dist/engine/agent-api/vfx/diagnostics.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/diagnostics.js +57 -0
- package/dist/engine/agent-api/vfx/diagnostics.js.map +1 -0
- package/dist/engine/agent-api/vfx/effects-api.d.ts +33 -0
- package/dist/engine/agent-api/vfx/effects-api.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/effects-api.js +355 -0
- package/dist/engine/agent-api/vfx/effects-api.js.map +1 -0
- package/dist/engine/agent-api/vfx/gameEffects.d.ts +32 -0
- package/dist/engine/agent-api/vfx/gameEffects.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/gameEffects.js +244 -0
- package/dist/engine/agent-api/vfx/gameEffects.js.map +1 -0
- package/dist/engine/agent-api/vfx/index.d.ts +7 -0
- package/dist/engine/agent-api/vfx/index.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/index.js +8 -0
- package/dist/engine/agent-api/vfx/index.js.map +1 -0
- package/dist/engine/agent-api/vfx/lookLint.d.ts +2 -0
- package/dist/engine/agent-api/vfx/lookLint.d.ts.map +1 -0
- package/dist/engine/agent-api/vfx/lookLint.js +66 -0
- package/dist/engine/agent-api/vfx/lookLint.js.map +1 -0
- package/dist/engine/agent-api/world/biomes.d.ts +130 -0
- package/dist/engine/agent-api/world/biomes.d.ts.map +1 -0
- package/dist/engine/agent-api/world/biomes.js +274 -0
- package/dist/engine/agent-api/world/biomes.js.map +1 -0
- package/dist/engine/agent-api/world/flags.d.ts +13 -0
- package/dist/engine/agent-api/world/flags.d.ts.map +1 -0
- package/dist/engine/agent-api/world/flags.js +32 -0
- package/dist/engine/agent-api/world/flags.js.map +1 -0
- package/dist/engine/agent-api/world/index.d.ts +53 -0
- package/dist/engine/agent-api/world/index.d.ts.map +1 -0
- package/dist/engine/agent-api/world/index.js +46 -0
- package/dist/engine/agent-api/world/index.js.map +1 -0
- package/dist/engine/agent-api/world/kits.d.ts +108 -0
- package/dist/engine/agent-api/world/kits.d.ts.map +1 -0
- package/dist/engine/agent-api/world/kits.js +330 -0
- package/dist/engine/agent-api/world/kits.js.map +1 -0
- package/dist/engine/agent-api/world/placement.d.ts +65 -0
- package/dist/engine/agent-api/world/placement.d.ts.map +1 -0
- package/dist/engine/agent-api/world/placement.js +267 -0
- package/dist/engine/agent-api/world/placement.js.map +1 -0
- package/dist/engine/agent-api/world/queries.d.ts +81 -0
- package/dist/engine/agent-api/world/queries.d.ts.map +1 -0
- package/dist/engine/agent-api/world/queries.js +175 -0
- package/dist/engine/agent-api/world/queries.js.map +1 -0
- package/dist/engine/agent-api/world/register.d.ts +2 -0
- package/dist/engine/agent-api/world/register.d.ts.map +1 -0
- package/dist/engine/agent-api/world/register.js +96 -0
- package/dist/engine/agent-api/world/register.js.map +1 -0
- package/dist/engine/agent-api/world/room.d.ts +45 -0
- package/dist/engine/agent-api/world/room.d.ts.map +1 -0
- package/dist/engine/agent-api/world/room.js +154 -0
- package/dist/engine/agent-api/world/room.js.map +1 -0
- package/dist/engine/agent-api/world/runtime.d.ts +85 -0
- package/dist/engine/agent-api/world/runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/world/runtime.js +108 -0
- package/dist/engine/agent-api/world/runtime.js.map +1 -0
- package/dist/engine/agent-api/world/scatter.d.ts +160 -0
- package/dist/engine/agent-api/world/scatter.d.ts.map +1 -0
- package/dist/engine/agent-api/world/scatter.js +396 -0
- package/dist/engine/agent-api/world/scatter.js.map +1 -0
- package/dist/engine/agent-api/world/spline.d.ts +67 -0
- package/dist/engine/agent-api/world/spline.d.ts.map +1 -0
- package/dist/engine/agent-api/world/spline.js +337 -0
- package/dist/engine/agent-api/world/spline.js.map +1 -0
- package/dist/engine/agent-api/world/street.d.ts +49 -0
- package/dist/engine/agent-api/world/street.d.ts.map +1 -0
- package/dist/engine/agent-api/world/street.js +147 -0
- package/dist/engine/agent-api/world/street.js.map +1 -0
- package/dist/engine/agent-api/world/terrain.d.ts +205 -0
- package/dist/engine/agent-api/world/terrain.d.ts.map +1 -0
- package/dist/engine/agent-api/world/terrain.js +404 -0
- package/dist/engine/agent-api/world/terrain.js.map +1 -0
- package/dist/engine/agent-api/world/timeOfDay.d.ts +70 -0
- package/dist/engine/agent-api/world/timeOfDay.d.ts.map +1 -0
- package/dist/engine/agent-api/world/timeOfDay.js +283 -0
- package/dist/engine/agent-api/world/timeOfDay.js.map +1 -0
- package/dist/engine/agent-api/world/types.d.ts +20 -0
- package/dist/engine/agent-api/world/types.d.ts.map +1 -0
- package/dist/engine/agent-api/world/types.js +2 -0
- package/dist/engine/agent-api/world/types.js.map +1 -0
- package/dist/engine/agent-api/world/water.d.ts +77 -0
- package/dist/engine/agent-api/world/water.d.ts.map +1 -0
- package/dist/engine/agent-api/world/water.js +60 -0
- package/dist/engine/agent-api/world/water.js.map +1 -0
- package/dist/engine/agent-api/world/wind.d.ts +20 -0
- package/dist/engine/agent-api/world/wind.d.ts.map +1 -0
- package/dist/engine/agent-api/world/wind.js +17 -0
- package/dist/engine/agent-api/world/wind.js.map +1 -0
- package/dist/engine/contracts/animation.d.ts +134 -0
- package/dist/engine/contracts/animation.d.ts.map +1 -0
- package/dist/engine/contracts/animation.js +45 -0
- package/dist/engine/contracts/animation.js.map +1 -0
- package/dist/engine/contracts/app.d.ts +41 -0
- package/dist/engine/contracts/app.d.ts.map +1 -0
- package/dist/engine/contracts/app.js +21 -0
- package/dist/engine/contracts/app.js.map +1 -0
- package/dist/engine/contracts/art.d.ts +57 -0
- package/dist/engine/contracts/art.d.ts.map +1 -0
- package/dist/engine/contracts/art.js +10 -0
- package/dist/engine/contracts/art.js.map +1 -0
- package/dist/engine/contracts/assets.d.ts +38 -0
- package/dist/engine/contracts/assets.d.ts.map +1 -0
- package/dist/engine/contracts/assets.js +7 -0
- package/dist/engine/contracts/assets.js.map +1 -0
- package/dist/engine/contracts/atmosphere.d.ts +130 -0
- package/dist/engine/contracts/atmosphere.d.ts.map +1 -0
- package/dist/engine/contracts/atmosphere.js +33 -0
- package/dist/engine/contracts/atmosphere.js.map +1 -0
- package/dist/engine/contracts/camera.d.ts +195 -0
- package/dist/engine/contracts/camera.d.ts.map +1 -0
- package/dist/engine/contracts/camera.js +42 -0
- package/dist/engine/contracts/camera.js.map +1 -0
- package/dist/engine/contracts/compiler.d.ts +147 -0
- package/dist/engine/contracts/compiler.d.ts.map +1 -0
- package/dist/engine/contracts/compiler.js +110 -0
- package/dist/engine/contracts/compiler.js.map +1 -0
- package/dist/engine/contracts/diagnostics.d.ts +37 -0
- package/dist/engine/contracts/diagnostics.d.ts.map +1 -0
- package/dist/engine/contracts/diagnostics.js +30 -0
- package/dist/engine/contracts/diagnostics.js.map +1 -0
- package/dist/engine/contracts/effects.d.ts +258 -0
- package/dist/engine/contracts/effects.d.ts.map +1 -0
- package/dist/engine/contracts/effects.js +77 -0
- package/dist/engine/contracts/effects.js.map +1 -0
- package/dist/engine/contracts/environment.d.ts +55 -0
- package/dist/engine/contracts/environment.d.ts.map +1 -0
- package/dist/engine/contracts/environment.js +40 -0
- package/dist/engine/contracts/environment.js.map +1 -0
- package/dist/engine/contracts/flags.d.ts +25 -0
- package/dist/engine/contracts/flags.d.ts.map +1 -0
- package/dist/engine/contracts/flags.js +205 -0
- package/dist/engine/contracts/flags.js.map +1 -0
- package/dist/engine/contracts/game.d.ts +178 -0
- package/dist/engine/contracts/game.d.ts.map +1 -0
- package/dist/engine/contracts/game.js +34 -0
- package/dist/engine/contracts/game.js.map +1 -0
- package/dist/engine/contracts/gameSound.d.ts +3 -0
- package/dist/engine/contracts/gameSound.d.ts.map +1 -0
- package/dist/engine/contracts/gameSound.js +12 -0
- package/dist/engine/contracts/gameSound.js.map +1 -0
- package/dist/engine/contracts/index.d.ts +25 -0
- package/dist/engine/contracts/index.d.ts.map +1 -0
- package/dist/engine/contracts/index.js +25 -0
- package/dist/engine/contracts/index.js.map +1 -0
- package/dist/engine/contracts/lighting.d.ts +89 -0
- package/dist/engine/contracts/lighting.d.ts.map +1 -0
- package/dist/engine/contracts/lighting.js +32 -0
- package/dist/engine/contracts/lighting.js.map +1 -0
- package/dist/engine/contracts/looks.d.ts +62 -0
- package/dist/engine/contracts/looks.d.ts.map +1 -0
- package/dist/engine/contracts/looks.js +50 -0
- package/dist/engine/contracts/looks.js.map +1 -0
- package/dist/engine/contracts/materials.d.ts +81 -0
- package/dist/engine/contracts/materials.d.ts.map +1 -0
- package/dist/engine/contracts/materials.js +35 -0
- package/dist/engine/contracts/materials.js.map +1 -0
- package/dist/engine/contracts/output.d.ts +47 -0
- package/dist/engine/contracts/output.d.ts.map +1 -0
- package/dist/engine/contracts/output.js +6 -0
- package/dist/engine/contracts/output.js.map +1 -0
- package/dist/engine/contracts/post.d.ts +64 -0
- package/dist/engine/contracts/post.d.ts.map +1 -0
- package/dist/engine/contracts/post.js +20 -0
- package/dist/engine/contracts/post.js.map +1 -0
- package/dist/engine/contracts/runtimeNodes.d.ts +40 -0
- package/dist/engine/contracts/runtimeNodes.d.ts.map +1 -0
- package/dist/engine/contracts/runtimeNodes.js +19 -0
- package/dist/engine/contracts/runtimeNodes.js.map +1 -0
- package/dist/engine/contracts/sceneGraph.d.ts +33 -0
- package/dist/engine/contracts/sceneGraph.d.ts.map +1 -0
- package/dist/engine/contracts/sceneGraph.js +154 -0
- package/dist/engine/contracts/sceneGraph.js.map +1 -0
- package/dist/engine/contracts/stubs/game.d.ts +15 -0
- package/dist/engine/contracts/stubs/game.d.ts.map +1 -0
- package/dist/engine/contracts/stubs/game.js +175 -0
- package/dist/engine/contracts/stubs/game.js.map +1 -0
- package/dist/engine/contracts/time.d.ts +119 -0
- package/dist/engine/contracts/time.d.ts.map +1 -0
- package/dist/engine/contracts/time.js +87 -0
- package/dist/engine/contracts/time.js.map +1 -0
- package/dist/engine/contracts/world.d.ts +54 -0
- package/dist/engine/contracts/world.d.ts.map +1 -0
- package/dist/engine/contracts/world.js +64 -0
- package/dist/engine/contracts/world.js.map +1 -0
- package/dist/engine/deprecated/advanced-runtime.d.ts +2 -0
- package/dist/engine/deprecated/advanced-runtime.d.ts.map +1 -0
- package/dist/engine/deprecated/advanced-runtime.js +11 -0
- package/dist/engine/deprecated/advanced-runtime.js.map +1 -0
- package/dist/engine/deprecated/apps.d.ts +2 -0
- package/dist/engine/deprecated/apps.d.ts.map +1 -0
- package/dist/engine/deprecated/apps.js +11 -0
- package/dist/engine/deprecated/apps.js.map +1 -0
- package/dist/engine/deprecated/assets-browser.d.ts +2 -0
- package/dist/engine/deprecated/assets-browser.d.ts.map +1 -0
- package/dist/engine/deprecated/assets-browser.js +11 -0
- package/dist/engine/deprecated/assets-browser.js.map +1 -0
- package/dist/engine/deprecated/contracts.d.ts +2 -0
- package/dist/engine/deprecated/contracts.d.ts.map +1 -0
- package/dist/engine/deprecated/contracts.js +11 -0
- package/dist/engine/deprecated/contracts.js.map +1 -0
- package/dist/engine/deprecated/media-node.d.ts +2 -0
- package/dist/engine/deprecated/media-node.d.ts.map +1 -0
- package/dist/engine/deprecated/media-node.js +11 -0
- package/dist/engine/deprecated/media-node.js.map +1 -0
- package/dist/engine/deprecated/production-runtime.d.ts +2 -0
- package/dist/engine/deprecated/production-runtime.d.ts.map +1 -0
- package/dist/engine/deprecated/production-runtime.js +11 -0
- package/dist/engine/deprecated/production-runtime.js.map +1 -0
- package/dist/engine/deprecated/rendering-production-runtime.d.ts +2 -0
- package/dist/engine/deprecated/rendering-production-runtime.d.ts.map +1 -0
- package/dist/engine/deprecated/rendering-production-runtime.js +11 -0
- package/dist/engine/deprecated/rendering-production-runtime.js.map +1 -0
- package/dist/engine/deprecated/rendering-webgpu.d.ts +2 -0
- package/dist/engine/deprecated/rendering-webgpu.d.ts.map +1 -0
- package/dist/engine/deprecated/rendering-webgpu.js +11 -0
- package/dist/engine/deprecated/rendering-webgpu.js.map +1 -0
- package/dist/engine/deprecated/rendering.d.ts +2 -0
- package/dist/engine/deprecated/rendering.d.ts.map +1 -0
- package/dist/engine/deprecated/rendering.js +11 -0
- package/dist/engine/deprecated/rendering.js.map +1 -0
- package/dist/engine/deprecated/workflows-production.d.ts +2 -0
- package/dist/engine/deprecated/workflows-production.d.ts.map +1 -0
- package/dist/engine/deprecated/workflows-production.js +11 -0
- package/dist/engine/deprecated/workflows-production.js.map +1 -0
- package/dist/engine/devtools/environmentDiagnostics.d.ts +2 -0
- package/dist/engine/devtools/environmentDiagnostics.d.ts.map +1 -0
- package/dist/engine/devtools/environmentDiagnostics.js +5 -0
- package/dist/engine/devtools/environmentDiagnostics.js.map +1 -0
- package/dist/engine/devtools/environments/BiomeEnvironmentRegistry.d.ts +34 -0
- package/dist/engine/devtools/environments/BiomeEnvironmentRegistry.d.ts.map +1 -0
- package/dist/engine/devtools/environments/BiomeEnvironmentRegistry.js +100 -0
- package/dist/engine/devtools/environments/BiomeEnvironmentRegistry.js.map +1 -0
- package/dist/engine/devtools/environments/EnvironmentPreview.d.ts +13 -0
- package/dist/engine/devtools/environments/EnvironmentPreview.d.ts.map +1 -0
- package/dist/engine/devtools/environments/EnvironmentPreview.js +16 -0
- package/dist/engine/devtools/environments/EnvironmentPreview.js.map +1 -0
- package/dist/engine/devtools/environments/EnvironmentRegistry.d.ts +63 -0
- package/dist/engine/devtools/environments/EnvironmentRegistry.d.ts.map +1 -0
- package/dist/engine/devtools/environments/EnvironmentRegistry.js +155 -0
- package/dist/engine/devtools/environments/EnvironmentRegistry.js.map +1 -0
- package/dist/engine/devtools/environments/HDRIEnvironment.d.ts +38 -0
- package/dist/engine/devtools/environments/HDRIEnvironment.d.ts.map +1 -0
- package/dist/engine/devtools/environments/HDRIEnvironment.js +34 -0
- package/dist/engine/devtools/environments/HDRIEnvironment.js.map +1 -0
- package/dist/engine/devtools/environments/PMREMPreset.d.ts +14 -0
- package/dist/engine/devtools/environments/PMREMPreset.d.ts.map +1 -0
- package/dist/engine/devtools/environments/PMREMPreset.js +16 -0
- package/dist/engine/devtools/environments/PMREMPreset.js.map +1 -0
- package/dist/engine/devtools/environments/index.d.ts +6 -0
- package/dist/engine/devtools/environments/index.d.ts.map +1 -0
- package/dist/engine/devtools/environments/index.js +3 -0
- package/dist/engine/devtools/environments/index.js.map +1 -0
- package/dist/engine/devtools/environments/node.d.ts +7 -0
- package/dist/engine/devtools/environments/node.d.ts.map +1 -0
- package/dist/engine/devtools/environments/node.js +5 -0
- package/dist/engine/devtools/environments/node.js.map +1 -0
- package/dist/engine/devtools/environments/production-runtime/ProductionEnvironmentCorpus.d.ts +78 -0
- package/dist/engine/devtools/environments/production-runtime/ProductionEnvironmentCorpus.d.ts.map +1 -0
- package/dist/engine/devtools/environments/production-runtime/ProductionEnvironmentCorpus.js +67 -0
- package/dist/engine/devtools/environments/production-runtime/ProductionEnvironmentCorpus.js.map +1 -0
- package/dist/engine/devtools/environments/production-runtime/index.d.ts +3 -0
- package/dist/engine/devtools/environments/production-runtime/index.d.ts.map +1 -0
- package/dist/engine/devtools/environments/production-runtime/index.js +2 -0
- package/dist/engine/devtools/environments/production-runtime/index.js.map +1 -0
- package/dist/engine/devtools/materialDiagnostics.d.ts +2 -0
- package/dist/engine/devtools/materialDiagnostics.d.ts.map +1 -0
- package/dist/engine/devtools/materialDiagnostics.js +5 -0
- package/dist/engine/devtools/materialDiagnostics.js.map +1 -0
- package/dist/engine/devtools/materials/GameReadyMaterialLibrary.d.ts.map +1 -0
- package/dist/engine/devtools/materials/GameReadyMaterialLibrary.js +253 -0
- package/dist/engine/devtools/materials/GameReadyMaterialLibrary.js.map +1 -0
- package/dist/engine/devtools/materials/MaterialPreset.d.ts.map +1 -0
- package/dist/engine/devtools/materials/MaterialPreset.js.map +1 -0
- package/dist/engine/devtools/materials/MaterialPresets.d.ts.map +1 -0
- package/dist/engine/devtools/materials/MaterialPresets.js.map +1 -0
- package/dist/engine/devtools/materials/MaterialPreviewScene.d.ts.map +1 -0
- package/dist/engine/devtools/materials/MaterialPreviewScene.js.map +1 -0
- package/dist/engine/devtools/materials/MaterialValidation.d.ts.map +1 -0
- package/dist/engine/devtools/materials/MaterialValidation.js.map +1 -0
- package/dist/engine/devtools/materials/NodeMaterial.d.ts +3 -0
- package/dist/engine/devtools/materials/NodeMaterial.d.ts.map +1 -0
- package/dist/engine/devtools/materials/NodeMaterial.js +3 -0
- package/dist/engine/devtools/materials/NodeMaterial.js.map +1 -0
- package/dist/engine/devtools/materials/PBRMaterialLibrary.d.ts.map +1 -0
- package/dist/engine/devtools/materials/PBRMaterialLibrary.js.map +1 -0
- package/dist/engine/devtools/materials/TextureSet.d.ts.map +1 -0
- package/dist/engine/devtools/materials/TextureSet.js +38 -0
- package/dist/engine/devtools/materials/TextureSet.js.map +1 -0
- package/dist/engine/devtools/materials/browser-index.d.ts.map +1 -0
- package/dist/engine/devtools/materials/browser-index.js.map +1 -0
- package/dist/engine/devtools/materials/index.d.ts.map +1 -0
- package/dist/engine/devtools/materials/index.js.map +1 -0
- package/dist/engine/devtools/materials/node.d.ts.map +1 -0
- package/dist/engine/devtools/materials/node.js.map +1 -0
- package/dist/engine/game/GameAudio.d.ts +53 -0
- package/dist/engine/game/GameAudio.d.ts.map +1 -1
- package/dist/engine/game/GameAudio.js +232 -71
- package/dist/engine/game/GameAudio.js.map +1 -1
- package/dist/engine/game/index.d.ts +1 -1
- package/dist/engine/game/index.d.ts.map +1 -1
- package/dist/engine/index.d.ts +3 -76
- package/dist/engine/index.d.ts.map +1 -1
- package/dist/engine/index.js +10 -123
- package/dist/engine/index.js.map +1 -1
- package/dist/engine/lanes/index.d.ts +17 -0
- package/dist/engine/lanes/index.d.ts.map +1 -0
- package/dist/engine/lanes/index.js +17 -0
- package/dist/engine/lanes/index.js.map +1 -0
- package/dist/engine/lanes/prd01/diagnostics.d.ts +31 -0
- package/dist/engine/lanes/prd01/diagnostics.d.ts.map +1 -0
- package/dist/engine/lanes/prd01/diagnostics.js +146 -0
- package/dist/engine/lanes/prd01/diagnostics.js.map +1 -0
- package/dist/engine/lanes/prd01/outputSurface.d.ts +35 -0
- package/dist/engine/lanes/prd01/outputSurface.d.ts.map +1 -0
- package/dist/engine/lanes/prd01/outputSurface.js +273 -0
- package/dist/engine/lanes/prd01/outputSurface.js.map +1 -0
- package/dist/engine/lanes/prd01.d.ts +10 -0
- package/dist/engine/lanes/prd01.d.ts.map +1 -0
- package/dist/engine/lanes/prd01.js +49 -0
- package/dist/engine/lanes/prd01.js.map +1 -0
- package/dist/engine/lanes/prd02.d.ts +55 -0
- package/dist/engine/lanes/prd02.d.ts.map +1 -0
- package/dist/engine/lanes/prd02.js +257 -0
- package/dist/engine/lanes/prd02.js.map +1 -0
- package/dist/engine/lanes/prd03.d.ts +13 -0
- package/dist/engine/lanes/prd03.d.ts.map +1 -0
- package/dist/engine/lanes/prd03.js +32 -0
- package/dist/engine/lanes/prd03.js.map +1 -0
- package/dist/engine/lanes/prd04.d.ts +8 -0
- package/dist/engine/lanes/prd04.d.ts.map +1 -0
- package/dist/engine/lanes/prd04.js +29 -0
- package/dist/engine/lanes/prd04.js.map +1 -0
- package/dist/engine/lanes/prd05.d.ts +47 -0
- package/dist/engine/lanes/prd05.d.ts.map +1 -0
- package/dist/engine/lanes/prd05.js +55 -0
- package/dist/engine/lanes/prd05.js.map +1 -0
- package/dist/engine/lanes/prd06.d.ts +36 -0
- package/dist/engine/lanes/prd06.d.ts.map +1 -0
- package/dist/engine/lanes/prd06.js +222 -0
- package/dist/engine/lanes/prd06.js.map +1 -0
- package/dist/engine/lanes/prd07.d.ts +4 -0
- package/dist/engine/lanes/prd07.d.ts.map +1 -0
- package/dist/engine/lanes/prd07.js +104 -0
- package/dist/engine/lanes/prd07.js.map +1 -0
- package/dist/engine/lanes/prd08.d.ts +54 -0
- package/dist/engine/lanes/prd08.d.ts.map +1 -0
- package/dist/engine/lanes/prd08.js +110 -0
- package/dist/engine/lanes/prd08.js.map +1 -0
- package/dist/engine/lanes/prd09.d.ts +2 -0
- package/dist/engine/lanes/prd09.d.ts.map +1 -0
- package/dist/engine/lanes/prd09.js +16 -0
- package/dist/engine/lanes/prd09.js.map +1 -0
- package/dist/engine/lanes/prd10.d.ts +2 -0
- package/dist/engine/lanes/prd10.d.ts.map +1 -0
- package/dist/engine/lanes/prd10.js +50 -0
- package/dist/engine/lanes/prd10.js.map +1 -0
- package/dist/engine/lanes/prd11.d.ts +67 -0
- package/dist/engine/lanes/prd11.d.ts.map +1 -0
- package/dist/engine/lanes/prd11.js +175 -0
- package/dist/engine/lanes/prd11.js.map +1 -0
- package/dist/engine/lanes/prd12.d.ts +14 -0
- package/dist/engine/lanes/prd12.d.ts.map +1 -0
- package/dist/engine/lanes/prd12.js +158 -0
- package/dist/engine/lanes/prd12.js.map +1 -0
- package/dist/engine/lanes/prd13.d.ts +35 -0
- package/dist/engine/lanes/prd13.d.ts.map +1 -0
- package/dist/engine/lanes/prd13.js +55 -0
- package/dist/engine/lanes/prd13.js.map +1 -0
- package/dist/engine/lanes/prd14.d.ts +6 -0
- package/dist/engine/lanes/prd14.d.ts.map +1 -0
- package/dist/engine/lanes/prd14.js +6 -0
- package/dist/engine/lanes/prd14.js.map +1 -0
- package/dist/engine/lanes/prd15.d.ts +2 -0
- package/dist/engine/lanes/prd15.d.ts.map +1 -0
- package/dist/engine/lanes/prd15.js +13 -0
- package/dist/engine/lanes/prd15.js.map +1 -0
- package/dist/engine/production-runtime/GameRenderPreset.d.ts +16 -1
- package/dist/engine/production-runtime/GameRenderPreset.d.ts.map +1 -1
- package/dist/engine/production-runtime/GameRenderPreset.js +93 -4
- package/dist/engine/production-runtime/GameRenderPreset.js.map +1 -1
- package/dist/engine/production-runtime/LodSelector.d.ts +52 -0
- package/dist/engine/production-runtime/LodSelector.d.ts.map +1 -0
- package/dist/engine/production-runtime/LodSelector.js +109 -0
- package/dist/engine/production-runtime/LodSelector.js.map +1 -0
- package/dist/engine/production-runtime/ModelMaterialOverrides.d.ts +39 -0
- package/dist/engine/production-runtime/ModelMaterialOverrides.d.ts.map +1 -0
- package/dist/engine/production-runtime/ModelMaterialOverrides.js +209 -0
- package/dist/engine/production-runtime/ModelMaterialOverrides.js.map +1 -0
- package/dist/engine/production-runtime/RootGpuParticleWorkload.d.ts +34 -0
- package/dist/engine/production-runtime/RootGpuParticleWorkload.d.ts.map +1 -0
- package/dist/engine/production-runtime/RootGpuParticleWorkload.js +117 -0
- package/dist/engine/production-runtime/RootGpuParticleWorkload.js.map +1 -0
- package/dist/engine/production-runtime/RootRenderSourceBridge.d.ts +2 -0
- package/dist/engine/production-runtime/RootRenderSourceBridge.d.ts.map +1 -0
- package/dist/engine/production-runtime/RootRenderSourceBridge.js +2 -0
- package/dist/engine/production-runtime/RootRenderSourceBridge.js.map +1 -0
- package/dist/engine/production-runtime/TypedGLBActor.d.ts +71 -11
- package/dist/engine/production-runtime/TypedGLBActor.d.ts.map +1 -1
- package/dist/engine/production-runtime/TypedGLBActor.js +166 -149
- package/dist/engine/production-runtime/TypedGLBActor.js.map +1 -1
- package/dist/engine/production-runtime/actor/TypedGLBActorAnimation.d.ts +176 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorAnimation.d.ts.map +1 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorAnimation.js +522 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorAnimation.js.map +1 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorLod.d.ts +18 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorLod.d.ts.map +1 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorLod.js +269 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorLod.js.map +1 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorMaterials.d.ts +18 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorMaterials.d.ts.map +1 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorMaterials.js +96 -0
- package/dist/engine/production-runtime/actor/TypedGLBActorMaterials.js.map +1 -0
- package/dist/engine/production-runtime/actor/extensions.d.ts +24 -0
- package/dist/engine/production-runtime/actor/extensions.d.ts.map +1 -0
- package/dist/engine/production-runtime/actor/extensions.js +35 -0
- package/dist/engine/production-runtime/actor/extensions.js.map +1 -0
- package/dist/engine/production-runtime/actor/materialDiagnostics.d.ts +5 -0
- package/dist/engine/production-runtime/actor/materialDiagnostics.d.ts.map +1 -0
- package/dist/engine/production-runtime/actor/materialDiagnostics.js +90 -0
- package/dist/engine/production-runtime/actor/materialDiagnostics.js.map +1 -0
- package/dist/engine/production-runtime/effects/CpuEmitter.d.ts +67 -0
- package/dist/engine/production-runtime/effects/CpuEmitter.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/CpuEmitter.js +153 -0
- package/dist/engine/production-runtime/effects/CpuEmitter.js.map +1 -0
- package/dist/engine/production-runtime/effects/EffectDiagnostics.d.ts +70 -0
- package/dist/engine/production-runtime/effects/EffectDiagnostics.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/EffectDiagnostics.js +128 -0
- package/dist/engine/production-runtime/effects/EffectDiagnostics.js.map +1 -0
- package/dist/engine/production-runtime/effects/EffectNodeLowering.d.ts +140 -0
- package/dist/engine/production-runtime/effects/EffectNodeLowering.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/EffectNodeLowering.js +285 -0
- package/dist/engine/production-runtime/effects/EffectNodeLowering.js.map +1 -0
- package/dist/engine/production-runtime/effects/FlipbookAtlas.d.ts +10 -0
- package/dist/engine/production-runtime/effects/FlipbookAtlas.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/FlipbookAtlas.js +82 -0
- package/dist/engine/production-runtime/effects/FlipbookAtlas.js.map +1 -0
- package/dist/engine/production-runtime/effects/LiveAtmosphere.d.ts +106 -0
- package/dist/engine/production-runtime/effects/LiveAtmosphere.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/LiveAtmosphere.js +258 -0
- package/dist/engine/production-runtime/effects/LiveAtmosphere.js.map +1 -0
- package/dist/engine/production-runtime/effects/ProductionEffectSystem.d.ts +188 -0
- package/dist/engine/production-runtime/effects/ProductionEffectSystem.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/ProductionEffectSystem.js +827 -0
- package/dist/engine/production-runtime/effects/ProductionEffectSystem.js.map +1 -0
- package/dist/engine/production-runtime/effects/TransientLightPool.d.ts +25 -0
- package/dist/engine/production-runtime/effects/TransientLightPool.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/TransientLightPool.js +71 -0
- package/dist/engine/production-runtime/effects/TransientLightPool.js.map +1 -0
- package/dist/engine/production-runtime/effects/WeatherVolume.d.ts +50 -0
- package/dist/engine/production-runtime/effects/WeatherVolume.d.ts.map +1 -0
- package/dist/engine/production-runtime/effects/WeatherVolume.js +126 -0
- package/dist/engine/production-runtime/effects/WeatherVolume.js.map +1 -0
- package/dist/engine/production-runtime/index.d.ts +20 -27
- package/dist/engine/production-runtime/index.d.ts.map +1 -1
- package/dist/engine/production-runtime/index.js +65 -152
- package/dist/engine/production-runtime/index.js.map +1 -1
- package/dist/engine/production-runtime/world/BiomeResolver.d.ts +49 -0
- package/dist/engine/production-runtime/world/BiomeResolver.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/BiomeResolver.js +152 -0
- package/dist/engine/production-runtime/world/BiomeResolver.js.map +1 -0
- package/dist/engine/production-runtime/world/GrassRuntime.d.ts +22 -0
- package/dist/engine/production-runtime/world/GrassRuntime.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/GrassRuntime.js +282 -0
- package/dist/engine/production-runtime/world/GrassRuntime.js.map +1 -0
- package/dist/engine/production-runtime/world/TerrainRuntime.d.ts +109 -0
- package/dist/engine/production-runtime/world/TerrainRuntime.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/TerrainRuntime.js +446 -0
- package/dist/engine/production-runtime/world/TerrainRuntime.js.map +1 -0
- package/dist/engine/production-runtime/world/TimeOfDayRuntime.d.ts +80 -0
- package/dist/engine/production-runtime/world/TimeOfDayRuntime.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/TimeOfDayRuntime.js +144 -0
- package/dist/engine/production-runtime/world/TimeOfDayRuntime.js.map +1 -0
- package/dist/engine/production-runtime/world/WaterRuntime.d.ts +46 -0
- package/dist/engine/production-runtime/world/WaterRuntime.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/WaterRuntime.js +382 -0
- package/dist/engine/production-runtime/world/WaterRuntime.js.map +1 -0
- package/dist/engine/production-runtime/world/WorldDiagnostics.d.ts +5 -0
- package/dist/engine/production-runtime/world/WorldDiagnostics.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/WorldDiagnostics.js +50 -0
- package/dist/engine/production-runtime/world/WorldDiagnostics.js.map +1 -0
- package/dist/engine/production-runtime/world/WorldFeatureState.d.ts +28 -0
- package/dist/engine/production-runtime/world/WorldFeatureState.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/WorldFeatureState.js +57 -0
- package/dist/engine/production-runtime/world/WorldFeatureState.js.map +1 -0
- package/dist/engine/production-runtime/world/WorldFramePasses.d.ts +16 -0
- package/dist/engine/production-runtime/world/WorldFramePasses.d.ts.map +1 -0
- package/dist/engine/production-runtime/world/WorldFramePasses.js +99 -0
- package/dist/engine/production-runtime/world/WorldFramePasses.js.map +1 -0
- package/dist/engine/public/devtools.d.ts +15 -0
- package/dist/engine/public/devtools.d.ts.map +1 -0
- package/dist/engine/public/devtools.js +12 -0
- package/dist/engine/public/devtools.js.map +1 -0
- package/dist/engine/public/index.d.ts +146 -0
- package/dist/engine/public/index.d.ts.map +1 -0
- package/dist/engine/public/index.js +125 -0
- package/dist/engine/public/index.js.map +1 -0
- package/dist/engine/public/renderer.d.ts +25 -0
- package/dist/engine/public/renderer.d.ts.map +1 -0
- package/dist/engine/public/renderer.js +20 -0
- package/dist/engine/public/renderer.js.map +1 -0
- package/dist/engine/threejs-example-parity/FlagshipFoundation.d.ts +8 -8
- package/dist/engine/threejs-example-parity/FlagshipFoundation.js +7 -7
- package/dist/engine/threejs-example-parity/index.d.ts +234 -7
- package/dist/engine/threejs-example-parity/index.d.ts.map +1 -1
- package/dist/engine/threejs-example-parity/index.js +532 -16
- package/dist/engine/threejs-example-parity/index.js.map +1 -1
- package/dist/game/art/acceptance/canvasBlankCheck.d.ts +30 -0
- package/dist/game/art/acceptance/canvasBlankCheck.d.ts.map +1 -0
- package/dist/game/art/acceptance/canvasBlankCheck.js +55 -0
- package/dist/game/art/acceptance/canvasBlankCheck.js.map +1 -0
- package/dist/game/art/acceptance/requiredConditions.d.ts +17 -0
- package/dist/game/art/acceptance/requiredConditions.d.ts.map +1 -0
- package/dist/game/art/acceptance/requiredConditions.js +262 -0
- package/dist/game/art/acceptance/requiredConditions.js.map +1 -0
- package/dist/game/art/audit.d.ts +26 -0
- package/dist/game/art/audit.d.ts.map +1 -0
- package/dist/game/art/audit.js +75 -0
- package/dist/game/art/audit.js.map +1 -0
- package/dist/game/art/define.d.ts +117 -0
- package/dist/game/art/define.d.ts.map +1 -0
- package/dist/game/art/define.js +299 -0
- package/dist/game/art/define.js.map +1 -0
- package/dist/game/art/index.d.ts +19 -0
- package/dist/game/art/index.d.ts.map +1 -0
- package/dist/game/art/index.js +14 -0
- package/dist/game/art/index.js.map +1 -0
- package/dist/game/art/snapshot.d.ts +63 -0
- package/dist/game/art/snapshot.d.ts.map +1 -0
- package/dist/game/art/snapshot.js +115 -0
- package/dist/game/art/snapshot.js.map +1 -0
- package/dist/game/capture/captureFromUrl.d.ts +13 -0
- package/dist/game/capture/captureFromUrl.d.ts.map +1 -0
- package/dist/game/capture/captureFromUrl.js +30 -0
- package/dist/game/capture/captureFromUrl.js.map +1 -0
- package/dist/game/capture/index.d.ts +7 -0
- package/dist/game/capture/index.d.ts.map +1 -0
- package/dist/game/capture/index.js +6 -0
- package/dist/game/capture/index.js.map +1 -0
- package/dist/game/capture/lookSignature.d.ts +37 -0
- package/dist/game/capture/lookSignature.d.ts.map +1 -0
- package/dist/game/capture/lookSignature.js +100 -0
- package/dist/game/capture/lookSignature.js.map +1 -0
- package/dist/game/components.d.ts +73 -0
- package/dist/game/components.d.ts.map +1 -0
- package/dist/game/components.js +86 -0
- package/dist/game/components.js.map +1 -0
- package/dist/game/createGame.d.ts +50 -0
- package/dist/game/createGame.d.ts.map +1 -0
- package/dist/game/createGame.js +384 -0
- package/dist/game/createGame.js.map +1 -0
- package/dist/game/evidence/beacon.d.ts +25 -0
- package/dist/game/evidence/beacon.d.ts.map +1 -0
- package/dist/game/evidence/beacon.js +58 -0
- package/dist/game/evidence/beacon.js.map +1 -0
- package/dist/game/evidence/channel.d.ts +48 -0
- package/dist/game/evidence/channel.d.ts.map +1 -0
- package/dist/game/evidence/channel.js +142 -0
- package/dist/game/evidence/channel.js.map +1 -0
- package/dist/game/fonts/register.d.ts +18 -0
- package/dist/game/fonts/register.d.ts.map +1 -0
- package/dist/game/fonts/register.js +28 -0
- package/dist/game/fonts/register.js.map +1 -0
- package/dist/game/hud/HudKit.d.ts +90 -0
- package/dist/game/hud/HudKit.d.ts.map +1 -0
- package/dist/game/hud/HudKit.js +305 -0
- package/dist/game/hud/HudKit.js.map +1 -0
- package/dist/game/hud/dom.d.ts +51 -0
- package/dist/game/hud/dom.d.ts.map +1 -0
- package/dist/game/hud/dom.js +7 -0
- package/dist/game/hud/dom.js.map +1 -0
- package/dist/game/hud/screenFraction.d.ts +10 -0
- package/dist/game/hud/screenFraction.d.ts.map +1 -0
- package/dist/game/hud/screenFraction.js +30 -0
- package/dist/game/hud/screenFraction.js.map +1 -0
- package/dist/game/hud/themes.d.ts +16 -0
- package/dist/game/hud/themes.d.ts.map +1 -0
- package/dist/game/hud/themes.js +109 -0
- package/dist/game/hud/themes.js.map +1 -0
- package/dist/game/hud/widgets/index.d.ts +56 -0
- package/dist/game/hud/widgets/index.d.ts.map +1 -0
- package/dist/game/hud/widgets/index.js +272 -0
- package/dist/game/hud/widgets/index.js.map +1 -0
- package/dist/game/index.d.ts +67 -0
- package/dist/game/index.d.ts.map +1 -0
- package/dist/game/index.js +73 -0
- package/dist/game/index.js.map +1 -0
- package/dist/game/juice/Juice.d.ts +175 -0
- package/dist/game/juice/Juice.d.ts.map +1 -0
- package/dist/game/juice/Juice.js +133 -0
- package/dist/game/juice/Juice.js.map +1 -0
- package/dist/game/juice/fx.d.ts +62 -0
- package/dist/game/juice/fx.d.ts.map +1 -0
- package/dist/game/juice/fx.js +206 -0
- package/dist/game/juice/fx.js.map +1 -0
- package/dist/game/juice/fxParticlePass.d.ts +41 -0
- package/dist/game/juice/fxParticlePass.d.ts.map +1 -0
- package/dist/game/juice/fxParticlePass.js +16 -0
- package/dist/game/juice/fxParticlePass.js.map +1 -0
- package/dist/game/juice/fxPoolLayer.d.ts +60 -0
- package/dist/game/juice/fxPoolLayer.d.ts.map +1 -0
- package/dist/game/juice/fxPoolLayer.js +122 -0
- package/dist/game/juice/fxPoolLayer.js.map +1 -0
- package/dist/game/juice/overlay.d.ts +34 -0
- package/dist/game/juice/overlay.d.ts.map +1 -0
- package/dist/game/juice/overlay.js +138 -0
- package/dist/game/juice/overlay.js.map +1 -0
- package/dist/game/juice/rumble.d.ts +26 -0
- package/dist/game/juice/rumble.d.ts.map +1 -0
- package/dist/game/juice/rumble.js +34 -0
- package/dist/game/juice/rumble.js.map +1 -0
- package/dist/game/juice/tween.d.ts +37 -0
- package/dist/game/juice/tween.d.ts.map +1 -0
- package/dist/game/juice/tween.js +191 -0
- package/dist/game/juice/tween.js.map +1 -0
- package/dist/game/session/GameSession.d.ts +79 -0
- package/dist/game/session/GameSession.d.ts.map +1 -0
- package/dist/game/session/GameSession.js +177 -0
- package/dist/game/session/GameSession.js.map +1 -0
- package/dist/game/session/accessibility.d.ts +45 -0
- package/dist/game/session/accessibility.d.ts.map +1 -0
- package/dist/game/session/accessibility.js +90 -0
- package/dist/game/session/accessibility.js.map +1 -0
- package/dist/game/session/lifecycle.d.ts +31 -0
- package/dist/game/session/lifecycle.d.ts.map +1 -0
- package/dist/game/session/lifecycle.js +108 -0
- package/dist/game/session/lifecycle.js.map +1 -0
- package/dist/game/session/presented.d.ts +28 -0
- package/dist/game/session/presented.d.ts.map +1 -0
- package/dist/game/session/presented.js +35 -0
- package/dist/game/session/presented.js.map +1 -0
- package/dist/game/sfx.d.ts +247 -0
- package/dist/game/sfx.d.ts.map +1 -0
- package/dist/game/sfx.js +522 -0
- package/dist/game/sfx.js.map +1 -0
- package/dist/game/shell/GameShell.d.ts +92 -0
- package/dist/game/shell/GameShell.d.ts.map +1 -0
- package/dist/game/shell/GameShell.js +236 -0
- package/dist/game/shell/GameShell.js.map +1 -0
- package/dist/game/shell/contextLoss.d.ts +32 -0
- package/dist/game/shell/contextLoss.d.ts.map +1 -0
- package/dist/game/shell/contextLoss.js +32 -0
- package/dist/game/shell/contextLoss.js.map +1 -0
- package/dist/game/shell/screens/About.d.ts +8 -0
- package/dist/game/shell/screens/About.d.ts.map +1 -0
- package/dist/game/shell/screens/About.js +25 -0
- package/dist/game/shell/screens/About.js.map +1 -0
- package/dist/game/shell/screens/ContextLost.d.ts +18 -0
- package/dist/game/shell/screens/ContextLost.d.ts.map +1 -0
- package/dist/game/shell/screens/ContextLost.js +58 -0
- package/dist/game/shell/screens/ContextLost.js.map +1 -0
- package/dist/game/shell/screens/Loading.d.ts +18 -0
- package/dist/game/shell/screens/Loading.d.ts.map +1 -0
- package/dist/game/shell/screens/Loading.js +34 -0
- package/dist/game/shell/screens/Loading.js.map +1 -0
- package/dist/game/shell/screens/Pause.d.ts +11 -0
- package/dist/game/shell/screens/Pause.d.ts.map +1 -0
- package/dist/game/shell/screens/Pause.js +20 -0
- package/dist/game/shell/screens/Pause.js.map +1 -0
- package/dist/game/shell/screens/Results.d.ts +32 -0
- package/dist/game/shell/screens/Results.d.ts.map +1 -0
- package/dist/game/shell/screens/Results.js +76 -0
- package/dist/game/shell/screens/Results.js.map +1 -0
- package/dist/game/shell/screens/Settings.d.ts +46 -0
- package/dist/game/shell/screens/Settings.d.ts.map +1 -0
- package/dist/game/shell/screens/Settings.js +130 -0
- package/dist/game/shell/screens/Settings.js.map +1 -0
- package/dist/game/shell/screens/Title.d.ts +21 -0
- package/dist/game/shell/screens/Title.d.ts.map +1 -0
- package/dist/game/shell/screens/Title.js +45 -0
- package/dist/game/shell/screens/Title.js.map +1 -0
- package/dist/game/shell/screens/menu.d.ts +50 -0
- package/dist/game/shell/screens/menu.d.ts.map +1 -0
- package/dist/game/shell/screens/menu.js +144 -0
- package/dist/game/shell/screens/menu.js.map +1 -0
- package/dist/game/shell/transition.d.ts +27 -0
- package/dist/game/shell/transition.d.ts.map +1 -0
- package/dist/game/shell/transition.js +50 -0
- package/dist/game/shell/transition.js.map +1 -0
- package/dist/game/styles/hud-base.css +52 -0
- package/dist/game/styles/themes/arcade-neon.css +14 -0
- package/dist/game/styles/themes/fighting.css +14 -0
- package/dist/game/styles/themes/motorsport.css +14 -0
- package/dist/game/styles/themes/plain.css +14 -0
- package/dist/game/styles/themes/sci-fi-telemetry.css +14 -0
- package/dist/game/styles/themes/sports-broadcast.css +14 -0
- package/dist/game/styles/themes/tabletop.css +14 -0
- package/dist/game/styles.css +45 -0
- package/dist/game/testHook.d.ts +45 -0
- package/dist/game/testHook.d.ts.map +1 -0
- package/dist/game/testHook.js +52 -0
- package/dist/game/testHook.js.map +1 -0
- package/dist/game/touch/TouchControls.d.ts +74 -0
- package/dist/game/touch/TouchControls.d.ts.map +1 -0
- package/dist/game/touch/TouchControls.js +210 -0
- package/dist/game/touch/TouchControls.js.map +1 -0
- package/dist/game/util/ease.d.ts +9 -0
- package/dist/game/util/ease.d.ts.map +1 -0
- package/dist/game/util/ease.js +40 -0
- package/dist/game/util/ease.js.map +1 -0
- package/dist/game/util/index.d.ts +9 -0
- package/dist/game/util/index.d.ts.map +1 -0
- package/dist/game/util/index.js +19 -0
- package/dist/game/util/index.js.map +1 -0
- package/dist/input/Haptics.d.ts +1 -1
- package/dist/input/Haptics.js +1 -1
- package/dist/input/InputSystem.d.ts.map +1 -1
- package/dist/input/InputSystem.js +1 -0
- package/dist/input/InputSystem.js.map +1 -1
- package/dist/input/PointerDevice.d.ts +1 -0
- package/dist/input/PointerDevice.d.ts.map +1 -1
- package/dist/input/PointerDevice.js +1 -1
- package/dist/input/PointerDevice.js.map +1 -1
- package/dist/input/TouchLayouts.d.ts +14 -1
- package/dist/input/TouchLayouts.d.ts.map +1 -1
- package/dist/input/TouchLayouts.js +150 -4
- package/dist/input/TouchLayouts.js.map +1 -1
- package/dist/input/controls/CameraRig.d.ts +2 -11
- package/dist/input/controls/CameraRig.d.ts.map +1 -1
- package/dist/input/controls/CameraRig.js +2 -31
- package/dist/input/controls/CameraRig.js.map +1 -1
- package/dist/input/controls/ControlTypes.d.ts +2 -16
- package/dist/input/controls/ControlTypes.d.ts.map +1 -1
- package/dist/input/controls/ControlTypes.js +2 -3
- package/dist/input/controls/ControlTypes.js.map +1 -1
- package/dist/input/controls/EditorFlyControls.d.ts +2 -19
- package/dist/input/controls/EditorFlyControls.d.ts.map +1 -1
- package/dist/input/controls/EditorFlyControls.js +2 -43
- package/dist/input/controls/EditorFlyControls.js.map +1 -1
- package/dist/input/controls/FirstPersonControls.d.ts +2 -21
- package/dist/input/controls/FirstPersonControls.d.ts.map +1 -1
- package/dist/input/controls/FirstPersonControls.js +2 -43
- package/dist/input/controls/FirstPersonControls.js.map +1 -1
- package/dist/input/controls/OrbitControls.d.ts +2 -48
- package/dist/input/controls/OrbitControls.d.ts.map +1 -1
- package/dist/input/controls/OrbitControls.js +2 -130
- package/dist/input/controls/OrbitControls.js.map +1 -1
- package/dist/input/controls/PointerLockControls.d.ts +1 -10
- package/dist/input/controls/PointerLockControls.d.ts.map +1 -1
- package/dist/input/controls/PointerLockControls.js +2 -30
- package/dist/input/controls/PointerLockControls.js.map +1 -1
- package/dist/input/controls/SceneCameraAdapter.d.ts +2 -9
- package/dist/input/controls/SceneCameraAdapter.d.ts.map +1 -1
- package/dist/input/controls/SceneCameraAdapter.js +2 -89
- package/dist/input/controls/SceneCameraAdapter.js.map +1 -1
- package/dist/input/controls/ThirdPersonFollowControls.d.ts +2 -19
- package/dist/input/controls/ThirdPersonFollowControls.d.ts.map +1 -1
- package/dist/input/controls/ThirdPersonFollowControls.js +2 -32
- package/dist/input/controls/ThirdPersonFollowControls.js.map +1 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.d.ts.map +1 -1
- package/dist/math/Easing.d.ts +44 -0
- package/dist/math/Easing.d.ts.map +1 -1
- package/dist/math/Easing.js +92 -0
- package/dist/math/Easing.js.map +1 -1
- package/dist/math/Random.d.ts +13 -0
- package/dist/math/Random.d.ts.map +1 -1
- package/dist/math/Random.js +38 -0
- package/dist/math/Random.js.map +1 -1
- package/dist/navigation-recast/index.d.ts +116 -0
- package/dist/navigation-recast/index.d.ts.map +1 -0
- package/dist/navigation-recast/index.js +247 -0
- package/dist/navigation-recast/index.js.map +1 -0
- package/dist/physics/PhysicalCharacterController.d.ts +93 -0
- package/dist/physics/PhysicalCharacterController.d.ts.map +1 -0
- package/dist/physics/PhysicalCharacterController.js +2 -0
- package/dist/physics/PhysicalCharacterController.js.map +1 -0
- package/dist/physics/PhysicalVehicleController.d.ts +140 -0
- package/dist/physics/PhysicalVehicleController.d.ts.map +1 -0
- package/dist/physics/PhysicalVehicleController.js +2 -0
- package/dist/physics/PhysicalVehicleController.js.map +1 -0
- package/dist/physics/PhysicsWorld.d.ts +20 -0
- package/dist/physics/PhysicsWorld.d.ts.map +1 -1
- package/dist/physics/PhysicsWorld.js +217 -3
- package/dist/physics/PhysicsWorld.js.map +1 -1
- package/dist/physics/RigidBody.d.ts +19 -0
- package/dist/physics/RigidBody.d.ts.map +1 -1
- package/dist/physics/RigidBody.js +46 -1
- package/dist/physics/RigidBody.js.map +1 -1
- package/dist/physics/Shape.d.ts +6 -6
- package/dist/physics/Shape.d.ts.map +1 -1
- package/dist/physics/Shape.js +18 -12
- package/dist/physics/Shape.js.map +1 -1
- package/dist/physics/index.d.ts +2 -0
- package/dist/physics/index.d.ts.map +1 -1
- package/dist/physics/index.js +2 -0
- package/dist/physics/index.js.map +1 -1
- package/dist/physics-rapier/HeightfieldLayout.d.ts +12 -0
- package/dist/physics-rapier/HeightfieldLayout.d.ts.map +1 -0
- package/dist/physics-rapier/HeightfieldLayout.js +19 -0
- package/dist/physics-rapier/HeightfieldLayout.js.map +1 -0
- package/dist/physics-rapier/index.d.ts +164 -1
- package/dist/physics-rapier/index.d.ts.map +1 -1
- package/dist/physics-rapier/index.js +404 -9
- package/dist/physics-rapier/index.js.map +1 -1
- package/dist/product-studio/ProductAssetLoader.js +1 -1
- package/dist/product-studio/ProductAssetLoader.js.map +1 -1
- package/dist/product-studio/ProductRenderScene.js +1 -1
- package/dist/product-studio/ProductRenderScene.js.map +1 -1
- package/dist/product-studio/ProductTypes.d.ts +1 -1
- package/dist/product-studio/ProductTypes.d.ts.map +1 -1
- package/dist/react/index.d.ts +30 -3
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +11 -1
- package/dist/react/index.js.map +1 -1
- package/dist/rendering/BlendModes.d.ts +34 -0
- package/dist/rendering/BlendModes.d.ts.map +1 -0
- package/dist/rendering/BlendModes.js +42 -0
- package/dist/rendering/BlendModes.js.map +1 -0
- package/dist/rendering/CascadedShadowMaps.d.ts.map +1 -1
- package/dist/rendering/CascadedShadowMaps.js +3 -1
- package/dist/rendering/CascadedShadowMaps.js.map +1 -1
- package/dist/rendering/DepthPass.d.ts +18 -0
- package/dist/rendering/DepthPass.d.ts.map +1 -1
- package/dist/rendering/DepthPass.js +103 -20
- package/dist/rendering/DepthPass.js.map +1 -1
- package/dist/rendering/EnvironmentBackgroundPass.d.ts +7 -0
- package/dist/rendering/EnvironmentBackgroundPass.d.ts.map +1 -1
- package/dist/rendering/EnvironmentBackgroundPass.js +39 -14
- package/dist/rendering/EnvironmentBackgroundPass.js.map +1 -1
- package/dist/rendering/EnvironmentMapResources.d.ts +1 -1
- package/dist/rendering/EnvironmentMapResources.d.ts.map +1 -1
- package/dist/rendering/EnvironmentMapResources.js +19 -8
- package/dist/rendering/EnvironmentMapResources.js.map +1 -1
- package/dist/rendering/EnvironmentPlatform.d.ts +6 -0
- package/dist/rendering/EnvironmentPlatform.d.ts.map +1 -1
- package/dist/rendering/EnvironmentPlatform.js +3 -1
- package/dist/rendering/EnvironmentPlatform.js.map +1 -1
- package/dist/rendering/EnvironmentPreset.d.ts +7 -0
- package/dist/rendering/EnvironmentPreset.d.ts.map +1 -1
- package/dist/rendering/EnvironmentPreset.js +11 -11
- package/dist/rendering/EnvironmentPreset.js.map +1 -1
- package/dist/rendering/EnvironmentPresetPack.d.ts +16 -0
- package/dist/rendering/EnvironmentPresetPack.d.ts.map +1 -1
- package/dist/rendering/EnvironmentPresetPack.js +28 -0
- package/dist/rendering/EnvironmentPresetPack.js.map +1 -1
- package/dist/rendering/ExtensionScalarAtlas.d.ts +18 -0
- package/dist/rendering/ExtensionScalarAtlas.d.ts.map +1 -0
- package/dist/rendering/ExtensionScalarAtlas.js +107 -0
- package/dist/rendering/ExtensionScalarAtlas.js.map +1 -0
- package/dist/rendering/ExternalParityRenderPreset.d.ts +15 -1
- package/dist/rendering/ExternalParityRenderPreset.d.ts.map +1 -1
- package/dist/rendering/ExternalParityRenderPreset.js +52 -7
- package/dist/rendering/ExternalParityRenderPreset.js.map +1 -1
- package/dist/rendering/ForwardPass.d.ts +240 -50
- package/dist/rendering/ForwardPass.d.ts.map +1 -1
- package/dist/rendering/ForwardPass.js +845 -866
- package/dist/rendering/ForwardPass.js.map +1 -1
- package/dist/rendering/Geometry.d.ts +44 -1
- package/dist/rendering/Geometry.d.ts.map +1 -1
- package/dist/rendering/Geometry.js +174 -24
- package/dist/rendering/Geometry.js.map +1 -1
- package/dist/rendering/InstancedPBRMaterial.d.ts +5 -0
- package/dist/rendering/InstancedPBRMaterial.d.ts.map +1 -1
- package/dist/rendering/InstancedPBRMaterial.js +7 -0
- package/dist/rendering/InstancedPBRMaterial.js.map +1 -1
- package/dist/rendering/LeanWebGL2Device.d.ts +265 -0
- package/dist/rendering/LeanWebGL2Device.d.ts.map +1 -0
- package/dist/rendering/LeanWebGL2Device.js +4001 -0
- package/dist/rendering/LeanWebGL2Device.js.map +1 -0
- package/dist/rendering/LightCollector.d.ts +8 -0
- package/dist/rendering/LightCollector.d.ts.map +1 -1
- package/dist/rendering/LightCollector.js +1 -1
- package/dist/rendering/LightCollector.js.map +1 -1
- package/dist/rendering/LightUniforms.d.ts +78 -0
- package/dist/rendering/LightUniforms.d.ts.map +1 -1
- package/dist/rendering/LightUniforms.js +100 -0
- package/dist/rendering/LightUniforms.js.map +1 -1
- package/dist/rendering/Material.d.ts +15 -0
- package/dist/rendering/Material.d.ts.map +1 -1
- package/dist/rendering/Material.js +19 -2
- package/dist/rendering/Material.js.map +1 -1
- package/dist/rendering/MaterialBinding.d.ts +10 -0
- package/dist/rendering/MaterialBinding.d.ts.map +1 -1
- package/dist/rendering/MaterialBinding.js +92 -2
- package/dist/rendering/MaterialBinding.js.map +1 -1
- package/dist/rendering/MaterialPresets.d.ts +60 -0
- package/dist/rendering/MaterialPresets.d.ts.map +1 -1
- package/dist/rendering/MaterialPresets.js +212 -0
- package/dist/rendering/MaterialPresets.js.map +1 -1
- package/dist/rendering/NormalMappedPBRMaterial.d.ts +5 -0
- package/dist/rendering/NormalMappedPBRMaterial.d.ts.map +1 -1
- package/dist/rendering/NormalMappedPBRMaterial.js +7 -0
- package/dist/rendering/NormalMappedPBRMaterial.js.map +1 -1
- package/dist/rendering/OceanSurface.d.ts +8 -0
- package/dist/rendering/OceanSurface.d.ts.map +1 -1
- package/dist/rendering/OceanSurface.js +10 -79
- package/dist/rendering/OceanSurface.js.map +1 -1
- package/dist/rendering/PBRLightingDefaults.d.ts +8 -0
- package/dist/rendering/PBRLightingDefaults.d.ts.map +1 -1
- package/dist/rendering/PBRLightingDefaults.js +8 -0
- package/dist/rendering/PBRLightingDefaults.js.map +1 -1
- package/dist/rendering/PBRMaterial.d.ts +5 -0
- package/dist/rendering/PBRMaterial.d.ts.map +1 -1
- package/dist/rendering/PBRMaterial.js +7 -0
- package/dist/rendering/PBRMaterial.js.map +1 -1
- package/dist/rendering/PlanarReflection.d.ts +2 -2
- package/dist/rendering/PlanarReflection.js +3 -3
- package/dist/rendering/PlanarReflection.js.map +1 -1
- package/dist/rendering/PostProcessPass.d.ts +8 -473
- package/dist/rendering/PostProcessPass.d.ts.map +1 -1
- package/dist/rendering/PostProcessPass.js +6 -1984
- package/dist/rendering/PostProcessPass.js.map +1 -1
- package/dist/rendering/ProceduralMaterialTextures.d.ts +28 -0
- package/dist/rendering/ProceduralMaterialTextures.d.ts.map +1 -0
- package/dist/rendering/ProceduralMaterialTextures.js +217 -0
- package/dist/rendering/ProceduralMaterialTextures.js.map +1 -0
- package/dist/rendering/ProjectionMath.d.ts +3 -0
- package/dist/rendering/ProjectionMath.d.ts.map +1 -0
- package/dist/rendering/ProjectionMath.js +26 -0
- package/dist/rendering/ProjectionMath.js.map +1 -0
- package/dist/rendering/ReflectionProbe.d.ts.map +1 -1
- package/dist/rendering/ReflectionProbe.js +4 -1
- package/dist/rendering/ReflectionProbe.js.map +1 -1
- package/dist/rendering/ReflectionSurfaces.d.ts +4 -1
- package/dist/rendering/ReflectionSurfaces.d.ts.map +1 -1
- package/dist/rendering/ReflectionSurfaces.js +10 -1
- package/dist/rendering/ReflectionSurfaces.js.map +1 -1
- package/dist/rendering/RenderBackend.d.ts +2 -0
- package/dist/rendering/RenderBackend.d.ts.map +1 -1
- package/dist/rendering/RenderBackend.js +3 -0
- package/dist/rendering/RenderBackend.js.map +1 -1
- package/dist/rendering/RenderDevice.d.ts +97 -5
- package/dist/rendering/RenderDevice.d.ts.map +1 -1
- package/dist/rendering/RenderDevice.js +166 -9
- package/dist/rendering/RenderDevice.js.map +1 -1
- package/dist/rendering/RenderGraph.d.ts.map +1 -1
- package/dist/rendering/RenderGraph.js +17 -0
- package/dist/rendering/RenderGraph.js.map +1 -1
- package/dist/rendering/RenderPass.d.ts +7 -0
- package/dist/rendering/RenderPass.d.ts.map +1 -1
- package/dist/rendering/RenderPass.js.map +1 -1
- package/dist/rendering/RenderPipeline.d.ts +5 -0
- package/dist/rendering/RenderPipeline.d.ts.map +1 -1
- package/dist/rendering/RenderPipeline.js +6 -0
- package/dist/rendering/RenderPipeline.js.map +1 -1
- package/dist/rendering/Renderer.d.ts +270 -66
- package/dist/rendering/Renderer.d.ts.map +1 -1
- package/dist/rendering/Renderer.js +970 -1249
- package/dist/rendering/Renderer.js.map +1 -1
- package/dist/rendering/RendererPostprocessPlan.d.ts +20 -3
- package/dist/rendering/RendererPostprocessPlan.d.ts.map +1 -1
- package/dist/rendering/RendererPostprocessPlan.js +32 -4
- package/dist/rendering/RendererPostprocessPlan.js.map +1 -1
- package/dist/rendering/RendererTiming.d.ts +27 -0
- package/dist/rendering/RendererTiming.d.ts.map +1 -1
- package/dist/rendering/RendererTiming.js +179 -12
- package/dist/rendering/RendererTiming.js.map +1 -1
- package/dist/rendering/ResolutionGovernor.d.ts +56 -0
- package/dist/rendering/ResolutionGovernor.d.ts.map +1 -0
- package/dist/rendering/ResolutionGovernor.js +87 -0
- package/dist/rendering/ResolutionGovernor.js.map +1 -0
- package/dist/rendering/Sampler.d.ts +34 -1
- package/dist/rendering/Sampler.d.ts.map +1 -1
- package/dist/rendering/Sampler.js +55 -2
- package/dist/rendering/Sampler.js.map +1 -1
- package/dist/rendering/ScreenSpaceReflectionPass.d.ts +43 -0
- package/dist/rendering/ScreenSpaceReflectionPass.d.ts.map +1 -0
- package/dist/rendering/ScreenSpaceReflectionPass.js +58 -0
- package/dist/rendering/ScreenSpaceReflectionPass.js.map +1 -0
- package/dist/rendering/ShaderLibrary.d.ts.map +1 -1
- package/dist/rendering/ShaderLibrary.js +183 -207
- package/dist/rendering/ShaderLibrary.js.map +1 -1
- package/dist/rendering/ShaderLibraryCore.d.ts +3 -0
- package/dist/rendering/ShaderLibraryCore.d.ts.map +1 -1
- package/dist/rendering/ShaderLibraryCore.js +6 -2
- package/dist/rendering/ShaderLibraryCore.js.map +1 -1
- package/dist/rendering/ShaderModule.d.ts +7 -1
- package/dist/rendering/ShaderModule.d.ts.map +1 -1
- package/dist/rendering/ShaderModule.js +20 -5
- package/dist/rendering/ShaderModule.js.map +1 -1
- package/dist/rendering/ShadowPass.d.ts.map +1 -1
- package/dist/rendering/ShadowPass.js +14 -7
- package/dist/rendering/ShadowPass.js.map +1 -1
- package/dist/rendering/SkinnedLitMaterial.d.ts +5 -0
- package/dist/rendering/SkinnedLitMaterial.d.ts.map +1 -1
- package/dist/rendering/SkinnedLitMaterial.js +13 -0
- package/dist/rendering/SkinnedLitMaterial.js.map +1 -1
- package/dist/rendering/SkinningBounds.d.ts +18 -0
- package/dist/rendering/SkinningBounds.d.ts.map +1 -1
- package/dist/rendering/SkinningBounds.js +78 -0
- package/dist/rendering/SkinningBounds.js.map +1 -1
- package/dist/rendering/SkinningPaletteTextureCache.d.ts +117 -0
- package/dist/rendering/SkinningPaletteTextureCache.d.ts.map +1 -0
- package/dist/rendering/SkinningPaletteTextureCache.js +205 -0
- package/dist/rendering/SkinningPaletteTextureCache.js.map +1 -0
- package/dist/rendering/SkinningUniforms.d.ts +56 -0
- package/dist/rendering/SkinningUniforms.d.ts.map +1 -0
- package/dist/rendering/SkinningUniforms.js +262 -0
- package/dist/rendering/SkinningUniforms.js.map +1 -0
- package/dist/rendering/TemporalHistory.d.ts +70 -0
- package/dist/rendering/TemporalHistory.d.ts.map +1 -0
- package/dist/rendering/TemporalHistory.js +218 -0
- package/dist/rendering/TemporalHistory.js.map +1 -0
- package/dist/rendering/TemporalMath.d.ts +3 -0
- package/dist/rendering/TemporalMath.d.ts.map +1 -0
- package/dist/rendering/TemporalMath.js +9 -0
- package/dist/rendering/TemporalMath.js.map +1 -0
- package/dist/rendering/TerrainHeightfield.d.ts +12 -0
- package/dist/rendering/TerrainHeightfield.d.ts.map +1 -1
- package/dist/rendering/TerrainHeightfield.js +29 -6
- package/dist/rendering/TerrainHeightfield.js.map +1 -1
- package/dist/rendering/TerrainTiles.d.ts +40 -10
- package/dist/rendering/TerrainTiles.d.ts.map +1 -1
- package/dist/rendering/TerrainTiles.js +18 -57
- package/dist/rendering/TerrainTiles.js.map +1 -1
- package/dist/rendering/Texture.d.ts +47 -2
- package/dist/rendering/Texture.d.ts.map +1 -1
- package/dist/rendering/Texture.js +119 -3
- package/dist/rendering/Texture.js.map +1 -1
- package/dist/rendering/TexturedPBRMaterial.d.ts +27 -0
- package/dist/rendering/TexturedPBRMaterial.d.ts.map +1 -1
- package/dist/rendering/TexturedPBRMaterial.js +137 -23
- package/dist/rendering/TexturedPBRMaterial.js.map +1 -1
- package/dist/rendering/TransmissionRenderTarget.d.ts +33 -0
- package/dist/rendering/TransmissionRenderTarget.d.ts.map +1 -0
- package/dist/rendering/TransmissionRenderTarget.js +61 -0
- package/dist/rendering/TransmissionRenderTarget.js.map +1 -0
- package/dist/rendering/VegetationScatter.js +1 -1
- package/dist/rendering/VegetationScatter.js.map +1 -1
- package/dist/rendering/VolumetricFog.d.ts +42 -0
- package/dist/rendering/VolumetricFog.d.ts.map +1 -1
- package/dist/rendering/VolumetricFog.js +52 -1
- package/dist/rendering/VolumetricFog.js.map +1 -1
- package/dist/rendering/WaterSurface.d.ts +5 -0
- package/dist/rendering/WaterSurface.d.ts.map +1 -1
- package/dist/rendering/WaterSurface.js +5 -0
- package/dist/rendering/WaterSurface.js.map +1 -1
- package/dist/rendering/WebGL2Device.d.ts +159 -198
- package/dist/rendering/WebGL2Device.d.ts.map +1 -1
- package/dist/rendering/WebGL2Device.js +797 -3443
- package/dist/rendering/WebGL2Device.js.map +1 -1
- package/dist/rendering/WebGL2StateCache.d.ts +15 -1
- package/dist/rendering/WebGL2StateCache.d.ts.map +1 -1
- package/dist/rendering/WebGL2StateCache.js +31 -2
- package/dist/rendering/WebGL2StateCache.js.map +1 -1
- package/dist/rendering/WebGPUDevice.d.ts +16 -9
- package/dist/rendering/WebGPUDevice.d.ts.map +1 -1
- package/dist/rendering/WebGPUDevice.js +343 -618
- package/dist/rendering/WebGPUDevice.js.map +1 -1
- package/dist/rendering/WebGPUExtensionAtlas.d.ts +6 -0
- package/dist/rendering/WebGPUExtensionAtlas.d.ts.map +1 -0
- package/dist/rendering/WebGPUExtensionAtlas.js +225 -0
- package/dist/rendering/WebGPUExtensionAtlas.js.map +1 -0
- package/dist/rendering/WebGPUSkinningLimits.d.ts +10 -1
- package/dist/rendering/WebGPUSkinningLimits.d.ts.map +1 -1
- package/dist/rendering/WebGPUSkinningLimits.js +15 -1
- package/dist/rendering/WebGPUSkinningLimits.js.map +1 -1
- package/dist/rendering/advanced-runtime/index.d.ts +6 -2
- package/dist/rendering/advanced-runtime/index.d.ts.map +1 -1
- package/dist/rendering/advanced-runtime/index.js +0 -1
- package/dist/rendering/advanced-runtime/index.js.map +1 -1
- package/dist/rendering/animation/AnimationRenderPreset.d.ts +1 -1
- package/dist/rendering/animation/AnimationRenderPreset.d.ts.map +1 -1
- package/dist/rendering/animation/AnimationRenderPreset.js +1 -1
- package/dist/rendering/animation/AnimationRenderPreset.js.map +1 -1
- package/dist/rendering/animation/applyAnimationRenderPreset.d.ts +1 -1
- package/dist/rendering/animation/applyAnimationRenderPreset.d.ts.map +1 -1
- package/dist/rendering/animation/index.d.ts +2 -1
- package/dist/rendering/animation/index.d.ts.map +1 -1
- package/dist/rendering/animation/index.js +1 -1
- package/dist/rendering/animation/index.js.map +1 -1
- package/dist/rendering/atmosphere/CloudLayer.d.ts +24 -0
- package/dist/rendering/atmosphere/CloudLayer.d.ts.map +1 -0
- package/dist/rendering/atmosphere/CloudLayer.js +30 -0
- package/dist/rendering/atmosphere/CloudLayer.js.map +1 -0
- package/dist/rendering/atmosphere/FogVolumes.d.ts +30 -0
- package/dist/rendering/atmosphere/FogVolumes.d.ts.map +1 -0
- package/dist/rendering/atmosphere/FogVolumes.js +96 -0
- package/dist/rendering/atmosphere/FogVolumes.js.map +1 -0
- package/dist/rendering/atmosphere/GradientSky.d.ts +40 -0
- package/dist/rendering/atmosphere/GradientSky.d.ts.map +1 -0
- package/dist/rendering/atmosphere/GradientSky.js +75 -0
- package/dist/rendering/atmosphere/GradientSky.js.map +1 -0
- package/dist/rendering/atmosphere/HeightFog.d.ts +154 -0
- package/dist/rendering/atmosphere/HeightFog.d.ts.map +1 -0
- package/dist/rendering/atmosphere/HeightFog.js +379 -0
- package/dist/rendering/atmosphere/HeightFog.js.map +1 -0
- package/dist/rendering/atmosphere/PreethamSky.d.ts +38 -0
- package/dist/rendering/atmosphere/PreethamSky.d.ts.map +1 -0
- package/dist/rendering/atmosphere/PreethamSky.js +150 -0
- package/dist/rendering/atmosphere/PreethamSky.js.map +1 -0
- package/dist/rendering/atmosphere/SkyBackgroundPass.d.ts +63 -0
- package/dist/rendering/atmosphere/SkyBackgroundPass.d.ts.map +1 -0
- package/dist/rendering/atmosphere/SkyBackgroundPass.js +233 -0
- package/dist/rendering/atmosphere/SkyBackgroundPass.js.map +1 -0
- package/dist/rendering/atmosphere/SkyCaptureAdapter.d.ts +45 -0
- package/dist/rendering/atmosphere/SkyCaptureAdapter.d.ts.map +1 -0
- package/dist/rendering/atmosphere/SkyCaptureAdapter.js +65 -0
- package/dist/rendering/atmosphere/SkyCaptureAdapter.js.map +1 -0
- package/dist/rendering/atmosphere/SkyEval.d.ts +56 -0
- package/dist/rendering/atmosphere/SkyEval.d.ts.map +1 -0
- package/dist/rendering/atmosphere/SkyEval.js +99 -0
- package/dist/rendering/atmosphere/SkyEval.js.map +1 -0
- package/dist/rendering/atmosphere/StarField.d.ts +26 -0
- package/dist/rendering/atmosphere/StarField.d.ts.map +1 -0
- package/dist/rendering/atmosphere/StarField.js +31 -0
- package/dist/rendering/atmosphere/StarField.js.map +1 -0
- package/dist/rendering/atmosphere/VolumetricFogPass.d.ts +69 -0
- package/dist/rendering/atmosphere/VolumetricFogPass.d.ts.map +1 -0
- package/dist/rendering/atmosphere/VolumetricFogPass.js +265 -0
- package/dist/rendering/atmosphere/VolumetricFogPass.js.map +1 -0
- package/dist/rendering/atmosphere/fogChunks.d.ts +8 -0
- package/dist/rendering/atmosphere/fogChunks.d.ts.map +1 -0
- package/dist/rendering/atmosphere/fogChunks.js +39 -0
- package/dist/rendering/atmosphere/fogChunks.js.map +1 -0
- package/dist/rendering/atmosphere/fogUniformStore.d.ts +20 -0
- package/dist/rendering/atmosphere/fogUniformStore.d.ts.map +1 -0
- package/dist/rendering/atmosphere/fogUniformStore.js +45 -0
- package/dist/rendering/atmosphere/fogUniformStore.js.map +1 -0
- package/dist/rendering/atmosphere/shaders/fog.glsl.d.ts +10 -0
- package/dist/rendering/atmosphere/shaders/fog.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/shaders/fog.glsl.js +161 -0
- package/dist/rendering/atmosphere/shaders/fog.glsl.js.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-apply.glsl.d.ts +3 -0
- package/dist/rendering/atmosphere/shaders/volumetric-apply.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-apply.glsl.js +61 -0
- package/dist/rendering/atmosphere/shaders/volumetric-apply.glsl.js.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-inject.glsl.d.ts +4 -0
- package/dist/rendering/atmosphere/shaders/volumetric-inject.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-inject.glsl.js +129 -0
- package/dist/rendering/atmosphere/shaders/volumetric-inject.glsl.js.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-integrate.glsl.d.ts +3 -0
- package/dist/rendering/atmosphere/shaders/volumetric-integrate.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/shaders/volumetric-integrate.glsl.js +55 -0
- package/dist/rendering/atmosphere/shaders/volumetric-integrate.glsl.js.map +1 -0
- package/dist/rendering/atmosphere/shaders/wetness.glsl.d.ts +34 -0
- package/dist/rendering/atmosphere/shaders/wetness.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/shaders/wetness.glsl.js +101 -0
- package/dist/rendering/atmosphere/shaders/wetness.glsl.js.map +1 -0
- package/dist/rendering/atmosphere/sky.glsl.d.ts +8 -0
- package/dist/rendering/atmosphere/sky.glsl.d.ts.map +1 -0
- package/dist/rendering/atmosphere/sky.glsl.js +249 -0
- package/dist/rendering/atmosphere/sky.glsl.js.map +1 -0
- package/dist/rendering/batching/BatchedGeometryPool.d.ts +72 -0
- package/dist/rendering/batching/BatchedGeometryPool.d.ts.map +1 -0
- package/dist/rendering/batching/BatchedGeometryPool.js +138 -0
- package/dist/rendering/batching/BatchedGeometryPool.js.map +1 -0
- package/dist/rendering/batching/ContentKeys.d.ts +29 -0
- package/dist/rendering/batching/ContentKeys.d.ts.map +1 -0
- package/dist/rendering/batching/ContentKeys.js +220 -0
- package/dist/rendering/batching/ContentKeys.js.map +1 -0
- package/dist/rendering/batching/DrawDataTexture.d.ts +51 -0
- package/dist/rendering/batching/DrawDataTexture.d.ts.map +1 -0
- package/dist/rendering/batching/DrawDataTexture.js +99 -0
- package/dist/rendering/batching/DrawDataTexture.js.map +1 -0
- package/dist/rendering/batching/MultiDrawBatch.d.ts +64 -0
- package/dist/rendering/batching/MultiDrawBatch.d.ts.map +1 -0
- package/dist/rendering/batching/MultiDrawBatch.js +103 -0
- package/dist/rendering/batching/MultiDrawBatch.js.map +1 -0
- package/dist/rendering/batching/StaticMergePlanner.d.ts +80 -0
- package/dist/rendering/batching/StaticMergePlanner.d.ts.map +1 -0
- package/dist/rendering/batching/StaticMergePlanner.js +323 -0
- package/dist/rendering/batching/StaticMergePlanner.js.map +1 -0
- package/dist/rendering/batching/index.d.ts +8 -0
- package/dist/rendering/batching/index.d.ts.map +1 -0
- package/dist/rendering/batching/index.js +8 -0
- package/dist/rendering/batching/index.js.map +1 -0
- package/dist/rendering/batching/shaders/drawId.glsl.d.ts +29 -0
- package/dist/rendering/batching/shaders/drawId.glsl.d.ts.map +1 -0
- package/dist/rendering/batching/shaders/drawId.glsl.js +93 -0
- package/dist/rendering/batching/shaders/drawId.glsl.js.map +1 -0
- package/dist/rendering/batching/shaders/instanceEmissive.glsl.d.ts +16 -0
- package/dist/rendering/batching/shaders/instanceEmissive.glsl.d.ts.map +1 -0
- package/dist/rendering/batching/shaders/instanceEmissive.glsl.js +63 -0
- package/dist/rendering/batching/shaders/instanceEmissive.glsl.js.map +1 -0
- package/dist/rendering/cinematic/BloomPass.d.ts +5 -9
- package/dist/rendering/cinematic/BloomPass.d.ts.map +1 -1
- package/dist/rendering/cinematic/BloomPass.js +5 -17
- package/dist/rendering/cinematic/BloomPass.js.map +1 -1
- package/dist/rendering/cinematic/DepthHazePass.d.ts +5 -11
- package/dist/rendering/cinematic/DepthHazePass.d.ts.map +1 -1
- package/dist/rendering/cinematic/DepthHazePass.js +5 -19
- package/dist/rendering/cinematic/DepthHazePass.js.map +1 -1
- package/dist/rendering/cinematic/FilmGrainPass.d.ts +5 -8
- package/dist/rendering/cinematic/FilmGrainPass.d.ts.map +1 -1
- package/dist/rendering/cinematic/FilmGrainPass.js +5 -16
- package/dist/rendering/cinematic/FilmGrainPass.js.map +1 -1
- package/dist/rendering/cinematic/VignettePass.d.ts +5 -9
- package/dist/rendering/cinematic/VignettePass.d.ts.map +1 -1
- package/dist/rendering/cinematic/VignettePass.js +5 -16
- package/dist/rendering/cinematic/VignettePass.js.map +1 -1
- package/dist/rendering/cinematic/index.d.ts +2 -1
- package/dist/rendering/cinematic/index.d.ts.map +1 -1
- package/dist/rendering/cinematic/index.js +1 -1
- package/dist/rendering/cinematic/index.js.map +1 -1
- package/dist/rendering/contracts/atmosphere.d.ts +30 -0
- package/dist/rendering/contracts/atmosphere.d.ts.map +1 -0
- package/dist/rendering/contracts/atmosphere.js +42 -0
- package/dist/rendering/contracts/atmosphere.js.map +1 -0
- package/dist/rendering/contracts/blend.d.ts +28 -0
- package/dist/rendering/contracts/blend.d.ts.map +1 -0
- package/dist/rendering/contracts/blend.js +73 -0
- package/dist/rendering/contracts/blend.js.map +1 -0
- package/dist/rendering/contracts/core.d.ts +47 -0
- package/dist/rendering/contracts/core.d.ts.map +1 -0
- package/dist/rendering/contracts/core.js +70 -0
- package/dist/rendering/contracts/core.js.map +1 -0
- package/dist/rendering/contracts/deform.d.ts +38 -0
- package/dist/rendering/contracts/deform.d.ts.map +1 -0
- package/dist/rendering/contracts/deform.js +14 -0
- package/dist/rendering/contracts/deform.js.map +1 -0
- package/dist/rendering/contracts/device.d.ts +71 -0
- package/dist/rendering/contracts/device.d.ts.map +1 -0
- package/dist/rendering/contracts/device.js +97 -0
- package/dist/rendering/contracts/device.js.map +1 -0
- package/dist/rendering/contracts/environment.d.ts +55 -0
- package/dist/rendering/contracts/environment.d.ts.map +1 -0
- package/dist/rendering/contracts/environment.js +115 -0
- package/dist/rendering/contracts/environment.js.map +1 -0
- package/dist/rendering/contracts/flags.state.d.ts +15 -0
- package/dist/rendering/contracts/flags.state.d.ts.map +1 -0
- package/dist/rendering/contracts/flags.state.js +45 -0
- package/dist/rendering/contracts/flags.state.js.map +1 -0
- package/dist/rendering/contracts/frameGraph.d.ts +78 -0
- package/dist/rendering/contracts/frameGraph.d.ts.map +1 -0
- package/dist/rendering/contracts/frameGraph.js +32 -0
- package/dist/rendering/contracts/frameGraph.js.map +1 -0
- package/dist/rendering/contracts/frameUniforms.d.ts +43 -0
- package/dist/rendering/contracts/frameUniforms.d.ts.map +1 -0
- package/dist/rendering/contracts/frameUniforms.js +35 -0
- package/dist/rendering/contracts/frameUniforms.js.map +1 -0
- package/dist/rendering/contracts/geometry.d.ts +33 -0
- package/dist/rendering/contracts/geometry.d.ts.map +1 -0
- package/dist/rendering/contracts/geometry.js +59 -0
- package/dist/rendering/contracts/geometry.js.map +1 -0
- package/dist/rendering/contracts/index.d.ts +27 -0
- package/dist/rendering/contracts/index.d.ts.map +1 -0
- package/dist/rendering/contracts/index.js +27 -0
- package/dist/rendering/contracts/index.js.map +1 -0
- package/dist/rendering/contracts/materialLobes.d.ts +41 -0
- package/dist/rendering/contracts/materialLobes.d.ts.map +1 -0
- package/dist/rendering/contracts/materialLobes.js +14 -0
- package/dist/rendering/contracts/materialLobes.js.map +1 -0
- package/dist/rendering/contracts/output.d.ts +35 -0
- package/dist/rendering/contracts/output.d.ts.map +1 -0
- package/dist/rendering/contracts/output.js +18 -0
- package/dist/rendering/contracts/output.js.map +1 -0
- package/dist/rendering/contracts/particles.d.ts +41 -0
- package/dist/rendering/contracts/particles.d.ts.map +1 -0
- package/dist/rendering/contracts/particles.js +15 -0
- package/dist/rendering/contracts/particles.js.map +1 -0
- package/dist/rendering/contracts/post.d.ts +71 -0
- package/dist/rendering/contracts/post.d.ts.map +1 -0
- package/dist/rendering/contracts/post.js +28 -0
- package/dist/rendering/contracts/post.js.map +1 -0
- package/dist/rendering/contracts/program.d.ts +158 -0
- package/dist/rendering/contracts/program.d.ts.map +1 -0
- package/dist/rendering/contracts/program.js +128 -0
- package/dist/rendering/contracts/program.js.map +1 -0
- package/dist/rendering/contracts/quality.d.ts +93 -0
- package/dist/rendering/contracts/quality.d.ts.map +1 -0
- package/dist/rendering/contracts/quality.js +149 -0
- package/dist/rendering/contracts/quality.js.map +1 -0
- package/dist/rendering/contracts/renderItem.d.ts +58 -0
- package/dist/rendering/contracts/renderItem.d.ts.map +1 -0
- package/dist/rendering/contracts/renderItem.js +8 -0
- package/dist/rendering/contracts/renderItem.js.map +1 -0
- package/dist/rendering/contracts/renderSource.d.ts +63 -0
- package/dist/rendering/contracts/renderSource.d.ts.map +1 -0
- package/dist/rendering/contracts/renderSource.js +7 -0
- package/dist/rendering/contracts/renderSource.js.map +1 -0
- package/dist/rendering/contracts/rendererFactory.d.ts +42 -0
- package/dist/rendering/contracts/rendererFactory.d.ts.map +1 -0
- package/dist/rendering/contracts/rendererFactory.js +32 -0
- package/dist/rendering/contracts/rendererFactory.js.map +1 -0
- package/dist/rendering/contracts/sampling.d.ts +23 -0
- package/dist/rendering/contracts/sampling.d.ts.map +1 -0
- package/dist/rendering/contracts/sampling.js +17 -0
- package/dist/rendering/contracts/sampling.js.map +1 -0
- package/dist/rendering/contracts/shadows.d.ts +53 -0
- package/dist/rendering/contracts/shadows.d.ts.map +1 -0
- package/dist/rendering/contracts/shadows.js +66 -0
- package/dist/rendering/contracts/shadows.js.map +1 -0
- package/dist/rendering/contracts/testing/ChunkHarness.d.ts +18 -0
- package/dist/rendering/contracts/testing/ChunkHarness.d.ts.map +1 -0
- package/dist/rendering/contracts/testing/ChunkHarness.js +68 -0
- package/dist/rendering/contracts/testing/ChunkHarness.js.map +1 -0
- package/dist/rendering/contracts/textureFormats.d.ts +18 -0
- package/dist/rendering/contracts/textureFormats.d.ts.map +1 -0
- package/dist/rendering/contracts/textureFormats.js +13 -0
- package/dist/rendering/contracts/textureFormats.js.map +1 -0
- package/dist/rendering/contracts/velocity.d.ts +37 -0
- package/dist/rendering/contracts/velocity.d.ts.map +1 -0
- package/dist/rendering/contracts/velocity.js +22 -0
- package/dist/rendering/contracts/velocity.js.map +1 -0
- package/dist/rendering/effects/GPUParticleBackend.d.ts +4 -2
- package/dist/rendering/effects/GPUParticleBackend.d.ts.map +1 -1
- package/dist/rendering/effects/GPUParticleBackend.js +20 -2
- package/dist/rendering/effects/GPUParticleBackend.js.map +1 -1
- package/dist/rendering/effects/ResidentGPUParticleRenderer.d.ts +158 -0
- package/dist/rendering/effects/ResidentGPUParticleRenderer.d.ts.map +1 -0
- package/dist/rendering/effects/ResidentGPUParticleRenderer.js +576 -0
- package/dist/rendering/effects/ResidentGPUParticleRenderer.js.map +1 -0
- package/dist/rendering/environment/EnvUniforms.d.ts +42 -0
- package/dist/rendering/environment/EnvUniforms.d.ts.map +1 -0
- package/dist/rendering/environment/EnvUniforms.js +54 -0
- package/dist/rendering/environment/EnvUniforms.js.map +1 -0
- package/dist/rendering/environment/EnvironmentCache.d.ts +83 -0
- package/dist/rendering/environment/EnvironmentCache.d.ts.map +1 -0
- package/dist/rendering/environment/EnvironmentCache.js +205 -0
- package/dist/rendering/environment/EnvironmentCache.js.map +1 -0
- package/dist/rendering/environment/EnvironmentProbeFactory.d.ts +41 -0
- package/dist/rendering/environment/EnvironmentProbeFactory.d.ts.map +1 -0
- package/dist/rendering/environment/EnvironmentProbeFactory.js +52 -0
- package/dist/rendering/environment/EnvironmentProbeFactory.js.map +1 -0
- package/dist/rendering/environment/GPUPMREMGenerator.d.ts +44 -0
- package/dist/rendering/environment/GPUPMREMGenerator.d.ts.map +1 -0
- package/dist/rendering/environment/GPUPMREMGenerator.js +98 -0
- package/dist/rendering/environment/GPUPMREMGenerator.js.map +1 -0
- package/dist/rendering/environment/HdrEquirect.d.ts +28 -0
- package/dist/rendering/environment/HdrEquirect.d.ts.map +1 -0
- package/dist/rendering/environment/HdrEquirect.js +205 -0
- package/dist/rendering/environment/HdrEquirect.js.map +1 -0
- package/dist/rendering/environment/LightingSamplerBudget.d.ts +20 -0
- package/dist/rendering/environment/LightingSamplerBudget.d.ts.map +1 -0
- package/dist/rendering/environment/LightingSamplerBudget.js +94 -0
- package/dist/rendering/environment/LightingSamplerBudget.js.map +1 -0
- package/dist/rendering/environment/Prd02BackgroundShaderLibrary.d.ts +10 -0
- package/dist/rendering/environment/Prd02BackgroundShaderLibrary.d.ts.map +1 -0
- package/dist/rendering/environment/Prd02BackgroundShaderLibrary.js +100 -0
- package/dist/rendering/environment/Prd02BackgroundShaderLibrary.js.map +1 -0
- package/dist/rendering/environment/Rgb9e5Cube.d.ts +25 -0
- package/dist/rendering/environment/Rgb9e5Cube.d.ts.map +1 -0
- package/dist/rendering/environment/Rgb9e5Cube.js +103 -0
- package/dist/rendering/environment/Rgb9e5Cube.js.map +1 -0
- package/dist/rendering/environment/RoomEnvironmentScene.d.ts +57 -0
- package/dist/rendering/environment/RoomEnvironmentScene.d.ts.map +1 -0
- package/dist/rendering/environment/RoomEnvironmentScene.js +165 -0
- package/dist/rendering/environment/RoomEnvironmentScene.js.map +1 -0
- package/dist/rendering/environment/SphericalHarmonics.d.ts +32 -0
- package/dist/rendering/environment/SphericalHarmonics.d.ts.map +1 -0
- package/dist/rendering/environment/SphericalHarmonics.js +155 -0
- package/dist/rendering/environment/SphericalHarmonics.js.map +1 -0
- package/dist/rendering/environment/probeBuild.d.ts +97 -0
- package/dist/rendering/environment/probeBuild.d.ts.map +1 -0
- package/dist/rendering/environment/probeBuild.js +406 -0
- package/dist/rendering/environment/probeBuild.js.map +1 -0
- package/dist/rendering/environment/workers/cpuPrefilter.d.ts +58 -0
- package/dist/rendering/environment/workers/cpuPrefilter.d.ts.map +1 -0
- package/dist/rendering/environment/workers/cpuPrefilter.js +288 -0
- package/dist/rendering/environment/workers/cpuPrefilter.js.map +1 -0
- package/dist/rendering/extension-scalar-atlas.d.ts +3 -0
- package/dist/rendering/extension-scalar-atlas.d.ts.map +1 -0
- package/dist/rendering/extension-scalar-atlas.js +2 -0
- package/dist/rendering/extension-scalar-atlas.js.map +1 -0
- package/dist/rendering/forward/Deform.d.ts +56 -0
- package/dist/rendering/forward/Deform.d.ts.map +1 -0
- package/dist/rendering/forward/Deform.js +517 -0
- package/dist/rendering/forward/Deform.js.map +1 -0
- package/dist/rendering/forward/DrawSubmit.d.ts +32 -0
- package/dist/rendering/forward/DrawSubmit.d.ts.map +1 -0
- package/dist/rendering/forward/DrawSubmit.js +75 -0
- package/dist/rendering/forward/DrawSubmit.js.map +1 -0
- package/dist/rendering/forward/Lighting.d.ts +35 -0
- package/dist/rendering/forward/Lighting.d.ts.map +1 -0
- package/dist/rendering/forward/Lighting.js +477 -0
- package/dist/rendering/forward/Lighting.js.map +1 -0
- package/dist/rendering/forward/Transmission.d.ts +62 -0
- package/dist/rendering/forward/Transmission.d.ts.map +1 -0
- package/dist/rendering/forward/Transmission.js +299 -0
- package/dist/rendering/forward/Transmission.js.map +1 -0
- package/dist/rendering/forward/Velocity.d.ts +47 -0
- package/dist/rendering/forward/Velocity.d.ts.map +1 -0
- package/dist/rendering/forward/Velocity.js +153 -0
- package/dist/rendering/forward/Velocity.js.map +1 -0
- package/dist/rendering/forward/transmissionTargetStore.d.ts +21 -0
- package/dist/rendering/forward/transmissionTargetStore.d.ts.map +1 -0
- package/dist/rendering/forward/transmissionTargetStore.js +8 -0
- package/dist/rendering/forward/transmissionTargetStore.js.map +1 -0
- package/dist/rendering/geometry/Primitives.d.ts +28 -0
- package/dist/rendering/geometry/Primitives.d.ts.map +1 -0
- package/dist/rendering/geometry/Primitives.js +110 -0
- package/dist/rendering/geometry/Primitives.js.map +1 -0
- package/dist/rendering/index.d.ts +140 -57
- package/dist/rendering/index.d.ts.map +1 -1
- package/dist/rendering/index.js +102 -51
- package/dist/rendering/index.js.map +1 -1
- package/dist/rendering/lanes/index.d.ts +17 -0
- package/dist/rendering/lanes/index.d.ts.map +1 -0
- package/dist/rendering/lanes/index.js +17 -0
- package/dist/rendering/lanes/index.js.map +1 -0
- package/dist/rendering/lanes/prd01.d.ts +6 -0
- package/dist/rendering/lanes/prd01.d.ts.map +1 -0
- package/dist/rendering/lanes/prd01.js +19 -0
- package/dist/rendering/lanes/prd01.js.map +1 -0
- package/dist/rendering/lanes/prd02.d.ts +62 -0
- package/dist/rendering/lanes/prd02.d.ts.map +1 -0
- package/dist/rendering/lanes/prd02.js +117 -0
- package/dist/rendering/lanes/prd02.js.map +1 -0
- package/dist/rendering/lanes/prd03.d.ts +19 -0
- package/dist/rendering/lanes/prd03.d.ts.map +1 -0
- package/dist/rendering/lanes/prd03.js +55 -0
- package/dist/rendering/lanes/prd03.js.map +1 -0
- package/dist/rendering/lanes/prd04.d.ts +22 -0
- package/dist/rendering/lanes/prd04.d.ts.map +1 -0
- package/dist/rendering/lanes/prd04.js +35 -0
- package/dist/rendering/lanes/prd04.js.map +1 -0
- package/dist/rendering/lanes/prd05.d.ts +4 -0
- package/dist/rendering/lanes/prd05.d.ts.map +1 -0
- package/dist/rendering/lanes/prd05.js +31 -0
- package/dist/rendering/lanes/prd05.js.map +1 -0
- package/dist/rendering/lanes/prd06.d.ts +33 -0
- package/dist/rendering/lanes/prd06.d.ts.map +1 -0
- package/dist/rendering/lanes/prd06.js +217 -0
- package/dist/rendering/lanes/prd06.js.map +1 -0
- package/dist/rendering/lanes/prd07.d.ts +49 -0
- package/dist/rendering/lanes/prd07.d.ts.map +1 -0
- package/dist/rendering/lanes/prd07.js +112 -0
- package/dist/rendering/lanes/prd07.js.map +1 -0
- package/dist/rendering/lanes/prd08.d.ts +2 -0
- package/dist/rendering/lanes/prd08.d.ts.map +1 -0
- package/dist/rendering/lanes/prd08.js +17 -0
- package/dist/rendering/lanes/prd08.js.map +1 -0
- package/dist/rendering/lanes/prd09.d.ts +6 -0
- package/dist/rendering/lanes/prd09.d.ts.map +1 -0
- package/dist/rendering/lanes/prd09.js +6 -0
- package/dist/rendering/lanes/prd09.js.map +1 -0
- package/dist/rendering/lanes/prd10.d.ts +2 -0
- package/dist/rendering/lanes/prd10.d.ts.map +1 -0
- package/dist/rendering/lanes/prd10.js +10 -0
- package/dist/rendering/lanes/prd10.js.map +1 -0
- package/dist/rendering/lanes/prd11.d.ts +61 -0
- package/dist/rendering/lanes/prd11.d.ts.map +1 -0
- package/dist/rendering/lanes/prd11.js +244 -0
- package/dist/rendering/lanes/prd11.js.map +1 -0
- package/dist/rendering/lanes/prd12.d.ts +6 -0
- package/dist/rendering/lanes/prd12.d.ts.map +1 -0
- package/dist/rendering/lanes/prd12.js +6 -0
- package/dist/rendering/lanes/prd12.js.map +1 -0
- package/dist/rendering/lanes/prd13.d.ts +6 -0
- package/dist/rendering/lanes/prd13.d.ts.map +1 -0
- package/dist/rendering/lanes/prd13.js +6 -0
- package/dist/rendering/lanes/prd13.js.map +1 -0
- package/dist/rendering/lanes/prd14.d.ts +6 -0
- package/dist/rendering/lanes/prd14.d.ts.map +1 -0
- package/dist/rendering/lanes/prd14.js +6 -0
- package/dist/rendering/lanes/prd14.js.map +1 -0
- package/dist/rendering/lanes/prd15.d.ts +6 -0
- package/dist/rendering/lanes/prd15.d.ts.map +1 -0
- package/dist/rendering/lanes/prd15.js +6 -0
- package/dist/rendering/lanes/prd15.js.map +1 -0
- package/dist/rendering/lean/LeanProductionRenderer.d.ts.map +1 -1
- package/dist/rendering/lean/LeanProductionRenderer.js +2 -2
- package/dist/rendering/lean/LeanProductionRenderer.js.map +1 -1
- package/dist/rendering/lean-core-runtime.d.ts +13 -0
- package/dist/rendering/lean-core-runtime.d.ts.map +1 -0
- package/dist/rendering/lean-core-runtime.js +10 -0
- package/dist/rendering/lean-core-runtime.js.map +1 -0
- package/dist/rendering/materials/PhysicalFeatures.d.ts +71 -0
- package/dist/rendering/materials/PhysicalFeatures.d.ts.map +1 -0
- package/dist/rendering/materials/PhysicalFeatures.js +255 -0
- package/dist/rendering/materials/PhysicalFeatures.js.map +1 -0
- package/dist/rendering/materials/PhysicalMaterial.d.ts +85 -0
- package/dist/rendering/materials/PhysicalMaterial.d.ts.map +1 -1
- package/dist/rendering/materials/PhysicalMaterial.js +21 -0
- package/dist/rendering/materials/PhysicalMaterial.js.map +1 -1
- package/dist/rendering/materials/features.d.ts +47 -0
- package/dist/rendering/materials/features.d.ts.map +1 -0
- package/dist/rendering/materials/features.js +282 -0
- package/dist/rendering/materials/features.js.map +1 -0
- package/dist/rendering/materials/lobes.d.ts +3 -0
- package/dist/rendering/materials/lobes.d.ts.map +1 -0
- package/dist/rendering/materials/lobes.js +225 -0
- package/dist/rendering/materials/lobes.js.map +1 -0
- package/dist/rendering/output/HdrTarget.d.ts +27 -0
- package/dist/rendering/output/HdrTarget.d.ts.map +1 -0
- package/dist/rendering/output/HdrTarget.js +48 -0
- package/dist/rendering/output/HdrTarget.js.map +1 -0
- package/dist/rendering/output/OutputPass.d.ts +28 -0
- package/dist/rendering/output/OutputPass.d.ts.map +1 -0
- package/dist/rendering/output/OutputPass.js +142 -0
- package/dist/rendering/output/OutputPass.js.map +1 -0
- package/dist/rendering/output/ToneMappingOperators.glsl.d.ts +22 -0
- package/dist/rendering/output/ToneMappingOperators.glsl.d.ts.map +1 -0
- package/dist/rendering/output/ToneMappingOperators.glsl.js +217 -0
- package/dist/rendering/output/ToneMappingOperators.glsl.js.map +1 -0
- package/dist/rendering/passes/ContactShadowPass.d.ts +57 -0
- package/dist/rendering/passes/ContactShadowPass.d.ts.map +1 -0
- package/dist/rendering/passes/ContactShadowPass.js +151 -0
- package/dist/rendering/passes/ContactShadowPass.js.map +1 -0
- package/dist/rendering/passes/Prd02ContactShadowsContributor.d.ts +16 -0
- package/dist/rendering/passes/Prd02ContactShadowsContributor.d.ts.map +1 -0
- package/dist/rendering/passes/Prd02ContactShadowsContributor.js +133 -0
- package/dist/rendering/passes/Prd02ContactShadowsContributor.js.map +1 -0
- package/dist/rendering/passes/Prd02SubFlags.d.ts +22 -0
- package/dist/rendering/passes/Prd02SubFlags.d.ts.map +1 -0
- package/dist/rendering/passes/Prd02SubFlags.js +32 -0
- package/dist/rendering/passes/Prd02SubFlags.js.map +1 -0
- package/dist/rendering/performance/BVH.d.ts +46 -0
- package/dist/rendering/performance/BVH.d.ts.map +1 -1
- package/dist/rendering/performance/BVH.js +212 -0
- package/dist/rendering/performance/BVH.js.map +1 -1
- package/dist/rendering/performance/Batcher.d.ts +11 -0
- package/dist/rendering/performance/Batcher.d.ts.map +1 -1
- package/dist/rendering/performance/Batcher.js +10 -0
- package/dist/rendering/performance/Batcher.js.map +1 -1
- package/dist/rendering/performance/FrustumCuller.d.ts +29 -0
- package/dist/rendering/performance/FrustumCuller.d.ts.map +1 -1
- package/dist/rendering/performance/FrustumCuller.js +78 -1
- package/dist/rendering/performance/FrustumCuller.js.map +1 -1
- package/dist/rendering/performance/LOD.d.ts +6 -0
- package/dist/rendering/performance/LOD.d.ts.map +1 -1
- package/dist/rendering/performance/LOD.js +12 -0
- package/dist/rendering/performance/LOD.js.map +1 -1
- package/dist/rendering/performance/RenderItemSorting.d.ts +2 -0
- package/dist/rendering/performance/RenderItemSorting.d.ts.map +1 -1
- package/dist/rendering/performance/RenderItemSorting.js +5 -1
- package/dist/rendering/performance/RenderItemSorting.js.map +1 -1
- package/dist/rendering/post/CubeLut.d.ts +15 -0
- package/dist/rendering/post/CubeLut.d.ts.map +1 -0
- package/dist/rendering/post/CubeLut.js +86 -0
- package/dist/rendering/post/CubeLut.js.map +1 -0
- package/dist/rendering/post/DisplayLutCache.d.ts +31 -0
- package/dist/rendering/post/DisplayLutCache.d.ts.map +1 -0
- package/dist/rendering/post/DisplayLutCache.js +44 -0
- package/dist/rendering/post/DisplayLutCache.js.map +1 -0
- package/dist/rendering/post/PostAntiAlias.d.ts +49 -0
- package/dist/rendering/post/PostAntiAlias.d.ts.map +1 -0
- package/dist/rendering/post/PostAntiAlias.js +75 -0
- package/dist/rendering/post/PostAntiAlias.js.map +1 -0
- package/dist/rendering/post/PostGraph.d.ts +206 -0
- package/dist/rendering/post/PostGraph.d.ts.map +1 -0
- package/dist/rendering/post/PostGraph.js +234 -0
- package/dist/rendering/post/PostGraph.js.map +1 -0
- package/dist/rendering/post/PostQualityTiers.d.ts +95 -0
- package/dist/rendering/post/PostQualityTiers.d.ts.map +1 -0
- package/dist/rendering/post/PostQualityTiers.js +62 -0
- package/dist/rendering/post/PostQualityTiers.js.map +1 -0
- package/dist/rendering/post/PostResources.d.ts +49 -0
- package/dist/rendering/post/PostResources.d.ts.map +1 -0
- package/dist/rendering/post/PostResources.js +119 -0
- package/dist/rendering/post/PostResources.js.map +1 -0
- package/dist/rendering/post/PostTimer.d.ts +37 -0
- package/dist/rendering/post/PostTimer.d.ts.map +1 -0
- package/dist/rendering/post/PostTimer.js +88 -0
- package/dist/rendering/post/PostTimer.js.map +1 -0
- package/dist/rendering/post/ScreenFeelPass.d.ts +83 -0
- package/dist/rendering/post/ScreenFeelPass.d.ts.map +1 -0
- package/dist/rendering/post/ScreenFeelPass.js +197 -0
- package/dist/rendering/post/ScreenFeelPass.js.map +1 -0
- package/dist/rendering/post/ToneOperators.d.ts +42 -0
- package/dist/rendering/post/ToneOperators.d.ts.map +1 -0
- package/dist/rendering/post/ToneOperators.js +179 -0
- package/dist/rendering/post/ToneOperators.js.map +1 -0
- package/dist/rendering/post/chunks/indirectFraction.glsl.d.ts +50 -0
- package/dist/rendering/post/chunks/indirectFraction.glsl.d.ts.map +1 -0
- package/dist/rendering/post/chunks/indirectFraction.glsl.js +82 -0
- package/dist/rendering/post/chunks/indirectFraction.glsl.js.map +1 -0
- package/dist/rendering/post/chunks/velocity.glsl.d.ts +35 -0
- package/dist/rendering/post/chunks/velocity.glsl.d.ts.map +1 -0
- package/dist/rendering/post/chunks/velocity.glsl.js +86 -0
- package/dist/rendering/post/chunks/velocity.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/bloom.glsl.d.ts +21 -0
- package/dist/rendering/post/shaders/bloom.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/bloom.glsl.js +120 -0
- package/dist/rendering/post/shaders/bloom.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/bloom.wgsl.d.ts +10 -0
- package/dist/rendering/post/shaders/bloom.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/bloom.wgsl.js +121 -0
- package/dist/rendering/post/shaders/bloom.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/common.glsl.d.ts +11 -0
- package/dist/rendering/post/shaders/common.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/common.glsl.js +34 -0
- package/dist/rendering/post/shaders/common.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/common.wgsl.d.ts +25 -0
- package/dist/rendering/post/shaders/common.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/common.wgsl.js +48 -0
- package/dist/rendering/post/shaders/common.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/composite.glsl.d.ts +25 -0
- package/dist/rendering/post/shaders/composite.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/composite.glsl.js +96 -0
- package/dist/rendering/post/shaders/composite.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/composite.wgsl.d.ts +10 -0
- package/dist/rendering/post/shaders/composite.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/composite.wgsl.js +92 -0
- package/dist/rendering/post/shaders/composite.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/depthDownsample.glsl.d.ts +20 -0
- package/dist/rendering/post/shaders/depthDownsample.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/depthDownsample.glsl.js +78 -0
- package/dist/rendering/post/shaders/depthDownsample.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/depthDownsample.wgsl.d.ts +17 -0
- package/dist/rendering/post/shaders/depthDownsample.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/depthDownsample.wgsl.js +87 -0
- package/dist/rendering/post/shaders/depthDownsample.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/displayGrade.glsl.d.ts +18 -0
- package/dist/rendering/post/shaders/displayGrade.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/displayGrade.glsl.js +80 -0
- package/dist/rendering/post/shaders/displayGrade.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/displayGrade.wgsl.d.ts +9 -0
- package/dist/rendering/post/shaders/displayGrade.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/displayGrade.wgsl.js +75 -0
- package/dist/rendering/post/shaders/displayGrade.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/dof.glsl.d.ts +25 -0
- package/dist/rendering/post/shaders/dof.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/dof.glsl.js +129 -0
- package/dist/rendering/post/shaders/dof.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/dof.wgsl.d.ts +11 -0
- package/dist/rendering/post/shaders/dof.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/dof.wgsl.js +119 -0
- package/dist/rendering/post/shaders/dof.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/exposure.glsl.d.ts +43 -0
- package/dist/rendering/post/shaders/exposure.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/exposure.glsl.js +115 -0
- package/dist/rendering/post/shaders/exposure.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/exposure.wgsl.d.ts +16 -0
- package/dist/rendering/post/shaders/exposure.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/exposure.wgsl.js +97 -0
- package/dist/rendering/post/shaders/exposure.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/finalize.glsl.d.ts +17 -0
- package/dist/rendering/post/shaders/finalize.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/finalize.glsl.js +120 -0
- package/dist/rendering/post/shaders/finalize.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/finalize.wgsl.d.ts +13 -0
- package/dist/rendering/post/shaders/finalize.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/finalize.wgsl.js +124 -0
- package/dist/rendering/post/shaders/finalize.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/fxaa.glsl.d.ts +26 -0
- package/dist/rendering/post/shaders/fxaa.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/fxaa.glsl.js +246 -0
- package/dist/rendering/post/shaders/fxaa.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/fxaa.wgsl.d.ts +17 -0
- package/dist/rendering/post/shaders/fxaa.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/fxaa.wgsl.js +268 -0
- package/dist/rendering/post/shaders/fxaa.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/godrays.glsl.d.ts +16 -0
- package/dist/rendering/post/shaders/godrays.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/godrays.glsl.js +70 -0
- package/dist/rendering/post/shaders/godrays.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/godrays.wgsl.d.ts +8 -0
- package/dist/rendering/post/shaders/godrays.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/godrays.wgsl.js +60 -0
- package/dist/rendering/post/shaders/godrays.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/gtao.glsl.d.ts +29 -0
- package/dist/rendering/post/shaders/gtao.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/gtao.glsl.js +190 -0
- package/dist/rendering/post/shaders/gtao.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/gtao.wgsl.d.ts +13 -0
- package/dist/rendering/post/shaders/gtao.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/gtao.wgsl.js +163 -0
- package/dist/rendering/post/shaders/gtao.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/gtaoDenoise.glsl.d.ts +22 -0
- package/dist/rendering/post/shaders/gtaoDenoise.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/gtaoDenoise.glsl.js +121 -0
- package/dist/rendering/post/shaders/gtaoDenoise.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/gtaoDenoise.wgsl.d.ts +11 -0
- package/dist/rendering/post/shaders/gtaoDenoise.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/gtaoDenoise.wgsl.js +117 -0
- package/dist/rendering/post/shaders/gtaoDenoise.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/motionBlur.glsl.d.ts +21 -0
- package/dist/rendering/post/shaders/motionBlur.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/motionBlur.glsl.js +110 -0
- package/dist/rendering/post/shaders/motionBlur.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/motionBlur.wgsl.d.ts +10 -0
- package/dist/rendering/post/shaders/motionBlur.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/motionBlur.wgsl.js +102 -0
- package/dist/rendering/post/shaders/motionBlur.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/smaa.glsl.d.ts +28 -0
- package/dist/rendering/post/shaders/smaa.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/smaa.glsl.js +354 -0
- package/dist/rendering/post/shaders/smaa.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/smaa.wgsl.d.ts +20 -0
- package/dist/rendering/post/shaders/smaa.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/smaa.wgsl.js +375 -0
- package/dist/rendering/post/shaders/smaa.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/taa.glsl.d.ts +23 -0
- package/dist/rendering/post/shaders/taa.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/taa.glsl.js +169 -0
- package/dist/rendering/post/shaders/taa.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/taa.wgsl.d.ts +10 -0
- package/dist/rendering/post/shaders/taa.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/taa.wgsl.js +185 -0
- package/dist/rendering/post/shaders/taa.wgsl.js.map +1 -0
- package/dist/rendering/post/shaders/velocityDilate.glsl.d.ts +16 -0
- package/dist/rendering/post/shaders/velocityDilate.glsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/velocityDilate.glsl.js +45 -0
- package/dist/rendering/post/shaders/velocityDilate.glsl.js.map +1 -0
- package/dist/rendering/post/shaders/velocityDilate.wgsl.d.ts +8 -0
- package/dist/rendering/post/shaders/velocityDilate.wgsl.d.ts.map +1 -0
- package/dist/rendering/post/shaders/velocityDilate.wgsl.js +30 -0
- package/dist/rendering/post/shaders/velocityDilate.wgsl.js.map +1 -0
- package/dist/rendering/post/smaa/textures.d.ts +17 -0
- package/dist/rendering/post/smaa/textures.d.ts.map +1 -0
- package/dist/rendering/post/smaa/textures.js +17 -0
- package/dist/rendering/post/smaa/textures.js.map +1 -0
- package/dist/rendering/post/v2Entry.d.ts +25 -0
- package/dist/rendering/post/v2Entry.d.ts.map +1 -0
- package/dist/rendering/post/v2Entry.js +28 -0
- package/dist/rendering/post/v2Entry.js.map +1 -0
- package/dist/rendering/post/v2Stages.d.ts +156 -0
- package/dist/rendering/post/v2Stages.d.ts.map +1 -0
- package/dist/rendering/post/v2Stages.js +1189 -0
- package/dist/rendering/post/v2Stages.js.map +1 -0
- package/dist/rendering/postprocess/EffectComposer.d.ts +6 -109
- package/dist/rendering/postprocess/EffectComposer.d.ts.map +1 -1
- package/dist/rendering/postprocess/EffectComposer.js +6 -246
- package/dist/rendering/postprocess/EffectComposer.js.map +1 -1
- package/dist/rendering/postprocess/NativeBloomPyramid.d.ts +51 -1
- package/dist/rendering/postprocess/NativeBloomPyramid.d.ts.map +1 -1
- package/dist/rendering/postprocess/NativeBloomPyramid.js +88 -1
- package/dist/rendering/postprocess/NativeBloomPyramid.js.map +1 -1
- package/dist/rendering/postprocess/SSAOPass.d.ts +5 -5
- package/dist/rendering/postprocess/SSAOPass.d.ts.map +1 -1
- package/dist/rendering/postprocess/SSAOPass.js +5 -17
- package/dist/rendering/postprocess/SSAOPass.js.map +1 -1
- package/dist/rendering/probes/IrradianceVolume.d.ts +45 -0
- package/dist/rendering/probes/IrradianceVolume.d.ts.map +1 -0
- package/dist/rendering/probes/IrradianceVolume.js +230 -0
- package/dist/rendering/probes/IrradianceVolume.js.map +1 -0
- package/dist/rendering/probes/LtcLuts.d.ts +30 -0
- package/dist/rendering/probes/LtcLuts.d.ts.map +1 -0
- package/dist/rendering/probes/LtcLuts.js +120 -0
- package/dist/rendering/probes/LtcLuts.js.map +1 -0
- package/dist/rendering/probes/Prd02ProbesContributor.d.ts +53 -0
- package/dist/rendering/probes/Prd02ProbesContributor.d.ts.map +1 -0
- package/dist/rendering/probes/Prd02ProbesContributor.js +241 -0
- package/dist/rendering/probes/Prd02ProbesContributor.js.map +1 -0
- package/dist/rendering/probes/ProbeBoxProjection.d.ts +53 -0
- package/dist/rendering/probes/ProbeBoxProjection.d.ts.map +1 -0
- package/dist/rendering/probes/ProbeBoxProjection.js +99 -0
- package/dist/rendering/probes/ProbeBoxProjection.js.map +1 -0
- package/dist/rendering/probes/ReflectionProbeSystem.d.ts +64 -0
- package/dist/rendering/probes/ReflectionProbeSystem.d.ts.map +1 -0
- package/dist/rendering/probes/ReflectionProbeSystem.js +157 -0
- package/dist/rendering/probes/ReflectionProbeSystem.js.map +1 -0
- package/dist/rendering/production-runtime/PBRHDRPipeline.d.ts.map +1 -1
- package/dist/rendering/production-runtime/PBRHDRPipeline.js +23 -9
- package/dist/rendering/production-runtime/PBRHDRPipeline.js.map +1 -1
- package/dist/rendering/production-runtime/ProductionRendererTypes.d.ts +17 -6
- package/dist/rendering/production-runtime/ProductionRendererTypes.d.ts.map +1 -1
- package/dist/rendering/production-runtime/ProductionRendererTypes.js.map +1 -1
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.d.ts +3 -0
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.d.ts.map +1 -1
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.js +8 -1
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.js.map +1 -1
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.d.ts +4 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.d.ts.map +1 -1
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.js +15 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.js.map +1 -1
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.d.ts +11 -5
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -1
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.js +38 -47
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.js.map +1 -1
- package/dist/rendering/production-runtime/backendSelection.d.ts +26 -0
- package/dist/rendering/production-runtime/backendSelection.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backendSelection.js +46 -0
- package/dist/rendering/production-runtime/backendSelection.js.map +1 -0
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.d.ts +1 -1
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.js +8 -4
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.js.map +1 -1
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.d.ts +2 -19
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.js +2 -18
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.js +2 -7
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.js +2 -7
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.js +2 -7
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.js +2 -7
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.d.ts +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.js +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.js +2 -7
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.js +2 -7
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.js +2 -7
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.js +2 -7
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.js +2 -7
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.js.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.d.ts +2 -10
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.d.ts.map +1 -1
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.js +2 -7
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.js.map +1 -1
- package/dist/rendering/production-runtime/framegraph/FrameGraph.d.ts +4 -2
- package/dist/rendering/production-runtime/framegraph/FrameGraph.d.ts.map +1 -1
- package/dist/rendering/production-runtime/framegraph/FrameGraph.js +62 -4
- package/dist/rendering/production-runtime/framegraph/FrameGraph.js.map +1 -1
- package/dist/rendering/production-runtime/framegraph/NativeFrameGraphBindings.d.ts +32 -0
- package/dist/rendering/production-runtime/framegraph/NativeFrameGraphBindings.d.ts.map +1 -0
- package/dist/rendering/production-runtime/framegraph/NativeFrameGraphBindings.js +111 -0
- package/dist/rendering/production-runtime/framegraph/NativeFrameGraphBindings.js.map +1 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.d.ts +23 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/framegraph/RenderPass.js +87 -1
- package/dist/rendering/production-runtime/framegraph/RenderPass.js.map +1 -1
- package/dist/rendering/production-runtime/index.d.ts +8 -6
- package/dist/rendering/production-runtime/index.d.ts.map +1 -1
- package/dist/rendering/production-runtime/index.js +10 -3
- package/dist/rendering/production-runtime/index.js.map +1 -1
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.d.ts +12 -13
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.d.ts.map +1 -1
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.js +10 -4
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.js.map +1 -1
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts +9 -2
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts.map +1 -1
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.js +7 -1
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.js.map +1 -1
- package/dist/rendering/production-runtime/materials/MaterialCompiler.d.ts +10 -8
- package/dist/rendering/production-runtime/materials/MaterialCompiler.d.ts.map +1 -1
- package/dist/rendering/production-runtime/materials/MaterialCompiler.js +9 -4
- package/dist/rendering/production-runtime/materials/MaterialCompiler.js.map +1 -1
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.d.ts.map +1 -1
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.js +30 -1
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.js.map +1 -1
- package/dist/rendering/production-runtime/passes/DepthPrepass.d.ts +4 -12
- package/dist/rendering/production-runtime/passes/DepthPrepass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/DepthPrepass.js +3 -11
- package/dist/rendering/production-runtime/passes/DepthPrepass.js.map +1 -1
- package/dist/rendering/production-runtime/passes/FramegraphTopology.js +1 -1
- package/dist/rendering/production-runtime/passes/FramegraphTopology.js.map +1 -1
- package/dist/rendering/production-runtime/passes/OpaquePass.d.ts +3 -8
- package/dist/rendering/production-runtime/passes/OpaquePass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/OpaquePass.js +3 -1
- package/dist/rendering/production-runtime/passes/OpaquePass.js.map +1 -1
- package/dist/rendering/production-runtime/passes/ShadowPass.d.ts +3 -8
- package/dist/rendering/production-runtime/passes/ShadowPass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/ShadowPass.js +2 -0
- package/dist/rendering/production-runtime/passes/ShadowPass.js.map +1 -1
- package/dist/rendering/production-runtime/passes/SkyboxPass.d.ts +3 -7
- package/dist/rendering/production-runtime/passes/SkyboxPass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/SkyboxPass.js +2 -0
- package/dist/rendering/production-runtime/passes/SkyboxPass.js.map +1 -1
- package/dist/rendering/production-runtime/passes/ToneMappingPass.d.ts +7 -10
- package/dist/rendering/production-runtime/passes/ToneMappingPass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/ToneMappingPass.js +9 -0
- package/dist/rendering/production-runtime/passes/ToneMappingPass.js.map +1 -1
- package/dist/rendering/production-runtime/passes/TransparentPass.d.ts +4 -9
- package/dist/rendering/production-runtime/passes/TransparentPass.d.ts.map +1 -1
- package/dist/rendering/production-runtime/passes/TransparentPass.js +6 -1
- package/dist/rendering/production-runtime/passes/TransparentPass.js.map +1 -1
- package/dist/rendering/production-runtime/renderProofs.d.ts +54 -0
- package/dist/rendering/production-runtime/renderProofs.d.ts.map +1 -0
- package/dist/rendering/production-runtime/renderProofs.js +245 -0
- package/dist/rendering/production-runtime/renderProofs.js.map +1 -0
- package/dist/rendering/program/DFGLut.d.ts +23 -0
- package/dist/rendering/program/DFGLut.d.ts.map +1 -0
- package/dist/rendering/program/DFGLut.js +58 -0
- package/dist/rendering/program/DFGLut.js.map +1 -0
- package/dist/rendering/program/DFGLutData.d.ts +35 -0
- package/dist/rendering/program/DFGLutData.d.ts.map +1 -0
- package/dist/rendering/program/DFGLutData.js +52 -0
- package/dist/rendering/program/DFGLutData.js.map +1 -0
- package/dist/rendering/program/FeatureSelect.d.ts +35 -0
- package/dist/rendering/program/FeatureSelect.d.ts.map +1 -0
- package/dist/rendering/program/FeatureSelect.js +88 -0
- package/dist/rendering/program/FeatureSelect.js.map +1 -0
- package/dist/rendering/program/MaterialFeatures.d.ts +66 -0
- package/dist/rendering/program/MaterialFeatures.d.ts.map +1 -0
- package/dist/rendering/program/MaterialFeatures.js +242 -0
- package/dist/rendering/program/MaterialFeatures.js.map +1 -0
- package/dist/rendering/program/ProgramCache.d.ts +83 -0
- package/dist/rendering/program/ProgramCache.d.ts.map +1 -0
- package/dist/rendering/program/ProgramCache.js +194 -0
- package/dist/rendering/program/ProgramCache.js.map +1 -0
- package/dist/rendering/program/ProgramFeatures.d.ts +21 -0
- package/dist/rendering/program/ProgramFeatures.d.ts.map +1 -0
- package/dist/rendering/program/ProgramFeatures.js +95 -0
- package/dist/rendering/program/ProgramFeatures.js.map +1 -0
- package/dist/rendering/program/ProgramGenerator.d.ts +60 -0
- package/dist/rendering/program/ProgramGenerator.d.ts.map +1 -0
- package/dist/rendering/program/ProgramGenerator.js +760 -0
- package/dist/rendering/program/ProgramGenerator.js.map +1 -0
- package/dist/rendering/program/ProgramKey.d.ts +10 -0
- package/dist/rendering/program/ProgramKey.d.ts.map +1 -0
- package/dist/rendering/program/ProgramKey.js +13 -0
- package/dist/rendering/program/ProgramKey.js.map +1 -0
- package/dist/rendering/program/ProgramWarmup.d.ts +37 -0
- package/dist/rendering/program/ProgramWarmup.d.ts.map +1 -0
- package/dist/rendering/program/ProgramWarmup.js +68 -0
- package/dist/rendering/program/ProgramWarmup.js.map +1 -0
- package/dist/rendering/program/UniformLayout.d.ts +40 -0
- package/dist/rendering/program/UniformLayout.d.ts.map +1 -0
- package/dist/rendering/program/UniformLayout.js +105 -0
- package/dist/rendering/program/UniformLayout.js.map +1 -0
- package/dist/rendering/program/chunks/alpha.glsl.d.ts +7 -0
- package/dist/rendering/program/chunks/alpha.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/alpha.glsl.js +17 -0
- package/dist/rendering/program/chunks/alpha.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/brdf.glsl.d.ts +12 -0
- package/dist/rendering/program/chunks/brdf.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/brdf.glsl.js +144 -0
- package/dist/rendering/program/chunks/brdf.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/colorspace.glsl.d.ts +8 -0
- package/dist/rendering/program/chunks/colorspace.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/colorspace.glsl.js +16 -0
- package/dist/rendering/program/chunks/colorspace.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/common.glsl.d.ts +7 -0
- package/dist/rendering/program/chunks/common.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/common.glsl.js +25 -0
- package/dist/rendering/program/chunks/common.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/depth.glsl.d.ts +9 -0
- package/dist/rendering/program/chunks/depth.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/depth.glsl.js +18 -0
- package/dist/rendering/program/chunks/depth.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/drawId.wgsl.d.ts +9 -0
- package/dist/rendering/program/chunks/drawId.wgsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/drawId.wgsl.js +29 -0
- package/dist/rendering/program/chunks/drawId.wgsl.js.map +1 -0
- package/dist/rendering/program/chunks/fog_default.glsl.d.ts +8 -0
- package/dist/rendering/program/chunks/fog_default.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/fog_default.glsl.js +31 -0
- package/dist/rendering/program/chunks/fog_default.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/indirect_default.glsl.d.ts +29 -0
- package/dist/rendering/program/chunks/indirect_default.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/indirect_default.glsl.js +113 -0
- package/dist/rendering/program/chunks/indirect_default.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/instanceEmissive.wgsl.d.ts +10 -0
- package/dist/rendering/program/chunks/instanceEmissive.wgsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/instanceEmissive.wgsl.js +21 -0
- package/dist/rendering/program/chunks/instanceEmissive.wgsl.js.map +1 -0
- package/dist/rendering/program/chunks/instancing.glsl.d.ts +8 -0
- package/dist/rendering/program/chunks/instancing.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/instancing.glsl.js +25 -0
- package/dist/rendering/program/chunks/instancing.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/lights_legacy.glsl.d.ts +15 -0
- package/dist/rendering/program/chunks/lights_legacy.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/lights_legacy.glsl.js +95 -0
- package/dist/rendering/program/chunks/lights_legacy.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/manifest.d.ts +42 -0
- package/dist/rendering/program/chunks/manifest.d.ts.map +1 -0
- package/dist/rendering/program/chunks/manifest.js +48 -0
- package/dist/rendering/program/chunks/manifest.js.map +1 -0
- package/dist/rendering/program/chunks/normal.glsl.d.ts +8 -0
- package/dist/rendering/program/chunks/normal.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/normal.glsl.js +34 -0
- package/dist/rendering/program/chunks/normal.glsl.js.map +1 -0
- package/dist/rendering/program/chunks/shadow_forward.glsl.d.ts +23 -0
- package/dist/rendering/program/chunks/shadow_forward.glsl.d.ts.map +1 -0
- package/dist/rendering/program/chunks/shadow_forward.glsl.js +73 -0
- package/dist/rendering/program/chunks/shadow_forward.glsl.js.map +1 -0
- package/dist/rendering/quality/DeviceClasses.d.ts +31 -0
- package/dist/rendering/quality/DeviceClasses.d.ts.map +1 -0
- package/dist/rendering/quality/DeviceClasses.js +83 -0
- package/dist/rendering/quality/DeviceClasses.js.map +1 -0
- package/dist/rendering/quality/DeviceProbe.d.ts +42 -0
- package/dist/rendering/quality/DeviceProbe.d.ts.map +1 -0
- package/dist/rendering/quality/DeviceProbe.js +83 -0
- package/dist/rendering/quality/DeviceProbe.js.map +1 -0
- package/dist/rendering/quality/FrameStats.d.ts +62 -0
- package/dist/rendering/quality/FrameStats.d.ts.map +1 -0
- package/dist/rendering/quality/FrameStats.js +220 -0
- package/dist/rendering/quality/FrameStats.js.map +1 -0
- package/dist/rendering/quality/PostprocessGuard.d.ts +49 -0
- package/dist/rendering/quality/PostprocessGuard.d.ts.map +1 -0
- package/dist/rendering/quality/PostprocessGuard.js +92 -0
- package/dist/rendering/quality/PostprocessGuard.js.map +1 -0
- package/dist/rendering/quality/QualityController.d.ts +93 -0
- package/dist/rendering/quality/QualityController.d.ts.map +1 -0
- package/dist/rendering/quality/QualityController.js +248 -0
- package/dist/rendering/quality/QualityController.js.map +1 -0
- package/dist/rendering/quality/QualityGovernor.d.ts +78 -0
- package/dist/rendering/quality/QualityGovernor.d.ts.map +1 -0
- package/dist/rendering/quality/QualityGovernor.js +170 -0
- package/dist/rendering/quality/QualityGovernor.js.map +1 -0
- package/dist/rendering/quality/QualityTier.d.ts +17 -0
- package/dist/rendering/quality/QualityTier.d.ts.map +1 -0
- package/dist/rendering/quality/QualityTier.js +23 -0
- package/dist/rendering/quality/QualityTier.js.map +1 -0
- package/dist/rendering/quality/RenderScaleController.d.ts +35 -0
- package/dist/rendering/quality/RenderScaleController.d.ts.map +1 -0
- package/dist/rendering/quality/RenderScaleController.js +57 -0
- package/dist/rendering/quality/RenderScaleController.js.map +1 -0
- package/dist/rendering/quality/RetentionPolicy.d.ts +11 -0
- package/dist/rendering/quality/RetentionPolicy.d.ts.map +1 -0
- package/dist/rendering/quality/RetentionPolicy.js +12 -0
- package/dist/rendering/quality/RetentionPolicy.js.map +1 -0
- package/dist/rendering/quality/TierResolver.d.ts +52 -0
- package/dist/rendering/quality/TierResolver.d.ts.map +1 -0
- package/dist/rendering/quality/TierResolver.js +155 -0
- package/dist/rendering/quality/TierResolver.js.map +1 -0
- package/dist/rendering/quality/liveTier.d.ts +23 -0
- package/dist/rendering/quality/liveTier.d.ts.map +1 -0
- package/dist/rendering/quality/liveTier.js +16 -0
- package/dist/rendering/quality/liveTier.js.map +1 -0
- package/dist/rendering/reference/BloomPass.d.ts +10 -0
- package/dist/rendering/reference/BloomPass.d.ts.map +1 -0
- package/dist/rendering/reference/BloomPass.js +18 -0
- package/dist/rendering/reference/BloomPass.js.map +1 -0
- package/dist/rendering/reference/DepthHazePass.d.ts +12 -0
- package/dist/rendering/reference/DepthHazePass.d.ts.map +1 -0
- package/dist/rendering/reference/DepthHazePass.js +20 -0
- package/dist/rendering/reference/DepthHazePass.js.map +1 -0
- package/dist/rendering/reference/EffectComposer.d.ts +110 -0
- package/dist/rendering/reference/EffectComposer.d.ts.map +1 -0
- package/dist/rendering/reference/EffectComposer.js +247 -0
- package/dist/rendering/reference/EffectComposer.js.map +1 -0
- package/dist/rendering/reference/FilmGrainPass.d.ts +9 -0
- package/dist/rendering/reference/FilmGrainPass.d.ts.map +1 -0
- package/dist/rendering/reference/FilmGrainPass.js +17 -0
- package/dist/rendering/reference/FilmGrainPass.js.map +1 -0
- package/dist/rendering/reference/PostProcessPass.d.ts +511 -0
- package/dist/rendering/reference/PostProcessPass.d.ts.map +1 -0
- package/dist/rendering/reference/PostProcessPass.js +2020 -0
- package/dist/rendering/reference/PostProcessPass.js.map +1 -0
- package/dist/rendering/reference/SSAOPass.d.ts +6 -0
- package/dist/rendering/reference/SSAOPass.d.ts.map +1 -0
- package/dist/rendering/reference/SSAOPass.js +18 -0
- package/dist/rendering/reference/SSAOPass.js.map +1 -0
- package/dist/rendering/reference/VignettePass.d.ts +10 -0
- package/dist/rendering/reference/VignettePass.d.ts.map +1 -0
- package/dist/rendering/reference/VignettePass.js +17 -0
- package/dist/rendering/reference/VignettePass.js.map +1 -0
- package/dist/rendering/reference/index.d.ts +15 -0
- package/dist/rendering/reference/index.d.ts.map +1 -0
- package/dist/rendering/reference/index.js +15 -0
- package/dist/rendering/reference/index.js.map +1 -0
- package/dist/rendering/reflection-surfaces.d.ts +5 -0
- package/dist/rendering/reflection-surfaces.d.ts.map +1 -0
- package/dist/rendering/reflection-surfaces.js +3 -0
- package/dist/rendering/reflection-surfaces.js.map +1 -0
- package/dist/rendering/renderer/Background.d.ts +49 -0
- package/dist/rendering/renderer/Background.d.ts.map +1 -0
- package/dist/rendering/renderer/Background.js +259 -0
- package/dist/rendering/renderer/Background.js.map +1 -0
- package/dist/rendering/renderer/CullingBatching.d.ts +55 -0
- package/dist/rendering/renderer/CullingBatching.d.ts.map +1 -0
- package/dist/rendering/renderer/CullingBatching.js +362 -0
- package/dist/rendering/renderer/CullingBatching.js.map +1 -0
- package/dist/rendering/renderer/DeviceLifecycle.d.ts +29 -0
- package/dist/rendering/renderer/DeviceLifecycle.d.ts.map +1 -0
- package/dist/rendering/renderer/DeviceLifecycle.js +48 -0
- package/dist/rendering/renderer/DeviceLifecycle.js.map +1 -0
- package/dist/rendering/renderer/FrameGraph.d.ts +96 -0
- package/dist/rendering/renderer/FrameGraph.d.ts.map +1 -0
- package/dist/rendering/renderer/FrameGraph.js +301 -0
- package/dist/rendering/renderer/FrameGraph.js.map +1 -0
- package/dist/rendering/renderer/InterleavedTransparentPass.d.ts +31 -0
- package/dist/rendering/renderer/InterleavedTransparentPass.d.ts.map +1 -0
- package/dist/rendering/renderer/InterleavedTransparentPass.js +65 -0
- package/dist/rendering/renderer/InterleavedTransparentPass.js.map +1 -0
- package/dist/rendering/renderer/PixelRatio.d.ts +64 -0
- package/dist/rendering/renderer/PixelRatio.d.ts.map +1 -0
- package/dist/rendering/renderer/PixelRatio.js +81 -0
- package/dist/rendering/renderer/PixelRatio.js.map +1 -0
- package/dist/rendering/renderer/PostprocessExecution.d.ts +82 -0
- package/dist/rendering/renderer/PostprocessExecution.d.ts.map +1 -0
- package/dist/rendering/renderer/PostprocessExecution.js +741 -0
- package/dist/rendering/renderer/PostprocessExecution.js.map +1 -0
- package/dist/rendering/renderer/Prd06ShaderWarmup.d.ts +32 -0
- package/dist/rendering/renderer/Prd06ShaderWarmup.d.ts.map +1 -0
- package/dist/rendering/renderer/Prd06ShaderWarmup.js +45 -0
- package/dist/rendering/renderer/Prd06ShaderWarmup.js.map +1 -0
- package/dist/rendering/renderer/RenderShared.d.ts +11 -0
- package/dist/rendering/renderer/RenderShared.d.ts.map +1 -0
- package/dist/rendering/renderer/RenderShared.js +47 -0
- package/dist/rendering/renderer/RenderShared.js.map +1 -0
- package/dist/rendering/renderer/RendererFactory.d.ts +3 -0
- package/dist/rendering/renderer/RendererFactory.d.ts.map +1 -0
- package/dist/rendering/renderer/RendererFactory.js +19 -0
- package/dist/rendering/renderer/RendererFactory.js.map +1 -0
- package/dist/rendering/renderer/RendererHost.d.ts +25 -0
- package/dist/rendering/renderer/RendererHost.d.ts.map +1 -0
- package/dist/rendering/renderer/RendererHost.js +4 -0
- package/dist/rendering/renderer/RendererHost.js.map +1 -0
- package/dist/rendering/renderer/SceneDepthCopyPass.d.ts +50 -0
- package/dist/rendering/renderer/SceneDepthCopyPass.d.ts.map +1 -0
- package/dist/rendering/renderer/SceneDepthCopyPass.js +124 -0
- package/dist/rendering/renderer/SceneDepthCopyPass.js.map +1 -0
- package/dist/rendering/renderer/ShadowOrchestration.d.ts +32 -0
- package/dist/rendering/renderer/ShadowOrchestration.d.ts.map +1 -0
- package/dist/rendering/renderer/ShadowOrchestration.js +491 -0
- package/dist/rendering/renderer/ShadowOrchestration.js.map +1 -0
- package/dist/rendering/renderer/SkinnedBounds.d.ts +6 -0
- package/dist/rendering/renderer/SkinnedBounds.d.ts.map +1 -0
- package/dist/rendering/renderer/SkinnedBounds.js +74 -0
- package/dist/rendering/renderer/SkinnedBounds.js.map +1 -0
- package/dist/rendering/renderer/coreOutputPostRoute.d.ts +40 -0
- package/dist/rendering/renderer/coreOutputPostRoute.d.ts.map +1 -0
- package/dist/rendering/renderer/coreOutputPostRoute.js +46 -0
- package/dist/rendering/renderer/coreOutputPostRoute.js.map +1 -0
- package/dist/rendering/renderer/postSkipped.d.ts +12 -0
- package/dist/rendering/renderer/postSkipped.d.ts.map +1 -0
- package/dist/rendering/renderer/postSkipped.js +54 -0
- package/dist/rendering/renderer/postSkipped.js.map +1 -0
- package/dist/rendering/renderer/qrSubFlags.d.ts +45 -0
- package/dist/rendering/renderer/qrSubFlags.d.ts.map +1 -0
- package/dist/rendering/renderer/qrSubFlags.js +130 -0
- package/dist/rendering/renderer/qrSubFlags.js.map +1 -0
- package/dist/rendering/resources/InstanceBuffer.d.ts +34 -0
- package/dist/rendering/resources/InstanceBuffer.d.ts.map +1 -0
- package/dist/rendering/resources/InstanceBuffer.js +96 -0
- package/dist/rendering/resources/InstanceBuffer.js.map +1 -0
- package/dist/rendering/resources/MorphTargetTexture.d.ts +53 -0
- package/dist/rendering/resources/MorphTargetTexture.d.ts.map +1 -0
- package/dist/rendering/resources/MorphTargetTexture.js +135 -0
- package/dist/rendering/resources/MorphTargetTexture.js.map +1 -0
- package/dist/rendering/resources/RenderTargetPool.d.ts +47 -0
- package/dist/rendering/resources/RenderTargetPool.d.ts.map +1 -0
- package/dist/rendering/resources/RenderTargetPool.js +113 -0
- package/dist/rendering/resources/RenderTargetPool.js.map +1 -0
- package/dist/rendering/resources/ResourceRegistry.d.ts +48 -0
- package/dist/rendering/resources/ResourceRegistry.d.ts.map +1 -0
- package/dist/rendering/resources/ResourceRegistry.js +95 -0
- package/dist/rendering/resources/ResourceRegistry.js.map +1 -0
- package/dist/rendering/resources/UniformBlock.d.ts +90 -0
- package/dist/rendering/resources/UniformBlock.d.ts.map +1 -0
- package/dist/rendering/resources/UniformBlock.js +184 -0
- package/dist/rendering/resources/UniformBlock.js.map +1 -0
- package/dist/rendering/shaders/camera-fade.glsl.d.ts +26 -0
- package/dist/rendering/shaders/camera-fade.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/camera-fade.glsl.js +109 -0
- package/dist/rendering/shaders/camera-fade.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/contact_shadow.glsl.d.ts +12 -0
- package/dist/rendering/shaders/chunks/contact_shadow.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/contact_shadow.glsl.js +53 -0
- package/dist/rendering/shaders/chunks/contact_shadow.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_ibl.glsl.d.ts +29 -0
- package/dist/rendering/shaders/chunks/lighting_ibl.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_ibl.glsl.js +122 -0
- package/dist/rendering/shaders/chunks/lighting_ibl.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_mirrors.d.ts +18 -0
- package/dist/rendering/shaders/chunks/lighting_mirrors.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_mirrors.js +35 -0
- package/dist/rendering/shaders/chunks/lighting_mirrors.js.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_punctual.glsl.d.ts +17 -0
- package/dist/rendering/shaders/chunks/lighting_punctual.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/lighting_punctual.glsl.js +197 -0
- package/dist/rendering/shaders/chunks/lighting_punctual.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/sh9.glsl.d.ts +9 -0
- package/dist/rendering/shaders/chunks/sh9.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/sh9.glsl.js +41 -0
- package/dist/rendering/shaders/chunks/sh9.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/shadow_caster.glsl.d.ts +10 -0
- package/dist/rendering/shaders/chunks/shadow_caster.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/shadow_caster.glsl.js +32 -0
- package/dist/rendering/shaders/chunks/shadow_caster.glsl.js.map +1 -0
- package/dist/rendering/shaders/chunks/shadow_receive.glsl.d.ts +13 -0
- package/dist/rendering/shaders/chunks/shadow_receive.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/chunks/shadow_receive.glsl.js +136 -0
- package/dist/rendering/shaders/chunks/shadow_receive.glsl.js.map +1 -0
- package/dist/rendering/shaders/debug-view.glsl.d.ts +18 -0
- package/dist/rendering/shaders/debug-view.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/debug-view.glsl.js +153 -0
- package/dist/rendering/shaders/debug-view.glsl.js.map +1 -0
- package/dist/rendering/shaders/deform/deform.glsl.d.ts +17 -0
- package/dist/rendering/shaders/deform/deform.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/deform.glsl.js +99 -0
- package/dist/rendering/shaders/deform/deform.glsl.js.map +1 -0
- package/dist/rendering/shaders/deform/deform.wgsl.d.ts +15 -0
- package/dist/rendering/shaders/deform/deform.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/deform.wgsl.js +89 -0
- package/dist/rendering/shaders/deform/deform.wgsl.js.map +1 -0
- package/dist/rendering/shaders/deform/depthFeature.d.ts +22 -0
- package/dist/rendering/shaders/deform/depthFeature.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/depthFeature.js +44 -0
- package/dist/rendering/shaders/deform/depthFeature.js.map +1 -0
- package/dist/rendering/shaders/deform/forwardFeature.d.ts +114 -0
- package/dist/rendering/shaders/deform/forwardFeature.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/forwardFeature.js +300 -0
- package/dist/rendering/shaders/deform/forwardFeature.js.map +1 -0
- package/dist/rendering/shaders/deform/morph.glsl.d.ts +14 -0
- package/dist/rendering/shaders/deform/morph.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/morph.glsl.js +45 -0
- package/dist/rendering/shaders/deform/morph.glsl.js.map +1 -0
- package/dist/rendering/shaders/deform/morph.wgsl.d.ts +21 -0
- package/dist/rendering/shaders/deform/morph.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/morph.wgsl.js +73 -0
- package/dist/rendering/shaders/deform/morph.wgsl.js.map +1 -0
- package/dist/rendering/shaders/deform/skinning.glsl.d.ts +8 -0
- package/dist/rendering/shaders/deform/skinning.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/skinning.glsl.js +37 -0
- package/dist/rendering/shaders/deform/skinning.glsl.js.map +1 -0
- package/dist/rendering/shaders/deform/skinning.wgsl.d.ts +26 -0
- package/dist/rendering/shaders/deform/skinning.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/skinning.wgsl.js +58 -0
- package/dist/rendering/shaders/deform/skinning.wgsl.js.map +1 -0
- package/dist/rendering/shaders/deform/twins.d.ts +8 -0
- package/dist/rendering/shaders/deform/twins.d.ts.map +1 -0
- package/dist/rendering/shaders/deform/twins.js +20 -0
- package/dist/rendering/shaders/deform/twins.js.map +1 -0
- package/dist/rendering/shaders/lod-dither.glsl.d.ts +12 -0
- package/dist/rendering/shaders/lod-dither.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/lod-dither.glsl.js +101 -0
- package/dist/rendering/shaders/lod-dither.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/alpha_a2c.glsl.d.ts +19 -0
- package/dist/rendering/shaders/physical/alpha_a2c.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/alpha_a2c.glsl.js +29 -0
- package/dist/rendering/shaders/physical/alpha_a2c.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/anisotropy.glsl.d.ts +23 -0
- package/dist/rendering/shaders/physical/anisotropy.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/anisotropy.glsl.js +116 -0
- package/dist/rendering/shaders/physical/anisotropy.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/bsdf_lobes_common.glsl.d.ts +25 -0
- package/dist/rendering/shaders/physical/bsdf_lobes_common.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/bsdf_lobes_common.glsl.js +95 -0
- package/dist/rendering/shaders/physical/bsdf_lobes_common.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/clearcoat.glsl.d.ts +23 -0
- package/dist/rendering/shaders/physical/clearcoat.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/clearcoat.glsl.js +70 -0
- package/dist/rendering/shaders/physical/clearcoat.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/debug_view.glsl.d.ts +19 -0
- package/dist/rendering/shaders/physical/debug_view.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/debug_view.glsl.js +76 -0
- package/dist/rendering/shaders/physical/debug_view.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/dispersion.glsl.d.ts +18 -0
- package/dist/rendering/shaders/physical/dispersion.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/dispersion.glsl.js +67 -0
- package/dist/rendering/shaders/physical/dispersion.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/emissive_strength.glsl.d.ts +18 -0
- package/dist/rendering/shaders/physical/emissive_strength.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/emissive_strength.glsl.js +20 -0
- package/dist/rendering/shaders/physical/emissive_strength.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/index.d.ts +27 -0
- package/dist/rendering/shaders/physical/index.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/index.js +69 -0
- package/dist/rendering/shaders/physical/index.js.map +1 -0
- package/dist/rendering/shaders/physical/iridescence.glsl.d.ts +25 -0
- package/dist/rendering/shaders/physical/iridescence.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/iridescence.glsl.js +186 -0
- package/dist/rendering/shaders/physical/iridescence.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/lobe_calls.glsl.d.ts +83 -0
- package/dist/rendering/shaders/physical/lobe_calls.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/lobe_calls.glsl.js +397 -0
- package/dist/rendering/shaders/physical/lobe_calls.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/sheen.glsl.d.ts +24 -0
- package/dist/rendering/shaders/physical/sheen.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/sheen.glsl.js +108 -0
- package/dist/rendering/shaders/physical/sheen.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/specular_ior.glsl.d.ts +20 -0
- package/dist/rendering/shaders/physical/specular_ior.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/specular_ior.glsl.js +64 -0
- package/dist/rendering/shaders/physical/specular_ior.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/tangent_frame.glsl.d.ts +27 -0
- package/dist/rendering/shaders/physical/tangent_frame.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/tangent_frame.glsl.js +71 -0
- package/dist/rendering/shaders/physical/tangent_frame.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/transmission.glsl.d.ts +25 -0
- package/dist/rendering/shaders/physical/transmission.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/transmission.glsl.js +204 -0
- package/dist/rendering/shaders/physical/transmission.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/transmission_copy.glsl.d.ts +15 -0
- package/dist/rendering/shaders/physical/transmission_copy.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/transmission_copy.glsl.js +33 -0
- package/dist/rendering/shaders/physical/transmission_copy.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/unlit.glsl.d.ts +17 -0
- package/dist/rendering/shaders/physical/unlit.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/unlit.glsl.js +19 -0
- package/dist/rendering/shaders/physical/unlit.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/uv_transform.glsl.d.ts +18 -0
- package/dist/rendering/shaders/physical/uv_transform.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/uv_transform.glsl.js +30 -0
- package/dist/rendering/shaders/physical/uv_transform.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical/volume.glsl.d.ts +19 -0
- package/dist/rendering/shaders/physical/volume.glsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical/volume.glsl.js +47 -0
- package/dist/rendering/shaders/physical/volume.glsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/alpha_a2c.wgsl.d.ts +8 -0
- package/dist/rendering/shaders/physical-wgsl/alpha_a2c.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/alpha_a2c.wgsl.js +26 -0
- package/dist/rendering/shaders/physical-wgsl/alpha_a2c.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/anisotropy.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/anisotropy.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/anisotropy.wgsl.js +97 -0
- package/dist/rendering/shaders/physical-wgsl/anisotropy.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/bsdf_lobes_common.wgsl.d.ts +11 -0
- package/dist/rendering/shaders/physical-wgsl/bsdf_lobes_common.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/bsdf_lobes_common.wgsl.js +76 -0
- package/dist/rendering/shaders/physical-wgsl/bsdf_lobes_common.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/clearcoat.wgsl.d.ts +9 -0
- package/dist/rendering/shaders/physical-wgsl/clearcoat.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/clearcoat.wgsl.js +56 -0
- package/dist/rendering/shaders/physical-wgsl/clearcoat.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/debug_view.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/debug_view.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/debug_view.wgsl.js +71 -0
- package/dist/rendering/shaders/physical-wgsl/debug_view.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/dispersion.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/dispersion.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/dispersion.wgsl.js +51 -0
- package/dist/rendering/shaders/physical-wgsl/dispersion.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/emissive_strength.wgsl.d.ts +9 -0
- package/dist/rendering/shaders/physical-wgsl/emissive_strength.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/emissive_strength.wgsl.js +15 -0
- package/dist/rendering/shaders/physical-wgsl/emissive_strength.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/index.d.ts +35 -0
- package/dist/rendering/shaders/physical-wgsl/index.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/index.js +51 -0
- package/dist/rendering/shaders/physical-wgsl/index.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/iridescence.wgsl.d.ts +9 -0
- package/dist/rendering/shaders/physical-wgsl/iridescence.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/iridescence.wgsl.js +162 -0
- package/dist/rendering/shaders/physical-wgsl/iridescence.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/sheen.wgsl.d.ts +9 -0
- package/dist/rendering/shaders/physical-wgsl/sheen.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/sheen.wgsl.js +85 -0
- package/dist/rendering/shaders/physical-wgsl/sheen.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/specular_ior.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/specular_ior.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/specular_ior.wgsl.js +47 -0
- package/dist/rendering/shaders/physical-wgsl/specular_ior.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/tangent_frame.wgsl.d.ts +11 -0
- package/dist/rendering/shaders/physical-wgsl/tangent_frame.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/tangent_frame.wgsl.js +57 -0
- package/dist/rendering/shaders/physical-wgsl/tangent_frame.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/transmission.wgsl.d.ts +14 -0
- package/dist/rendering/shaders/physical-wgsl/transmission.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/transmission.wgsl.js +159 -0
- package/dist/rendering/shaders/physical-wgsl/transmission.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/unlit.wgsl.d.ts +8 -0
- package/dist/rendering/shaders/physical-wgsl/unlit.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/unlit.wgsl.js +13 -0
- package/dist/rendering/shaders/physical-wgsl/unlit.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/uv_transform.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/uv_transform.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/uv_transform.wgsl.js +24 -0
- package/dist/rendering/shaders/physical-wgsl/uv_transform.wgsl.js.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/volume.wgsl.d.ts +10 -0
- package/dist/rendering/shaders/physical-wgsl/volume.wgsl.d.ts.map +1 -0
- package/dist/rendering/shaders/physical-wgsl/volume.wgsl.js +35 -0
- package/dist/rendering/shaders/physical-wgsl/volume.wgsl.js.map +1 -0
- package/dist/rendering/shadows/DirectionalCascadeFitter.d.ts +97 -0
- package/dist/rendering/shadows/DirectionalCascadeFitter.d.ts.map +1 -0
- package/dist/rendering/shadows/DirectionalCascadeFitter.js +372 -0
- package/dist/rendering/shadows/DirectionalCascadeFitter.js.map +1 -0
- package/dist/rendering/shadows/Prd02DepthShaderLibrary.d.ts +77 -0
- package/dist/rendering/shadows/Prd02DepthShaderLibrary.d.ts.map +1 -0
- package/dist/rendering/shadows/Prd02DepthShaderLibrary.js +381 -0
- package/dist/rendering/shadows/Prd02DepthShaderLibrary.js.map +1 -0
- package/dist/rendering/shadows/Prd02ReceiveShadowContributor.d.ts +20 -0
- package/dist/rendering/shadows/Prd02ReceiveShadowContributor.d.ts.map +1 -0
- package/dist/rendering/shadows/Prd02ReceiveShadowContributor.js +20 -0
- package/dist/rendering/shadows/Prd02ReceiveShadowContributor.js.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowBridge.d.ts +111 -0
- package/dist/rendering/shadows/Prd02ShadowBridge.d.ts.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowBridge.js +267 -0
- package/dist/rendering/shadows/Prd02ShadowBridge.js.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowFilter.d.ts +29 -0
- package/dist/rendering/shadows/Prd02ShadowFilter.d.ts.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowFilter.js +35 -0
- package/dist/rendering/shadows/Prd02ShadowFilter.js.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowsContributor.d.ts +44 -0
- package/dist/rendering/shadows/Prd02ShadowsContributor.d.ts.map +1 -0
- package/dist/rendering/shadows/Prd02ShadowsContributor.js +197 -0
- package/dist/rendering/shadows/Prd02ShadowsContributor.js.map +1 -0
- package/dist/rendering/shadows/ShadowAtlas.d.ts +59 -0
- package/dist/rendering/shadows/ShadowAtlas.d.ts.map +1 -0
- package/dist/rendering/shadows/ShadowAtlas.js +137 -0
- package/dist/rendering/shadows/ShadowAtlas.js.map +1 -0
- package/dist/rendering/shadows/ShadowDebugViews.d.ts +5 -0
- package/dist/rendering/shadows/ShadowDebugViews.d.ts.map +1 -1
- package/dist/rendering/shadows/ShadowDebugViews.js +15 -10
- package/dist/rendering/shadows/ShadowDebugViews.js.map +1 -1
- package/dist/rendering/shadows/ShadowFrameBinding.d.ts +18 -0
- package/dist/rendering/shadows/ShadowFrameBinding.d.ts.map +1 -0
- package/dist/rendering/shadows/ShadowFrameBinding.js +52 -0
- package/dist/rendering/shadows/ShadowFrameBinding.js.map +1 -0
- package/dist/rendering/shadows/ShadowSystem.d.ts +125 -0
- package/dist/rendering/shadows/ShadowSystem.d.ts.map +1 -0
- package/dist/rendering/shadows/ShadowSystem.js +293 -0
- package/dist/rendering/shadows/ShadowSystem.js.map +1 -0
- package/dist/rendering/textures/TextureBudget.d.ts +42 -0
- package/dist/rendering/textures/TextureBudget.d.ts.map +1 -0
- package/dist/rendering/textures/TextureBudget.js +180 -0
- package/dist/rendering/textures/TextureBudget.js.map +1 -0
- package/dist/rendering/vfx/BeamPass.d.ts +42 -0
- package/dist/rendering/vfx/BeamPass.d.ts.map +1 -0
- package/dist/rendering/vfx/BeamPass.js +249 -0
- package/dist/rendering/vfx/BeamPass.js.map +1 -0
- package/dist/rendering/vfx/BlendFallback.d.ts +19 -0
- package/dist/rendering/vfx/BlendFallback.d.ts.map +1 -0
- package/dist/rendering/vfx/BlendFallback.js +73 -0
- package/dist/rendering/vfx/BlendFallback.js.map +1 -0
- package/dist/rendering/vfx/DecalBatch.d.ts +120 -0
- package/dist/rendering/vfx/DecalBatch.d.ts.map +1 -0
- package/dist/rendering/vfx/DecalBatch.js +234 -0
- package/dist/rendering/vfx/DecalBatch.js.map +1 -0
- package/dist/rendering/vfx/DecalPass.d.ts +63 -0
- package/dist/rendering/vfx/DecalPass.d.ts.map +1 -0
- package/dist/rendering/vfx/DecalPass.js +159 -0
- package/dist/rendering/vfx/DecalPass.js.map +1 -0
- package/dist/rendering/vfx/LowResParticles.d.ts +31 -0
- package/dist/rendering/vfx/LowResParticles.d.ts.map +1 -0
- package/dist/rendering/vfx/LowResParticles.js +151 -0
- package/dist/rendering/vfx/LowResParticles.js.map +1 -0
- package/dist/rendering/vfx/MeshParticleBatch.d.ts +49 -0
- package/dist/rendering/vfx/MeshParticleBatch.d.ts.map +1 -0
- package/dist/rendering/vfx/MeshParticleBatch.js +184 -0
- package/dist/rendering/vfx/MeshParticleBatch.js.map +1 -0
- package/dist/rendering/vfx/MeshParticlePass.d.ts +28 -0
- package/dist/rendering/vfx/MeshParticlePass.d.ts.map +1 -0
- package/dist/rendering/vfx/MeshParticlePass.js +150 -0
- package/dist/rendering/vfx/MeshParticlePass.js.map +1 -0
- package/dist/rendering/vfx/ParticleBatchPass.d.ts +61 -0
- package/dist/rendering/vfx/ParticleBatchPass.d.ts.map +1 -0
- package/dist/rendering/vfx/ParticleBatchPass.js +320 -0
- package/dist/rendering/vfx/ParticleBatchPass.js.map +1 -0
- package/dist/rendering/vfx/ParticleGpuSim.d.ts +85 -0
- package/dist/rendering/vfx/ParticleGpuSim.d.ts.map +1 -0
- package/dist/rendering/vfx/ParticleGpuSim.js +301 -0
- package/dist/rendering/vfx/ParticleGpuSim.js.map +1 -0
- package/dist/rendering/vfx/ParticleInstanceLayout.d.ts +38 -0
- package/dist/rendering/vfx/ParticleInstanceLayout.d.ts.map +1 -0
- package/dist/rendering/vfx/ParticleInstanceLayout.js +105 -0
- package/dist/rendering/vfx/ParticleInstanceLayout.js.map +1 -0
- package/dist/rendering/vfx/ParticleSort.d.ts +21 -0
- package/dist/rendering/vfx/ParticleSort.d.ts.map +1 -0
- package/dist/rendering/vfx/ParticleSort.js +80 -0
- package/dist/rendering/vfx/ParticleSort.js.map +1 -0
- package/dist/rendering/vfx/ProceduralVolumeEmitter.d.ts +90 -0
- package/dist/rendering/vfx/ProceduralVolumeEmitter.d.ts.map +1 -0
- package/dist/rendering/vfx/ProceduralVolumeEmitter.js +155 -0
- package/dist/rendering/vfx/ProceduralVolumeEmitter.js.map +1 -0
- package/dist/rendering/vfx/RibbonBatch.d.ts +71 -0
- package/dist/rendering/vfx/RibbonBatch.d.ts.map +1 -0
- package/dist/rendering/vfx/RibbonBatch.js +234 -0
- package/dist/rendering/vfx/RibbonBatch.js.map +1 -0
- package/dist/rendering/vfx/RibbonPass.d.ts +21 -0
- package/dist/rendering/vfx/RibbonPass.d.ts.map +1 -0
- package/dist/rendering/vfx/RibbonPass.js +108 -0
- package/dist/rendering/vfx/RibbonPass.js.map +1 -0
- package/dist/rendering/vfx/SceneDepthAdapter.d.ts +28 -0
- package/dist/rendering/vfx/SceneDepthAdapter.d.ts.map +1 -0
- package/dist/rendering/vfx/SceneDepthAdapter.js +70 -0
- package/dist/rendering/vfx/SceneDepthAdapter.js.map +1 -0
- package/dist/rendering/vfx/VfxAtlas.d.ts +68 -0
- package/dist/rendering/vfx/VfxAtlas.d.ts.map +1 -0
- package/dist/rendering/vfx/VfxAtlas.js +106 -0
- package/dist/rendering/vfx/VfxAtlas.js.map +1 -0
- package/dist/rendering/vfx/contributors.d.ts +73 -0
- package/dist/rendering/vfx/contributors.d.ts.map +1 -0
- package/dist/rendering/vfx/contributors.js +615 -0
- package/dist/rendering/vfx/contributors.js.map +1 -0
- package/dist/rendering/vfx/decalLighting.d.ts +8 -0
- package/dist/rendering/vfx/decalLighting.d.ts.map +1 -0
- package/dist/rendering/vfx/decalLighting.js +53 -0
- package/dist/rendering/vfx/decalLighting.js.map +1 -0
- package/dist/rendering/vfx/depthSampler.d.ts +3 -0
- package/dist/rendering/vfx/depthSampler.d.ts.map +1 -0
- package/dist/rendering/vfx/depthSampler.js +10 -0
- package/dist/rendering/vfx/depthSampler.js.map +1 -0
- package/dist/rendering/vfx/prd07FeaturePars.d.ts +12 -0
- package/dist/rendering/vfx/prd07FeaturePars.d.ts.map +1 -0
- package/dist/rendering/vfx/prd07FeaturePars.js +54 -0
- package/dist/rendering/vfx/prd07FeaturePars.js.map +1 -0
- package/dist/rendering/vfx/shaders/beam.glsl.d.ts +11 -0
- package/dist/rendering/vfx/shaders/beam.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/beam.glsl.js +89 -0
- package/dist/rendering/vfx/shaders/beam.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/decal.glsl.d.ts +14 -0
- package/dist/rendering/vfx/shaders/decal.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/decal.glsl.js +157 -0
- package/dist/rendering/vfx/shaders/decal.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/gpu-sim.glsl.d.ts +5 -0
- package/dist/rendering/vfx/shaders/gpu-sim.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/gpu-sim.glsl.js +177 -0
- package/dist/rendering/vfx/shaders/gpu-sim.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/lowresComposite.glsl.d.ts +9 -0
- package/dist/rendering/vfx/shaders/lowresComposite.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/lowresComposite.glsl.js +64 -0
- package/dist/rendering/vfx/shaders/lowresComposite.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/mesh-particle.glsl.d.ts +4 -0
- package/dist/rendering/vfx/shaders/mesh-particle.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/mesh-particle.glsl.js +55 -0
- package/dist/rendering/vfx/shaders/mesh-particle.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/particle.glsl.d.ts +24 -0
- package/dist/rendering/vfx/shaders/particle.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/particle.glsl.js +215 -0
- package/dist/rendering/vfx/shaders/particle.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/ribbon.glsl.d.ts +9 -0
- package/dist/rendering/vfx/shaders/ribbon.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/ribbon.glsl.js +60 -0
- package/dist/rendering/vfx/shaders/ribbon.glsl.js.map +1 -0
- package/dist/rendering/vfx/shaders/volume.glsl.d.ts +5 -0
- package/dist/rendering/vfx/shaders/volume.glsl.d.ts.map +1 -0
- package/dist/rendering/vfx/shaders/volume.glsl.js +52 -0
- package/dist/rendering/vfx/shaders/volume.glsl.js.map +1 -0
- package/dist/rendering/webgl2/ContextLifecycle.d.ts +43 -0
- package/dist/rendering/webgl2/ContextLifecycle.d.ts.map +1 -0
- package/dist/rendering/webgl2/ContextLifecycle.js +189 -0
- package/dist/rendering/webgl2/ContextLifecycle.js.map +1 -0
- package/dist/rendering/webgl2/Counters.d.ts +58 -0
- package/dist/rendering/webgl2/Counters.d.ts.map +1 -0
- package/dist/rendering/webgl2/Counters.js +207 -0
- package/dist/rendering/webgl2/Counters.js.map +1 -0
- package/dist/rendering/webgl2/DeviceHost.d.ts +41 -0
- package/dist/rendering/webgl2/DeviceHost.d.ts.map +1 -0
- package/dist/rendering/webgl2/DeviceHost.js +3 -0
- package/dist/rendering/webgl2/DeviceHost.js.map +1 -0
- package/dist/rendering/webgl2/LegacyPost.d.ts +279 -0
- package/dist/rendering/webgl2/LegacyPost.d.ts.map +1 -0
- package/dist/rendering/webgl2/LegacyPost.js +2477 -0
- package/dist/rendering/webgl2/LegacyPost.js.map +1 -0
- package/dist/rendering/webgl2/MultiDraw.d.ts +96 -0
- package/dist/rendering/webgl2/MultiDraw.d.ts.map +1 -0
- package/dist/rendering/webgl2/MultiDraw.js +716 -0
- package/dist/rendering/webgl2/MultiDraw.js.map +1 -0
- package/dist/rendering/webgl2/Probe.d.ts +27 -0
- package/dist/rendering/webgl2/Probe.d.ts.map +1 -0
- package/dist/rendering/webgl2/Probe.js +303 -0
- package/dist/rendering/webgl2/Probe.js.map +1 -0
- package/dist/rendering/webgl2/Samplers.d.ts +20 -0
- package/dist/rendering/webgl2/Samplers.d.ts.map +1 -0
- package/dist/rendering/webgl2/Samplers.js +179 -0
- package/dist/rendering/webgl2/Samplers.js.map +1 -0
- package/dist/rendering/webgl2/TextureFormats.d.ts +48 -0
- package/dist/rendering/webgl2/TextureFormats.d.ts.map +1 -0
- package/dist/rendering/webgl2/TextureFormats.js +185 -0
- package/dist/rendering/webgl2/TextureFormats.js.map +1 -0
- package/dist/rendering/webgl2/TextureUpload.d.ts +38 -0
- package/dist/rendering/webgl2/TextureUpload.d.ts.map +1 -0
- package/dist/rendering/webgl2/TextureUpload.js +346 -0
- package/dist/rendering/webgl2/TextureUpload.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUBuffer.d.ts +1 -0
- package/dist/rendering/webgpu/WebGPUBuffer.d.ts.map +1 -1
- package/dist/rendering/webgpu/WebGPUCompute.d.ts +1 -0
- package/dist/rendering/webgpu/WebGPUCompute.d.ts.map +1 -1
- package/dist/rendering/webgpu/WebGPUCompute.js +1 -0
- package/dist/rendering/webgpu/WebGPUCompute.js.map +1 -1
- package/dist/rendering/webgpu/WebGPUPipelineCache.d.ts +4 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.d.ts.map +1 -1
- package/dist/rendering/webgpu/WebGPUPipelineCache.js +4 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.js.map +1 -1
- package/dist/rendering/webgpu/WebGPUPostShaders.d.ts +2 -3
- package/dist/rendering/webgpu/WebGPUPostShaders.d.ts.map +1 -1
- package/dist/rendering/webgpu/WebGPUPostShaders.js +35 -5
- package/dist/rendering/webgpu/WebGPUPostShaders.js.map +1 -1
- package/dist/rendering/webgpu/WebGPUTemporal.d.ts +17 -0
- package/dist/rendering/webgpu/WebGPUTemporal.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUTemporal.js +64 -0
- package/dist/rendering/webgpu/WebGPUTemporal.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUTexture.d.ts +1 -0
- package/dist/rendering/webgpu/WebGPUTexture.d.ts.map +1 -1
- package/dist/rendering/webgpu/WebGPUTexture.js.map +1 -1
- package/dist/rendering/webgpu.d.ts +6 -0
- package/dist/rendering/webgpu.d.ts.map +1 -1
- package/dist/rendering/webgpu.js +4 -0
- package/dist/rendering/webgpu.js.map +1 -1
- package/dist/rendering/world/chunks.d.ts +15 -0
- package/dist/rendering/world/chunks.d.ts.map +1 -0
- package/dist/rendering/world/chunks.js +56 -0
- package/dist/rendering/world/chunks.js.map +1 -0
- package/dist/rendering/world/index.d.ts +38 -0
- package/dist/rendering/world/index.d.ts.map +1 -0
- package/dist/rendering/world/index.js +39 -0
- package/dist/rendering/world/index.js.map +1 -0
- package/dist/rendering/world/shared/shaders/worldLightFallback.d.ts +12 -0
- package/dist/rendering/world/shared/shaders/worldLightFallback.d.ts.map +1 -0
- package/dist/rendering/world/shared/shaders/worldLightFallback.js +82 -0
- package/dist/rendering/world/shared/shaders/worldLightFallback.js.map +1 -0
- package/dist/rendering/world/space/PlanetMaterial.d.ts +24 -0
- package/dist/rendering/world/space/PlanetMaterial.d.ts.map +1 -0
- package/dist/rendering/world/space/PlanetMaterial.js +82 -0
- package/dist/rendering/world/space/PlanetMaterial.js.map +1 -0
- package/dist/rendering/world/space/SpaceSkyBake.d.ts +46 -0
- package/dist/rendering/world/space/SpaceSkyBake.d.ts.map +1 -0
- package/dist/rendering/world/space/SpaceSkyBake.js +145 -0
- package/dist/rendering/world/space/SpaceSkyBake.js.map +1 -0
- package/dist/rendering/world/space/shaders/planet.d.ts +8 -0
- package/dist/rendering/world/space/shaders/planet.d.ts.map +1 -0
- package/dist/rendering/world/space/shaders/planet.js +55 -0
- package/dist/rendering/world/space/shaders/planet.js.map +1 -0
- package/dist/rendering/world/space/shaders/spaceBake.d.ts +9 -0
- package/dist/rendering/world/space/shaders/spaceBake.d.ts.map +1 -0
- package/dist/rendering/world/space/shaders/spaceBake.js +102 -0
- package/dist/rendering/world/space/shaders/spaceBake.js.map +1 -0
- package/dist/rendering/world/terrain/SplatBake.d.ts +76 -0
- package/dist/rendering/world/terrain/SplatBake.d.ts.map +1 -0
- package/dist/rendering/world/terrain/SplatBake.js +308 -0
- package/dist/rendering/world/terrain/SplatBake.js.map +1 -0
- package/dist/rendering/world/terrain/TerrainCdlod.d.ts +67 -0
- package/dist/rendering/world/terrain/TerrainCdlod.d.ts.map +1 -0
- package/dist/rendering/world/terrain/TerrainCdlod.js +115 -0
- package/dist/rendering/world/terrain/TerrainCdlod.js.map +1 -0
- package/dist/rendering/world/terrain/TerrainHeightTexture.d.ts +44 -0
- package/dist/rendering/world/terrain/TerrainHeightTexture.d.ts.map +1 -0
- package/dist/rendering/world/terrain/TerrainHeightTexture.js +173 -0
- package/dist/rendering/world/terrain/TerrainHeightTexture.js.map +1 -0
- package/dist/rendering/world/terrain/TerrainPatchGeometry.d.ts +18 -0
- package/dist/rendering/world/terrain/TerrainPatchGeometry.d.ts.map +1 -0
- package/dist/rendering/world/terrain/TerrainPatchGeometry.js +40 -0
- package/dist/rendering/world/terrain/TerrainPatchGeometry.js.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrain.vert.glsl.d.ts +19 -0
- package/dist/rendering/world/terrain/shaders/terrain.vert.glsl.d.ts.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrain.vert.glsl.js +162 -0
- package/dist/rendering/world/terrain/shaders/terrain.vert.glsl.js.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrainCdlod.d.ts +23 -0
- package/dist/rendering/world/terrain/shaders/terrainCdlod.d.ts.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrainCdlod.js +110 -0
- package/dist/rendering/world/terrain/shaders/terrainCdlod.js.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrainSplat.d.ts +26 -0
- package/dist/rendering/world/terrain/shaders/terrainSplat.d.ts.map +1 -0
- package/dist/rendering/world/terrain/shaders/terrainSplat.js +181 -0
- package/dist/rendering/world/terrain/shaders/terrainSplat.js.map +1 -0
- package/dist/rendering/world/vegetation/FoliageMaterial.d.ts +14 -0
- package/dist/rendering/world/vegetation/FoliageMaterial.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/FoliageMaterial.js +107 -0
- package/dist/rendering/world/vegetation/FoliageMaterial.js.map +1 -0
- package/dist/rendering/world/vegetation/GrassField.d.ts +43 -0
- package/dist/rendering/world/vegetation/GrassField.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/GrassField.js +68 -0
- package/dist/rendering/world/vegetation/GrassField.js.map +1 -0
- package/dist/rendering/world/vegetation/ImpostorMaterial.d.ts +20 -0
- package/dist/rendering/world/vegetation/ImpostorMaterial.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/ImpostorMaterial.js +80 -0
- package/dist/rendering/world/vegetation/ImpostorMaterial.js.map +1 -0
- package/dist/rendering/world/vegetation/InstanceChunkGrid.d.ts +67 -0
- package/dist/rendering/world/vegetation/InstanceChunkGrid.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/InstanceChunkGrid.js +150 -0
- package/dist/rendering/world/vegetation/InstanceChunkGrid.js.map +1 -0
- package/dist/rendering/world/vegetation/WindCpu.d.ts +19 -0
- package/dist/rendering/world/vegetation/WindCpu.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/WindCpu.js +43 -0
- package/dist/rendering/world/vegetation/WindCpu.js.map +1 -0
- package/dist/rendering/world/vegetation/WindField.d.ts +42 -0
- package/dist/rendering/world/vegetation/WindField.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/WindField.js +154 -0
- package/dist/rendering/world/vegetation/WindField.js.map +1 -0
- package/dist/rendering/world/vegetation/shaders/foliage.d.ts +8 -0
- package/dist/rendering/world/vegetation/shaders/foliage.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/shaders/foliage.js +104 -0
- package/dist/rendering/world/vegetation/shaders/foliage.js.map +1 -0
- package/dist/rendering/world/vegetation/shaders/grass.d.ts +10 -0
- package/dist/rendering/world/vegetation/shaders/grass.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/shaders/grass.js +79 -0
- package/dist/rendering/world/vegetation/shaders/grass.js.map +1 -0
- package/dist/rendering/world/vegetation/shaders/impostor.d.ts +9 -0
- package/dist/rendering/world/vegetation/shaders/impostor.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/shaders/impostor.js +97 -0
- package/dist/rendering/world/vegetation/shaders/impostor.js.map +1 -0
- package/dist/rendering/world/vegetation/shaders/wind.d.ts +9 -0
- package/dist/rendering/world/vegetation/shaders/wind.d.ts.map +1 -0
- package/dist/rendering/world/vegetation/shaders/wind.js +103 -0
- package/dist/rendering/world/vegetation/shaders/wind.js.map +1 -0
- package/dist/rendering/world/water/GerstnerWaves.d.ts +65 -0
- package/dist/rendering/world/water/GerstnerWaves.d.ts.map +1 -0
- package/dist/rendering/world/water/GerstnerWaves.js +182 -0
- package/dist/rendering/world/water/GerstnerWaves.js.map +1 -0
- package/dist/rendering/world/water/ReflectionViewPass.d.ts +46 -0
- package/dist/rendering/world/water/ReflectionViewPass.d.ts.map +1 -0
- package/dist/rendering/world/water/ReflectionViewPass.js +85 -0
- package/dist/rendering/world/water/ReflectionViewPass.js.map +1 -0
- package/dist/rendering/world/water/SceneCopyFallback.d.ts +21 -0
- package/dist/rendering/world/water/SceneCopyFallback.d.ts.map +1 -0
- package/dist/rendering/world/water/SceneCopyFallback.js +150 -0
- package/dist/rendering/world/water/SceneCopyFallback.js.map +1 -0
- package/dist/rendering/world/water/UnderwaterState.d.ts +25 -0
- package/dist/rendering/world/water/UnderwaterState.d.ts.map +1 -0
- package/dist/rendering/world/water/UnderwaterState.js +134 -0
- package/dist/rendering/world/water/UnderwaterState.js.map +1 -0
- package/dist/rendering/world/water/WaterMaterial.d.ts +23 -0
- package/dist/rendering/world/water/WaterMaterial.d.ts.map +1 -0
- package/dist/rendering/world/water/WaterMaterial.js +129 -0
- package/dist/rendering/world/water/WaterMaterial.js.map +1 -0
- package/dist/rendering/world/water/shaders/caustics.d.ts +13 -0
- package/dist/rendering/world/water/shaders/caustics.d.ts.map +1 -0
- package/dist/rendering/world/water/shaders/caustics.js +103 -0
- package/dist/rendering/world/water/shaders/caustics.js.map +1 -0
- package/dist/rendering/world/water/shaders/gerstner.d.ts +9 -0
- package/dist/rendering/world/water/shaders/gerstner.d.ts.map +1 -0
- package/dist/rendering/world/water/shaders/gerstner.js +100 -0
- package/dist/rendering/world/water/shaders/gerstner.js.map +1 -0
- package/dist/rendering/world/water/shaders/water.d.ts +12 -0
- package/dist/rendering/world/water/shaders/water.d.ts.map +1 -0
- package/dist/rendering/world/water/shaders/water.js +112 -0
- package/dist/rendering/world/water/shaders/water.js.map +1 -0
- package/dist/scene/MathTypes.d.ts +30 -17
- package/dist/scene/MathTypes.d.ts.map +1 -1
- package/dist/scene/MathTypes.js +44 -0
- package/dist/scene/MathTypes.js.map +1 -1
- package/dist/workflows/AssetViewerWorkflow.js +1 -1
- package/dist/workflows/AssetViewerWorkflow.js.map +1 -1
- package/dist/workflows/WorkflowDiagnostics.d.ts +1 -1
- package/dist/workflows/WorkflowDiagnostics.d.ts.map +1 -1
- package/dist/workflows/WorkflowTypes.d.ts +1 -1
- package/dist/workflows/WorkflowTypes.d.ts.map +1 -1
- package/dist/workflows/production-runtime/ProductionExampleRuntime.d.ts.map +1 -1
- package/dist/workflows/production-runtime/ProductionExampleRuntime.js +3 -3
- package/dist/workflows/production-runtime/ProductionExampleRuntime.js.map +1 -1
- package/package.json +159 -611
- package/templates/cinematic-scene/.claude/CLAUDE.md +3 -0
- package/templates/cinematic-scene/.github/workflows/aura3d-lookdev.yml +67 -0
- package/templates/cinematic-scene/AGENTS.md +3 -0
- package/templates/cinematic-scene/README.md +11 -2
- package/templates/cinematic-scene/aura.assets.json +31 -0
- package/templates/cinematic-scene/package.json +3 -2
- package/templates/cinematic-scene/src/main.ts +46 -11
- package/templates/cinematic-scene/tests/look-floor.ts +270 -0
- package/templates/cinematic-scene/tests/route-health.spec.ts +31 -3
- package/templates/cinematic-scene/tests/screenshot.spec.ts +34 -45
- package/templates/mini-game/.claude/CLAUDE.md +3 -0
- package/templates/mini-game/.github/workflows/aura3d-lookdev.yml +67 -0
- package/templates/mini-game/AGENTS.md +3 -0
- package/templates/mini-game/README.md +9 -6
- package/templates/mini-game/aura.assets.json +196 -0
- package/templates/mini-game/package.json +4 -3
- package/templates/mini-game/public/aura-assets/kaykit-barbarian.glb +0 -0
- package/templates/mini-game/public/aura-assets/kenneyPlatformerKitKey.2e930961.glb +0 -0
- package/templates/mini-game/public/aura-assets/kenneyPlatformerKitStar.a102a1b9.glb +0 -0
- package/templates/mini-game/public/aura-assets/quaternius-crate.glb +0 -0
- package/templates/mini-game/public/aura-assets/quaternius-cube-crate.glb +0 -0
- package/templates/mini-game/src/aura-assets.ts +141 -7
- package/templates/mini-game/src/main.ts +209 -41
- package/templates/mini-game/tests/certified-rig.spec.ts +40 -0
- package/templates/mini-game/tests/look-floor.ts +270 -0
- package/templates/mini-game/tests/playable.spec.ts +23 -2
- package/templates/mini-game/tests/route-health.spec.ts +2 -2
- package/templates/mini-game/tests/screenshot.spec.ts +44 -53
- package/templates/product-viewer/.claude/CLAUDE.md +3 -0
- package/templates/product-viewer/.github/workflows/aura3d-lookdev.yml +67 -0
- package/templates/product-viewer/AGENTS.md +3 -0
- package/templates/product-viewer/README.md +10 -8
- package/templates/product-viewer/aura.assets.json +34 -0
- package/templates/product-viewer/package.json +3 -2
- package/templates/product-viewer/src/aura-assets.ts +1 -1
- package/templates/product-viewer/src/main.ts +79 -13
- package/templates/product-viewer/tests/look-floor.ts +270 -0
- package/templates/product-viewer/tests/route-health.spec.ts +21 -3
- package/templates/product-viewer/tests/screenshot.spec.ts +35 -41
- package/templates/production-asset-inspector/package.json +1 -1
- package/templates/production-material-studio/package.json +1 -1
- package/templates/production-product-configurator/package.json +1 -1
- package/templates/production-product-viewer/package.json +1 -1
- package/dist/editor/index.d.ts +0 -2
- package/dist/editor/index.d.ts.map +0 -1
- package/dist/editor/index.js +0 -2
- package/dist/editor/index.js.map +0 -1
- package/dist/index.d.ts +0 -28
- package/dist/index.js +0 -28
- package/dist/lean/ArcadeRuntime.d.ts +0 -111
- package/dist/lean/ArcadeRuntime.d.ts.map +0 -1
- package/dist/lean/ArcadeRuntime.js +0 -219
- package/dist/lean/ArcadeRuntime.js.map +0 -1
- package/dist/lean/base.d.ts +0 -228
- package/dist/lean/base.d.ts.map +0 -1
- package/dist/lean/base.js +0 -322
- package/dist/lean/base.js.map +0 -1
- package/dist/lean/game.d.ts +0 -117
- package/dist/lean/game.d.ts.map +0 -1
- package/dist/lean/game.js +0 -229
- package/dist/lean/game.js.map +0 -1
- package/dist/lean/index.d.ts +0 -4
- package/dist/lean/index.d.ts.map +0 -1
- package/dist/lean/index.js +0 -10
- package/dist/lean/index.js.map +0 -1
- package/dist/lean/product.d.ts +0 -4
- package/dist/lean/product.d.ts.map +0 -1
- package/dist/lean/product.js +0 -55
- package/dist/lean/product.js.map +0 -1
- package/dist/materials/GameReadyMaterialLibrary.d.ts.map +0 -1
- package/dist/materials/GameReadyMaterialLibrary.js +0 -253
- package/dist/materials/GameReadyMaterialLibrary.js.map +0 -1
- package/dist/materials/MaterialPreset.d.ts.map +0 -1
- package/dist/materials/MaterialPreset.js.map +0 -1
- package/dist/materials/MaterialPresets.d.ts.map +0 -1
- package/dist/materials/MaterialPresets.js.map +0 -1
- package/dist/materials/MaterialPreviewScene.d.ts.map +0 -1
- package/dist/materials/MaterialPreviewScene.js.map +0 -1
- package/dist/materials/MaterialValidation.d.ts.map +0 -1
- package/dist/materials/MaterialValidation.js.map +0 -1
- package/dist/materials/NodeMaterial.d.ts +0 -11
- package/dist/materials/NodeMaterial.d.ts.map +0 -1
- package/dist/materials/NodeMaterial.js +0 -15
- package/dist/materials/NodeMaterial.js.map +0 -1
- package/dist/materials/PBRMaterialLibrary.d.ts.map +0 -1
- package/dist/materials/PBRMaterialLibrary.js.map +0 -1
- package/dist/materials/TextureSet.d.ts.map +0 -1
- package/dist/materials/TextureSet.js +0 -40
- package/dist/materials/TextureSet.js.map +0 -1
- package/dist/materials/browser-index.d.ts.map +0 -1
- package/dist/materials/browser-index.js.map +0 -1
- package/dist/materials/index.d.ts.map +0 -1
- package/dist/materials/index.js.map +0 -1
- package/dist/materials/node.d.ts.map +0 -1
- package/dist/materials/node.js.map +0 -1
- package/templates/mini-game/public/aura-assets/player-fixture.glb +0 -0
- package/templates/mini-game/public/aura-assets/player.thumb.svg +0 -8
- /package/dist/{materials → engine/devtools/materials}/GameReadyMaterialLibrary.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPreset.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPreset.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPresets.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPresets.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPreviewScene.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialPreviewScene.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialValidation.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/MaterialValidation.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/PBRMaterialLibrary.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/PBRMaterialLibrary.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/TextureSet.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/browser-index.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/browser-index.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/index.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/index.js +0 -0
- /package/dist/{materials → engine/devtools/materials}/node.d.ts +0 -0
- /package/dist/{materials → engine/devtools/materials}/node.js +0 -0
|
@@ -0,0 +1,2477 @@
|
|
|
1
|
+
// PR 0b-2 carve-out (CONTRACTS.md §3.3) — verbatim move from WebGL2Device.ts; 0 changed logic lines.
|
|
2
|
+
import { invertSsrProjection } from "../ProjectionMath.js";
|
|
3
|
+
import { RenderDeviceError, resolveGpuTargetOwner } from "../RenderDevice.js";
|
|
4
|
+
import { temporalAccumulationWeight } from "../TemporalMath.js";
|
|
5
|
+
import { WebGL2RenderTarget } from "../WebGL2Device.js";
|
|
6
|
+
import { normalizeBloomQualityPreset, resolveBloomPyramidBlurRadii, resolveBloomPyramidPlan, resolveBloomPyramidResponseGain, resolveBloomPyramidV2Response } from "../postprocess/NativeBloomPyramid.js";
|
|
7
|
+
import { BLOOM_BRIGHT_LUT_HEIGHT, BLOOM_BRIGHT_LUT_WIDTH, BLOOM_COMPOSITE_LUT_SIZE, OUTLINE_BLEND_LUT_WIDTH, OUTLINE_LIMB_RADIX, createBloomBrightThresholdLut, createBloomCompositeLut, createOutlineBlendLut, createOutlineGradientBound } from "../postprocess/NativeLdrEffectLuts.js";
|
|
8
|
+
// PRD-03 Phase 1 — the r185 FXAA finalize (post/shaders/fxaa.glsl.ts). The
|
|
9
|
+
// split is opt-in via `fxaa: { variant: "r185" }`; the legacy in-shader
|
|
10
|
+
// `u_hasFxaa` taps stay the default path.
|
|
11
|
+
import { FXAA_185_FRAGMENT_GLSL } from "../post/shaders/fxaa.glsl.js";
|
|
12
|
+
import { recordPostSkipped } from "../renderer/postSkipped.js";
|
|
13
|
+
export class WebGL2LegacyPostPipeline {
|
|
14
|
+
host;
|
|
15
|
+
constructor(host) {
|
|
16
|
+
this.host = host;
|
|
17
|
+
}
|
|
18
|
+
bloomAccumulateProgram = null;
|
|
19
|
+
bloomBlurProgram = null;
|
|
20
|
+
bloomBrightExtractProgram = null;
|
|
21
|
+
bloomBrightLutTexture = null;
|
|
22
|
+
bloomBrightLutThreshold = null;
|
|
23
|
+
bloomCompositeLutIntensity = null;
|
|
24
|
+
bloomCompositeLutShoulder = null;
|
|
25
|
+
bloomCompositeLutTexture = null;
|
|
26
|
+
bloomCompositeProgram = null;
|
|
27
|
+
bloomDownsampleProgram = null;
|
|
28
|
+
bloomPingPongResources = null;
|
|
29
|
+
bloomPyramidResources = null;
|
|
30
|
+
depthOfFieldProgram = null;
|
|
31
|
+
lastBloomDiagnostics = null;
|
|
32
|
+
ldrPostprocessProgram = null;
|
|
33
|
+
motionBlurProgram = null;
|
|
34
|
+
nativeFxaaFinalizeProgram = null;
|
|
35
|
+
motionBlurVelocitySize = null;
|
|
36
|
+
motionBlurVelocityTexture = null;
|
|
37
|
+
outlineBlendLutKey = null;
|
|
38
|
+
outlineBlendLutTexture = null;
|
|
39
|
+
outlineProgram = null;
|
|
40
|
+
presentationProgram = null;
|
|
41
|
+
presentationVertexArray = null;
|
|
42
|
+
ssaoProgram = null;
|
|
43
|
+
ssrProgram = null;
|
|
44
|
+
taaHistorySize = null;
|
|
45
|
+
taaHistoryTexture = null;
|
|
46
|
+
taaPresentationProgram = null;
|
|
47
|
+
taaProgram = null;
|
|
48
|
+
presentRenderTarget(source) {
|
|
49
|
+
this.host.lifecycle.assertAlive();
|
|
50
|
+
if (!(source instanceof WebGL2RenderTarget) || !this.host.renderTargets.has(source) || source.disposed) {
|
|
51
|
+
throw new RenderDeviceError("Render target is not a live WebGL2 resource owned by this device", "INVALID_RESOURCE", {
|
|
52
|
+
targetId: source.id
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
this.host.resolveMultisampleTarget(source);
|
|
56
|
+
const outputWidth = this.host.lifecycle.viewportWidth || this.host.gl.drawingBufferWidth;
|
|
57
|
+
const outputHeight = this.host.lifecycle.viewportHeight || this.host.gl.drawingBufferHeight;
|
|
58
|
+
this.drawRenderTargetToBackbuffer(source, outputWidth, outputHeight);
|
|
59
|
+
this.host.activeRenderTarget = null;
|
|
60
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, null);
|
|
61
|
+
this.host.lifecycle.lastError = this.host.lifecycle.readError();
|
|
62
|
+
if (this.host.lifecycle.lastError) {
|
|
63
|
+
throw new RenderDeviceError(`WebGL2 render-target presentation failed: ${this.host.lifecycle.lastError}`, "WEBGL_PRESENT_FAILED", {
|
|
64
|
+
targetId: source.id,
|
|
65
|
+
error: this.host.lifecycle.lastError
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
executeReflectionSurfaceSsr(source, normalMask, output, options) {
|
|
70
|
+
this.host.lifecycle.assertAlive();
|
|
71
|
+
for (const target of [source, normalMask, output]) {
|
|
72
|
+
if (!(target instanceof WebGL2RenderTarget) || !this.host.renderTargets.has(target) || target.disposed) {
|
|
73
|
+
throw new RenderDeviceError("SSR inputs must be live targets owned by this device", "INVALID_RESOURCE");
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
const color = source, normals = normalMask, destination = output;
|
|
77
|
+
if (!color.depthTextureHandle || color === destination || normals === destination
|
|
78
|
+
|| color.width !== normals.width || color.height !== normals.height) {
|
|
79
|
+
throw new RenderDeviceError("SSR requires sampleable scene depth, matching normal-mask input, and a separate output", "INVALID_RESOURCE");
|
|
80
|
+
}
|
|
81
|
+
this.host.resolveMultisampleTarget(color);
|
|
82
|
+
this.host.resolveMultisampleTarget(normals);
|
|
83
|
+
const state = this.prepareFullscreenPresentation(destination.framebuffer, destination.width, destination.height);
|
|
84
|
+
try {
|
|
85
|
+
this.drawSsrKernel(color.colorHandle, color.depthTextureHandle, destination.width, destination.height, { ...options, normalMask: normals.colorHandle }, this.ensurePresentationVertexArray(), { near: 0.1, far: 1000 });
|
|
86
|
+
}
|
|
87
|
+
finally {
|
|
88
|
+
this.restoreFullscreenPresentationState(state, destination.width, destination.height);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
presentLdrPostprocess(source, options) {
|
|
92
|
+
this.host.lifecycle.assertAlive();
|
|
93
|
+
if (!(source instanceof WebGL2RenderTarget) || !this.host.renderTargets.has(source) || source.disposed) {
|
|
94
|
+
throw new RenderDeviceError("Render target is not a live WebGL2 resource owned by this device", "INVALID_RESOURCE", {
|
|
95
|
+
targetId: source.id
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
this.host.resolveMultisampleTarget(source);
|
|
99
|
+
const tonePass = options.passes.find((pass) => pass.name === "tone-mapping");
|
|
100
|
+
const bloomPass = options.passes.find((pass) => pass.name === "bloom");
|
|
101
|
+
const depthOfFieldPass = options.passes.find((pass) => pass.name === "depth-of-field");
|
|
102
|
+
const motionBlurPass = options.passes.find((pass) => pass.name === "motion-blur");
|
|
103
|
+
const ssaoPass = options.passes.find((pass) => pass.name === "ssao");
|
|
104
|
+
const ssrPass = options.passes.find((pass) => pass.name === "ssr");
|
|
105
|
+
const taaPass = options.passes.find((pass) => pass.name === "taa");
|
|
106
|
+
const outlinePass = options.passes.find((pass) => pass.name === "outline");
|
|
107
|
+
if (source.colorTexture.format !== "rgba8" && !tonePass) {
|
|
108
|
+
throw new RenderDeviceError("WebGL2 HDR postprocess presentation requires a tone-mapping pass before LDR output.", "WEBGL_LDR_POSTPROCESS_FORMAT_UNSUPPORTED", {
|
|
109
|
+
targetId: source.id,
|
|
110
|
+
format: source.colorTexture.format
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
if (source.colorTexture.format !== "rgba8" && (depthOfFieldPass || motionBlurPass || ssaoPass || ssrPass || taaPass || outlinePass) && !tonePass) {
|
|
114
|
+
throw new RenderDeviceError("WebGL2 byte-kernel postprocess requires rgba8 input or a preceding tone-mapping pass.", "WEBGL_LDR_POSTPROCESS_FORMAT_UNSUPPORTED", {
|
|
115
|
+
targetId: source.id,
|
|
116
|
+
format: source.colorTexture.format,
|
|
117
|
+
pass: depthOfFieldPass ? "depth-of-field" : motionBlurPass ? "motion-blur" : ssaoPass ? "ssao" : ssrPass ? "ssr" : taaPass ? "taa" : "outline"
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
if ((depthOfFieldPass || ssaoPass || ssrPass) && !source.depthTextureHandle) {
|
|
121
|
+
throw new RenderDeviceError("WebGL2 native depth postprocess requires a renderer-owned sampleable depth texture.", "WEBGL_LDR_POSTPROCESS_DEPTH_REQUIRED", {
|
|
122
|
+
targetId: source.id,
|
|
123
|
+
pass: depthOfFieldPass ? "depth-of-field" : ssaoPass ? "ssao" : "ssr"
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
// Raw GL depth is nonlinear (0.1/1000 defaults park the play area past
|
|
127
|
+
// 0.97), which blinded every depth-gated native pass. SSR and DOF compare
|
|
128
|
+
// linearized depth; SSAO keeps its legacy response (documented partial).
|
|
129
|
+
const depthRange = normalizeLdrDepthRange(options.depthRange);
|
|
130
|
+
const outputTarget = options.outputTarget;
|
|
131
|
+
if (outputTarget && (!(outputTarget instanceof WebGL2RenderTarget) || !this.host.renderTargets.has(outputTarget) || outputTarget.disposed)) {
|
|
132
|
+
throw new RenderDeviceError("Output render target is not a live WebGL2 resource owned by this device", "INVALID_RESOURCE", {
|
|
133
|
+
targetId: outputTarget.id
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
if (outputTarget && outputTarget.colorTexture.format !== "rgba8") {
|
|
137
|
+
throw new RenderDeviceError("WebGL2 LDR postprocess output target must be rgba8.", "WEBGL_LDR_POSTPROCESS_OUTPUT_FORMAT_UNSUPPORTED", {
|
|
138
|
+
targetId: outputTarget.id,
|
|
139
|
+
format: outputTarget.colorTexture.format
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
if (outputTarget && (outputTarget.width !== source.width || outputTarget.height !== source.height)) {
|
|
143
|
+
throw new RenderDeviceError("WebGL2 LDR postprocess source and output dimensions must match.", "WEBGL_LDR_POSTPROCESS_SIZE_MISMATCH", {
|
|
144
|
+
sourceWidth: source.width,
|
|
145
|
+
sourceHeight: source.height,
|
|
146
|
+
targetWidth: outputTarget.width,
|
|
147
|
+
targetHeight: outputTarget.height
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
const webglOutputTarget = outputTarget;
|
|
151
|
+
const colorPass = options.passes.find((pass) => pass.name === "color-grade");
|
|
152
|
+
const fxaaPass = options.passes.find((pass) => pass.name === "fxaa");
|
|
153
|
+
const bloomOptions = bloomPass ? normalizeNativeBloomOptions(bloomPass.options) : undefined;
|
|
154
|
+
const depthOfFieldOptions = depthOfFieldPass ? normalizeNativeDepthOfFieldOptions(depthOfFieldPass.options) : undefined;
|
|
155
|
+
const motionBlurOptions = motionBlurPass
|
|
156
|
+
? normalizeNativeMotionBlurOptions(motionBlurPass.options, source.width, source.height)
|
|
157
|
+
: undefined;
|
|
158
|
+
const ssaoOptions = ssaoPass ? normalizeNativeSsaoOptions(ssaoPass.options) : undefined;
|
|
159
|
+
const ssrOptions = ssrPass ? normalizeNativeSsrOptions(ssrPass.options) : undefined;
|
|
160
|
+
const taaOptions = taaPass ? normalizeNativeTaaOptions(taaPass.options, source.width, source.height) : undefined;
|
|
161
|
+
const outlineOptions = outlinePass ? normalizeNativeOutlineOptions(outlinePass.options) : undefined;
|
|
162
|
+
const program = this.ensureLdrPostprocessProgram();
|
|
163
|
+
const vertexArray = this.ensurePresentationVertexArray();
|
|
164
|
+
const sourceIsHdr = source.colorTexture.format !== "rgba8";
|
|
165
|
+
// PRD-03 Phase 1: `fxaa.variant === "r185"` splits the finalize — the
|
|
166
|
+
// legacy stage presents tone/grade into an RGBA8 intermediate and the
|
|
167
|
+
// dedicated r185 FXAA + triangular-dither program writes the output, so
|
|
168
|
+
// the FXAA taps no longer re-run `finalColorAt` per tap.
|
|
169
|
+
const fxaaSplit = fxaaPass?.options?.variant === "r185";
|
|
170
|
+
const bloomResources = bloomOptions || depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions || fxaaSplit
|
|
171
|
+
? this.ensureBloomPingPongResources(source.width, source.height, sourceIsHdr && Boolean(bloomOptions))
|
|
172
|
+
: undefined;
|
|
173
|
+
if (bloomOptions && !sourceIsHdr) {
|
|
174
|
+
this.ensureBloomLutTextures(bloomOptions);
|
|
175
|
+
}
|
|
176
|
+
if (outlineOptions) {
|
|
177
|
+
this.ensureOutlineBlendLutTexture(outlineOptions);
|
|
178
|
+
}
|
|
179
|
+
if (motionBlurOptions?.velocity) {
|
|
180
|
+
this.ensureMotionBlurVelocityTexture(source.width, source.height, motionBlurOptions.velocity);
|
|
181
|
+
}
|
|
182
|
+
if (taaOptions?.history) {
|
|
183
|
+
this.ensureTaaHistoryTexture(source.width, source.height, taaOptions.history);
|
|
184
|
+
}
|
|
185
|
+
const outputWidth = webglOutputTarget?.width ?? (this.host.lifecycle.viewportWidth || this.host.gl.drawingBufferWidth);
|
|
186
|
+
const outputHeight = webglOutputTarget?.height ?? (this.host.lifecycle.viewportHeight || this.host.gl.drawingBufferHeight);
|
|
187
|
+
const previousState = this.prepareFullscreenPresentation(webglOutputTarget?.framebuffer ?? null, outputWidth, outputHeight);
|
|
188
|
+
try {
|
|
189
|
+
let ldrSourceHandle = source.colorHandle;
|
|
190
|
+
let temporarySourceIndex = -1;
|
|
191
|
+
if (bloomOptions && bloomResources) {
|
|
192
|
+
if (bloomOptions.quality === "performance") {
|
|
193
|
+
ldrSourceHandle = this.executeNativeBloomPasses(ldrSourceHandle, bloomResources, bloomOptions, vertexArray, sourceIsHdr);
|
|
194
|
+
temporarySourceIndex = 1;
|
|
195
|
+
this.recordBloomDiagnostics(bloomOptions, source.width, source.height, sourceIsHdr, 1);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
const plan = resolveBloomPyramidPlan(source.width, source.height, bloomOptions.quality, sourceIsHdr);
|
|
199
|
+
const pyramid = this.ensureBloomPyramidResources(plan, sourceIsHdr);
|
|
200
|
+
const pyramidResult = this.executeNativeBloomPyramidPasses(ldrSourceHandle, source.width, source.height, pyramid, {
|
|
201
|
+
textureA: bloomResources.textures[0],
|
|
202
|
+
framebufferA: bloomResources.framebuffers[0],
|
|
203
|
+
textureB: bloomResources.textures[1],
|
|
204
|
+
framebufferB: bloomResources.framebuffers[1]
|
|
205
|
+
}, bloomOptions, vertexArray, sourceIsHdr);
|
|
206
|
+
// The pyramid sum lands in ping-pong texture A; composite it with the
|
|
207
|
+
// source through the proven single-scale composite program.
|
|
208
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, bloomResources.framebuffers[1]);
|
|
209
|
+
this.host.gl.viewport(0, 0, source.width, source.height);
|
|
210
|
+
const pyramidComposite = this.ensureBloomCompositeProgram();
|
|
211
|
+
this.host.gl.useProgram(pyramidComposite);
|
|
212
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
213
|
+
this.bindFullscreenTexture(0, ldrSourceHandle);
|
|
214
|
+
this.bindFullscreenTexture(1, pyramidResult);
|
|
215
|
+
if (this.bloomCompositeLutTexture)
|
|
216
|
+
this.bindFullscreenTexture(2, this.bloomCompositeLutTexture);
|
|
217
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(pyramidComposite, "u_source"), 0);
|
|
218
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(pyramidComposite, "u_blurred"), 1);
|
|
219
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(pyramidComposite, "u_compositeLut"), 2);
|
|
220
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(pyramidComposite, "u_hdr"), sourceIsHdr ? 1 : 0);
|
|
221
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(pyramidComposite, "u_intensity"), bloomOptions.intensity * nativeBloomResponseGain(plan, bloomOptions));
|
|
222
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
223
|
+
ldrSourceHandle = bloomResources.textures[1];
|
|
224
|
+
// `temporarySourceIndex` names the ping-pong slot that HOLDS the
|
|
225
|
+
// current source (every later pass writes the other slot). The
|
|
226
|
+
// composite lives in texture B, so the index is 1. It was 0, which
|
|
227
|
+
// made the next pass (r185 FXAA split under A3D_QR_POST, ssao, ...)
|
|
228
|
+
// write framebuffer B while sampling texture B — a WebGL feedback
|
|
229
|
+
// loop (GL_INVALID_OPERATION 0x502, WEBGL_LDR_POSTPROCESS_FAILED).
|
|
230
|
+
temporarySourceIndex = 1;
|
|
231
|
+
this.recordBloomDiagnostics(bloomOptions, source.width, source.height, sourceIsHdr, plan.mipCount);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
if ((depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions) && bloomResources) {
|
|
235
|
+
if (tonePass || colorPass) {
|
|
236
|
+
const baseTargetIndex = 0;
|
|
237
|
+
this.drawNativeLdrStage(ldrSourceHandle, bloomResources.framebuffers[baseTargetIndex], source.width, source.height, program, vertexArray, tonePass, colorPass, undefined, options.toneMappingDefaults);
|
|
238
|
+
ldrSourceHandle = bloomResources.textures[baseTargetIndex];
|
|
239
|
+
temporarySourceIndex = baseTargetIndex;
|
|
240
|
+
}
|
|
241
|
+
if (depthOfFieldOptions && source.depthTextureHandle) {
|
|
242
|
+
const depthOfFieldTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
243
|
+
ldrSourceHandle = this.executeNativeDepthOfFieldPass(ldrSourceHandle, source.depthTextureHandle, bloomResources, depthOfFieldOptions, vertexArray, depthOfFieldTargetIndex, depthRange);
|
|
244
|
+
temporarySourceIndex = depthOfFieldTargetIndex;
|
|
245
|
+
}
|
|
246
|
+
if (motionBlurOptions) {
|
|
247
|
+
const motionBlurTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
248
|
+
ldrSourceHandle = this.executeNativeMotionBlurPass(ldrSourceHandle, bloomResources, motionBlurOptions, vertexArray, motionBlurTargetIndex);
|
|
249
|
+
temporarySourceIndex = motionBlurTargetIndex;
|
|
250
|
+
}
|
|
251
|
+
if (ssaoOptions && source.depthTextureHandle) {
|
|
252
|
+
const ssaoTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
253
|
+
ldrSourceHandle = this.executeNativeSsaoPass(ldrSourceHandle, source.depthTextureHandle, bloomResources, ssaoOptions, vertexArray, ssaoTargetIndex);
|
|
254
|
+
temporarySourceIndex = ssaoTargetIndex;
|
|
255
|
+
}
|
|
256
|
+
if (ssrOptions && source.depthTextureHandle) {
|
|
257
|
+
const ssrTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
258
|
+
ldrSourceHandle = this.executeNativeSsrPass(ldrSourceHandle, source.depthTextureHandle, bloomResources, ssrOptions, vertexArray, ssrTargetIndex, depthRange);
|
|
259
|
+
temporarySourceIndex = ssrTargetIndex;
|
|
260
|
+
}
|
|
261
|
+
if (taaOptions) {
|
|
262
|
+
const taaTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
263
|
+
ldrSourceHandle = this.executeNativeTaaPass(ldrSourceHandle, bloomResources, taaOptions, vertexArray, taaTargetIndex);
|
|
264
|
+
temporarySourceIndex = taaTargetIndex;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
if (outlineOptions && bloomResources) {
|
|
268
|
+
const outlineTargetIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
269
|
+
ldrSourceHandle = this.executeNativeOutlinePasses(ldrSourceHandle, bloomResources, outlineOptions, vertexArray, outlineTargetIndex);
|
|
270
|
+
temporarySourceIndex = outlineTargetIndex;
|
|
271
|
+
}
|
|
272
|
+
if (fxaaSplit && bloomResources) {
|
|
273
|
+
const fxaaScratchIndex = temporarySourceIndex === 0 ? 1 : 0;
|
|
274
|
+
this.drawNativeLdrStage(ldrSourceHandle, bloomResources.framebuffers[fxaaScratchIndex], source.width, source.height, program, vertexArray, depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions ? undefined : tonePass, depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions ? undefined : colorPass, undefined, options.toneMappingDefaults);
|
|
275
|
+
this.executeNativeFxaaFinalize(bloomResources.textures[fxaaScratchIndex], webglOutputTarget?.framebuffer ?? null, outputWidth, outputHeight, source.width, source.height, vertexArray);
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
this.drawNativeLdrStage(ldrSourceHandle, webglOutputTarget?.framebuffer ?? null, outputWidth, outputHeight, program, vertexArray, depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions ? undefined : tonePass, depthOfFieldOptions || motionBlurOptions || ssaoOptions || ssrOptions || taaOptions || outlineOptions ? undefined : colorPass, fxaaPass, options.toneMappingDefaults);
|
|
279
|
+
}
|
|
280
|
+
this.host.gl.flush();
|
|
281
|
+
}
|
|
282
|
+
finally {
|
|
283
|
+
this.restoreFullscreenPresentationState(previousState, outputWidth, outputHeight);
|
|
284
|
+
}
|
|
285
|
+
this.host.lifecycle.lastError = this.host.lifecycle.readError();
|
|
286
|
+
if (this.host.lifecycle.lastError) {
|
|
287
|
+
throw new RenderDeviceError(`WebGL2 LDR postprocess presentation failed: ${this.host.lifecycle.lastError}`, "WEBGL_LDR_POSTPROCESS_FAILED", {
|
|
288
|
+
targetId: source.id,
|
|
289
|
+
error: this.host.lifecycle.lastError
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
this.host.device.setRenderTarget(webglOutputTarget ?? null);
|
|
293
|
+
}
|
|
294
|
+
drawRenderTargetToBackbuffer(source, outputWidth, outputHeight) {
|
|
295
|
+
const program = this.ensurePresentationProgram();
|
|
296
|
+
const vertexArray = this.ensurePresentationVertexArray();
|
|
297
|
+
const previousState = this.prepareFullscreenPresentation(null, outputWidth, outputHeight);
|
|
298
|
+
this.host.gl.useProgram(program);
|
|
299
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
300
|
+
this.host.gl.activeTexture(this.host.gl.TEXTURE0);
|
|
301
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, source.colorHandle);
|
|
302
|
+
this.host.gl.bindSampler(0, null);
|
|
303
|
+
try {
|
|
304
|
+
const uniformLocation = this.host.gl.getUniformLocation(program, "u_source");
|
|
305
|
+
this.host.gl.uniform1i(uniformLocation, 0);
|
|
306
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
307
|
+
this.host.gl.flush();
|
|
308
|
+
}
|
|
309
|
+
finally {
|
|
310
|
+
this.restoreFullscreenPresentationState(previousState, outputWidth, outputHeight);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
ensureBloomPingPongResources(width, height, hdr = false) {
|
|
314
|
+
const current = this.bloomPingPongResources;
|
|
315
|
+
if (current && current.width === width && current.height === height && current.hdr === hdr) {
|
|
316
|
+
return current;
|
|
317
|
+
}
|
|
318
|
+
this.disposeBloomPingPongResources();
|
|
319
|
+
this.disposeBloomPyramidResources();
|
|
320
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
321
|
+
const previousFramebuffer = this.host.gl.getParameter(this.host.gl.FRAMEBUFFER_BINDING);
|
|
322
|
+
const textures = [];
|
|
323
|
+
const framebuffers = [];
|
|
324
|
+
try {
|
|
325
|
+
for (let index = 0; index < 2; index += 1) {
|
|
326
|
+
const texture = this.host.gl.createTexture();
|
|
327
|
+
const framebuffer = this.host.gl.createFramebuffer();
|
|
328
|
+
if (!texture || !framebuffer) {
|
|
329
|
+
if (texture)
|
|
330
|
+
this.host.gl.deleteTexture(texture);
|
|
331
|
+
if (framebuffer)
|
|
332
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
333
|
+
throw new RenderDeviceError("Failed to allocate WebGL2 bloom ping-pong resources", "WEBGL_ALLOCATION_FAILED", {
|
|
334
|
+
width,
|
|
335
|
+
height,
|
|
336
|
+
index
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
textures.push(texture);
|
|
340
|
+
framebuffers.push(framebuffer);
|
|
341
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, texture);
|
|
342
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MIN_FILTER, this.host.gl.NEAREST);
|
|
343
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MAG_FILTER, this.host.gl.NEAREST);
|
|
344
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_S, this.host.gl.CLAMP_TO_EDGE);
|
|
345
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_T, this.host.gl.CLAMP_TO_EDGE);
|
|
346
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, hdr ? this.host.gl.RGBA16F : this.host.gl.RGBA8, width, height, 0, this.host.gl.RGBA, hdr ? this.host.gl.HALF_FLOAT : this.host.gl.UNSIGNED_BYTE, null);
|
|
347
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebuffer);
|
|
348
|
+
this.host.gl.framebufferTexture2D(this.host.gl.FRAMEBUFFER, this.host.gl.COLOR_ATTACHMENT0, this.host.gl.TEXTURE_2D, texture, 0);
|
|
349
|
+
const status = this.host.gl.checkFramebufferStatus(this.host.gl.FRAMEBUFFER);
|
|
350
|
+
if (status !== this.host.gl.FRAMEBUFFER_COMPLETE) {
|
|
351
|
+
throw new RenderDeviceError("WebGL2 bloom ping-pong framebuffer status is invalid", "FRAMEBUFFER_INVALID", {
|
|
352
|
+
width,
|
|
353
|
+
height,
|
|
354
|
+
index,
|
|
355
|
+
status
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
const resources = {
|
|
360
|
+
width,
|
|
361
|
+
height,
|
|
362
|
+
hdr,
|
|
363
|
+
textures: [textures[0], textures[1]],
|
|
364
|
+
framebuffers: [framebuffers[0], framebuffers[1]]
|
|
365
|
+
};
|
|
366
|
+
this.bloomPingPongResources = resources;
|
|
367
|
+
return resources;
|
|
368
|
+
}
|
|
369
|
+
catch (error) {
|
|
370
|
+
for (const texture of textures)
|
|
371
|
+
this.host.gl.deleteTexture(texture);
|
|
372
|
+
for (const framebuffer of framebuffers)
|
|
373
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
374
|
+
throw error;
|
|
375
|
+
}
|
|
376
|
+
finally {
|
|
377
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, previousFramebuffer);
|
|
378
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
379
|
+
this.host.stateCache.invalidate();
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
ensureBloomLutTextures(options) {
|
|
383
|
+
const updateBright = this.bloomBrightLutThreshold !== options.threshold;
|
|
384
|
+
const updateComposite = this.bloomCompositeLutIntensity !== options.intensity ||
|
|
385
|
+
this.bloomCompositeLutShoulder !== options.shoulder;
|
|
386
|
+
if (this.bloomBrightLutTexture && this.bloomCompositeLutTexture && !updateBright && !updateComposite) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
390
|
+
try {
|
|
391
|
+
if (!this.bloomBrightLutTexture) {
|
|
392
|
+
this.bloomBrightLutTexture = this.createNativeBloomDataTexture();
|
|
393
|
+
}
|
|
394
|
+
if (updateBright) {
|
|
395
|
+
const pixels = createBloomBrightThresholdLut(options.threshold);
|
|
396
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, this.bloomBrightLutTexture);
|
|
397
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, this.host.gl.RGBA8, BLOOM_BRIGHT_LUT_WIDTH, BLOOM_BRIGHT_LUT_HEIGHT, 0, this.host.gl.RGBA, this.host.gl.UNSIGNED_BYTE, pixels);
|
|
398
|
+
this.bloomBrightLutThreshold = options.threshold;
|
|
399
|
+
}
|
|
400
|
+
if (!this.bloomCompositeLutTexture) {
|
|
401
|
+
this.bloomCompositeLutTexture = this.createNativeBloomDataTexture();
|
|
402
|
+
}
|
|
403
|
+
if (updateComposite) {
|
|
404
|
+
const pixels = createBloomCompositeLut(options.intensity, { shoulder: options.shoulder });
|
|
405
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, this.bloomCompositeLutTexture);
|
|
406
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, this.host.gl.RGBA8, BLOOM_COMPOSITE_LUT_SIZE, BLOOM_COMPOSITE_LUT_SIZE, 0, this.host.gl.RGBA, this.host.gl.UNSIGNED_BYTE, pixels);
|
|
407
|
+
this.bloomCompositeLutIntensity = options.intensity;
|
|
408
|
+
this.bloomCompositeLutShoulder = options.shoulder;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
finally {
|
|
412
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
413
|
+
this.host.stateCache.invalidate();
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
createNativeBloomDataTexture() {
|
|
417
|
+
const texture = this.host.gl.createTexture();
|
|
418
|
+
if (!texture) {
|
|
419
|
+
throw new RenderDeviceError("Failed to allocate WebGL2 bloom lookup texture", "WEBGL_ALLOCATION_FAILED");
|
|
420
|
+
}
|
|
421
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, texture);
|
|
422
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MIN_FILTER, this.host.gl.NEAREST);
|
|
423
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MAG_FILTER, this.host.gl.NEAREST);
|
|
424
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_S, this.host.gl.CLAMP_TO_EDGE);
|
|
425
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_T, this.host.gl.CLAMP_TO_EDGE);
|
|
426
|
+
return texture;
|
|
427
|
+
}
|
|
428
|
+
ensureOutlineBlendLutTexture(options) {
|
|
429
|
+
const combinedAlpha = options.opacity * (options.color[3] / 255);
|
|
430
|
+
const key = `${options.color.join(",")}|${combinedAlpha}`;
|
|
431
|
+
if (this.outlineBlendLutTexture && this.outlineBlendLutKey === key)
|
|
432
|
+
return;
|
|
433
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
434
|
+
try {
|
|
435
|
+
if (!this.outlineBlendLutTexture) {
|
|
436
|
+
this.outlineBlendLutTexture = this.createNativeBloomDataTexture();
|
|
437
|
+
}
|
|
438
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, this.outlineBlendLutTexture);
|
|
439
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, this.host.gl.RGBA8, OUTLINE_BLEND_LUT_WIDTH, 1, 0, this.host.gl.RGBA, this.host.gl.UNSIGNED_BYTE, createOutlineBlendLut(options.color, combinedAlpha));
|
|
440
|
+
this.outlineBlendLutKey = key;
|
|
441
|
+
}
|
|
442
|
+
finally {
|
|
443
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
444
|
+
this.host.stateCache.invalidate();
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
ensureMotionBlurVelocityTexture(width, height, velocity) {
|
|
448
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
449
|
+
try {
|
|
450
|
+
if (!this.motionBlurVelocityTexture) {
|
|
451
|
+
this.motionBlurVelocityTexture = this.createNativeBloomDataTexture();
|
|
452
|
+
}
|
|
453
|
+
this.motionBlurVelocitySize = { width, height };
|
|
454
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, this.motionBlurVelocityTexture);
|
|
455
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, this.host.gl.RG32F, width, height, 0, this.host.gl.RG, this.host.gl.FLOAT, velocity);
|
|
456
|
+
}
|
|
457
|
+
finally {
|
|
458
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
459
|
+
this.host.stateCache.invalidate();
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
ensureTaaHistoryTexture(width, height, history) {
|
|
463
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
464
|
+
try {
|
|
465
|
+
if (!this.taaHistoryTexture) {
|
|
466
|
+
this.taaHistoryTexture = this.createNativeBloomDataTexture();
|
|
467
|
+
}
|
|
468
|
+
this.taaHistorySize = { width, height };
|
|
469
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, this.taaHistoryTexture);
|
|
470
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, this.host.gl.RGBA8, width, height, 0, this.host.gl.RGBA, this.host.gl.UNSIGNED_BYTE, history);
|
|
471
|
+
}
|
|
472
|
+
finally {
|
|
473
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
474
|
+
this.host.stateCache.invalidate();
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
drawNativeLdrStage(sourceTexture, framebuffer, width, height, program, vertexArray, tonePass, colorPass, fxaaPass, toneMappingDefaults) {
|
|
478
|
+
const toneOptions = { ...(toneMappingDefaults ?? {}), ...(tonePass?.options ?? {}) };
|
|
479
|
+
const colorOptions = colorPass?.options ?? {};
|
|
480
|
+
const fxaaOptions = fxaaPass?.options ?? {};
|
|
481
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebuffer);
|
|
482
|
+
this.host.gl.viewport(0, 0, width, height);
|
|
483
|
+
this.host.gl.useProgram(program);
|
|
484
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
485
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
486
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
487
|
+
this.host.gl.uniform2f(this.host.gl.getUniformLocation(program, "u_texelSize"), 1 / width, 1 / height);
|
|
488
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_hasToneMapping"), tonePass ? 1 : 0);
|
|
489
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_toneOperator"), toneMappingOperatorId(stringOption(toneOptions, "operator", "reinhard")));
|
|
490
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_inputColorSpace"), colorSpaceId(stringOption(toneOptions, "inputColorSpace", "linear")));
|
|
491
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_outputColorSpace"), colorSpaceId(stringOption(toneOptions, "outputColorSpace", "linear")));
|
|
492
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_exposure"), numberOption(toneOptions, "exposure", 1));
|
|
493
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_whitePoint"), Math.max(0.0001, numberOption(toneOptions, "whitePoint", 1)));
|
|
494
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_gamma"), Math.max(0.0001, numberOption(toneOptions, "gamma", 2.2)));
|
|
495
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_hasColorGrade"), colorPass ? 1 : 0);
|
|
496
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_contrast"), numberOption(colorOptions, "contrast", 1));
|
|
497
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_temperature"), numberOption(colorOptions, "temperature", 0));
|
|
498
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_tint"), numberOption(colorOptions, "tint", 0));
|
|
499
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_saturation"), numberOption(colorOptions, "saturation", 1));
|
|
500
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_vibrance"), numberOption(colorOptions, "vibrance", 0));
|
|
501
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_vignette"), numberOption(colorOptions, "vignette", 0));
|
|
502
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_sharpening"), numberOption(colorOptions, "sharpening", 0));
|
|
503
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_hasFxaa"), fxaaPass ? 1 : 0);
|
|
504
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_edgeThreshold"), numberOption(fxaaOptions, "edgeThreshold", 0.125));
|
|
505
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_subpixelBlend"), numberOption(fxaaOptions, "subpixelBlend", 0.75));
|
|
506
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
507
|
+
}
|
|
508
|
+
executeNativeBloomPasses(sourceTexture, resources, options, vertexArray, hdr) {
|
|
509
|
+
const brightLut = this.bloomBrightLutTexture;
|
|
510
|
+
const compositeLut = this.bloomCompositeLutTexture;
|
|
511
|
+
if (!hdr && (!brightLut || !compositeLut)) {
|
|
512
|
+
throw new RenderDeviceError("WebGL2 bloom lookup textures were not initialized", "WEBGL_ALLOCATION_FAILED");
|
|
513
|
+
}
|
|
514
|
+
const [textureA, textureB] = resources.textures;
|
|
515
|
+
const [framebufferA, framebufferB] = resources.framebuffers;
|
|
516
|
+
const brightProgram = this.ensureBloomBrightExtractProgram();
|
|
517
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebufferA);
|
|
518
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
519
|
+
this.host.gl.useProgram(brightProgram);
|
|
520
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
521
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
522
|
+
if (brightLut)
|
|
523
|
+
this.bindFullscreenTexture(1, brightLut);
|
|
524
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_source"), 0);
|
|
525
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_brightLut"), 1);
|
|
526
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_hdr"), hdr ? 1 : 0);
|
|
527
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_threshold"), options.threshold);
|
|
528
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_softKnee"), options.softKnee);
|
|
529
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_excess"), options.excess === true ? 1 : 0);
|
|
530
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
531
|
+
const blurProgram = this.ensureBloomBlurProgram();
|
|
532
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebufferB);
|
|
533
|
+
this.host.gl.useProgram(blurProgram);
|
|
534
|
+
this.bindFullscreenTexture(0, textureA);
|
|
535
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_source"), 0);
|
|
536
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(blurProgram, "u_size"), resources.width, resources.height);
|
|
537
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_radius"), options.radius);
|
|
538
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_horizontal"), 1);
|
|
539
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_hdr"), hdr ? 1 : 0);
|
|
540
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
541
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebufferA);
|
|
542
|
+
this.bindFullscreenTexture(0, textureB);
|
|
543
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_horizontal"), 0);
|
|
544
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
545
|
+
const compositeProgram = this.ensureBloomCompositeProgram();
|
|
546
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebufferB);
|
|
547
|
+
this.host.gl.useProgram(compositeProgram);
|
|
548
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
549
|
+
this.bindFullscreenTexture(1, textureA);
|
|
550
|
+
if (compositeLut)
|
|
551
|
+
this.bindFullscreenTexture(2, compositeLut);
|
|
552
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(compositeProgram, "u_source"), 0);
|
|
553
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(compositeProgram, "u_blurred"), 1);
|
|
554
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(compositeProgram, "u_compositeLut"), 2);
|
|
555
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(compositeProgram, "u_hdr"), hdr ? 1 : 0);
|
|
556
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(compositeProgram, "u_intensity"), options.intensity);
|
|
557
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
558
|
+
return textureB;
|
|
559
|
+
}
|
|
560
|
+
executeNativeBloomPyramidPasses(sourceTexture, sourceWidth, sourceHeight, resources, fullResStaging, options, vertexArray, hdr) {
|
|
561
|
+
const plan = resources.plan;
|
|
562
|
+
const mipCount = plan.mips.length;
|
|
563
|
+
// Flag-on (§6.6): fixed widening kernels + spread-weighted mips; flag-off
|
|
564
|
+
// keeps the radius-scaled kernels and the legacy preset weights.
|
|
565
|
+
const v2Response = options.excess === true ? resolveBloomPyramidV2Response(plan, options.spread ?? 0.7) : undefined;
|
|
566
|
+
const blurRadii = v2Response ? v2Response.blurRadii : resolveBloomPyramidBlurRadii(plan, options.radius);
|
|
567
|
+
const downsampleProgram = this.ensureBloomDownsampleProgram();
|
|
568
|
+
const brightProgram = this.ensureBloomBrightExtractProgram();
|
|
569
|
+
const blurProgram = this.ensureBloomBlurProgram();
|
|
570
|
+
const accumulateProgram = this.ensureBloomAccumulateProgram();
|
|
571
|
+
const brightLut = this.bloomBrightLutTexture;
|
|
572
|
+
const mipTexture = (level, slot) => resources.textures[level * 2 + slot];
|
|
573
|
+
const mipFramebuffer = (level, slot) => resources.framebuffers[level * 2 + slot];
|
|
574
|
+
const mipSize = (level) => plan.mips[level];
|
|
575
|
+
// Every level settles in slot 0 after the vertical blur.
|
|
576
|
+
const blurredSlot = (_level) => 0;
|
|
577
|
+
const drawDownsample = (fromTexture, fromWidth, fromHeight, toFramebuffer, toWidth, toHeight) => {
|
|
578
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, toFramebuffer);
|
|
579
|
+
this.host.gl.viewport(0, 0, toWidth, toHeight);
|
|
580
|
+
this.host.gl.useProgram(downsampleProgram);
|
|
581
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
582
|
+
this.bindFullscreenTexture(0, fromTexture);
|
|
583
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(downsampleProgram, "u_source"), 0);
|
|
584
|
+
this.host.gl.uniform2f(this.host.gl.getUniformLocation(downsampleProgram, "u_texelSize"), 1 / fromWidth, 1 / fromHeight);
|
|
585
|
+
this.host.gl.uniform2f(this.host.gl.getUniformLocation(downsampleProgram, "u_targetSize"), toWidth, toHeight);
|
|
586
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
587
|
+
};
|
|
588
|
+
const drawBrightExtract = (fromTexture, toFramebuffer, size) => {
|
|
589
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, toFramebuffer);
|
|
590
|
+
this.host.gl.viewport(0, 0, size.width, size.height);
|
|
591
|
+
this.host.gl.useProgram(brightProgram);
|
|
592
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
593
|
+
this.bindFullscreenTexture(0, fromTexture);
|
|
594
|
+
if (brightLut)
|
|
595
|
+
this.bindFullscreenTexture(1, brightLut);
|
|
596
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_source"), 0);
|
|
597
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_brightLut"), 1);
|
|
598
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_hdr"), hdr ? 1 : 0);
|
|
599
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_threshold"), options.threshold);
|
|
600
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_softKnee"), options.softKnee);
|
|
601
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_excess"), options.excess === true ? 1 : 0);
|
|
602
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
603
|
+
};
|
|
604
|
+
const drawSeparableBlur = (readTexture, tmpTexture, tmpFramebuffer, outFramebuffer, size, radius) => {
|
|
605
|
+
// Horizontal into the temp target, vertical back into the output target.
|
|
606
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, tmpFramebuffer);
|
|
607
|
+
this.host.gl.viewport(0, 0, size.width, size.height);
|
|
608
|
+
this.host.gl.useProgram(blurProgram);
|
|
609
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
610
|
+
this.bindFullscreenTexture(0, readTexture);
|
|
611
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_source"), 0);
|
|
612
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(blurProgram, "u_size"), size.width, size.height);
|
|
613
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_radius"), radius);
|
|
614
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_horizontal"), 1);
|
|
615
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_hdr"), hdr ? 1 : 0);
|
|
616
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
617
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, outFramebuffer);
|
|
618
|
+
this.bindFullscreenTexture(0, tmpTexture);
|
|
619
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(blurProgram, "u_horizontal"), 0);
|
|
620
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
621
|
+
};
|
|
622
|
+
// Extract highlights at the source resolution before the first downsample.
|
|
623
|
+
// Downsampling the complete scene first averaged narrow emissive sources
|
|
624
|
+
// below the authored threshold, so balanced/cinematic bloom could execute
|
|
625
|
+
// all native passes yet remain pixel-identical to disabled output.
|
|
626
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, fullResStaging.framebufferA);
|
|
627
|
+
this.host.gl.viewport(0, 0, sourceWidth, sourceHeight);
|
|
628
|
+
this.host.gl.useProgram(brightProgram);
|
|
629
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
630
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
631
|
+
if (brightLut)
|
|
632
|
+
this.bindFullscreenTexture(1, brightLut);
|
|
633
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_source"), 0);
|
|
634
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_brightLut"), 1);
|
|
635
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_hdr"), hdr ? 1 : 0);
|
|
636
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_threshold"), options.threshold);
|
|
637
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(brightProgram, "u_softKnee"), options.softKnee);
|
|
638
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(brightProgram, "u_excess"), options.excess === true ? 1 : 0);
|
|
639
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
640
|
+
// Level 0 downsamples the extracted highlight field, then blurs H into
|
|
641
|
+
// slot 1 and V back into slot 0. The result therefore settles in slot 0.
|
|
642
|
+
const level0 = mipSize(0);
|
|
643
|
+
drawDownsample(fullResStaging.textureA, sourceWidth, sourceHeight, mipFramebuffer(0, 0), level0.width, level0.height);
|
|
644
|
+
drawSeparableBlur(mipTexture(0, 0), mipTexture(0, 1), mipFramebuffer(0, 1), mipFramebuffer(0, 0), level0, blurRadii[0]);
|
|
645
|
+
for (let level = 1; level < mipCount; level += 1) {
|
|
646
|
+
const size = mipSize(level);
|
|
647
|
+
const previous = mipSize(level - 1);
|
|
648
|
+
drawDownsample(mipTexture(level - 1, blurredSlot(level - 1)), previous.width, previous.height, mipFramebuffer(level, 0), size.width, size.height);
|
|
649
|
+
// H into slot 1, V back into slot 0: blurred result settles in slot 0.
|
|
650
|
+
drawSeparableBlur(mipTexture(level, 0), mipTexture(level, 1), mipFramebuffer(level, 1), mipFramebuffer(level, 0), size, blurRadii[level]);
|
|
651
|
+
}
|
|
652
|
+
// Accumulate smallest-to-largest, ping-ponging between the two
|
|
653
|
+
// accumulators (a pass must never sample its own bound target).
|
|
654
|
+
const weights = v2Response ? v2Response.weights : plan.weights;
|
|
655
|
+
let readAccumulator = { texture: resources.accumulatorTextureA, framebuffer: resources.accumulatorFramebufferA };
|
|
656
|
+
let writeAccumulator = { texture: resources.accumulatorTextureB, framebuffer: resources.accumulatorFramebufferB };
|
|
657
|
+
// Clear both accumulators; the seed reads the cleared sibling, never the
|
|
658
|
+
// bound target (feedback loop).
|
|
659
|
+
for (const acc of [readAccumulator, writeAccumulator]) {
|
|
660
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, acc.framebuffer);
|
|
661
|
+
this.host.gl.viewport(0, 0, level0.width, level0.height);
|
|
662
|
+
this.host.gl.clearColor(0, 0, 0, 0);
|
|
663
|
+
this.host.gl.clear(this.host.gl.COLOR_BUFFER_BIT);
|
|
664
|
+
}
|
|
665
|
+
// Seed: smallest mip onto the cleared sibling accumulator.
|
|
666
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, writeAccumulator.framebuffer);
|
|
667
|
+
this.host.gl.viewport(0, 0, level0.width, level0.height);
|
|
668
|
+
this.host.gl.useProgram(accumulateProgram);
|
|
669
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
670
|
+
this.bindFullscreenTexture(0, readAccumulator.texture);
|
|
671
|
+
this.bindFullscreenTexture(1, mipTexture(mipCount - 1, blurredSlot(mipCount - 1)));
|
|
672
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_base"), 0);
|
|
673
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_bloom"), 1);
|
|
674
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(accumulateProgram, "u_weight"), weights[mipCount - 1]);
|
|
675
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
676
|
+
for (let level = mipCount - 2; level >= 0; level -= 1) {
|
|
677
|
+
const nextRead = writeAccumulator;
|
|
678
|
+
const nextWrite = readAccumulator;
|
|
679
|
+
readAccumulator = nextRead;
|
|
680
|
+
writeAccumulator = nextWrite;
|
|
681
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, writeAccumulator.framebuffer);
|
|
682
|
+
this.host.gl.viewport(0, 0, level0.width, level0.height);
|
|
683
|
+
this.host.gl.useProgram(accumulateProgram);
|
|
684
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
685
|
+
this.bindFullscreenTexture(0, readAccumulator.texture);
|
|
686
|
+
this.bindFullscreenTexture(1, mipTexture(level, blurredSlot(level)));
|
|
687
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_base"), 0);
|
|
688
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_bloom"), 1);
|
|
689
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(accumulateProgram, "u_weight"), weights[level]);
|
|
690
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
691
|
+
}
|
|
692
|
+
// Upsample the weighted sum onto full-resolution staging target A, using
|
|
693
|
+
// the cleared staging target B as the zero base (never sample A while
|
|
694
|
+
// rendering into it).
|
|
695
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, fullResStaging.framebufferB);
|
|
696
|
+
this.host.gl.viewport(0, 0, sourceWidth, sourceHeight);
|
|
697
|
+
this.host.gl.clearColor(0, 0, 0, 0);
|
|
698
|
+
this.host.gl.clear(this.host.gl.COLOR_BUFFER_BIT);
|
|
699
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, fullResStaging.framebufferA);
|
|
700
|
+
this.host.gl.viewport(0, 0, sourceWidth, sourceHeight);
|
|
701
|
+
this.host.gl.useProgram(accumulateProgram);
|
|
702
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
703
|
+
this.bindFullscreenTexture(0, fullResStaging.textureB);
|
|
704
|
+
this.bindFullscreenTexture(1, writeAccumulator.texture);
|
|
705
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_base"), 0);
|
|
706
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulateProgram, "u_bloom"), 1);
|
|
707
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(accumulateProgram, "u_weight"), 1);
|
|
708
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
709
|
+
return fullResStaging.textureA;
|
|
710
|
+
}
|
|
711
|
+
executeNativeOutlinePasses(sourceTexture, resources, options, vertexArray, targetIndex) {
|
|
712
|
+
const blendLut = this.outlineBlendLutTexture;
|
|
713
|
+
if (!blendLut) {
|
|
714
|
+
throw new RenderDeviceError("WebGL2 outline lookup texture was not initialized", "WEBGL_ALLOCATION_FAILED");
|
|
715
|
+
}
|
|
716
|
+
const program = this.ensureOutlineProgram();
|
|
717
|
+
const targetTexture = resources.textures[targetIndex];
|
|
718
|
+
const targetFramebuffer = resources.framebuffers[targetIndex];
|
|
719
|
+
const bound = createOutlineGradientBound(options.threshold);
|
|
720
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, targetFramebuffer);
|
|
721
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
722
|
+
this.host.gl.useProgram(program);
|
|
723
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
724
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
725
|
+
this.bindFullscreenTexture(1, blendLut);
|
|
726
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
727
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_blendLut"), 1);
|
|
728
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(program, "u_size"), resources.width, resources.height);
|
|
729
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_width"), options.width);
|
|
730
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_boundHigh"), bound.highWord);
|
|
731
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_boundLow"), bound.lowWord);
|
|
732
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
733
|
+
return targetTexture;
|
|
734
|
+
}
|
|
735
|
+
executeNativeSsaoPass(sourceTexture, depthTexture, resources, options, vertexArray, targetIndex) {
|
|
736
|
+
const program = this.ensureSsaoProgram();
|
|
737
|
+
const targetTexture = resources.textures[targetIndex];
|
|
738
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
739
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
740
|
+
this.host.gl.useProgram(program);
|
|
741
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
742
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
743
|
+
this.bindFullscreenTexture(1, depthTexture);
|
|
744
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
745
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_depth"), 1);
|
|
746
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(program, "u_size"), resources.width, resources.height);
|
|
747
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_radius"), options.radius);
|
|
748
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_intensity"), options.intensity);
|
|
749
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_bias"), options.bias);
|
|
750
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
751
|
+
return targetTexture;
|
|
752
|
+
}
|
|
753
|
+
executeNativeSsrPass(sourceTexture, depthTexture, resources, options, vertexArray, targetIndex, depthRange) {
|
|
754
|
+
const targetTexture = resources.textures[targetIndex];
|
|
755
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
756
|
+
this.drawSsrKernel(sourceTexture, depthTexture, resources.width, resources.height, options, vertexArray, depthRange);
|
|
757
|
+
return targetTexture;
|
|
758
|
+
}
|
|
759
|
+
drawSsrKernel(sourceTexture, depthTexture, width, height, options, vertexArray, depthRange) {
|
|
760
|
+
const program = this.ensureSsrProgram();
|
|
761
|
+
this.host.gl.viewport(0, 0, width, height);
|
|
762
|
+
this.host.gl.useProgram(program);
|
|
763
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
764
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
765
|
+
this.bindFullscreenTexture(1, depthTexture);
|
|
766
|
+
this.bindFullscreenTexture(2, options.normalMask ?? sourceTexture);
|
|
767
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
768
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_depth"), 1);
|
|
769
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_normalMask"), 2);
|
|
770
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_hasNormalMask"), options.normalMask ? 1 : 0);
|
|
771
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(program, "u_size"), width, height);
|
|
772
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_intensity"), options.intensity);
|
|
773
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_maxDistance"), options.maxDistance);
|
|
774
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_maxSteps"), options.maxSteps ?? 32);
|
|
775
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_thickness"), options.thickness ?? 0.2);
|
|
776
|
+
if (options.projection && options.inverseProjection) {
|
|
777
|
+
this.host.gl.uniformMatrix4fv(this.host.gl.getUniformLocation(program, "u_projection"), false, options.projection);
|
|
778
|
+
this.host.gl.uniformMatrix4fv(this.host.gl.getUniformLocation(program, "u_inverseProjection"), false, options.inverseProjection);
|
|
779
|
+
}
|
|
780
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_depthNear"), depthRange.near);
|
|
781
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_depthFar"), depthRange.far);
|
|
782
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
783
|
+
}
|
|
784
|
+
executeNativeDepthOfFieldPass(sourceTexture, depthTexture, resources, options, vertexArray, targetIndex, depthRange) {
|
|
785
|
+
const program = this.ensureDepthOfFieldProgram();
|
|
786
|
+
const targetTexture = resources.textures[targetIndex];
|
|
787
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
788
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
789
|
+
this.host.gl.useProgram(program);
|
|
790
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
791
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
792
|
+
this.bindFullscreenTexture(1, depthTexture);
|
|
793
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
794
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_depth"), 1);
|
|
795
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(program, "u_size"), resources.width, resources.height);
|
|
796
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_focusDepth"), options.focusDepth);
|
|
797
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_focusRange"), options.focusRange);
|
|
798
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_maxRadius"), options.maxRadius);
|
|
799
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_depthNear"), depthRange.near);
|
|
800
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_depthFar"), depthRange.far);
|
|
801
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
802
|
+
return targetTexture;
|
|
803
|
+
}
|
|
804
|
+
executeNativeMotionBlurPass(sourceTexture, resources, options, vertexArray, targetIndex) {
|
|
805
|
+
const velocityTexture = options.temporal ? this.requireTemporalTarget(options.temporal.velocity, resources.width, resources.height).colorHandle : this.motionBlurVelocityTexture;
|
|
806
|
+
if (!velocityTexture) {
|
|
807
|
+
throw new RenderDeviceError("WebGL2 motion-blur velocity texture was not initialized", "WEBGL_ALLOCATION_FAILED");
|
|
808
|
+
}
|
|
809
|
+
const program = this.ensureMotionBlurProgram();
|
|
810
|
+
const targetTexture = resources.textures[targetIndex];
|
|
811
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
812
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
813
|
+
this.host.gl.useProgram(program);
|
|
814
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
815
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
816
|
+
this.bindFullscreenTexture(1, velocityTexture);
|
|
817
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
818
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_velocity"), 1);
|
|
819
|
+
this.host.gl.uniform2i(this.host.gl.getUniformLocation(program, "u_size"), resources.width, resources.height);
|
|
820
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_samples"), options.samples);
|
|
821
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(program, "u_scale"), options.scale);
|
|
822
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_velocityUv"), options.temporal ? 1 : 0);
|
|
823
|
+
if (options.temporal) {
|
|
824
|
+
this.host.counters.nativeTemporalPasses++;
|
|
825
|
+
this.host.counters.nativeTemporalBindings++;
|
|
826
|
+
}
|
|
827
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
828
|
+
return targetTexture;
|
|
829
|
+
}
|
|
830
|
+
executeNativeTaaPass(sourceTexture, resources, options, vertexArray, targetIndex) {
|
|
831
|
+
const temporal = options.temporal;
|
|
832
|
+
const historyTarget = temporal ? this.requireTemporalTarget(temporal.history, resources.width, resources.height) : undefined;
|
|
833
|
+
const historyTexture = historyTarget?.colorHandle ?? this.taaHistoryTexture;
|
|
834
|
+
if (!historyTexture) {
|
|
835
|
+
throw new RenderDeviceError("WebGL2 TAA history texture was not initialized", "WEBGL_ALLOCATION_FAILED");
|
|
836
|
+
}
|
|
837
|
+
const accumulationProgram = this.ensureTaaProgram();
|
|
838
|
+
const targetTexture = resources.textures[targetIndex];
|
|
839
|
+
this.host.gl.viewport(0, 0, resources.width, resources.height);
|
|
840
|
+
this.host.gl.useProgram(accumulationProgram);
|
|
841
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
842
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
843
|
+
this.bindFullscreenTexture(1, historyTexture);
|
|
844
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulationProgram, "u_source"), 0);
|
|
845
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulationProgram, "u_history"), 1);
|
|
846
|
+
this.host.gl.uniform1f(this.host.gl.getUniformLocation(accumulationProgram, "u_blend"), temporal && !temporal.historyValid ? 0 : temporalAccumulationWeight(options.blend, temporal?.historyFrames));
|
|
847
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulationProgram, "u_temporal"), temporal ? 1 : 0);
|
|
848
|
+
if (temporal) {
|
|
849
|
+
const velocity = this.requireTemporalTarget(temporal.velocity, resources.width, resources.height);
|
|
850
|
+
const destination = this.requireTemporalTarget(temporal.historyOutput, resources.width, resources.height);
|
|
851
|
+
if (destination === historyTarget || destination === velocity || historyTarget === velocity)
|
|
852
|
+
throw new RenderDeviceError("Temporal targets must not alias", "TEMPORAL_TARGET_ALIAS");
|
|
853
|
+
this.bindFullscreenTexture(2, velocity.colorHandle);
|
|
854
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(accumulationProgram, "u_velocity"), 2);
|
|
855
|
+
// Resolve exactly once into the next history target. Presentation reads
|
|
856
|
+
// this immutable result through a separate program, so display tuning
|
|
857
|
+
// cannot alter the accumulated history shader or its stored bytes.
|
|
858
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, destination.framebuffer);
|
|
859
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
860
|
+
const presentationProgram = this.ensureTaaPresentationProgram();
|
|
861
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
862
|
+
this.host.gl.useProgram(presentationProgram);
|
|
863
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
864
|
+
this.bindFullscreenTexture(1, destination.colorHandle);
|
|
865
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(presentationProgram, "u_source"), 0);
|
|
866
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(presentationProgram, "u_accumulated"), 1);
|
|
867
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
868
|
+
this.host.counters.nativeTemporalPasses++;
|
|
869
|
+
this.host.counters.nativeTemporalBindings += 3;
|
|
870
|
+
}
|
|
871
|
+
else {
|
|
872
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, resources.framebuffers[targetIndex]);
|
|
873
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
874
|
+
}
|
|
875
|
+
return targetTexture;
|
|
876
|
+
}
|
|
877
|
+
requireTemporalTarget(target, width, height) {
|
|
878
|
+
if (!(target instanceof WebGL2RenderTarget) || !this.host.renderTargets.has(target) || target.disposed || target.width !== width || target.height !== height || target.colorTexture.format !== "rgba16f")
|
|
879
|
+
throw new RenderDeviceError("Temporal input must be a live same-device same-size RGBA16F target", "TEMPORAL_TARGET_INVALID");
|
|
880
|
+
return target;
|
|
881
|
+
}
|
|
882
|
+
bindFullscreenTexture(unit, texture) {
|
|
883
|
+
this.host.gl.activeTexture(this.host.gl.TEXTURE0 + unit);
|
|
884
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, texture);
|
|
885
|
+
this.host.gl.bindSampler(unit, null);
|
|
886
|
+
}
|
|
887
|
+
disposeBloomPingPongResources() {
|
|
888
|
+
if (!this.bloomPingPongResources)
|
|
889
|
+
return;
|
|
890
|
+
for (const texture of this.bloomPingPongResources.textures)
|
|
891
|
+
this.host.gl.deleteTexture(texture);
|
|
892
|
+
for (const framebuffer of this.bloomPingPongResources.framebuffers)
|
|
893
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
894
|
+
this.bloomPingPongResources = null;
|
|
895
|
+
}
|
|
896
|
+
getBloomDiagnostics() {
|
|
897
|
+
return this.lastBloomDiagnostics;
|
|
898
|
+
}
|
|
899
|
+
recordBloomDiagnostics(options, sourceWidth, sourceHeight, hdr, mipCount) {
|
|
900
|
+
const plan = resolveBloomPyramidPlan(sourceWidth, sourceHeight, options.quality, hdr);
|
|
901
|
+
const pingPongBytes = sourceWidth * sourceHeight * 4 * (hdr ? 2 : 1) * 2;
|
|
902
|
+
const bytesPerChannel = plan.halfFloat ? 2 : 1;
|
|
903
|
+
const level0 = plan.mips[0];
|
|
904
|
+
const accumulatorBytes = level0.width * level0.height * 4 * bytesPerChannel;
|
|
905
|
+
this.lastBloomDiagnostics = {
|
|
906
|
+
quality: options.quality,
|
|
907
|
+
mipCount,
|
|
908
|
+
targetCount: options.quality === "performance" ? 2 : plan.mips.length * 2 + 1,
|
|
909
|
+
targetBytes: (options.quality === "performance" ? pingPongBytes : plan.targetBytes + accumulatorBytes + pingPongBytes),
|
|
910
|
+
compositeGain: options.intensity * nativeBloomResponseGain(plan, options),
|
|
911
|
+
threshold: options.threshold,
|
|
912
|
+
intensity: options.intensity,
|
|
913
|
+
softKnee: options.softKnee,
|
|
914
|
+
shoulder: options.shoulder,
|
|
915
|
+
halfFloat: hdr || plan.halfFloat,
|
|
916
|
+
};
|
|
917
|
+
}
|
|
918
|
+
describeGpuTargetInventory(liveRenderTargets) {
|
|
919
|
+
const entries = liveRenderTargets.map((target) => ({
|
|
920
|
+
label: target.label,
|
|
921
|
+
kind: "render-target",
|
|
922
|
+
bytes: target.colorTexture.byteLength + (target.depthTexture?.byteLength ?? 0),
|
|
923
|
+
owner: resolveGpuTargetOwner(target.label)
|
|
924
|
+
}));
|
|
925
|
+
const pyramid = this.bloomPyramidResources;
|
|
926
|
+
if (pyramid) {
|
|
927
|
+
const bytesPerPixel = pyramid.hdr ? 8 : 4;
|
|
928
|
+
pyramid.plan.mips.forEach((mip, index) => {
|
|
929
|
+
for (const side of ["a", "b"]) {
|
|
930
|
+
entries.push({
|
|
931
|
+
label: `bloom-pyramid-mip${index}${side}`,
|
|
932
|
+
kind: "pyramid-mip",
|
|
933
|
+
bytes: mip.width * mip.height * bytesPerPixel,
|
|
934
|
+
owner: "a1-bloom"
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
const level0 = pyramid.plan.mips[0];
|
|
939
|
+
if (level0) {
|
|
940
|
+
for (const side of ["a", "b"]) {
|
|
941
|
+
entries.push({
|
|
942
|
+
label: `bloom-pyramid-accumulator-${side}`,
|
|
943
|
+
kind: "pyramid-accumulator",
|
|
944
|
+
bytes: level0.width * level0.height * bytesPerPixel,
|
|
945
|
+
owner: "a1-bloom"
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
const pingPong = this.bloomPingPongResources;
|
|
951
|
+
if (pingPong) {
|
|
952
|
+
const bytesPerPixel = pingPong.hdr ? 8 : 4;
|
|
953
|
+
for (const side of ["a", "b"]) {
|
|
954
|
+
entries.push({
|
|
955
|
+
label: `bloom-ping-pong-${side}`,
|
|
956
|
+
kind: "ping-pong",
|
|
957
|
+
bytes: pingPong.width * pingPong.height * bytesPerPixel,
|
|
958
|
+
owner: "a1-bloom"
|
|
959
|
+
});
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
if (this.bloomBrightLutTexture) {
|
|
963
|
+
entries.push({
|
|
964
|
+
label: "bloom-bright-lut",
|
|
965
|
+
kind: "lut",
|
|
966
|
+
bytes: BLOOM_BRIGHT_LUT_WIDTH * BLOOM_BRIGHT_LUT_HEIGHT * 4,
|
|
967
|
+
owner: "a1-bloom"
|
|
968
|
+
});
|
|
969
|
+
}
|
|
970
|
+
if (this.bloomCompositeLutTexture) {
|
|
971
|
+
entries.push({
|
|
972
|
+
label: "bloom-composite-lut",
|
|
973
|
+
kind: "lut",
|
|
974
|
+
bytes: BLOOM_COMPOSITE_LUT_SIZE * BLOOM_COMPOSITE_LUT_SIZE * 4,
|
|
975
|
+
owner: "a1-bloom"
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
if (this.outlineBlendLutTexture) {
|
|
979
|
+
entries.push({ label: "outline-blend-lut", kind: "lut", bytes: OUTLINE_BLEND_LUT_WIDTH * 4, owner: "post" });
|
|
980
|
+
}
|
|
981
|
+
if (this.motionBlurVelocityTexture && this.motionBlurVelocitySize) {
|
|
982
|
+
entries.push({
|
|
983
|
+
label: "motion-blur-velocity",
|
|
984
|
+
kind: "history",
|
|
985
|
+
bytes: this.motionBlurVelocitySize.width * this.motionBlurVelocitySize.height * 8,
|
|
986
|
+
owner: "post"
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
if (this.taaHistoryTexture && this.taaHistorySize) {
|
|
990
|
+
entries.push({
|
|
991
|
+
label: "taa-history",
|
|
992
|
+
kind: "history",
|
|
993
|
+
bytes: this.taaHistorySize.width * this.taaHistorySize.height * 4,
|
|
994
|
+
owner: "post"
|
|
995
|
+
});
|
|
996
|
+
}
|
|
997
|
+
return entries;
|
|
998
|
+
}
|
|
999
|
+
disposeBloomPyramidResources() {
|
|
1000
|
+
if (!this.bloomPyramidResources)
|
|
1001
|
+
return;
|
|
1002
|
+
for (const texture of this.bloomPyramidResources.textures)
|
|
1003
|
+
this.host.gl.deleteTexture(texture);
|
|
1004
|
+
for (const framebuffer of this.bloomPyramidResources.framebuffers)
|
|
1005
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
1006
|
+
this.host.gl.deleteTexture(this.bloomPyramidResources.accumulatorTextureA);
|
|
1007
|
+
this.host.gl.deleteFramebuffer(this.bloomPyramidResources.accumulatorFramebufferA);
|
|
1008
|
+
this.host.gl.deleteTexture(this.bloomPyramidResources.accumulatorTextureB);
|
|
1009
|
+
this.host.gl.deleteFramebuffer(this.bloomPyramidResources.accumulatorFramebufferB);
|
|
1010
|
+
this.bloomPyramidResources = null;
|
|
1011
|
+
}
|
|
1012
|
+
ensureBloomPyramidResources(plan, hdr) {
|
|
1013
|
+
const current = this.bloomPyramidResources;
|
|
1014
|
+
if (current && current.plan.quality === plan.quality && current.hdr === (hdr || plan.halfFloat) &&
|
|
1015
|
+
current.plan.mips.length === plan.mips.length &&
|
|
1016
|
+
current.plan.mips.every((mip, index) => mip.width === plan.mips[index].width && mip.height === plan.mips[index].height)) {
|
|
1017
|
+
return current;
|
|
1018
|
+
}
|
|
1019
|
+
this.disposeBloomPyramidResources();
|
|
1020
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
1021
|
+
const previousFramebuffer = this.host.gl.getParameter(this.host.gl.FRAMEBUFFER_BINDING);
|
|
1022
|
+
const textures = [];
|
|
1023
|
+
const framebuffers = [];
|
|
1024
|
+
const useHalfFloat = hdr || plan.halfFloat;
|
|
1025
|
+
const allocateTarget = (width, height, label) => {
|
|
1026
|
+
const texture = this.host.gl.createTexture();
|
|
1027
|
+
const framebuffer = this.host.gl.createFramebuffer();
|
|
1028
|
+
if (!texture || !framebuffer) {
|
|
1029
|
+
if (texture)
|
|
1030
|
+
this.host.gl.deleteTexture(texture);
|
|
1031
|
+
if (framebuffer)
|
|
1032
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
1033
|
+
throw new RenderDeviceError(`Failed to allocate WebGL2 bloom pyramid ${label}`, "WEBGL_ALLOCATION_FAILED", { width, height });
|
|
1034
|
+
}
|
|
1035
|
+
textures.push(texture);
|
|
1036
|
+
framebuffers.push(framebuffer);
|
|
1037
|
+
this.host.gl.bindTexture(this.host.gl.TEXTURE_2D, texture);
|
|
1038
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MIN_FILTER, this.host.gl.LINEAR);
|
|
1039
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_MAG_FILTER, this.host.gl.LINEAR);
|
|
1040
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_S, this.host.gl.CLAMP_TO_EDGE);
|
|
1041
|
+
this.host.gl.texParameteri(this.host.gl.TEXTURE_2D, this.host.gl.TEXTURE_WRAP_T, this.host.gl.CLAMP_TO_EDGE);
|
|
1042
|
+
this.host.gl.texImage2D(this.host.gl.TEXTURE_2D, 0, useHalfFloat ? this.host.gl.RGBA16F : this.host.gl.RGBA8, width, height, 0, this.host.gl.RGBA, useHalfFloat ? this.host.gl.HALF_FLOAT : this.host.gl.UNSIGNED_BYTE, null);
|
|
1043
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebuffer);
|
|
1044
|
+
this.host.gl.framebufferTexture2D(this.host.gl.FRAMEBUFFER, this.host.gl.COLOR_ATTACHMENT0, this.host.gl.TEXTURE_2D, texture, 0);
|
|
1045
|
+
const status = this.host.gl.checkFramebufferStatus(this.host.gl.FRAMEBUFFER);
|
|
1046
|
+
if (status !== this.host.gl.FRAMEBUFFER_COMPLETE) {
|
|
1047
|
+
throw new RenderDeviceError("WebGL2 bloom pyramid framebuffer status is invalid", "FRAMEBUFFER_INVALID", { width, height, status });
|
|
1048
|
+
}
|
|
1049
|
+
return { texture, framebuffer };
|
|
1050
|
+
};
|
|
1051
|
+
try {
|
|
1052
|
+
// Two ping-pong targets per mip (separable blur needs distinct read/write
|
|
1053
|
+
// targets at the same size), plus two level-0-sized accumulators: the
|
|
1054
|
+
// weighted sum ping-pongs between them so no pass ever samples the
|
|
1055
|
+
// texture of its own bound framebuffer (feedback loop).
|
|
1056
|
+
for (const mip of plan.mips) {
|
|
1057
|
+
allocateTarget(mip.width, mip.height, "mip");
|
|
1058
|
+
allocateTarget(mip.width, mip.height, "mip");
|
|
1059
|
+
}
|
|
1060
|
+
const level0 = plan.mips[0];
|
|
1061
|
+
const accumulatorA = allocateTarget(level0.width, level0.height, "accumulator-a");
|
|
1062
|
+
const accumulatorB = allocateTarget(level0.width, level0.height, "accumulator-b");
|
|
1063
|
+
const finalResources = {
|
|
1064
|
+
plan,
|
|
1065
|
+
hdr: useHalfFloat,
|
|
1066
|
+
textures,
|
|
1067
|
+
framebuffers,
|
|
1068
|
+
accumulatorTextureA: accumulatorA.texture,
|
|
1069
|
+
accumulatorFramebufferA: accumulatorA.framebuffer,
|
|
1070
|
+
accumulatorTextureB: accumulatorB.texture,
|
|
1071
|
+
accumulatorFramebufferB: accumulatorB.framebuffer
|
|
1072
|
+
};
|
|
1073
|
+
this.bloomPyramidResources = finalResources;
|
|
1074
|
+
return finalResources;
|
|
1075
|
+
}
|
|
1076
|
+
catch (error) {
|
|
1077
|
+
for (const texture of textures)
|
|
1078
|
+
this.host.gl.deleteTexture(texture);
|
|
1079
|
+
for (const framebuffer of framebuffers)
|
|
1080
|
+
this.host.gl.deleteFramebuffer(framebuffer);
|
|
1081
|
+
throw error;
|
|
1082
|
+
}
|
|
1083
|
+
finally {
|
|
1084
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, previousFramebuffer);
|
|
1085
|
+
this.host.lifecycle.restoreTextureUnit0(textureUnit0);
|
|
1086
|
+
this.host.stateCache.invalidate();
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
prepareFullscreenPresentation(framebuffer, outputWidth, outputHeight) {
|
|
1090
|
+
const textureUnit0 = this.host.lifecycle.captureTextureUnit0();
|
|
1091
|
+
const textureUnit1 = this.host.lifecycle.captureTextureUnitBinding(1);
|
|
1092
|
+
const textureUnit2 = this.host.lifecycle.captureTextureUnitBinding(2);
|
|
1093
|
+
this.host.gl.activeTexture(textureUnit0.activeTexture);
|
|
1094
|
+
const snapshot = {
|
|
1095
|
+
framebuffer: this.host.gl.getParameter(this.host.gl.FRAMEBUFFER_BINDING),
|
|
1096
|
+
program: this.host.gl.getParameter(this.host.gl.CURRENT_PROGRAM),
|
|
1097
|
+
textureUnit0,
|
|
1098
|
+
textureUnit1,
|
|
1099
|
+
textureUnit2,
|
|
1100
|
+
vertexArray: this.host.gl.getParameter(this.host.gl.VERTEX_ARRAY_BINDING),
|
|
1101
|
+
viewport: this.host.gl.getParameter(this.host.gl.VIEWPORT),
|
|
1102
|
+
colorMask: this.host.gl.getParameter(this.host.gl.COLOR_WRITEMASK),
|
|
1103
|
+
depthTestEnabled: this.host.gl.isEnabled(this.host.gl.DEPTH_TEST),
|
|
1104
|
+
cullFaceEnabled: this.host.gl.isEnabled(this.host.gl.CULL_FACE),
|
|
1105
|
+
blendEnabled: this.host.gl.isEnabled(this.host.gl.BLEND),
|
|
1106
|
+
scissorTestEnabled: this.host.gl.isEnabled(this.host.gl.SCISSOR_TEST),
|
|
1107
|
+
stencilTestEnabled: this.host.gl.isEnabled(this.host.gl.STENCIL_TEST),
|
|
1108
|
+
polygonOffsetFillEnabled: this.host.gl.isEnabled(this.host.gl.POLYGON_OFFSET_FILL),
|
|
1109
|
+
depthMask: this.host.gl.getParameter(this.host.gl.DEPTH_WRITEMASK)
|
|
1110
|
+
};
|
|
1111
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebuffer);
|
|
1112
|
+
this.host.gl.viewport(0, 0, outputWidth, outputHeight);
|
|
1113
|
+
this.host.gl.colorMask(true, true, true, true);
|
|
1114
|
+
this.host.gl.disable(this.host.gl.SCISSOR_TEST);
|
|
1115
|
+
this.host.gl.disable(this.host.gl.STENCIL_TEST);
|
|
1116
|
+
this.host.gl.disable(this.host.gl.POLYGON_OFFSET_FILL);
|
|
1117
|
+
this.host.gl.disable(this.host.gl.DEPTH_TEST);
|
|
1118
|
+
this.host.gl.disable(this.host.gl.CULL_FACE);
|
|
1119
|
+
this.host.gl.disable(this.host.gl.BLEND);
|
|
1120
|
+
this.host.gl.depthMask(false);
|
|
1121
|
+
return snapshot;
|
|
1122
|
+
}
|
|
1123
|
+
restoreFullscreenPresentationState(snapshot, fallbackWidth, fallbackHeight) {
|
|
1124
|
+
this.host.gl.bindVertexArray(snapshot.vertexArray);
|
|
1125
|
+
this.host.lifecycle.restoreTextureUnitBinding(2, snapshot.textureUnit2);
|
|
1126
|
+
this.host.lifecycle.restoreTextureUnitBinding(1, snapshot.textureUnit1);
|
|
1127
|
+
this.host.lifecycle.restoreTextureUnit0(snapshot.textureUnit0);
|
|
1128
|
+
this.host.gl.useProgram(snapshot.program);
|
|
1129
|
+
if (snapshot.depthTestEnabled)
|
|
1130
|
+
this.host.gl.enable(this.host.gl.DEPTH_TEST);
|
|
1131
|
+
else
|
|
1132
|
+
this.host.gl.disable(this.host.gl.DEPTH_TEST);
|
|
1133
|
+
if (snapshot.cullFaceEnabled)
|
|
1134
|
+
this.host.gl.enable(this.host.gl.CULL_FACE);
|
|
1135
|
+
else
|
|
1136
|
+
this.host.gl.disable(this.host.gl.CULL_FACE);
|
|
1137
|
+
if (snapshot.blendEnabled)
|
|
1138
|
+
this.host.gl.enable(this.host.gl.BLEND);
|
|
1139
|
+
else
|
|
1140
|
+
this.host.gl.disable(this.host.gl.BLEND);
|
|
1141
|
+
if (snapshot.scissorTestEnabled)
|
|
1142
|
+
this.host.gl.enable(this.host.gl.SCISSOR_TEST);
|
|
1143
|
+
else
|
|
1144
|
+
this.host.gl.disable(this.host.gl.SCISSOR_TEST);
|
|
1145
|
+
if (snapshot.stencilTestEnabled)
|
|
1146
|
+
this.host.gl.enable(this.host.gl.STENCIL_TEST);
|
|
1147
|
+
else
|
|
1148
|
+
this.host.gl.disable(this.host.gl.STENCIL_TEST);
|
|
1149
|
+
if (snapshot.polygonOffsetFillEnabled)
|
|
1150
|
+
this.host.gl.enable(this.host.gl.POLYGON_OFFSET_FILL);
|
|
1151
|
+
else
|
|
1152
|
+
this.host.gl.disable(this.host.gl.POLYGON_OFFSET_FILL);
|
|
1153
|
+
const colorMask = snapshot.colorMask ?? [true, true, true, true];
|
|
1154
|
+
this.host.gl.colorMask(colorMask[0] ?? true, colorMask[1] ?? true, colorMask[2] ?? true, colorMask[3] ?? true);
|
|
1155
|
+
this.host.gl.depthMask(snapshot.depthMask);
|
|
1156
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, snapshot.framebuffer);
|
|
1157
|
+
const viewport = snapshot.viewport ?? [0, 0, fallbackWidth, fallbackHeight];
|
|
1158
|
+
this.host.gl.viewport(viewport[0] ?? 0, viewport[1] ?? 0, viewport[2] ?? fallbackWidth, viewport[3] ?? fallbackHeight);
|
|
1159
|
+
this.host.stateCache.invalidate();
|
|
1160
|
+
}
|
|
1161
|
+
ensurePresentationVertexArray() {
|
|
1162
|
+
if (this.presentationVertexArray)
|
|
1163
|
+
return this.presentationVertexArray;
|
|
1164
|
+
const vertexArray = this.host.gl.createVertexArray();
|
|
1165
|
+
if (!vertexArray) {
|
|
1166
|
+
throw new RenderDeviceError("Failed to allocate WebGL presentation vertex array", "WEBGL_ALLOCATION_FAILED");
|
|
1167
|
+
}
|
|
1168
|
+
this.presentationVertexArray = vertexArray;
|
|
1169
|
+
return vertexArray;
|
|
1170
|
+
}
|
|
1171
|
+
ensurePresentationProgram() {
|
|
1172
|
+
if (this.presentationProgram) {
|
|
1173
|
+
return this.presentationProgram;
|
|
1174
|
+
}
|
|
1175
|
+
const vertex = this.host.device.compileShader(this.host.gl.VERTEX_SHADER, `#version 300 es
|
|
1176
|
+
precision highp float;
|
|
1177
|
+
out vec2 v_uv;
|
|
1178
|
+
void main() {
|
|
1179
|
+
vec2 position = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));
|
|
1180
|
+
v_uv = position;
|
|
1181
|
+
gl_Position = vec4(position * 2.0 - 1.0, 0.0, 1.0);
|
|
1182
|
+
}
|
|
1183
|
+
`, "webgl2-present-render-target");
|
|
1184
|
+
const fragment = this.host.device.compileShader(this.host.gl.FRAGMENT_SHADER, `#version 300 es
|
|
1185
|
+
precision highp float;
|
|
1186
|
+
uniform sampler2D u_source;
|
|
1187
|
+
in vec2 v_uv;
|
|
1188
|
+
out vec4 outColor;
|
|
1189
|
+
void main() {
|
|
1190
|
+
outColor = texture(u_source, v_uv);
|
|
1191
|
+
}
|
|
1192
|
+
`, "webgl2-present-render-target");
|
|
1193
|
+
const program = this.host.gl.createProgram();
|
|
1194
|
+
if (!program) {
|
|
1195
|
+
this.host.gl.deleteShader(vertex);
|
|
1196
|
+
this.host.gl.deleteShader(fragment);
|
|
1197
|
+
throw new RenderDeviceError("Failed to allocate WebGL presentation shader", "WEBGL_ALLOCATION_FAILED");
|
|
1198
|
+
}
|
|
1199
|
+
this.host.gl.attachShader(program, vertex);
|
|
1200
|
+
this.host.gl.attachShader(program, fragment);
|
|
1201
|
+
this.host.gl.linkProgram(program);
|
|
1202
|
+
this.host.counters.programCompiles += 1;
|
|
1203
|
+
this.host.gl.deleteShader(vertex);
|
|
1204
|
+
this.host.gl.deleteShader(fragment);
|
|
1205
|
+
if (!this.host.gl.getProgramParameter(program, this.host.gl.LINK_STATUS)) {
|
|
1206
|
+
const log = this.host.gl.getProgramInfoLog(program) ?? "Unknown presentation shader link error";
|
|
1207
|
+
this.host.gl.deleteProgram(program);
|
|
1208
|
+
throw new RenderDeviceError("WebGL presentation shader link failed", "SHADER_LINK_FAILED", { log });
|
|
1209
|
+
}
|
|
1210
|
+
this.presentationProgram = program;
|
|
1211
|
+
return program;
|
|
1212
|
+
}
|
|
1213
|
+
ensureBloomBrightExtractProgram() {
|
|
1214
|
+
if (this.bloomBrightExtractProgram) {
|
|
1215
|
+
return this.bloomBrightExtractProgram;
|
|
1216
|
+
}
|
|
1217
|
+
this.bloomBrightExtractProgram = this.createFullscreenProgram(BLOOM_BRIGHT_EXTRACT_GLSL, "webgl2-bloom-bright-extract");
|
|
1218
|
+
return this.bloomBrightExtractProgram;
|
|
1219
|
+
}
|
|
1220
|
+
ensureBloomBlurProgram() {
|
|
1221
|
+
if (this.bloomBlurProgram) {
|
|
1222
|
+
return this.bloomBlurProgram;
|
|
1223
|
+
}
|
|
1224
|
+
this.bloomBlurProgram = this.createFullscreenProgram(`#version 300 es
|
|
1225
|
+
precision highp float;
|
|
1226
|
+
precision highp int;
|
|
1227
|
+
uniform sampler2D u_source;
|
|
1228
|
+
uniform ivec2 u_size;
|
|
1229
|
+
uniform int u_radius;
|
|
1230
|
+
uniform int u_horizontal;
|
|
1231
|
+
uniform int u_hdr;
|
|
1232
|
+
out vec4 outColor;
|
|
1233
|
+
|
|
1234
|
+
vec4 sourcePixel(ivec2 coordinate) {
|
|
1235
|
+
return texelFetch(u_source, clamp(coordinate, ivec2(0), u_size - ivec2(1)), 0);
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
void main() {
|
|
1239
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1240
|
+
float sigma = max(float(u_radius) / 3.0, 0.5);
|
|
1241
|
+
float coefficient = 0.39894 / sigma;
|
|
1242
|
+
vec4 sum = sourcePixel(pixel) * coefficient;
|
|
1243
|
+
float weightSum = coefficient;
|
|
1244
|
+
// 24 covers the flag-on §6.6 kernels (≤ 22); flag-off radii stay ≤ 16.
|
|
1245
|
+
for (int offset = 1; offset <= 24; offset += 1) {
|
|
1246
|
+
if (offset > u_radius) continue;
|
|
1247
|
+
float distance = float(offset);
|
|
1248
|
+
float weight = coefficient * exp(-0.5 * distance * distance / (sigma * sigma));
|
|
1249
|
+
ivec2 delta = u_horizontal == 1 ? ivec2(offset, 0) : ivec2(0, offset);
|
|
1250
|
+
sum += (sourcePixel(pixel + delta) + sourcePixel(pixel - delta)) * weight;
|
|
1251
|
+
weightSum += 2.0 * weight;
|
|
1252
|
+
}
|
|
1253
|
+
outColor = sum / max(weightSum, 0.000001);
|
|
1254
|
+
}
|
|
1255
|
+
`, "webgl2-bloom-blur");
|
|
1256
|
+
return this.bloomBlurProgram;
|
|
1257
|
+
}
|
|
1258
|
+
ensureBloomCompositeProgram() {
|
|
1259
|
+
if (this.bloomCompositeProgram) {
|
|
1260
|
+
return this.bloomCompositeProgram;
|
|
1261
|
+
}
|
|
1262
|
+
this.bloomCompositeProgram = this.createFullscreenProgram(`#version 300 es
|
|
1263
|
+
precision highp float;
|
|
1264
|
+
precision highp int;
|
|
1265
|
+
uniform sampler2D u_source;
|
|
1266
|
+
uniform sampler2D u_blurred;
|
|
1267
|
+
uniform sampler2D u_compositeLut;
|
|
1268
|
+
uniform int u_hdr;
|
|
1269
|
+
uniform float u_intensity;
|
|
1270
|
+
out vec4 outColor;
|
|
1271
|
+
|
|
1272
|
+
uvec4 byteTexel(sampler2D source, ivec2 coordinate) {
|
|
1273
|
+
return uvec4(texelFetch(source, coordinate, 0) * 255.0 + 0.5);
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
float compositeChannel(uint source, uint blurred) {
|
|
1277
|
+
return texelFetch(u_compositeLut, ivec2(int(source), int(blurred)), 0).r;
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
void main() {
|
|
1281
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1282
|
+
if (u_hdr == 1) {
|
|
1283
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
1284
|
+
vec3 blurred = texelFetch(u_blurred, pixel, 0).rgb;
|
|
1285
|
+
outColor = vec4(source.rgb + blurred * u_intensity, source.a);
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
uvec4 source = byteTexel(u_source, pixel);
|
|
1289
|
+
uvec4 blurred = byteTexel(u_blurred, pixel);
|
|
1290
|
+
outColor = vec4(
|
|
1291
|
+
compositeChannel(source.r, blurred.r),
|
|
1292
|
+
compositeChannel(source.g, blurred.g),
|
|
1293
|
+
compositeChannel(source.b, blurred.b),
|
|
1294
|
+
float(source.a) / 255.0
|
|
1295
|
+
);
|
|
1296
|
+
}
|
|
1297
|
+
`, "webgl2-bloom-composite");
|
|
1298
|
+
return this.bloomCompositeProgram;
|
|
1299
|
+
}
|
|
1300
|
+
ensureBloomDownsampleProgram() {
|
|
1301
|
+
if (this.bloomDownsampleProgram)
|
|
1302
|
+
return this.bloomDownsampleProgram;
|
|
1303
|
+
this.bloomDownsampleProgram = this.createFullscreenProgram(`#version 300 es
|
|
1304
|
+
precision highp float;
|
|
1305
|
+
uniform sampler2D u_source;
|
|
1306
|
+
uniform vec2 u_texelSize;
|
|
1307
|
+
uniform vec2 u_targetSize;
|
|
1308
|
+
out vec4 outColor;
|
|
1309
|
+
void main() {
|
|
1310
|
+
// gl_FragCoord is expressed in destination pixels. Normalize by the
|
|
1311
|
+
// destination size so every downsample covers the complete source image;
|
|
1312
|
+
// multiplying by source texel size cropped a half-size target to the
|
|
1313
|
+
// lower-left quarter of the preceding level.
|
|
1314
|
+
vec2 uv = gl_FragCoord.xy / u_targetSize;
|
|
1315
|
+
vec2 e = u_texelSize * 0.5;
|
|
1316
|
+
vec4 sum = texture(u_source, uv - e) + texture(u_source, uv + vec2(e.x, -e.y))
|
|
1317
|
+
+ texture(u_source, uv + vec2(-e.x, e.y)) + texture(u_source, uv + e);
|
|
1318
|
+
outColor = sum * 0.25;
|
|
1319
|
+
}
|
|
1320
|
+
`, "webgl2-bloom-downsample");
|
|
1321
|
+
return this.bloomDownsampleProgram;
|
|
1322
|
+
}
|
|
1323
|
+
ensureBloomAccumulateProgram() {
|
|
1324
|
+
if (this.bloomAccumulateProgram)
|
|
1325
|
+
return this.bloomAccumulateProgram;
|
|
1326
|
+
this.bloomAccumulateProgram = this.createFullscreenProgram(`#version 300 es
|
|
1327
|
+
precision highp float;
|
|
1328
|
+
uniform sampler2D u_base;
|
|
1329
|
+
uniform sampler2D u_bloom;
|
|
1330
|
+
uniform float u_weight;
|
|
1331
|
+
out vec4 outColor;
|
|
1332
|
+
void main() {
|
|
1333
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1334
|
+
vec4 base = texelFetch(u_base, pixel, 0);
|
|
1335
|
+
vec2 uv = (vec2(pixel) + 0.5) / vec2(textureSize(u_base, 0));
|
|
1336
|
+
vec3 bloom = texture(u_bloom, uv).rgb;
|
|
1337
|
+
outColor = vec4(base.rgb + bloom * u_weight, base.a);
|
|
1338
|
+
}
|
|
1339
|
+
`, "webgl2-bloom-accumulate");
|
|
1340
|
+
return this.bloomAccumulateProgram;
|
|
1341
|
+
}
|
|
1342
|
+
ensureOutlineProgram() {
|
|
1343
|
+
if (this.outlineProgram)
|
|
1344
|
+
return this.outlineProgram;
|
|
1345
|
+
this.outlineProgram = this.createFullscreenProgram(`#version 300 es
|
|
1346
|
+
precision highp float;
|
|
1347
|
+
precision highp int;
|
|
1348
|
+
uniform sampler2D u_source;
|
|
1349
|
+
uniform sampler2D u_blendLut;
|
|
1350
|
+
uniform ivec2 u_size;
|
|
1351
|
+
uniform int u_width;
|
|
1352
|
+
uniform float u_boundHigh;
|
|
1353
|
+
uniform float u_boundLow;
|
|
1354
|
+
out vec4 outColor;
|
|
1355
|
+
|
|
1356
|
+
uvec4 sourceByte(ivec2 coordinate) {
|
|
1357
|
+
ivec2 bounded = clamp(coordinate, ivec2(0), u_size - ivec2(1));
|
|
1358
|
+
return uvec4(texelFetch(u_source, bounded, 0) * 255.0 + 0.5);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
uint lumaNumerator(ivec2 coordinate) {
|
|
1362
|
+
uvec3 source = sourceByte(coordinate).rgb;
|
|
1363
|
+
return 2126u * source.r + 7152u * source.g + 722u * source.b;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
uvec2 squareWords(int signedValue) {
|
|
1367
|
+
uint value = uint(abs(signedValue));
|
|
1368
|
+
uint high = value >> 12u;
|
|
1369
|
+
uint low = value & 4095u;
|
|
1370
|
+
uint middle = 2u * high * low;
|
|
1371
|
+
uint lowWord = low * low + (middle & 4095u) * 4096u;
|
|
1372
|
+
uint highWord = high * high + (middle >> 12u);
|
|
1373
|
+
highWord += lowWord / ${OUTLINE_LIMB_RADIX}u;
|
|
1374
|
+
lowWord %= ${OUTLINE_LIMB_RADIX}u;
|
|
1375
|
+
return uvec2(highWord, lowWord);
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
bool edgeAt(ivec2 pixel) {
|
|
1379
|
+
int nw = int(lumaNumerator(pixel + ivec2(-1, -1)));
|
|
1380
|
+
int n = int(lumaNumerator(pixel + ivec2(0, -1)));
|
|
1381
|
+
int ne = int(lumaNumerator(pixel + ivec2(1, -1)));
|
|
1382
|
+
int w = int(lumaNumerator(pixel + ivec2(-1, 0)));
|
|
1383
|
+
int e = int(lumaNumerator(pixel + ivec2(1, 0)));
|
|
1384
|
+
int sw = int(lumaNumerator(pixel + ivec2(-1, 1)));
|
|
1385
|
+
int s = int(lumaNumerator(pixel + ivec2(0, 1)));
|
|
1386
|
+
int se = int(lumaNumerator(pixel + ivec2(1, 1)));
|
|
1387
|
+
int gx = -nw - 2 * w - sw + ne + 2 * e + se;
|
|
1388
|
+
int gy = -nw - 2 * n - ne + sw + 2 * s + se;
|
|
1389
|
+
uvec2 x = squareWords(gx);
|
|
1390
|
+
uvec2 y = squareWords(gy);
|
|
1391
|
+
uint low = x.y + y.y;
|
|
1392
|
+
uint high = x.x + y.x;
|
|
1393
|
+
if (low >= ${OUTLINE_LIMB_RADIX}u) {
|
|
1394
|
+
low -= ${OUTLINE_LIMB_RADIX}u;
|
|
1395
|
+
high += 1u;
|
|
1396
|
+
}
|
|
1397
|
+
uint boundHigh = uint(u_boundHigh);
|
|
1398
|
+
uint boundLow = uint(u_boundLow);
|
|
1399
|
+
return high != boundHigh ? high > boundHigh : low >= boundLow;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
void main() {
|
|
1403
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1404
|
+
bool outlined = false;
|
|
1405
|
+
for (int offsetY = -6; offsetY <= 6 && !outlined; offsetY += 1) {
|
|
1406
|
+
for (int offsetX = -6; offsetX <= 6; offsetX += 1) {
|
|
1407
|
+
if (abs(offsetX) > u_width || abs(offsetY) > u_width) continue;
|
|
1408
|
+
if (offsetX * offsetX + offsetY * offsetY > u_width * u_width) continue;
|
|
1409
|
+
ivec2 candidate = clamp(pixel + ivec2(offsetX, offsetY), ivec2(0), u_size - ivec2(1));
|
|
1410
|
+
if (edgeAt(candidate)) {
|
|
1411
|
+
outlined = true;
|
|
1412
|
+
break;
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
uvec4 source = sourceByte(pixel);
|
|
1417
|
+
if (!outlined) {
|
|
1418
|
+
outColor = vec4(source) / 255.0;
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
outColor = vec4(
|
|
1422
|
+
texelFetch(u_blendLut, ivec2(int(source.r), 0), 0).r,
|
|
1423
|
+
texelFetch(u_blendLut, ivec2(int(source.g), 0), 0).g,
|
|
1424
|
+
texelFetch(u_blendLut, ivec2(int(source.b), 0), 0).b,
|
|
1425
|
+
float(source.a) / 255.0
|
|
1426
|
+
);
|
|
1427
|
+
}
|
|
1428
|
+
`, "webgl2-outline");
|
|
1429
|
+
return this.outlineProgram;
|
|
1430
|
+
}
|
|
1431
|
+
ensureSsaoProgram() {
|
|
1432
|
+
if (this.ssaoProgram)
|
|
1433
|
+
return this.ssaoProgram;
|
|
1434
|
+
this.ssaoProgram = this.createFullscreenProgram(`#version 300 es
|
|
1435
|
+
precision highp float;
|
|
1436
|
+
precision highp int;
|
|
1437
|
+
uniform sampler2D u_source;
|
|
1438
|
+
uniform sampler2D u_depth;
|
|
1439
|
+
uniform ivec2 u_size;
|
|
1440
|
+
uniform int u_radius;
|
|
1441
|
+
uniform float u_intensity;
|
|
1442
|
+
uniform float u_bias;
|
|
1443
|
+
out vec4 outColor;
|
|
1444
|
+
|
|
1445
|
+
float depthAt(ivec2 coordinate) {
|
|
1446
|
+
return texelFetch(u_depth, clamp(coordinate, ivec2(0), u_size - ivec2(1)), 0).r;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
void main() {
|
|
1450
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1451
|
+
float centerDepth = depthAt(pixel);
|
|
1452
|
+
float occlusion = 0.0;
|
|
1453
|
+
float samples = 0.0;
|
|
1454
|
+
for (int stepY = -1; stepY <= 1; stepY += 1) {
|
|
1455
|
+
for (int stepX = -1; stepX <= 1; stepX += 1) {
|
|
1456
|
+
if (stepX == 0 && stepY == 0) continue;
|
|
1457
|
+
float sampleDepth = depthAt(pixel + ivec2(stepX * u_radius, stepY * u_radius));
|
|
1458
|
+
occlusion += clamp(
|
|
1459
|
+
(centerDepth - sampleDepth - u_bias) / (0.14 + float(u_radius) * 0.04),
|
|
1460
|
+
0.0,
|
|
1461
|
+
1.0
|
|
1462
|
+
);
|
|
1463
|
+
samples += 1.0;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
float factor = max(0.18, 1.0 - (occlusion / max(1.0, samples)) * u_intensity * 0.72);
|
|
1467
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
1468
|
+
outColor = vec4(source.rgb * factor, source.a);
|
|
1469
|
+
}
|
|
1470
|
+
`, "webgl2-ssao");
|
|
1471
|
+
return this.ssaoProgram;
|
|
1472
|
+
}
|
|
1473
|
+
ensureSsrProgram() {
|
|
1474
|
+
if (this.ssrProgram)
|
|
1475
|
+
return this.ssrProgram;
|
|
1476
|
+
this.ssrProgram = this.createFullscreenProgram(`#version 300 es
|
|
1477
|
+
precision highp float;
|
|
1478
|
+
precision highp int;
|
|
1479
|
+
uniform sampler2D u_source;
|
|
1480
|
+
uniform sampler2D u_depth;
|
|
1481
|
+
uniform sampler2D u_normalMask;
|
|
1482
|
+
uniform ivec2 u_size;
|
|
1483
|
+
uniform float u_intensity;
|
|
1484
|
+
uniform float u_maxDistance;
|
|
1485
|
+
uniform int u_maxSteps;
|
|
1486
|
+
uniform float u_thickness;
|
|
1487
|
+
uniform int u_hasNormalMask;
|
|
1488
|
+
uniform mat4 u_projection;
|
|
1489
|
+
uniform mat4 u_inverseProjection;
|
|
1490
|
+
out vec4 outColor;
|
|
1491
|
+
vec3 positionAtDepth(vec2 uv, float depth) {
|
|
1492
|
+
vec4 p = u_inverseProjection * vec4(uv * 2.0 - 1.0, depth * 2.0 - 1.0, 1.0);
|
|
1493
|
+
return p.xyz / p.w;
|
|
1494
|
+
}
|
|
1495
|
+
vec3 positionAt(vec2 uv) {
|
|
1496
|
+
return positionAtDepth(uv, texture(u_depth, uv).r);
|
|
1497
|
+
}
|
|
1498
|
+
vec3 viewDirection(vec2 uv) {
|
|
1499
|
+
return normalize(positionAtDepth(uv, 0.999) - positionAtDepth(uv, 0.0));
|
|
1500
|
+
}
|
|
1501
|
+
vec2 projectPosition(vec3 p) {
|
|
1502
|
+
vec4 clip = u_projection * vec4(p, 1.0);
|
|
1503
|
+
return clip.xy / clip.w * 0.5 + 0.5;
|
|
1504
|
+
}
|
|
1505
|
+
float depthDifference(vec3 p, vec2 uv) {
|
|
1506
|
+
return dot(p - positionAt(uv), viewDirection(uv));
|
|
1507
|
+
}
|
|
1508
|
+
void main() {
|
|
1509
|
+
vec2 uv = gl_FragCoord.xy / vec2(u_size);
|
|
1510
|
+
vec4 base = texture(u_source, uv);
|
|
1511
|
+
outColor = base;
|
|
1512
|
+
vec3 origin = positionAt(uv);
|
|
1513
|
+
vec4 normalMask = texture(u_normalMask, uv);
|
|
1514
|
+
vec3 normal = u_hasNormalMask == 1 ? normalize(normalMask.xyz * 2.0 - 1.0) : normalize(cross(dFdx(origin), dFdy(origin)));
|
|
1515
|
+
float roughness = u_hasNormalMask == 1 ? normalMask.a : 0.25;
|
|
1516
|
+
if (texture(u_depth, uv).r >= 0.999999 || (u_hasNormalMask == 1 && normalMask.a == 0.0) || roughness >= 1.0) return;
|
|
1517
|
+
vec3 ray = normalize(reflect(viewDirection(uv), normal));
|
|
1518
|
+
float stepSize = u_maxDistance / float(u_maxSteps);
|
|
1519
|
+
vec3 start = origin + normal * u_thickness;
|
|
1520
|
+
float previous = 0.0;
|
|
1521
|
+
for (int i = 1; i <= 64; ++i) {
|
|
1522
|
+
if (i > u_maxSteps) break;
|
|
1523
|
+
float distanceAlong = float(i) * stepSize;
|
|
1524
|
+
vec3 candidate = start + ray * distanceAlong;
|
|
1525
|
+
vec4 candidateClip = u_projection * vec4(candidate, 1.0);
|
|
1526
|
+
if (candidateClip.w <= 0.0 || abs(candidateClip.z) >= candidateClip.w) break;
|
|
1527
|
+
vec2 hitUV = projectPosition(candidate);
|
|
1528
|
+
if (any(lessThanEqual(hitUV, vec2(0.0))) || any(greaterThanEqual(hitUV, vec2(1.0)))) break;
|
|
1529
|
+
float difference = depthDifference(candidate, hitUV);
|
|
1530
|
+
if (difference >= 0.0 && previous < 0.0) {
|
|
1531
|
+
float lo = distanceAlong - stepSize, hi = distanceAlong;
|
|
1532
|
+
for (int j = 0; j < 5; ++j) {
|
|
1533
|
+
float mid = (lo + hi) * 0.5;
|
|
1534
|
+
vec3 point = start + ray * mid;
|
|
1535
|
+
if (depthDifference(point, projectPosition(point)) >= 0.0) hi = mid; else lo = mid;
|
|
1536
|
+
}
|
|
1537
|
+
candidate = start + ray * hi;
|
|
1538
|
+
hitUV = projectPosition(candidate);
|
|
1539
|
+
difference = depthDifference(candidate, hitUV);
|
|
1540
|
+
if (difference > u_thickness || texture(u_depth, hitUV).r >= 0.999999) break;
|
|
1541
|
+
float edge = smoothstep(0.0, 0.08, min(min(hitUV.x, hitUV.y), min(1.0 - hitUV.x, 1.0 - hitUV.y)));
|
|
1542
|
+
float response = clamp(u_intensity * edge * (1.0 - roughness) * (1.0 - hi / u_maxDistance), 0.0, 1.0);
|
|
1543
|
+
outColor = vec4(mix(base.rgb, texture(u_source, hitUV).rgb, response), base.a);
|
|
1544
|
+
break;
|
|
1545
|
+
}
|
|
1546
|
+
previous = difference;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
`, "webgl2-ssr");
|
|
1550
|
+
return this.ssrProgram;
|
|
1551
|
+
}
|
|
1552
|
+
ensureDepthOfFieldProgram() {
|
|
1553
|
+
if (this.depthOfFieldProgram)
|
|
1554
|
+
return this.depthOfFieldProgram;
|
|
1555
|
+
this.depthOfFieldProgram = this.createFullscreenProgram(`#version 300 es
|
|
1556
|
+
precision highp float;
|
|
1557
|
+
precision highp int;
|
|
1558
|
+
uniform sampler2D u_source;
|
|
1559
|
+
uniform sampler2D u_depth;
|
|
1560
|
+
uniform ivec2 u_size;
|
|
1561
|
+
uniform float u_focusDepth;
|
|
1562
|
+
uniform float u_focusRange;
|
|
1563
|
+
uniform int u_maxRadius;
|
|
1564
|
+
uniform float u_depthNear;
|
|
1565
|
+
uniform float u_depthFar;
|
|
1566
|
+
out vec4 outColor;
|
|
1567
|
+
|
|
1568
|
+
// Same linearization contract as the SSR program, except focus is authored
|
|
1569
|
+
// directly as a linear-distance fraction (0 = near plane, 1 = far plane):
|
|
1570
|
+
// buffer-unit focus values are unusable once depth is linearized, because the
|
|
1571
|
+
// projection curve parks the whole play area inside a sliver of buffer units.
|
|
1572
|
+
// The CPU byte kernel keeps buffer-unit semantics; the divergence is
|
|
1573
|
+
// documented at normalizeLdrDepthRange.
|
|
1574
|
+
float a3dDofLinearDepth(float depth) {
|
|
1575
|
+
float viewZ = u_depthNear * u_depthFar / max(u_depthFar - depth * (u_depthFar - u_depthNear), 0.0001);
|
|
1576
|
+
return clamp((viewZ - u_depthNear) / max(u_depthFar - u_depthNear, 0.0001), 0.0, 1.0);
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
void main() {
|
|
1580
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1581
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
1582
|
+
float linearDepth = a3dDofLinearDepth(texelFetch(u_depth, pixel, 0).r);
|
|
1583
|
+
float normalizedBlur = max(0.0, abs(linearDepth - u_focusDepth) - u_focusRange)
|
|
1584
|
+
/ max(u_focusRange, 0.001) * float(u_maxRadius);
|
|
1585
|
+
int radius = min(u_maxRadius, int(round(normalizedBlur)));
|
|
1586
|
+
if (radius == 0) {
|
|
1587
|
+
outColor = source;
|
|
1588
|
+
return;
|
|
1589
|
+
}
|
|
1590
|
+
vec3 sum = vec3(0.0);
|
|
1591
|
+
float samples = 0.0;
|
|
1592
|
+
for (int offsetY = -8; offsetY <= 8; offsetY += 1) {
|
|
1593
|
+
for (int offsetX = -8; offsetX <= 8; offsetX += 1) {
|
|
1594
|
+
if (abs(offsetX) > radius || abs(offsetY) > radius) continue;
|
|
1595
|
+
if (offsetX * offsetX + offsetY * offsetY > radius * radius) continue;
|
|
1596
|
+
ivec2 samplePixel = clamp(pixel + ivec2(offsetX, offsetY), ivec2(0), u_size - ivec2(1));
|
|
1597
|
+
sum += texelFetch(u_source, samplePixel, 0).rgb;
|
|
1598
|
+
samples += 1.0;
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
outColor = vec4(sum / max(1.0, samples), source.a);
|
|
1602
|
+
}
|
|
1603
|
+
`, "webgl2-depth-of-field");
|
|
1604
|
+
return this.depthOfFieldProgram;
|
|
1605
|
+
}
|
|
1606
|
+
ensureMotionBlurProgram() {
|
|
1607
|
+
if (this.motionBlurProgram)
|
|
1608
|
+
return this.motionBlurProgram;
|
|
1609
|
+
this.motionBlurProgram = this.createFullscreenProgram(`#version 300 es
|
|
1610
|
+
precision highp float;
|
|
1611
|
+
precision highp int;
|
|
1612
|
+
uniform sampler2D u_source;
|
|
1613
|
+
uniform sampler2D u_velocity;
|
|
1614
|
+
uniform bool u_velocityUv;
|
|
1615
|
+
uniform ivec2 u_size;
|
|
1616
|
+
uniform int u_samples;
|
|
1617
|
+
uniform float u_scale;
|
|
1618
|
+
out vec4 outColor;
|
|
1619
|
+
|
|
1620
|
+
void main() {
|
|
1621
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1622
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
1623
|
+
vec2 velocity = texelFetch(u_velocity, pixel, 0).rg * u_scale;
|
|
1624
|
+
if (u_velocityUv) velocity *= vec2(u_size);
|
|
1625
|
+
velocity = clamp(velocity, vec2(-64.0), vec2(64.0));
|
|
1626
|
+
if (length(velocity) < 0.01) {
|
|
1627
|
+
outColor = source;
|
|
1628
|
+
return;
|
|
1629
|
+
}
|
|
1630
|
+
vec3 sum = vec3(0.0);
|
|
1631
|
+
for (int sampleIndex = 0; sampleIndex < 16; sampleIndex += 1) {
|
|
1632
|
+
if (sampleIndex >= u_samples) continue;
|
|
1633
|
+
float t = float(sampleIndex) / float(u_samples - 1) - 0.5;
|
|
1634
|
+
ivec2 samplePixel = ivec2(floor(vec2(pixel) - velocity * t + vec2(0.5)));
|
|
1635
|
+
samplePixel = clamp(samplePixel, ivec2(0), u_size - ivec2(1));
|
|
1636
|
+
sum += texelFetch(u_source, samplePixel, 0).rgb;
|
|
1637
|
+
}
|
|
1638
|
+
outColor = vec4(sum / float(u_samples), source.a);
|
|
1639
|
+
}
|
|
1640
|
+
`, "webgl2-motion-blur");
|
|
1641
|
+
return this.motionBlurProgram;
|
|
1642
|
+
}
|
|
1643
|
+
ensureTaaProgram() {
|
|
1644
|
+
if (this.taaProgram)
|
|
1645
|
+
return this.taaProgram;
|
|
1646
|
+
this.taaProgram = this.createFullscreenProgram(`#version 300 es
|
|
1647
|
+
precision highp float;
|
|
1648
|
+
uniform sampler2D u_source;
|
|
1649
|
+
uniform sampler2D u_history;
|
|
1650
|
+
uniform sampler2D u_velocity;
|
|
1651
|
+
uniform float u_blend;
|
|
1652
|
+
uniform bool u_temporal;
|
|
1653
|
+
out vec4 outColor;
|
|
1654
|
+
vec4 cubicWeights(float f) {
|
|
1655
|
+
float f2=f*f, f3=f2*f;
|
|
1656
|
+
return vec4(-0.5*f+f2-0.5*f3,1.0-2.5*f2+1.5*f3,0.5*f+2.0*f2-1.5*f3,-0.5*f2+0.5*f3);
|
|
1657
|
+
}
|
|
1658
|
+
vec4 historyAt(vec2 uv) {
|
|
1659
|
+
ivec2 size=textureSize(u_history,0);
|
|
1660
|
+
vec2 position=uv*vec2(size)-0.5;
|
|
1661
|
+
ivec2 base=ivec2(floor(position));
|
|
1662
|
+
vec4 wx=cubicWeights(fract(position.x)), wy=cubicWeights(fract(position.y));
|
|
1663
|
+
vec4 result=vec4(0.0);
|
|
1664
|
+
// Repeated bilinear history reconstruction diffuses a moving edge every
|
|
1665
|
+
// frame. Cubic reconstruction preserves it; the resolve's current-neighbor
|
|
1666
|
+
// clipping below bounds ringing before accumulation.
|
|
1667
|
+
for(int y=0;y<4;y++) for(int x=0;x<4;x++) {
|
|
1668
|
+
result+=texelFetch(u_history,clamp(base+ivec2(x-1,y-1),ivec2(0),size-1),0)*wx[x]*wy[y];
|
|
1669
|
+
}
|
|
1670
|
+
return result;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
void main() {
|
|
1674
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
1675
|
+
ivec2 size = textureSize(u_source, 0);
|
|
1676
|
+
vec2 outputUV=(vec2(pixel)+0.5)/vec2(size);
|
|
1677
|
+
// Raster jitter supplies quadrature samples inside the output pixel.
|
|
1678
|
+
// Keep that sample on its pixel's accumulation grid; undoing the jitter
|
|
1679
|
+
// spatially filters it and defeats temporal coverage integration.
|
|
1680
|
+
vec2 sourceUV=outputUV;
|
|
1681
|
+
ivec2 sourcePixel=clamp(ivec2(floor(sourceUV*vec2(size))),ivec2(0),size-1);
|
|
1682
|
+
// Reconstruct current color on the stable output grid before accumulation.
|
|
1683
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
1684
|
+
vec4 motion = u_temporal ? texelFetch(u_velocity, sourcePixel, 0) : vec4(0.0);
|
|
1685
|
+
// A currently uncovered sample may still carry integrated foreground
|
|
1686
|
+
// coverage in history. Track nearby foreground motion for that coverage,
|
|
1687
|
+
// but retain this pixel's own current/previous depth tags: copying RGBA
|
|
1688
|
+
// wholesale falsely labels background color as a foreground surface.
|
|
1689
|
+
if (u_temporal) {
|
|
1690
|
+
float nearestDepth=motion.b;
|
|
1691
|
+
for(int y=-1;y<=1;y++) for(int x=-1;x<=1;x++) {
|
|
1692
|
+
vec4 candidate=texelFetch(u_velocity,clamp(pixel+ivec2(x,y),ivec2(0),size-1),0);
|
|
1693
|
+
if(candidate.b<nearestDepth) {nearestDepth=candidate.b;motion.xy=candidate.xy;}
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
vec2 previousUV = outputUV-motion.xy;
|
|
1697
|
+
vec4 history = u_temporal ? historyAt(previousUV) : texture(u_history, previousUV);
|
|
1698
|
+
float weight = u_blend;
|
|
1699
|
+
if (u_temporal) {
|
|
1700
|
+
// Reprojected history incurs reconstruction error as the footprint moves
|
|
1701
|
+
// across the pixel grid. Reduce its confidence with displacement instead
|
|
1702
|
+
// of repeatedly giving a softened moving edge the stationary .9 weight.
|
|
1703
|
+
// Physical motion itself remains fully represented in previousUV.
|
|
1704
|
+
weight /= 1.0 + length(motion.xy * vec2(size));
|
|
1705
|
+
// Depth is categorical at a silhouette: bilinear alpha interpolation creates
|
|
1706
|
+
// nonexistent surfaces and rejects valid history on every jittered edge.
|
|
1707
|
+
// Test surface presence in the central history footprint. RGB remains
|
|
1708
|
+
// an integrated coverage value reconstructed from the wider cubic kernel.
|
|
1709
|
+
ivec2 previousBase=ivec2(floor(previousUV*vec2(size)-vec2(0.5)));
|
|
1710
|
+
float depthError=1.0;
|
|
1711
|
+
for(int y=0;y<2;y++) for(int x=0;x<2;x++) {
|
|
1712
|
+
float previousDepth=texelFetch(u_history,clamp(previousBase+ivec2(x,y),ivec2(0),size-1),0).a;
|
|
1713
|
+
depthError=min(depthError,abs(previousDepth-motion.a));
|
|
1714
|
+
}
|
|
1715
|
+
if (any(lessThan(previousUV,vec2(0.0))) || any(greaterThanEqual(previousUV,vec2(1.0))) || depthError>0.002) weight=0.0;
|
|
1716
|
+
vec3 lo=source.rgb, hi=source.rgb;
|
|
1717
|
+
for(int y=-1;y<=1;y++) for(int x=-1;x<=1;x++) { vec3 tap=texelFetch(u_source,clamp(pixel+ivec2(x,y),ivec2(0),size-1),0).rgb; lo=min(lo,tap); hi=max(hi,tap); }
|
|
1718
|
+
history.rgb=clamp(history.rgb,lo,hi);
|
|
1719
|
+
}
|
|
1720
|
+
vec3 resolved=mix(source.rgb,history.rgb,weight);
|
|
1721
|
+
outColor=vec4(resolved,u_temporal?motion.b:source.a);
|
|
1722
|
+
}
|
|
1723
|
+
`, "webgl2-taa-accumulation");
|
|
1724
|
+
return this.taaProgram;
|
|
1725
|
+
}
|
|
1726
|
+
ensureTaaPresentationProgram() {
|
|
1727
|
+
if (this.taaPresentationProgram)
|
|
1728
|
+
return this.taaPresentationProgram;
|
|
1729
|
+
this.taaPresentationProgram = this.createFullscreenProgram(`#version 300 es
|
|
1730
|
+
precision highp float;
|
|
1731
|
+
uniform sampler2D u_source;
|
|
1732
|
+
uniform sampler2D u_accumulated;
|
|
1733
|
+
out vec4 outColor;
|
|
1734
|
+
void main() {
|
|
1735
|
+
ivec2 pixel=ivec2(gl_FragCoord.xy);
|
|
1736
|
+
ivec2 size=textureSize(u_source,0);
|
|
1737
|
+
vec4 source=texelFetch(u_source,pixel,0);
|
|
1738
|
+
vec3 accumulated=texelFetch(u_accumulated,pixel,0).rgb;
|
|
1739
|
+
// Retained native pixels isolate the remaining spatial excess to the
|
|
1740
|
+
// horizontally moving silhouette. Apply a bounded three-tap unsharp resolve
|
|
1741
|
+
// to presentation only; accumulated history remains immutable.
|
|
1742
|
+
vec3 center=mix(source.rgb,accumulated,0.90);
|
|
1743
|
+
ivec2 leftPixel=clamp(pixel+ivec2(-1,0),ivec2(0),size-1);
|
|
1744
|
+
ivec2 rightPixel=clamp(pixel+ivec2(1,0),ivec2(0),size-1);
|
|
1745
|
+
vec3 left=mix(texelFetch(u_source,leftPixel,0).rgb,texelFetch(u_accumulated,leftPixel,0).rgb,0.90);
|
|
1746
|
+
vec3 right=mix(texelFetch(u_source,rightPixel,0).rgb,texelFetch(u_accumulated,rightPixel,0).rgb,0.90);
|
|
1747
|
+
outColor=vec4(clamp(center*1.04-(left+right)*0.02,0.0,1.0),source.a);
|
|
1748
|
+
}
|
|
1749
|
+
`, "webgl2-taa-presentation");
|
|
1750
|
+
return this.taaPresentationProgram;
|
|
1751
|
+
}
|
|
1752
|
+
ensureNativeFxaaFinalizeProgram() {
|
|
1753
|
+
if (this.nativeFxaaFinalizeProgram) {
|
|
1754
|
+
return this.nativeFxaaFinalizeProgram;
|
|
1755
|
+
}
|
|
1756
|
+
this.nativeFxaaFinalizeProgram = this.createFullscreenProgram(FXAA_185_FRAGMENT_GLSL, "webgl2-fxaa-185-finalize");
|
|
1757
|
+
return this.nativeFxaaFinalizeProgram;
|
|
1758
|
+
}
|
|
1759
|
+
/**
|
|
1760
|
+
* PRD-03 Phase 1 — the split finalize for `fxaa.variant === "r185"`: samples
|
|
1761
|
+
* the completed LDR intermediate (source resolution) and writes the r185
|
|
1762
|
+
* FXAA blend plus the ±1-LSB triangular dither to the output.
|
|
1763
|
+
*/
|
|
1764
|
+
executeNativeFxaaFinalize(sourceTexture, framebuffer, outputWidth, outputHeight, sourceWidth, sourceHeight, vertexArray) {
|
|
1765
|
+
const program = this.ensureNativeFxaaFinalizeProgram();
|
|
1766
|
+
this.host.gl.bindFramebuffer(this.host.gl.FRAMEBUFFER, framebuffer);
|
|
1767
|
+
this.host.gl.viewport(0, 0, outputWidth, outputHeight);
|
|
1768
|
+
this.host.gl.useProgram(program);
|
|
1769
|
+
this.host.gl.bindVertexArray(vertexArray);
|
|
1770
|
+
this.bindFullscreenTexture(0, sourceTexture);
|
|
1771
|
+
this.host.gl.uniform1i(this.host.gl.getUniformLocation(program, "u_source"), 0);
|
|
1772
|
+
this.host.gl.uniform2f(this.host.gl.getUniformLocation(program, "u_texelSize"), 1 / sourceWidth, 1 / sourceHeight);
|
|
1773
|
+
this.host.gl.uniform2f(this.host.gl.getUniformLocation(program, "u_outputTexel"), 1 / outputWidth, 1 / outputHeight);
|
|
1774
|
+
this.host.gl.drawArrays(this.host.gl.TRIANGLES, 0, 3);
|
|
1775
|
+
}
|
|
1776
|
+
createFullscreenProgram(fragmentSource, label) {
|
|
1777
|
+
const vertex = this.host.device.compileShader(this.host.gl.VERTEX_SHADER, `#version 300 es
|
|
1778
|
+
precision highp float;
|
|
1779
|
+
void main() {
|
|
1780
|
+
vec2 position = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));
|
|
1781
|
+
gl_Position = vec4(position * 2.0 - 1.0, 0.0, 1.0);
|
|
1782
|
+
}
|
|
1783
|
+
`, label);
|
|
1784
|
+
const fragment = this.host.device.compileShader(this.host.gl.FRAGMENT_SHADER, fragmentSource, label);
|
|
1785
|
+
const program = this.host.gl.createProgram();
|
|
1786
|
+
if (!program) {
|
|
1787
|
+
this.host.gl.deleteShader(vertex);
|
|
1788
|
+
this.host.gl.deleteShader(fragment);
|
|
1789
|
+
throw new RenderDeviceError("Failed to allocate WebGL2 fullscreen shader program", "WEBGL_ALLOCATION_FAILED", { label });
|
|
1790
|
+
}
|
|
1791
|
+
this.host.gl.attachShader(program, vertex);
|
|
1792
|
+
this.host.gl.attachShader(program, fragment);
|
|
1793
|
+
this.host.gl.linkProgram(program);
|
|
1794
|
+
this.host.counters.programCompiles += 1;
|
|
1795
|
+
this.host.gl.deleteShader(vertex);
|
|
1796
|
+
this.host.gl.deleteShader(fragment);
|
|
1797
|
+
if (!this.host.gl.getProgramParameter(program, this.host.gl.LINK_STATUS)) {
|
|
1798
|
+
const log = this.host.gl.getProgramInfoLog(program) ?? "Unknown fullscreen shader link error";
|
|
1799
|
+
this.host.gl.deleteProgram(program);
|
|
1800
|
+
throw new RenderDeviceError("WebGL2 fullscreen shader link failed", "SHADER_LINK_FAILED", { label, log });
|
|
1801
|
+
}
|
|
1802
|
+
return program;
|
|
1803
|
+
}
|
|
1804
|
+
ensureLdrPostprocessProgram() {
|
|
1805
|
+
if (this.ldrPostprocessProgram) {
|
|
1806
|
+
return this.ldrPostprocessProgram;
|
|
1807
|
+
}
|
|
1808
|
+
const vertex = this.host.device.compileShader(this.host.gl.VERTEX_SHADER, `#version 300 es
|
|
1809
|
+
precision highp float;
|
|
1810
|
+
out vec2 v_uv;
|
|
1811
|
+
void main() {
|
|
1812
|
+
vec2 position = vec2(float((gl_VertexID << 1) & 2), float(gl_VertexID & 2));
|
|
1813
|
+
v_uv = position;
|
|
1814
|
+
gl_Position = vec4(position * 2.0 - 1.0, 0.0, 1.0);
|
|
1815
|
+
}
|
|
1816
|
+
`, "webgl2-ldr-postprocess");
|
|
1817
|
+
const fragment = this.host.device.compileShader(this.host.gl.FRAGMENT_SHADER, `#version 300 es
|
|
1818
|
+
precision highp float;
|
|
1819
|
+
uniform sampler2D u_source;
|
|
1820
|
+
uniform vec2 u_texelSize;
|
|
1821
|
+
uniform int u_hasToneMapping;
|
|
1822
|
+
uniform int u_toneOperator;
|
|
1823
|
+
uniform int u_inputColorSpace;
|
|
1824
|
+
uniform int u_outputColorSpace;
|
|
1825
|
+
uniform float u_exposure;
|
|
1826
|
+
uniform float u_whitePoint;
|
|
1827
|
+
uniform float u_gamma;
|
|
1828
|
+
uniform int u_hasColorGrade;
|
|
1829
|
+
uniform float u_contrast;
|
|
1830
|
+
uniform float u_temperature;
|
|
1831
|
+
uniform float u_tint;
|
|
1832
|
+
uniform float u_saturation;
|
|
1833
|
+
uniform float u_vibrance;
|
|
1834
|
+
uniform float u_vignette;
|
|
1835
|
+
uniform float u_sharpening;
|
|
1836
|
+
uniform int u_hasFxaa;
|
|
1837
|
+
uniform float u_edgeThreshold;
|
|
1838
|
+
uniform float u_subpixelBlend;
|
|
1839
|
+
in vec2 v_uv;
|
|
1840
|
+
out vec4 outColor;
|
|
1841
|
+
|
|
1842
|
+
float srgbToLinear(float value) {
|
|
1843
|
+
return value <= 0.04045 ? value / 12.92 : pow((value + 0.055) / 1.055, 2.4);
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
float linearToSrgb(float value) {
|
|
1847
|
+
return value <= 0.0031308 ? value * 12.92 : 1.055 * pow(value, 1.0 / 2.4) - 0.055;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
vec3 decodeColor(vec3 color) {
|
|
1851
|
+
return u_inputColorSpace == 1 ? vec3(srgbToLinear(color.r), srgbToLinear(color.g), srgbToLinear(color.b)) : color;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
vec3 encodeColor(vec3 color) {
|
|
1855
|
+
vec3 linear = clamp(color, 0.0, 1.0);
|
|
1856
|
+
return u_outputColorSpace == 1 ? vec3(linearToSrgb(linear.r), linearToSrgb(linear.g), linearToSrgb(linear.b)) : linear;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
vec3 acesRrtAndOdtFit(vec3 value) {
|
|
1860
|
+
vec3 numerator = value * (value + 0.0245786) - 0.000090537;
|
|
1861
|
+
vec3 denominator = value * (0.983729 * value + 0.4329510) + 0.238081;
|
|
1862
|
+
return numerator / denominator;
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
vec3 acesFilmic(vec3 color) {
|
|
1866
|
+
// Match current Three.js ACESFilmicToneMapping. ACES is a coupled RGB
|
|
1867
|
+
// transform; a scalar approximation shifts hue and washes saturated colors.
|
|
1868
|
+
const mat3 acesInput = mat3(
|
|
1869
|
+
vec3(0.59719, 0.07600, 0.02840),
|
|
1870
|
+
vec3(0.35458, 0.90834, 0.13383),
|
|
1871
|
+
vec3(0.04823, 0.01566, 0.83777)
|
|
1872
|
+
);
|
|
1873
|
+
const mat3 acesOutput = mat3(
|
|
1874
|
+
vec3(1.60475, -0.10208, -0.00327),
|
|
1875
|
+
vec3(-0.53108, 1.10813, -0.07276),
|
|
1876
|
+
vec3(-0.07367, -0.00605, 1.07602)
|
|
1877
|
+
);
|
|
1878
|
+
vec3 acesColor = acesInput * (color / 0.6);
|
|
1879
|
+
acesColor = acesRrtAndOdtFit(acesColor);
|
|
1880
|
+
return clamp(acesOutput * acesColor, 0.0, 1.0);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
float filmic(float value) {
|
|
1884
|
+
float x = max(0.0, value);
|
|
1885
|
+
float toe = max(0.0, x - 0.004);
|
|
1886
|
+
float curve = (toe * (6.2 * toe + 0.5)) / (toe * (6.2 * toe + 1.7) + 0.06);
|
|
1887
|
+
return min(curve, x * 1.08);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
float uncharted2(float value) {
|
|
1891
|
+
float a = 0.15;
|
|
1892
|
+
float b = 0.5;
|
|
1893
|
+
float c = 0.1;
|
|
1894
|
+
float d = 0.2;
|
|
1895
|
+
float e = 0.02;
|
|
1896
|
+
float f = 0.3;
|
|
1897
|
+
float w = 11.2;
|
|
1898
|
+
float x = value * 2.0;
|
|
1899
|
+
float curve = ((x * (a * x + c * b) + d * e) / (x * (a * x + b) + d * f)) - e / f;
|
|
1900
|
+
float wx = w;
|
|
1901
|
+
float white = ((wx * (a * wx + c * b) + d * e) / (wx * (a * wx + b) + d * f)) - e / f;
|
|
1902
|
+
return clamp(curve / white, 0.0, 1.0);
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
float agx(float value) {
|
|
1906
|
+
float x = max(0.0, value);
|
|
1907
|
+
float encoded = log2(1.0 + x) / log2(17.0);
|
|
1908
|
+
return clamp(encoded * encoded * (3.0 - 2.0 * encoded), 0.0, 1.0);
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
float neutral(float value) {
|
|
1912
|
+
float x = max(0.0, value);
|
|
1913
|
+
return min(1.0, (x * (1.0 + x / 7.5)) / (1.0 + x));
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
float toneMapChannel(float value) {
|
|
1917
|
+
float exposed = max(0.0, value * u_exposure) / max(0.0001, u_whitePoint);
|
|
1918
|
+
if (u_toneOperator == 0) return min(1.0, exposed);
|
|
1919
|
+
if (u_toneOperator == 1) return exposed / (1.0 + exposed);
|
|
1920
|
+
if (u_toneOperator == 2) return exposed;
|
|
1921
|
+
if (u_toneOperator == 3) return filmic(exposed);
|
|
1922
|
+
if (u_toneOperator == 4) return uncharted2(exposed);
|
|
1923
|
+
if (u_toneOperator == 5) return agx(exposed);
|
|
1924
|
+
return neutral(exposed);
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
vec3 applyToneMapping(vec3 color) {
|
|
1928
|
+
if (u_hasToneMapping == 0) return color;
|
|
1929
|
+
vec3 decoded = decodeColor(color);
|
|
1930
|
+
vec3 mapped = u_toneOperator == 2
|
|
1931
|
+
? acesFilmic(max(vec3(0.0), decoded * u_exposure) / max(0.0001, u_whitePoint))
|
|
1932
|
+
: vec3(toneMapChannel(decoded.r), toneMapChannel(decoded.g), toneMapChannel(decoded.b));
|
|
1933
|
+
return encodeColor(mapped);
|
|
1934
|
+
}
|
|
1935
|
+
|
|
1936
|
+
vec3 applyColorGrade(vec3 color, vec2 uv) {
|
|
1937
|
+
if (u_hasColorGrade == 0) return color;
|
|
1938
|
+
float contrastOffset = 0.5 - 0.5 * u_contrast;
|
|
1939
|
+
float redShift = u_temperature * 0.08 - u_tint * 0.02;
|
|
1940
|
+
float greenShift = u_tint * 0.06;
|
|
1941
|
+
float blueShift = -u_temperature * 0.08 - u_tint * 0.02;
|
|
1942
|
+
float luma = dot(color, vec3(0.2126, 0.7152, 0.0722));
|
|
1943
|
+
vec3 graded = color * u_contrast + vec3(contrastOffset + redShift, contrastOffset + greenShift, contrastOffset + blueShift);
|
|
1944
|
+
float distanceFromLuma = min(1.0, abs(graded.r - luma) + abs(graded.g - luma) + abs(graded.b - luma));
|
|
1945
|
+
float vibranceBoost = u_vibrance == 0.0 ? 0.0 : u_vibrance * (1.0 - distanceFromLuma);
|
|
1946
|
+
float saturation = u_saturation + vibranceBoost;
|
|
1947
|
+
graded = vec3(luma) + (graded - vec3(luma)) * saturation;
|
|
1948
|
+
vec2 centered = uv * 2.0 - 1.0;
|
|
1949
|
+
float vignette = 1.0 - u_vignette * clamp((length(centered) - 0.28) / 1.12, 0.0, 1.0);
|
|
1950
|
+
return clamp(graded * vignette, 0.0, 1.0);
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
vec3 baseColorAt(vec2 uv) {
|
|
1954
|
+
vec2 clampedUv = clamp(uv, vec2(0.0), vec2(1.0));
|
|
1955
|
+
vec3 color = texture(u_source, clampedUv).rgb;
|
|
1956
|
+
return applyColorGrade(applyToneMapping(color), clampedUv);
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1959
|
+
vec3 finalColorAt(vec2 uv) {
|
|
1960
|
+
vec3 center = baseColorAt(uv);
|
|
1961
|
+
if (u_hasColorGrade == 0 || u_sharpening <= 0.0) return center;
|
|
1962
|
+
vec3 blur = (
|
|
1963
|
+
baseColorAt(uv + vec2(-u_texelSize.x, 0.0)) +
|
|
1964
|
+
baseColorAt(uv + vec2(u_texelSize.x, 0.0)) +
|
|
1965
|
+
baseColorAt(uv + vec2(0.0, -u_texelSize.y)) +
|
|
1966
|
+
baseColorAt(uv + vec2(0.0, u_texelSize.y))
|
|
1967
|
+
) * 0.25;
|
|
1968
|
+
return clamp(center + (center - blur) * u_sharpening, 0.0, 1.0);
|
|
1969
|
+
}
|
|
1970
|
+
|
|
1971
|
+
float luma(vec3 color) {
|
|
1972
|
+
return dot(color, vec3(0.2126, 0.7152, 0.0722));
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
void main() {
|
|
1976
|
+
vec3 center = finalColorAt(v_uv);
|
|
1977
|
+
float alpha = texture(u_source, clamp(v_uv, vec2(0.0), vec2(1.0))).a;
|
|
1978
|
+
if (u_hasFxaa == 0) {
|
|
1979
|
+
outColor = vec4(center, alpha);
|
|
1980
|
+
return;
|
|
1981
|
+
}
|
|
1982
|
+
vec3 north = finalColorAt(v_uv + vec2(0.0, -u_texelSize.y));
|
|
1983
|
+
vec3 south = finalColorAt(v_uv + vec2(0.0, u_texelSize.y));
|
|
1984
|
+
vec3 west = finalColorAt(v_uv + vec2(-u_texelSize.x, 0.0));
|
|
1985
|
+
vec3 east = finalColorAt(v_uv + vec2(u_texelSize.x, 0.0));
|
|
1986
|
+
float centerLuma = luma(center);
|
|
1987
|
+
float minLuma = min(centerLuma, min(min(luma(north), luma(south)), min(luma(west), luma(east))));
|
|
1988
|
+
float maxLuma = max(centerLuma, max(max(luma(north), luma(south)), max(luma(west), luma(east))));
|
|
1989
|
+
if (maxLuma - minLuma < u_edgeThreshold) {
|
|
1990
|
+
outColor = vec4(center, alpha);
|
|
1991
|
+
return;
|
|
1992
|
+
}
|
|
1993
|
+
vec3 average = (north + south + west + east) * 0.25;
|
|
1994
|
+
outColor = vec4(mix(center, average, clamp(u_subpixelBlend, 0.0, 1.0)), alpha);
|
|
1995
|
+
}
|
|
1996
|
+
`, "webgl2-ldr-postprocess");
|
|
1997
|
+
const program = this.host.gl.createProgram();
|
|
1998
|
+
if (!program) {
|
|
1999
|
+
this.host.gl.deleteShader(vertex);
|
|
2000
|
+
this.host.gl.deleteShader(fragment);
|
|
2001
|
+
throw new RenderDeviceError("Failed to allocate WebGL2 LDR postprocess shader", "WEBGL_ALLOCATION_FAILED");
|
|
2002
|
+
}
|
|
2003
|
+
this.host.gl.attachShader(program, vertex);
|
|
2004
|
+
this.host.gl.attachShader(program, fragment);
|
|
2005
|
+
this.host.gl.linkProgram(program);
|
|
2006
|
+
this.host.counters.programCompiles += 1;
|
|
2007
|
+
this.host.gl.deleteShader(vertex);
|
|
2008
|
+
this.host.gl.deleteShader(fragment);
|
|
2009
|
+
if (!this.host.gl.getProgramParameter(program, this.host.gl.LINK_STATUS)) {
|
|
2010
|
+
const log = this.host.gl.getProgramInfoLog(program) ?? "Unknown LDR postprocess shader link error";
|
|
2011
|
+
this.host.gl.deleteProgram(program);
|
|
2012
|
+
throw new RenderDeviceError("WebGL2 LDR postprocess shader link failed", "SHADER_LINK_FAILED", { log });
|
|
2013
|
+
}
|
|
2014
|
+
this.ldrPostprocessProgram = program;
|
|
2015
|
+
return program;
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
function bloomNumberOption(options, key, fallback) {
|
|
2019
|
+
const value = options[key];
|
|
2020
|
+
if (value === undefined)
|
|
2021
|
+
return fallback;
|
|
2022
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2023
|
+
throw new RenderDeviceError(`Bloom ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2024
|
+
}
|
|
2025
|
+
return value;
|
|
2026
|
+
}
|
|
2027
|
+
function colorSpaceId(value) {
|
|
2028
|
+
return value === "srgb" ? 1 : 0;
|
|
2029
|
+
}
|
|
2030
|
+
function depthOfFieldNumberOption(options, key, fallback) {
|
|
2031
|
+
const value = options[key];
|
|
2032
|
+
if (value === undefined)
|
|
2033
|
+
return fallback;
|
|
2034
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2035
|
+
throw new RenderDeviceError(`Depth-of-field ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2036
|
+
}
|
|
2037
|
+
return value;
|
|
2038
|
+
}
|
|
2039
|
+
function motionBlurNumberOption(options, key, fallback) {
|
|
2040
|
+
const value = options[key];
|
|
2041
|
+
if (value === undefined)
|
|
2042
|
+
return fallback;
|
|
2043
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2044
|
+
throw new RenderDeviceError(`Motion blur ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2045
|
+
}
|
|
2046
|
+
return value;
|
|
2047
|
+
}
|
|
2048
|
+
function normalizeLdrDepthRange(range) {
|
|
2049
|
+
const near = range && Number.isFinite(range.near) && range.near > 0 ? range.near : 0.1;
|
|
2050
|
+
const far = range && Number.isFinite(range.far) && range.far > near ? range.far : 1000;
|
|
2051
|
+
return { near, far };
|
|
2052
|
+
}
|
|
2053
|
+
/**
|
|
2054
|
+
* Composite response for the native bloom. Flag-on (`excess`, §6.6): the
|
|
2055
|
+
* normalized pyramid weights sum to 1 and nothing else scales the halo, so an
|
|
2056
|
+
* excess E composites as E · intensity ("no hidden gain"). Flag-off keeps the
|
|
2057
|
+
* legacy `resolveBloomPyramidResponseGain` heuristic (deleted in Phase 8).
|
|
2058
|
+
*/
|
|
2059
|
+
export function nativeBloomResponseGain(plan, options) {
|
|
2060
|
+
return options.excess === true ? 1 : resolveBloomPyramidResponseGain(plan);
|
|
2061
|
+
}
|
|
2062
|
+
export function normalizeNativeBloomOptions(options) {
|
|
2063
|
+
// PRD-03 §7.2 carve (0b-2): flag-on (`v2` stamp) accepts the HDR option
|
|
2064
|
+
// ranges — threshold [0,64], `knee` ratio [0,1] — and drops the
|
|
2065
|
+
// `softKnee ≤ 0.5` throw. §7.1 deprecated fields map while the
|
|
2066
|
+
// transitional legacy chain still executes: `knee` feeds the soft-knee
|
|
2067
|
+
// slot (§6.6 `threshold × kneeRatio` absolute width), authored
|
|
2068
|
+
// `scatter`/`radius` map onto the legacy `radius` integer, and
|
|
2069
|
+
// `maxIntensity`/`antiBlowout`/`clampLuminance`/`quality`/`shoulder` are
|
|
2070
|
+
// accepted and ignored (deprecation diagnostics live in the bridge).
|
|
2071
|
+
const v2 = options["v2"] === true;
|
|
2072
|
+
const threshold = bloomNumberOption(options, "threshold", 0.75);
|
|
2073
|
+
const intensity = bloomNumberOption(options, "intensity", 0.35);
|
|
2074
|
+
const knee = bloomNumberOption(options, "knee", NaN);
|
|
2075
|
+
const scatter = bloomNumberOption(options, "scatter", NaN);
|
|
2076
|
+
const radius = Number.isFinite(scatter)
|
|
2077
|
+
? Math.round(scatter)
|
|
2078
|
+
: bloomNumberOption(options, "radius", 1);
|
|
2079
|
+
if (threshold < 0 || threshold > (v2 ? 64 : 1)) {
|
|
2080
|
+
throw new RenderDeviceError(v2 ? "Bloom threshold must be finite and in [0, 64]." : "Bloom threshold must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { threshold });
|
|
2081
|
+
}
|
|
2082
|
+
if (intensity < 0) {
|
|
2083
|
+
throw new RenderDeviceError("Bloom intensity must be finite and non-negative.", "INVALID_POSTPROCESS_OPTIONS", { intensity });
|
|
2084
|
+
}
|
|
2085
|
+
if (!Number.isInteger(radius) || radius < 0 || radius > 16) {
|
|
2086
|
+
throw new RenderDeviceError("Bloom radius must be an integer in [0, 16].", "INVALID_POSTPROCESS_OPTIONS", { radius });
|
|
2087
|
+
}
|
|
2088
|
+
if (v2 && Number.isFinite(knee) && (knee < 0 || knee > 1)) {
|
|
2089
|
+
throw new RenderDeviceError("Bloom knee must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { knee });
|
|
2090
|
+
}
|
|
2091
|
+
const authoredSoftKnee = bloomNumberOption(options, "softKnee", 0);
|
|
2092
|
+
const softKnee = v2 && Number.isFinite(knee) ? Math.min(0.5, threshold * knee) : authoredSoftKnee;
|
|
2093
|
+
if (!v2 && (!(authoredSoftKnee >= 0) || authoredSoftKnee > 0.5)) {
|
|
2094
|
+
throw new RenderDeviceError("Bloom softKnee must be finite and in [0, 0.5].", "INVALID_POSTPROCESS_OPTIONS", { softKnee });
|
|
2095
|
+
}
|
|
2096
|
+
const shoulder = bloomNumberOption(options, "shoulder", 0);
|
|
2097
|
+
if (!(shoulder >= 0) || shoulder > 1) {
|
|
2098
|
+
throw new RenderDeviceError("Bloom shoulder must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { shoulder });
|
|
2099
|
+
}
|
|
2100
|
+
let quality;
|
|
2101
|
+
try {
|
|
2102
|
+
// Flag-on S9: an unauthored quality runs the 5-mip pyramid (the
|
|
2103
|
+
// UnrealBloomPass-class wide halo) instead of the single 1-scale blur,
|
|
2104
|
+
// whose few-pixel fringe left the halo below one display LSB.
|
|
2105
|
+
quality = v2 && options.quality === undefined ? "cinematic" : normalizeBloomQualityPreset(options.quality);
|
|
2106
|
+
}
|
|
2107
|
+
catch {
|
|
2108
|
+
throw new RenderDeviceError("Bloom quality must be one of performance|balanced|cinematic.", "INVALID_POSTPROCESS_OPTIONS", { quality: options.quality });
|
|
2109
|
+
}
|
|
2110
|
+
const spread = bloomNumberOption(options, "spread", 0.7);
|
|
2111
|
+
if (v2 && (!(spread >= 0) || spread > 1)) {
|
|
2112
|
+
throw new RenderDeviceError("Bloom spread must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { spread });
|
|
2113
|
+
}
|
|
2114
|
+
return { threshold, intensity, radius, quality, softKnee, shoulder, ...(v2 ? { excess: true, spread } : {}) };
|
|
2115
|
+
}
|
|
2116
|
+
function normalizeNativeDepthOfFieldOptions(options) {
|
|
2117
|
+
const focusDepth = depthOfFieldNumberOption(options, "focusDepth", 0.5);
|
|
2118
|
+
const focusRange = depthOfFieldNumberOption(options, "focusRange", 0.12);
|
|
2119
|
+
const maxRadius = depthOfFieldNumberOption(options, "maxRadius", 2);
|
|
2120
|
+
if (focusDepth < 0 || focusDepth > 1) {
|
|
2121
|
+
throw new RenderDeviceError("Depth-of-field focusDepth must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { focusDepth });
|
|
2122
|
+
}
|
|
2123
|
+
if (focusRange < 0.001 || focusRange > 1) {
|
|
2124
|
+
throw new RenderDeviceError("Depth-of-field focusRange must be finite and in [0.001, 1].", "INVALID_POSTPROCESS_OPTIONS", { focusRange });
|
|
2125
|
+
}
|
|
2126
|
+
if (!Number.isInteger(maxRadius) || maxRadius < 0 || maxRadius > 8) {
|
|
2127
|
+
throw new RenderDeviceError("Depth-of-field maxRadius must be an integer in [0, 8].", "INVALID_POSTPROCESS_OPTIONS", { maxRadius });
|
|
2128
|
+
}
|
|
2129
|
+
return { focusDepth, focusRange, maxRadius };
|
|
2130
|
+
}
|
|
2131
|
+
function normalizeNativeMotionBlurOptions(options, width, height) {
|
|
2132
|
+
const samples = motionBlurNumberOption(options, "samples", 5);
|
|
2133
|
+
const scale = motionBlurNumberOption(options, "scale", 1);
|
|
2134
|
+
if (options.temporal) {
|
|
2135
|
+
if (!Number.isInteger(samples) || samples < 2 || samples > 16 || scale < 0 || scale > 8)
|
|
2136
|
+
throw new RenderDeviceError("Invalid motion blur samples/scale", "INVALID_POSTPROCESS_OPTIONS");
|
|
2137
|
+
return { samples, scale, temporal: options.temporal };
|
|
2138
|
+
}
|
|
2139
|
+
const value = options.velocity;
|
|
2140
|
+
if (!(value instanceof Float32Array) && !Array.isArray(value)) {
|
|
2141
|
+
throw new RenderDeviceError("Motion blur requires a velocity Float32Array or number array.", "WEBGL_LDR_POSTPROCESS_VELOCITY_REQUIRED");
|
|
2142
|
+
}
|
|
2143
|
+
const velocity = value instanceof Float32Array ? value : new Float32Array(value);
|
|
2144
|
+
if (velocity.length !== width * height * 2) {
|
|
2145
|
+
throw new RenderDeviceError("Motion blur velocity must contain width * height * 2 float samples.", "INVALID_POSTPROCESS_OPTIONS", {
|
|
2146
|
+
expectedLength: width * height * 2,
|
|
2147
|
+
actualLength: velocity.length
|
|
2148
|
+
});
|
|
2149
|
+
}
|
|
2150
|
+
if (!Number.isInteger(samples) || samples < 2 || samples > 16) {
|
|
2151
|
+
throw new RenderDeviceError("Motion blur samples must be an integer in [2, 16].", "INVALID_POSTPROCESS_OPTIONS", { samples });
|
|
2152
|
+
}
|
|
2153
|
+
if (scale < 0 || scale > 8) {
|
|
2154
|
+
throw new RenderDeviceError("Motion blur scale must be finite and in [0, 8].", "INVALID_POSTPROCESS_OPTIONS", { scale });
|
|
2155
|
+
}
|
|
2156
|
+
return { samples, scale, velocity };
|
|
2157
|
+
}
|
|
2158
|
+
function normalizeNativeOutlineOptions(options) {
|
|
2159
|
+
const width = outlineNumberOption(options, "width", 1);
|
|
2160
|
+
const threshold = outlineNumberOption(options, "threshold", 0.22);
|
|
2161
|
+
const opacity = outlineNumberOption(options, "opacity", 0.85);
|
|
2162
|
+
const value = options.color;
|
|
2163
|
+
const sourceColor = value === undefined ? [255, 188, 64, 255] : value;
|
|
2164
|
+
if (!Array.isArray(sourceColor)
|
|
2165
|
+
|| (sourceColor.length !== 3 && sourceColor.length !== 4)
|
|
2166
|
+
|| sourceColor.some((channel) => typeof channel !== "number" || !Number.isFinite(channel) || channel < 0 || channel > 255)) {
|
|
2167
|
+
throw new RenderDeviceError("Outline color must contain three or four finite channels in [0, 255].", "INVALID_POSTPROCESS_OPTIONS", { color: value });
|
|
2168
|
+
}
|
|
2169
|
+
if (!Number.isInteger(width) || width < 1 || width > 6) {
|
|
2170
|
+
throw new RenderDeviceError("Outline width must be an integer in [1, 6].", "INVALID_POSTPROCESS_OPTIONS", { width });
|
|
2171
|
+
}
|
|
2172
|
+
if (threshold < 0 || threshold > 4) {
|
|
2173
|
+
throw new RenderDeviceError("Outline threshold must be finite and in [0, 4].", "INVALID_POSTPROCESS_OPTIONS", { threshold });
|
|
2174
|
+
}
|
|
2175
|
+
if (opacity < 0 || opacity > 1) {
|
|
2176
|
+
throw new RenderDeviceError("Outline opacity must be finite and in [0, 1].", "INVALID_POSTPROCESS_OPTIONS", { opacity });
|
|
2177
|
+
}
|
|
2178
|
+
const color = [
|
|
2179
|
+
sourceColor[0],
|
|
2180
|
+
sourceColor[1],
|
|
2181
|
+
sourceColor[2],
|
|
2182
|
+
(sourceColor[3] ?? 255)
|
|
2183
|
+
];
|
|
2184
|
+
return { width, threshold, opacity, color };
|
|
2185
|
+
}
|
|
2186
|
+
function normalizeNativeSsaoOptions(options) {
|
|
2187
|
+
const radius = ssaoNumberOption(options, "radius", 2);
|
|
2188
|
+
const intensity = ssaoNumberOption(options, "intensity", 0.38);
|
|
2189
|
+
const bias = ssaoNumberOption(options, "bias", 0.015);
|
|
2190
|
+
if (!Number.isInteger(radius) || radius < 1 || radius > 8) {
|
|
2191
|
+
throw new RenderDeviceError("SSAO radius must be an integer in [1, 8].", "INVALID_POSTPROCESS_OPTIONS", { radius });
|
|
2192
|
+
}
|
|
2193
|
+
if (intensity < 0 || intensity > 2) {
|
|
2194
|
+
throw new RenderDeviceError("SSAO intensity must be finite and in [0, 2].", "INVALID_POSTPROCESS_OPTIONS", { intensity });
|
|
2195
|
+
}
|
|
2196
|
+
if (bias < 0 || bias > 0.25) {
|
|
2197
|
+
throw new RenderDeviceError("SSAO bias must be finite and in [0, 0.25].", "INVALID_POSTPROCESS_OPTIONS", { bias });
|
|
2198
|
+
}
|
|
2199
|
+
return { radius, intensity, bias };
|
|
2200
|
+
}
|
|
2201
|
+
function normalizeNativeSsrOptions(options) {
|
|
2202
|
+
const intensity = ssrNumberOption(options, "intensity", 0.32);
|
|
2203
|
+
const maxDistance = ssrNumberOption(options, "maxDistance", 16);
|
|
2204
|
+
if (intensity < 0 || intensity > 2) {
|
|
2205
|
+
throw new RenderDeviceError("SSR intensity must be finite and in [0, 2].", "INVALID_POSTPROCESS_OPTIONS", { intensity });
|
|
2206
|
+
}
|
|
2207
|
+
if (!Number.isInteger(maxDistance) || maxDistance < 1 || maxDistance > 64) {
|
|
2208
|
+
throw new RenderDeviceError("SSR maxDistance must be an integer in [1, 64].", "INVALID_POSTPROCESS_OPTIONS", { maxDistance });
|
|
2209
|
+
}
|
|
2210
|
+
const projection = options["projection"];
|
|
2211
|
+
if (!(projection instanceof Float32Array))
|
|
2212
|
+
throw new RenderDeviceError("Native SSR requires the actual frame projection or view-projection matrix.", "INVALID_POSTPROCESS_OPTIONS");
|
|
2213
|
+
const inverseProjection = invertSsrProjection(projection);
|
|
2214
|
+
return { intensity, maxDistance, projection, inverseProjection };
|
|
2215
|
+
}
|
|
2216
|
+
function normalizeNativeTaaOptions(options, width, height) {
|
|
2217
|
+
const blend = taaNumberOption(options, "blend", 0.18);
|
|
2218
|
+
if (options.temporal) {
|
|
2219
|
+
if (blend < 0 || blend > .95)
|
|
2220
|
+
throw new RenderDeviceError("Invalid TAA blend", "INVALID_POSTPROCESS_OPTIONS");
|
|
2221
|
+
return { blend, temporal: options.temporal };
|
|
2222
|
+
}
|
|
2223
|
+
const history = options.history;
|
|
2224
|
+
if (!(history instanceof Uint8Array)) {
|
|
2225
|
+
throw new RenderDeviceError("TAA requires a Uint8Array history buffer.", "WEBGL_LDR_POSTPROCESS_HISTORY_REQUIRED");
|
|
2226
|
+
}
|
|
2227
|
+
if (history.byteLength !== width * height * 4) {
|
|
2228
|
+
throw new RenderDeviceError("TAA history must contain width * height * 4 RGBA bytes.", "INVALID_POSTPROCESS_OPTIONS", {
|
|
2229
|
+
expectedLength: width * height * 4,
|
|
2230
|
+
actualLength: history.byteLength
|
|
2231
|
+
});
|
|
2232
|
+
}
|
|
2233
|
+
if (blend < 0 || blend > 0.95) {
|
|
2234
|
+
throw new RenderDeviceError("TAA blend must be finite and in [0, 0.95].", "INVALID_POSTPROCESS_OPTIONS", { blend });
|
|
2235
|
+
}
|
|
2236
|
+
return { blend, history };
|
|
2237
|
+
}
|
|
2238
|
+
function numberOption(options, key, fallback) {
|
|
2239
|
+
const value = options[key];
|
|
2240
|
+
return typeof value === "number" && Number.isFinite(value) ? value : fallback;
|
|
2241
|
+
}
|
|
2242
|
+
function outlineNumberOption(options, key, fallback) {
|
|
2243
|
+
const value = options[key];
|
|
2244
|
+
if (value === undefined)
|
|
2245
|
+
return fallback;
|
|
2246
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2247
|
+
throw new RenderDeviceError(`Outline ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2248
|
+
}
|
|
2249
|
+
return value;
|
|
2250
|
+
}
|
|
2251
|
+
function ssaoNumberOption(options, key, fallback) {
|
|
2252
|
+
const value = options[key];
|
|
2253
|
+
if (value === undefined)
|
|
2254
|
+
return fallback;
|
|
2255
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2256
|
+
throw new RenderDeviceError(`SSAO ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2257
|
+
}
|
|
2258
|
+
return value;
|
|
2259
|
+
}
|
|
2260
|
+
function ssrNumberOption(options, key, fallback) {
|
|
2261
|
+
const value = options[key];
|
|
2262
|
+
if (value === undefined)
|
|
2263
|
+
return fallback;
|
|
2264
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2265
|
+
throw new RenderDeviceError(`SSR ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2266
|
+
}
|
|
2267
|
+
return value;
|
|
2268
|
+
}
|
|
2269
|
+
function stringOption(options, key, fallback) {
|
|
2270
|
+
const value = options[key];
|
|
2271
|
+
return typeof value === "string" ? value : fallback;
|
|
2272
|
+
}
|
|
2273
|
+
function taaNumberOption(options, key, fallback) {
|
|
2274
|
+
const value = options[key];
|
|
2275
|
+
if (value === undefined)
|
|
2276
|
+
return fallback;
|
|
2277
|
+
if (typeof value !== "number" || !Number.isFinite(value)) {
|
|
2278
|
+
throw new RenderDeviceError(`TAA ${key} must be a finite number.`, "INVALID_POSTPROCESS_OPTIONS", { key, value });
|
|
2279
|
+
}
|
|
2280
|
+
return value;
|
|
2281
|
+
}
|
|
2282
|
+
function toneMappingOperatorId(value) {
|
|
2283
|
+
if (value === "linear")
|
|
2284
|
+
return 0;
|
|
2285
|
+
if (value === "reinhard")
|
|
2286
|
+
return 1;
|
|
2287
|
+
if (value === "aces")
|
|
2288
|
+
return 2;
|
|
2289
|
+
if (value === "filmic")
|
|
2290
|
+
return 3;
|
|
2291
|
+
if (value === "uncharted2")
|
|
2292
|
+
return 4;
|
|
2293
|
+
if (value === "agx")
|
|
2294
|
+
return 5;
|
|
2295
|
+
return 6;
|
|
2296
|
+
}
|
|
2297
|
+
/* ------------------------------------------------------------------------- */
|
|
2298
|
+
/* C-13 v2 seam (PRD-03 Phase 2, CCR-03-5) */
|
|
2299
|
+
/* ------------------------------------------------------------------------- */
|
|
2300
|
+
/**
|
|
2301
|
+
* The §6.1 OUT stage adapted onto the proven native tone program (C-05
|
|
2302
|
+
* OutputPass stub): single tonemap operator + sRGB encode. `exposure`
|
|
2303
|
+
* defaults to the pipeline bag's §6.4 product — while the transitional
|
|
2304
|
+
* chain applies exposure here, the final graph applies it in S10 composite
|
|
2305
|
+
* and this pass receives `1`.
|
|
2306
|
+
*/
|
|
2307
|
+
export function createLegacyOutputPass(pipeline, base) {
|
|
2308
|
+
const operator = pipeline.toneMapping === "none" ? "linear" : pipeline.toneMapping;
|
|
2309
|
+
return {
|
|
2310
|
+
name: "tone-mapping",
|
|
2311
|
+
options: {
|
|
2312
|
+
...(base ?? {}),
|
|
2313
|
+
operator,
|
|
2314
|
+
exposure: pipeline.exposure,
|
|
2315
|
+
inputColorSpace: "srgb-linear",
|
|
2316
|
+
outputColorSpace: "srgb",
|
|
2317
|
+
// §6.1 OUT.dithering: false — the S12 finalize owns the triangular
|
|
2318
|
+
// dither; a second dither here would double-dither.
|
|
2319
|
+
...(pipeline.dither === false ? { dithering: false } : {})
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2322
|
+
}
|
|
2323
|
+
/**
|
|
2324
|
+
* `executePostGraphWebGL2` — the C-13 device carve (CONTRACTS §3.1 /
|
|
2325
|
+
* PRD-03 §7.2). It receives the device's GL internals (the registered
|
|
2326
|
+
* `WebGL2DeviceHost`) plus the already-planned LDR descriptors, replaces
|
|
2327
|
+
* the legacy `tone-mapping` descriptor with `createLegacyOutputPass`,
|
|
2328
|
+
* stamps `v2` on bloom options (the §7.2 field-range carve), and runs the
|
|
2329
|
+
* proven native fused path. Phases 3–6 grow this seam stage-by-stage into
|
|
2330
|
+
* the real v2 GPU loop (S1–S12) without touching `WebGL2Device.ts`.
|
|
2331
|
+
*/
|
|
2332
|
+
export function executePostGraphWebGL2(host, source, request) {
|
|
2333
|
+
if (!host) {
|
|
2334
|
+
throw new RenderDeviceError("PostGraph v2 requires a WebGL2 device host.", "POST_GRAPH_V2_UNSUPPORTED");
|
|
2335
|
+
}
|
|
2336
|
+
const v2 = request.v2;
|
|
2337
|
+
const pipeline = request.pipeline;
|
|
2338
|
+
// Phase 3: real S1/S2/S4 + CA run on the HDR target before the fused
|
|
2339
|
+
// present; S10b/S11/S12 run as the LDR tail after it.
|
|
2340
|
+
let workSource = source;
|
|
2341
|
+
if (v2) {
|
|
2342
|
+
workSource = v2.runV2HdrStages(host, source, pipeline, request.cameraFrame, request.temporal, request.frameContext).target;
|
|
2343
|
+
}
|
|
2344
|
+
const needsTail = Boolean(v2 && v2.v2NeedsLdrTail(pipeline));
|
|
2345
|
+
const ldrTailTarget = needsTail && v2
|
|
2346
|
+
? v2.acquireV2Target(host, { width: source.width, height: source.height, format: "rgba8" })
|
|
2347
|
+
: undefined;
|
|
2348
|
+
// With a real S12 the fused OUT must not emit the legacy dither — the
|
|
2349
|
+
// finalize pass owns the single triangular dither for the frame.
|
|
2350
|
+
const pipelineForOut = needsTail && pipeline.dither !== false
|
|
2351
|
+
? { ...pipeline, dither: false }
|
|
2352
|
+
: pipeline;
|
|
2353
|
+
const mappedPasses = request.passes
|
|
2354
|
+
// §6.9/T0-17 (FLAG-ON-4): on the v2 chain the HDR stages own their
|
|
2355
|
+
// effects — S2 GTAO (ssao), S6 (depth-of-field), S7 (motion-blur),
|
|
2356
|
+
// S5 (taa). The legacy twin must not double-run, and its native depth
|
|
2357
|
+
// read would throw WEBGL_LDR_POSTPROCESS_DEPTH_REQUIRED per frame on
|
|
2358
|
+
// the pooled depth-less stage output.
|
|
2359
|
+
.filter((pass) => !(v2 && ((pipeline.ao && pass.name === "ssao")
|
|
2360
|
+
|| (pipeline.dof && pass.name === "depth-of-field")
|
|
2361
|
+
|| (pipeline.motionBlur && pass.name === "motion-blur")
|
|
2362
|
+
|| ((pipeline.antiAliasing === "taa" || Boolean(pipeline.taa)) && pass.name === "taa"))))
|
|
2363
|
+
.map((pass) => {
|
|
2364
|
+
if (pass.name === "tone-mapping") {
|
|
2365
|
+
return createLegacyOutputPass(pipelineForOut, pass.options);
|
|
2366
|
+
}
|
|
2367
|
+
if (pass.name === "bloom") {
|
|
2368
|
+
return { name: pass.name, options: { ...pass.options, v2: true } };
|
|
2369
|
+
}
|
|
2370
|
+
return pass;
|
|
2371
|
+
});
|
|
2372
|
+
// T0-17/FLAG-ON-4: the pooled HDR-stage output carries no depth texture —
|
|
2373
|
+
// any remaining native depth pass would throw
|
|
2374
|
+
// WEBGL_LDR_POSTPROCESS_DEPTH_REQUIRED per frame; degrade it to a
|
|
2375
|
+
// recorded skip instead.
|
|
2376
|
+
const workSourceDepthless = workSource !== source && !workSource.depthTextureHandle;
|
|
2377
|
+
const depthSkippedPasses = workSourceDepthless
|
|
2378
|
+
? mappedPasses.filter((pass) => {
|
|
2379
|
+
if (pass.name === "depth-of-field" || pass.name === "ssao" || pass.name === "ssr") {
|
|
2380
|
+
recordPostSkipped(`WEBGL_LDR_POSTPROCESS_DEPTH_REQUIRED:${pass.name}`);
|
|
2381
|
+
return false;
|
|
2382
|
+
}
|
|
2383
|
+
return true;
|
|
2384
|
+
})
|
|
2385
|
+
: mappedPasses;
|
|
2386
|
+
// T0-17/FLAG-ON-3: `output.toneMapping:'none'` drops the legacy tone pass,
|
|
2387
|
+
// but an HDR workSource (HDR stages ran, or an rgba16f forward target)
|
|
2388
|
+
// still needs the §6.1 OUT stage to reach LDR — inject the linear
|
|
2389
|
+
// OutputPass (createLegacyOutputPass maps 'none' to the linear operator)
|
|
2390
|
+
// instead of throwing WEBGL_LDR_POSTPROCESS_FORMAT_UNSUPPORTED per frame.
|
|
2391
|
+
const passes = pipeline.toneMapping === "none" && !depthSkippedPasses.some((pass) => pass.name === "tone-mapping")
|
|
2392
|
+
? [...depthSkippedPasses, createLegacyOutputPass(pipelineForOut)]
|
|
2393
|
+
: depthSkippedPasses;
|
|
2394
|
+
host.post.presentLdrPostprocess(workSource, {
|
|
2395
|
+
passes,
|
|
2396
|
+
...(ldrTailTarget ?? request.outputTarget ? { outputTarget: ldrTailTarget ?? request.outputTarget } : {}),
|
|
2397
|
+
toneMappingDefaults: { outputColorSpace: "srgb" },
|
|
2398
|
+
depthRange: {
|
|
2399
|
+
near: request.depthRange?.near ?? request.pipeline.depthRange.near,
|
|
2400
|
+
far: request.depthRange?.far ?? request.pipeline.depthRange.far
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
if (workSource !== source && v2)
|
|
2404
|
+
v2.releaseV2Target(host, workSource);
|
|
2405
|
+
if (ldrTailTarget && v2) {
|
|
2406
|
+
v2.runV2LdrTail(host, ldrTailTarget, pipeline, request.outputTarget, request.frameContext);
|
|
2407
|
+
v2.releaseV2Target(host, ldrTailTarget);
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
/**
|
|
2411
|
+
* Native bloom bright-extract fragment (exported for the glslang unit gate).
|
|
2412
|
+
* HDR sources: flag-on (`u_excess`) keeps the §6.6 soft-knee excess over
|
|
2413
|
+
* threshold; flag-off keeps the legacy full-colour gate. LDR sources use the
|
|
2414
|
+
* packed bright LUT.
|
|
2415
|
+
*/
|
|
2416
|
+
export const BLOOM_BRIGHT_EXTRACT_GLSL = `#version 300 es
|
|
2417
|
+
precision highp float;
|
|
2418
|
+
precision highp int;
|
|
2419
|
+
uniform sampler2D u_source;
|
|
2420
|
+
uniform sampler2D u_brightLut;
|
|
2421
|
+
uniform int u_hdr;
|
|
2422
|
+
uniform float u_threshold;
|
|
2423
|
+
uniform float u_softKnee;
|
|
2424
|
+
uniform int u_excess;
|
|
2425
|
+
out vec4 outColor;
|
|
2426
|
+
|
|
2427
|
+
uvec4 byteTexel(sampler2D source, ivec2 coordinate) {
|
|
2428
|
+
return uvec4(texelFetch(source, coordinate, 0) * 255.0 + 0.5);
|
|
2429
|
+
}
|
|
2430
|
+
|
|
2431
|
+
void main() {
|
|
2432
|
+
ivec2 pixel = ivec2(gl_FragCoord.xy);
|
|
2433
|
+
if (u_hdr == 1) {
|
|
2434
|
+
vec4 source = texelFetch(u_source, pixel, 0);
|
|
2435
|
+
float luma = dot(source.rgb, vec3(0.2126, 0.7152, 0.0722));
|
|
2436
|
+
if (u_excess == 1) {
|
|
2437
|
+
// PRD-03 §6.6 soft-knee threshold weight (bloom.glsl prefilter twin):
|
|
2438
|
+
// keep only the excess over threshold — quadratic inside the knee,
|
|
2439
|
+
// linear above it — so bloom energy is proportional to the excess.
|
|
2440
|
+
// u_softKnee is the absolute knee width (threshold × knee ratio).
|
|
2441
|
+
float knee = max(u_softKnee, 0.0);
|
|
2442
|
+
float soft = clamp(luma - u_threshold + knee, 0.0, 2.0 * knee);
|
|
2443
|
+
soft = soft * soft / (4.0 * knee + 1e-5);
|
|
2444
|
+
float excessWeight = max(soft, luma - u_threshold) / max(luma, 1e-5);
|
|
2445
|
+
outColor = vec4(source.rgb * excessWeight, source.a);
|
|
2446
|
+
return;
|
|
2447
|
+
}
|
|
2448
|
+
float kneeLow = max(u_threshold - u_softKnee, 0.0);
|
|
2449
|
+
float kneeHigh = min(u_threshold + u_softKnee, 1.0);
|
|
2450
|
+
float weight = u_softKnee <= 0.0
|
|
2451
|
+
? (luma >= u_threshold ? 1.0 : 0.0)
|
|
2452
|
+
: smoothstep(kneeLow, kneeHigh, luma);
|
|
2453
|
+
outColor = source * weight;
|
|
2454
|
+
return;
|
|
2455
|
+
}
|
|
2456
|
+
uvec4 source = byteTexel(u_source, pixel);
|
|
2457
|
+
uint colorIndex = (source.r << 16u) | (source.g << 8u) | source.b;
|
|
2458
|
+
uint byteIndex = colorIndex >> 3u;
|
|
2459
|
+
uint texelIndex = byteIndex >> 2u;
|
|
2460
|
+
ivec2 lutCoordinate = ivec2(
|
|
2461
|
+
int(texelIndex % ${BLOOM_BRIGHT_LUT_WIDTH}u),
|
|
2462
|
+
int(texelIndex / ${BLOOM_BRIGHT_LUT_WIDTH}u)
|
|
2463
|
+
);
|
|
2464
|
+
uvec4 packed = byteTexel(u_brightLut, lutCoordinate);
|
|
2465
|
+
uint component = byteIndex & 3u;
|
|
2466
|
+
uint packedByte = component == 0u
|
|
2467
|
+
? packed.r
|
|
2468
|
+
: component == 1u
|
|
2469
|
+
? packed.g
|
|
2470
|
+
: component == 2u
|
|
2471
|
+
? packed.b
|
|
2472
|
+
: packed.a;
|
|
2473
|
+
bool bright = ((packedByte >> (colorIndex & 7u)) & 1u) == 1u;
|
|
2474
|
+
outColor = bright ? vec4(source) / 255.0 : vec4(0.0);
|
|
2475
|
+
}
|
|
2476
|
+
`;
|
|
2477
|
+
//# sourceMappingURL=LegacyPost.js.map
|