@aura3d/engine 1.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 +115 -0
- package/dist/animation/AnimationAction.d.ts +40 -0
- package/dist/animation/AnimationAction.d.ts.map +1 -0
- package/dist/animation/AnimationAction.js +143 -0
- package/dist/animation/AnimationAction.js.map +1 -0
- package/dist/animation/AnimationClip.d.ts +24 -0
- package/dist/animation/AnimationClip.d.ts.map +1 -0
- package/dist/animation/AnimationClip.js +45 -0
- package/dist/animation/AnimationClip.js.map +1 -0
- package/dist/animation/AnimationEvents.d.ts +10 -0
- package/dist/animation/AnimationEvents.d.ts.map +1 -0
- package/dist/animation/AnimationEvents.js +26 -0
- package/dist/animation/AnimationEvents.js.map +1 -0
- package/dist/animation/AnimationLayer.d.ts +27 -0
- package/dist/animation/AnimationLayer.d.ts.map +1 -0
- package/dist/animation/AnimationLayer.js +53 -0
- package/dist/animation/AnimationLayer.js.map +1 -0
- package/dist/animation/AnimationMixer.d.ts +54 -0
- package/dist/animation/AnimationMixer.d.ts.map +1 -0
- package/dist/animation/AnimationMixer.js +319 -0
- package/dist/animation/AnimationMixer.js.map +1 -0
- package/dist/animation/AnimationStateMachine.d.ts +43 -0
- package/dist/animation/AnimationStateMachine.d.ts.map +1 -0
- package/dist/animation/AnimationStateMachine.js +92 -0
- package/dist/animation/AnimationStateMachine.js.map +1 -0
- package/dist/animation/AnimationTrack.d.ts +23 -0
- package/dist/animation/AnimationTrack.d.ts.map +1 -0
- package/dist/animation/AnimationTrack.js +124 -0
- package/dist/animation/AnimationTrack.js.map +1 -0
- package/dist/animation/BlendTree.d.ts +23 -0
- package/dist/animation/BlendTree.d.ts.map +1 -0
- package/dist/animation/BlendTree.js +68 -0
- package/dist/animation/BlendTree.js.map +1 -0
- package/dist/animation/Bone.d.ts +20 -0
- package/dist/animation/Bone.d.ts.map +1 -0
- package/dist/animation/Bone.js +24 -0
- package/dist/animation/Bone.js.map +1 -0
- package/dist/animation/CrowdAnimation.d.ts +13 -0
- package/dist/animation/CrowdAnimation.d.ts.map +1 -0
- package/dist/animation/CrowdAnimation.js +14 -0
- package/dist/animation/CrowdAnimation.js.map +1 -0
- package/dist/animation/ECSAnimationBridge.d.ts +9 -0
- package/dist/animation/ECSAnimationBridge.d.ts.map +1 -0
- package/dist/animation/ECSAnimationBridge.js +24 -0
- package/dist/animation/ECSAnimationBridge.js.map +1 -0
- package/dist/animation/IK.d.ts +24 -0
- package/dist/animation/IK.d.ts.map +1 -0
- package/dist/animation/IK.js +76 -0
- package/dist/animation/IK.js.map +1 -0
- package/dist/animation/Keyframe.d.ts +50 -0
- package/dist/animation/Keyframe.d.ts.map +1 -0
- package/dist/animation/Keyframe.js +118 -0
- package/dist/animation/Keyframe.js.map +1 -0
- package/dist/animation/LocomotionController.d.ts +47 -0
- package/dist/animation/LocomotionController.d.ts.map +1 -0
- package/dist/animation/LocomotionController.js +106 -0
- package/dist/animation/LocomotionController.js.map +1 -0
- package/dist/animation/MotionMatchingFixtures.d.ts +58 -0
- package/dist/animation/MotionMatchingFixtures.d.ts.map +1 -0
- package/dist/animation/MotionMatchingFixtures.js +175 -0
- package/dist/animation/MotionMatchingFixtures.js.map +1 -0
- package/dist/animation/MotionQuality.d.ts +36 -0
- package/dist/animation/MotionQuality.d.ts.map +1 -0
- package/dist/animation/MotionQuality.js +117 -0
- package/dist/animation/MotionQuality.js.map +1 -0
- package/dist/animation/Retargeting.d.ts +12 -0
- package/dist/animation/Retargeting.d.ts.map +1 -0
- package/dist/animation/Retargeting.js +19 -0
- package/dist/animation/Retargeting.js.map +1 -0
- package/dist/animation/RootMotion.d.ts +21 -0
- package/dist/animation/RootMotion.d.ts.map +1 -0
- package/dist/animation/RootMotion.js +84 -0
- package/dist/animation/RootMotion.js.map +1 -0
- package/dist/animation/SceneAnimationBridge.d.ts +18 -0
- package/dist/animation/SceneAnimationBridge.d.ts.map +1 -0
- package/dist/animation/SceneAnimationBridge.js +69 -0
- package/dist/animation/SceneAnimationBridge.js.map +1 -0
- package/dist/animation/SecondaryAnimationFixtures.d.ts +55 -0
- package/dist/animation/SecondaryAnimationFixtures.d.ts.map +1 -0
- package/dist/animation/SecondaryAnimationFixtures.js +147 -0
- package/dist/animation/SecondaryAnimationFixtures.js.map +1 -0
- package/dist/animation/Skeleton.d.ts +9 -0
- package/dist/animation/Skeleton.d.ts.map +1 -0
- package/dist/animation/Skeleton.js +31 -0
- package/dist/animation/Skeleton.js.map +1 -0
- package/dist/animation/Skinning.d.ts +7 -0
- package/dist/animation/Skinning.d.ts.map +1 -0
- package/dist/animation/Skinning.js +12 -0
- package/dist/animation/Skinning.js.map +1 -0
- package/dist/animation/browser-index.d.ts +21 -0
- package/dist/animation/browser-index.d.ts.map +1 -0
- package/dist/animation/browser-index.js +21 -0
- package/dist/animation/browser-index.js.map +1 -0
- package/dist/animation/index.d.ts +24 -0
- package/dist/animation/index.d.ts.map +1 -0
- package/dist/animation/index.js +24 -0
- package/dist/animation/index.js.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationAction.d.ts +16 -0
- package/dist/animation/threejs-compatibility/AnimationAction.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationAction.js +25 -0
- package/dist/animation/threejs-compatibility/AnimationAction.js.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationClip.d.ts +14 -0
- package/dist/animation/threejs-compatibility/AnimationClip.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationClip.js +11 -0
- package/dist/animation/threejs-compatibility/AnimationClip.js.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.d.ts +44 -0
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.js +31 -0
- package/dist/animation/threejs-compatibility/AnimationDiagnostics.js.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationMixer.d.ts +9 -0
- package/dist/animation/threejs-compatibility/AnimationMixer.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/AnimationMixer.js +24 -0
- package/dist/animation/threejs-compatibility/AnimationMixer.js.map +1 -0
- package/dist/animation/threejs-compatibility/MorphTargetMixer.d.ts +10 -0
- package/dist/animation/threejs-compatibility/MorphTargetMixer.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/MorphTargetMixer.js +10 -0
- package/dist/animation/threejs-compatibility/MorphTargetMixer.js.map +1 -0
- package/dist/animation/threejs-compatibility/Skeleton.d.ts +10 -0
- package/dist/animation/threejs-compatibility/Skeleton.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/Skeleton.js +8 -0
- package/dist/animation/threejs-compatibility/Skeleton.js.map +1 -0
- package/dist/animation/threejs-compatibility/SkinnedMesh.d.ts +11 -0
- package/dist/animation/threejs-compatibility/SkinnedMesh.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/SkinnedMesh.js +16 -0
- package/dist/animation/threejs-compatibility/SkinnedMesh.js.map +1 -0
- package/dist/animation/threejs-compatibility/index.d.ts +12 -0
- package/dist/animation/threejs-compatibility/index.d.ts.map +1 -0
- package/dist/animation/threejs-compatibility/index.js +8 -0
- package/dist/animation/threejs-compatibility/index.js.map +1 -0
- package/dist/apps/index.d.ts +50 -0
- package/dist/apps/index.d.ts.map +1 -0
- package/dist/apps/index.js +99 -0
- package/dist/apps/index.js.map +1 -0
- package/dist/assets/AdvancedAssetCorpus.d.ts +124 -0
- package/dist/assets/AdvancedAssetCorpus.d.ts.map +1 -0
- package/dist/assets/AdvancedAssetCorpus.js +266 -0
- package/dist/assets/AdvancedAssetCorpus.js.map +1 -0
- package/dist/assets/AssetBundleCacheFixtures.d.ts +62 -0
- package/dist/assets/AssetBundleCacheFixtures.d.ts.map +1 -0
- package/dist/assets/AssetBundleCacheFixtures.js +222 -0
- package/dist/assets/AssetBundleCacheFixtures.js.map +1 -0
- package/dist/assets/AssetCache.d.ts +21 -0
- package/dist/assets/AssetCache.d.ts.map +1 -0
- package/dist/assets/AssetCache.js +54 -0
- package/dist/assets/AssetCache.js.map +1 -0
- package/dist/assets/AssetCompatibility.d.ts +54 -0
- package/dist/assets/AssetCompatibility.d.ts.map +1 -0
- package/dist/assets/AssetCompatibility.js +122 -0
- package/dist/assets/AssetCompatibility.js.map +1 -0
- package/dist/assets/AssetCorpus.d.ts +88 -0
- package/dist/assets/AssetCorpus.d.ts.map +1 -0
- package/dist/assets/AssetCorpus.js +215 -0
- package/dist/assets/AssetCorpus.js.map +1 -0
- package/dist/assets/AssetDependencyGraph.d.ts +12 -0
- package/dist/assets/AssetDependencyGraph.d.ts.map +1 -0
- package/dist/assets/AssetDependencyGraph.js +66 -0
- package/dist/assets/AssetDependencyGraph.js.map +1 -0
- package/dist/assets/AssetHandle.d.ts +26 -0
- package/dist/assets/AssetHandle.d.ts.map +1 -0
- package/dist/assets/AssetHandle.js +53 -0
- package/dist/assets/AssetHandle.js.map +1 -0
- package/dist/assets/AssetImportPreflight.d.ts +43 -0
- package/dist/assets/AssetImportPreflight.d.ts.map +1 -0
- package/dist/assets/AssetImportPreflight.js +117 -0
- package/dist/assets/AssetImportPreflight.js.map +1 -0
- package/dist/assets/AssetInspection.d.ts +183 -0
- package/dist/assets/AssetInspection.d.ts.map +1 -0
- package/dist/assets/AssetInspection.js +397 -0
- package/dist/assets/AssetInspection.js.map +1 -0
- package/dist/assets/AssetLoader.d.ts +26 -0
- package/dist/assets/AssetLoader.d.ts.map +1 -0
- package/dist/assets/AssetLoader.js +12 -0
- package/dist/assets/AssetLoader.js.map +1 -0
- package/dist/assets/AssetManager.d.ts +37 -0
- package/dist/assets/AssetManager.d.ts.map +1 -0
- package/dist/assets/AssetManager.js +161 -0
- package/dist/assets/AssetManager.js.map +1 -0
- package/dist/assets/AssetRegistry.d.ts +10 -0
- package/dist/assets/AssetRegistry.d.ts.map +1 -0
- package/dist/assets/AssetRegistry.js +34 -0
- package/dist/assets/AssetRegistry.js.map +1 -0
- package/dist/assets/AssetRenderDefaults.d.ts +13 -0
- package/dist/assets/AssetRenderDefaults.d.ts.map +1 -0
- package/dist/assets/AssetRenderDefaults.js +23 -0
- package/dist/assets/AssetRenderDefaults.js.map +1 -0
- package/dist/assets/AudioLoader.d.ts +17 -0
- package/dist/assets/AudioLoader.d.ts.map +1 -0
- package/dist/assets/AudioLoader.js +23 -0
- package/dist/assets/AudioLoader.js.map +1 -0
- package/dist/assets/BlenderExportValidation.d.ts +64 -0
- package/dist/assets/BlenderExportValidation.d.ts.map +1 -0
- package/dist/assets/BlenderExportValidation.js +143 -0
- package/dist/assets/BlenderExportValidation.js.map +1 -0
- package/dist/assets/CarConceptMaterialStability.d.ts +28 -0
- package/dist/assets/CarConceptMaterialStability.d.ts.map +1 -0
- package/dist/assets/CarConceptMaterialStability.js +1308 -0
- package/dist/assets/CarConceptMaterialStability.js.map +1 -0
- package/dist/assets/EXRLoader.d.ts +2 -0
- package/dist/assets/EXRLoader.d.ts.map +1 -0
- package/dist/assets/EXRLoader.js +2 -0
- package/dist/assets/EXRLoader.js.map +1 -0
- package/dist/assets/ExternalParityGLTFCorpus.d.ts +39 -0
- package/dist/assets/ExternalParityGLTFCorpus.d.ts.map +1 -0
- package/dist/assets/ExternalParityGLTFCorpus.js +32 -0
- package/dist/assets/ExternalParityGLTFCorpus.js.map +1 -0
- package/dist/assets/GLTFAnimationRuntime.d.ts +243 -0
- package/dist/assets/GLTFAnimationRuntime.d.ts.map +1 -0
- package/dist/assets/GLTFAnimationRuntime.js +954 -0
- package/dist/assets/GLTFAnimationRuntime.js.map +1 -0
- package/dist/assets/GLTFCompressionDecoders.d.ts +42 -0
- package/dist/assets/GLTFCompressionDecoders.d.ts.map +1 -0
- package/dist/assets/GLTFCompressionDecoders.js +99 -0
- package/dist/assets/GLTFCompressionDecoders.js.map +1 -0
- package/dist/assets/GLTFExtensionSupport.d.ts +33 -0
- package/dist/assets/GLTFExtensionSupport.d.ts.map +1 -0
- package/dist/assets/GLTFExtensionSupport.js +85 -0
- package/dist/assets/GLTFExtensionSupport.js.map +1 -0
- package/dist/assets/GLTFLoader.d.ts +361 -0
- package/dist/assets/GLTFLoader.d.ts.map +1 -0
- package/dist/assets/GLTFLoader.js +2735 -0
- package/dist/assets/GLTFLoader.js.map +1 -0
- package/dist/assets/GLTFRenderResources.d.ts +162 -0
- package/dist/assets/GLTFRenderResources.d.ts.map +1 -0
- package/dist/assets/GLTFRenderResources.js +1684 -0
- package/dist/assets/GLTFRenderResources.js.map +1 -0
- package/dist/assets/HDRLoader.d.ts +2 -0
- package/dist/assets/HDRLoader.d.ts.map +1 -0
- package/dist/assets/HDRLoader.js +2 -0
- package/dist/assets/HDRLoader.js.map +1 -0
- package/dist/assets/ImageLoader.d.ts +15 -0
- package/dist/assets/ImageLoader.d.ts.map +1 -0
- package/dist/assets/ImageLoader.js +36 -0
- package/dist/assets/ImageLoader.js.map +1 -0
- package/dist/assets/ImportPipeline.d.ts +39 -0
- package/dist/assets/ImportPipeline.d.ts.map +1 -0
- package/dist/assets/ImportPipeline.js +105 -0
- package/dist/assets/ImportPipeline.js.map +1 -0
- package/dist/assets/KTX2BasisTextureTranscoder.d.ts +9 -0
- package/dist/assets/KTX2BasisTextureTranscoder.d.ts.map +1 -0
- package/dist/assets/KTX2BasisTextureTranscoder.js +178 -0
- package/dist/assets/KTX2BasisTextureTranscoder.js.map +1 -0
- package/dist/assets/LoadContext.d.ts +20 -0
- package/dist/assets/LoadContext.d.ts.map +1 -0
- package/dist/assets/LoadContext.js +42 -0
- package/dist/assets/LoadContext.js.map +1 -0
- package/dist/assets/MaterialLoader.d.ts +17 -0
- package/dist/assets/MaterialLoader.d.ts.map +1 -0
- package/dist/assets/MaterialLoader.js +138 -0
- package/dist/assets/MaterialLoader.js.map +1 -0
- package/dist/assets/MeshOptimization.d.ts +20 -0
- package/dist/assets/MeshOptimization.d.ts.map +1 -0
- package/dist/assets/MeshOptimization.js +65 -0
- package/dist/assets/MeshOptimization.js.map +1 -0
- package/dist/assets/OBJLoader.d.ts +13 -0
- package/dist/assets/OBJLoader.d.ts.map +1 -0
- package/dist/assets/OBJLoader.js +492 -0
- package/dist/assets/OBJLoader.js.map +1 -0
- package/dist/assets/SceneAnalysisFixtures.d.ts +100 -0
- package/dist/assets/SceneAnalysisFixtures.d.ts.map +1 -0
- package/dist/assets/SceneAnalysisFixtures.js +331 -0
- package/dist/assets/SceneAnalysisFixtures.js.map +1 -0
- package/dist/assets/SceneLoader.d.ts +27 -0
- package/dist/assets/SceneLoader.d.ts.map +1 -0
- package/dist/assets/SceneLoader.js +40 -0
- package/dist/assets/SceneLoader.js.map +1 -0
- package/dist/assets/ShaderLoader.d.ts +12 -0
- package/dist/assets/ShaderLoader.d.ts.map +1 -0
- package/dist/assets/ShaderLoader.js +18 -0
- package/dist/assets/ShaderLoader.js.map +1 -0
- package/dist/assets/TextureLoader.d.ts +16 -0
- package/dist/assets/TextureLoader.d.ts.map +1 -0
- package/dist/assets/TextureLoader.js +17 -0
- package/dist/assets/TextureLoader.js.map +1 -0
- package/dist/assets/TexturePipeline.d.ts +24 -0
- package/dist/assets/TexturePipeline.d.ts.map +1 -0
- package/dist/assets/TexturePipeline.js +64 -0
- package/dist/assets/TexturePipeline.js.map +1 -0
- package/dist/assets/TextureStreaming.d.ts +10 -0
- package/dist/assets/TextureStreaming.d.ts.map +1 -0
- package/dist/assets/TextureStreaming.js +11 -0
- package/dist/assets/TextureStreaming.js.map +1 -0
- package/dist/assets/WorkerAssetJobs.d.ts +18 -0
- package/dist/assets/WorkerAssetJobs.d.ts.map +1 -0
- package/dist/assets/WorkerAssetJobs.js +37 -0
- package/dist/assets/WorkerAssetJobs.js.map +1 -0
- package/dist/assets/advanced-gallery/index.d.ts +3 -0
- package/dist/assets/advanced-gallery/index.d.ts.map +1 -0
- package/dist/assets/advanced-gallery/index.js +2 -0
- package/dist/assets/advanced-gallery/index.js.map +1 -0
- package/dist/assets/asset-corpus/GLTFSceneLoader.d.ts +3 -0
- package/dist/assets/asset-corpus/GLTFSceneLoader.d.ts.map +1 -0
- package/dist/assets/asset-corpus/GLTFSceneLoader.js +2 -0
- package/dist/assets/asset-corpus/GLTFSceneLoader.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionAssetCorpus.d.ts +89 -0
- package/dist/assets/asset-corpus/ProductionAssetCorpus.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionAssetCorpus.js +116 -0
- package/dist/assets/asset-corpus/ProductionAssetCorpus.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionAssetPipeline.d.ts +3 -0
- package/dist/assets/asset-corpus/ProductionAssetPipeline.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionAssetPipeline.js +3 -0
- package/dist/assets/asset-corpus/ProductionAssetPipeline.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.d.ts +65 -0
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.js +110 -0
- package/dist/assets/asset-corpus/ProductionGLTFRenderPipeline.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionHDRTextureLoader.d.ts +8 -0
- package/dist/assets/asset-corpus/ProductionHDRTextureLoader.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionHDRTextureLoader.js +2 -0
- package/dist/assets/asset-corpus/ProductionHDRTextureLoader.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionKTX2TextureLoader.d.ts +7 -0
- package/dist/assets/asset-corpus/ProductionKTX2TextureLoader.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionKTX2TextureLoader.js +2 -0
- package/dist/assets/asset-corpus/ProductionKTX2TextureLoader.js.map +1 -0
- package/dist/assets/asset-corpus/ProductionTextureLoader.d.ts +7 -0
- package/dist/assets/asset-corpus/ProductionTextureLoader.d.ts.map +1 -0
- package/dist/assets/asset-corpus/ProductionTextureLoader.js +2 -0
- package/dist/assets/asset-corpus/ProductionTextureLoader.js.map +1 -0
- package/dist/assets/asset-corpus/index.d.ts +10 -0
- package/dist/assets/asset-corpus/index.d.ts.map +1 -0
- package/dist/assets/asset-corpus/index.js +8 -0
- package/dist/assets/asset-corpus/index.js.map +1 -0
- package/dist/assets/browser-index.d.ts +48 -0
- package/dist/assets/browser-index.d.ts.map +1 -0
- package/dist/assets/browser-index.js +26 -0
- package/dist/assets/browser-index.js.map +1 -0
- package/dist/assets/createRenderableScene.d.ts +23 -0
- package/dist/assets/createRenderableScene.d.ts.map +1 -0
- package/dist/assets/createRenderableScene.js +94 -0
- package/dist/assets/createRenderableScene.js.map +1 -0
- package/dist/assets/index.d.ts +82 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/assets/index.js +45 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/assets/loadRenderableAsset.d.ts +16 -0
- package/dist/assets/loadRenderableAsset.d.ts.map +1 -0
- package/dist/assets/loadRenderableAsset.js +50 -0
- package/dist/assets/loadRenderableAsset.js.map +1 -0
- package/dist/assets/loaders/CubeTextureLoader.d.ts +4 -0
- package/dist/assets/loaders/CubeTextureLoader.d.ts.map +1 -0
- package/dist/assets/loaders/CubeTextureLoader.js +9 -0
- package/dist/assets/loaders/CubeTextureLoader.js.map +1 -0
- package/dist/assets/loaders/EXRLoader.d.ts +4 -0
- package/dist/assets/loaders/EXRLoader.d.ts.map +1 -0
- package/dist/assets/loaders/EXRLoader.js +10 -0
- package/dist/assets/loaders/EXRLoader.js.map +1 -0
- package/dist/assets/loaders/HDRLoader.d.ts +4 -0
- package/dist/assets/loaders/HDRLoader.d.ts.map +1 -0
- package/dist/assets/loaders/HDRLoader.js +7 -0
- package/dist/assets/loaders/HDRLoader.js.map +1 -0
- package/dist/assets/loaders/KTX2Loader.d.ts +4 -0
- package/dist/assets/loaders/KTX2Loader.d.ts.map +1 -0
- package/dist/assets/loaders/KTX2Loader.js +7 -0
- package/dist/assets/loaders/KTX2Loader.js.map +1 -0
- package/dist/assets/loaders/LoaderDiagnostics.d.ts +18 -0
- package/dist/assets/loaders/LoaderDiagnostics.d.ts.map +1 -0
- package/dist/assets/loaders/LoaderDiagnostics.js +18 -0
- package/dist/assets/loaders/LoaderDiagnostics.js.map +1 -0
- package/dist/assets/loaders/MTLLoader.d.ts +10 -0
- package/dist/assets/loaders/MTLLoader.d.ts.map +1 -0
- package/dist/assets/loaders/MTLLoader.js +14 -0
- package/dist/assets/loaders/MTLLoader.js.map +1 -0
- package/dist/assets/loaders/OBJLoader.d.ts +12 -0
- package/dist/assets/loaders/OBJLoader.d.ts.map +1 -0
- package/dist/assets/loaders/OBJLoader.js +16 -0
- package/dist/assets/loaders/OBJLoader.js.map +1 -0
- package/dist/assets/loaders/TextureLoader.d.ts +6 -0
- package/dist/assets/loaders/TextureLoader.d.ts.map +1 -0
- package/dist/assets/loaders/TextureLoader.js +11 -0
- package/dist/assets/loaders/TextureLoader.js.map +1 -0
- package/dist/assets/loaders/ThreeCompatGLTFLoader.d.ts +10 -0
- package/dist/assets/loaders/ThreeCompatGLTFLoader.d.ts.map +1 -0
- package/dist/assets/loaders/ThreeCompatGLTFLoader.js +13 -0
- package/dist/assets/loaders/ThreeCompatGLTFLoader.js.map +1 -0
- package/dist/assets/loaders/index.d.ts +15 -0
- package/dist/assets/loaders/index.d.ts.map +1 -0
- package/dist/assets/loaders/index.js +10 -0
- package/dist/assets/loaders/index.js.map +1 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetProvenance.d.ts +34 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetProvenance.d.ts.map +1 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetProvenance.js +16 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetProvenance.js.map +1 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetRegistry.d.ts +29 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetRegistry.d.ts.map +1 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetRegistry.js +33 -0
- package/dist/assets/threejs-compatibility/ThreeCompatAssetRegistry.js.map +1 -0
- package/dist/assets/threejs-example-parity/index.d.ts +20 -0
- package/dist/assets/threejs-example-parity/index.d.ts.map +1 -0
- package/dist/assets/threejs-example-parity/index.js +218 -0
- package/dist/assets/threejs-example-parity/index.js.map +1 -0
- package/dist/audio/AdaptiveMusicFixtures.d.ts +36 -0
- package/dist/audio/AdaptiveMusicFixtures.d.ts.map +1 -0
- package/dist/audio/AdaptiveMusicFixtures.js +90 -0
- package/dist/audio/AdaptiveMusicFixtures.js.map +1 -0
- package/dist/audio/AudioBus.d.ts +13 -0
- package/dist/audio/AudioBus.d.ts.map +1 -0
- package/dist/audio/AudioBus.js +32 -0
- package/dist/audio/AudioBus.js.map +1 -0
- package/dist/audio/AudioClip.d.ts +13 -0
- package/dist/audio/AudioClip.d.ts.map +1 -0
- package/dist/audio/AudioClip.js +18 -0
- package/dist/audio/AudioClip.js.map +1 -0
- package/dist/audio/AudioContextManager.d.ts +31 -0
- package/dist/audio/AudioContextManager.d.ts.map +1 -0
- package/dist/audio/AudioContextManager.js +49 -0
- package/dist/audio/AudioContextManager.js.map +1 -0
- package/dist/audio/AudioEffect.d.ts +8 -0
- package/dist/audio/AudioEffect.d.ts.map +1 -0
- package/dist/audio/AudioEffect.js +2 -0
- package/dist/audio/AudioEffect.js.map +1 -0
- package/dist/audio/AudioEffectsAnalysisFixtures.d.ts +99 -0
- package/dist/audio/AudioEffectsAnalysisFixtures.d.ts.map +1 -0
- package/dist/audio/AudioEffectsAnalysisFixtures.js +192 -0
- package/dist/audio/AudioEffectsAnalysisFixtures.js.map +1 -0
- package/dist/audio/AudioListener.d.ts +12 -0
- package/dist/audio/AudioListener.d.ts.map +1 -0
- package/dist/audio/AudioListener.js +11 -0
- package/dist/audio/AudioListener.js.map +1 -0
- package/dist/audio/AudioMixer.d.ts +12 -0
- package/dist/audio/AudioMixer.d.ts.map +1 -0
- package/dist/audio/AudioMixer.js +33 -0
- package/dist/audio/AudioMixer.js.map +1 -0
- package/dist/audio/AudioSource.d.ts +25 -0
- package/dist/audio/AudioSource.d.ts.map +1 -0
- package/dist/audio/AudioSource.js +58 -0
- package/dist/audio/AudioSource.js.map +1 -0
- package/dist/audio/AudioSystem.d.ts +13 -0
- package/dist/audio/AudioSystem.d.ts.map +1 -0
- package/dist/audio/AudioSystem.js +28 -0
- package/dist/audio/AudioSystem.js.map +1 -0
- package/dist/audio/SceneAudioBridge.d.ts +19 -0
- package/dist/audio/SceneAudioBridge.d.ts.map +1 -0
- package/dist/audio/SceneAudioBridge.js +37 -0
- package/dist/audio/SceneAudioBridge.js.map +1 -0
- package/dist/audio/SpatialAudio.d.ts +17 -0
- package/dist/audio/SpatialAudio.d.ts.map +1 -0
- package/dist/audio/SpatialAudio.js +22 -0
- package/dist/audio/SpatialAudio.js.map +1 -0
- package/dist/audio/SpatialAudioFixtures.d.ts +38 -0
- package/dist/audio/SpatialAudioFixtures.d.ts.map +1 -0
- package/dist/audio/SpatialAudioFixtures.js +94 -0
- package/dist/audio/SpatialAudioFixtures.js.map +1 -0
- package/dist/audio/effects/Filter.d.ts +13 -0
- package/dist/audio/effects/Filter.d.ts.map +1 -0
- package/dist/audio/effects/Filter.js +31 -0
- package/dist/audio/effects/Filter.js.map +1 -0
- package/dist/audio/effects/Reverb.d.ts +12 -0
- package/dist/audio/effects/Reverb.d.ts.map +1 -0
- package/dist/audio/effects/Reverb.js +23 -0
- package/dist/audio/effects/Reverb.js.map +1 -0
- package/dist/audio/index.d.ts +25 -0
- package/dist/audio/index.d.ts.map +1 -0
- package/dist/audio/index.js +15 -0
- package/dist/audio/index.js.map +1 -0
- package/dist/aura3d-cli/cli.d.ts +3 -0
- package/dist/aura3d-cli/cli.d.ts.map +1 -0
- package/dist/aura3d-cli/cli.js +79 -0
- package/dist/aura3d-cli/cli.js.map +1 -0
- package/dist/aura3d-cli/index.d.ts +78 -0
- package/dist/aura3d-cli/index.d.ts.map +1 -0
- package/dist/aura3d-cli/index.js +422 -0
- package/dist/aura3d-cli/index.js.map +1 -0
- package/dist/controls/ControlState.d.ts +14 -0
- package/dist/controls/ControlState.d.ts.map +1 -0
- package/dist/controls/ControlState.js +11 -0
- package/dist/controls/ControlState.js.map +1 -0
- package/dist/controls/DragControls.d.ts +8 -0
- package/dist/controls/DragControls.d.ts.map +1 -0
- package/dist/controls/DragControls.js +14 -0
- package/dist/controls/DragControls.js.map +1 -0
- package/dist/controls/FirstPersonControls.d.ts +5 -0
- package/dist/controls/FirstPersonControls.d.ts.map +1 -0
- package/dist/controls/FirstPersonControls.js +8 -0
- package/dist/controls/FirstPersonControls.js.map +1 -0
- package/dist/controls/FlyControls.d.ts +8 -0
- package/dist/controls/FlyControls.d.ts.map +1 -0
- package/dist/controls/FlyControls.js +12 -0
- package/dist/controls/FlyControls.js.map +1 -0
- package/dist/controls/InteractionControls.d.ts +83 -0
- package/dist/controls/InteractionControls.d.ts.map +1 -0
- package/dist/controls/InteractionControls.js +163 -0
- package/dist/controls/InteractionControls.js.map +1 -0
- package/dist/controls/MapControls.d.ts +6 -0
- package/dist/controls/MapControls.d.ts.map +1 -0
- package/dist/controls/MapControls.js +9 -0
- package/dist/controls/MapControls.js.map +1 -0
- package/dist/controls/NativeControlTypes.d.ts +49 -0
- package/dist/controls/NativeControlTypes.d.ts.map +1 -0
- package/dist/controls/NativeControlTypes.js +58 -0
- package/dist/controls/NativeControlTypes.js.map +1 -0
- package/dist/controls/OrbitControls.d.ts +11 -0
- package/dist/controls/OrbitControls.d.ts.map +1 -0
- package/dist/controls/OrbitControls.js +25 -0
- package/dist/controls/OrbitControls.js.map +1 -0
- package/dist/controls/Picking.d.ts +41 -0
- package/dist/controls/Picking.d.ts.map +1 -0
- package/dist/controls/Picking.js +149 -0
- package/dist/controls/Picking.js.map +1 -0
- package/dist/controls/PickingAnnotations.d.ts +134 -0
- package/dist/controls/PickingAnnotations.d.ts.map +1 -0
- package/dist/controls/PickingAnnotations.js +221 -0
- package/dist/controls/PickingAnnotations.js.map +1 -0
- package/dist/controls/PointerLockControls.d.ts +9 -0
- package/dist/controls/PointerLockControls.d.ts.map +1 -0
- package/dist/controls/PointerLockControls.js +14 -0
- package/dist/controls/PointerLockControls.js.map +1 -0
- package/dist/controls/SelectionManager.d.ts +8 -0
- package/dist/controls/SelectionManager.d.ts.map +1 -0
- package/dist/controls/SelectionManager.js +15 -0
- package/dist/controls/SelectionManager.js.map +1 -0
- package/dist/controls/TrackballControls.d.ts +18 -0
- package/dist/controls/TrackballControls.d.ts.map +1 -0
- package/dist/controls/TrackballControls.js +99 -0
- package/dist/controls/TrackballControls.js.map +1 -0
- package/dist/controls/TransformControls.d.ts +11 -0
- package/dist/controls/TransformControls.d.ts.map +1 -0
- package/dist/controls/TransformControls.js +19 -0
- package/dist/controls/TransformControls.js.map +1 -0
- package/dist/controls/index.d.ts +21 -0
- package/dist/controls/index.d.ts.map +1 -0
- package/dist/controls/index.js +15 -0
- package/dist/controls/index.js.map +1 -0
- package/dist/core/Diagnostics.d.ts +25 -0
- package/dist/core/Diagnostics.d.ts.map +1 -0
- package/dist/core/Diagnostics.js +60 -0
- package/dist/core/Diagnostics.js.map +1 -0
- package/dist/core/Disposable.d.ts +12 -0
- package/dist/core/Disposable.d.ts.map +1 -0
- package/dist/core/Disposable.js +37 -0
- package/dist/core/Disposable.js.map +1 -0
- package/dist/core/Engine.d.ts +46 -0
- package/dist/core/Engine.d.ts.map +1 -0
- package/dist/core/Engine.js +130 -0
- package/dist/core/Engine.js.map +1 -0
- package/dist/core/EngineConfig.d.ts +18 -0
- package/dist/core/EngineConfig.d.ts.map +1 -0
- package/dist/core/EngineConfig.js +23 -0
- package/dist/core/EngineConfig.js.map +1 -0
- package/dist/core/EngineLoop.d.ts +33 -0
- package/dist/core/EngineLoop.d.ts.map +1 -0
- package/dist/core/EngineLoop.js +63 -0
- package/dist/core/EngineLoop.js.map +1 -0
- package/dist/core/Errors.d.ts +14 -0
- package/dist/core/Errors.d.ts.map +1 -0
- package/dist/core/Errors.js +24 -0
- package/dist/core/Errors.js.map +1 -0
- package/dist/core/EventBus.d.ts +18 -0
- package/dist/core/EventBus.d.ts.map +1 -0
- package/dist/core/EventBus.js +45 -0
- package/dist/core/EventBus.js.map +1 -0
- package/dist/core/FixedStepAccumulator.d.ts +15 -0
- package/dist/core/FixedStepAccumulator.d.ts.map +1 -0
- package/dist/core/FixedStepAccumulator.js +34 -0
- package/dist/core/FixedStepAccumulator.js.map +1 -0
- package/dist/core/Logger.d.ts +23 -0
- package/dist/core/Logger.d.ts.map +1 -0
- package/dist/core/Logger.js +53 -0
- package/dist/core/Logger.js.map +1 -0
- package/dist/core/ResourceScope.d.ts +18 -0
- package/dist/core/ResourceScope.d.ts.map +1 -0
- package/dist/core/ResourceScope.js +53 -0
- package/dist/core/ResourceScope.js.map +1 -0
- package/dist/core/Scheduler.d.ts +31 -0
- package/dist/core/Scheduler.d.ts.map +1 -0
- package/dist/core/Scheduler.js +77 -0
- package/dist/core/Scheduler.js.map +1 -0
- package/dist/core/TaskQueue.d.ts +13 -0
- package/dist/core/TaskQueue.d.ts.map +1 -0
- package/dist/core/TaskQueue.js +42 -0
- package/dist/core/TaskQueue.js.map +1 -0
- package/dist/core/Time.d.ts +24 -0
- package/dist/core/Time.d.ts.map +1 -0
- package/dist/core/Time.js +45 -0
- package/dist/core/Time.js.map +1 -0
- package/dist/core/VersionedSerialization.d.ts +96 -0
- package/dist/core/VersionedSerialization.d.ts.map +1 -0
- package/dist/core/VersionedSerialization.js +278 -0
- package/dist/core/VersionedSerialization.js.map +1 -0
- package/dist/core/index.d.ts +15 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +15 -0
- package/dist/core/index.js.map +1 -0
- package/dist/create-aura3d/cli.d.ts +3 -0
- package/dist/create-aura3d/cli.d.ts.map +1 -0
- package/dist/create-aura3d/cli.js +27 -0
- package/dist/create-aura3d/cli.js.map +1 -0
- package/dist/create-aura3d/index.d.ts +16 -0
- package/dist/create-aura3d/index.d.ts.map +1 -0
- package/dist/create-aura3d/index.js +63 -0
- package/dist/create-aura3d/index.js.map +1 -0
- package/dist/debug/AnimationInspector.d.ts +25 -0
- package/dist/debug/AnimationInspector.d.ts.map +1 -0
- package/dist/debug/AnimationInspector.js +46 -0
- package/dist/debug/AnimationInspector.js.map +1 -0
- package/dist/debug/ChromeTraceExporter.d.ts +35 -0
- package/dist/debug/ChromeTraceExporter.d.ts.map +1 -0
- package/dist/debug/ChromeTraceExporter.js +110 -0
- package/dist/debug/ChromeTraceExporter.js.map +1 -0
- package/dist/debug/DebugLineCanvasRenderer.d.ts +24 -0
- package/dist/debug/DebugLineCanvasRenderer.d.ts.map +1 -0
- package/dist/debug/DebugLineCanvasRenderer.js +58 -0
- package/dist/debug/DebugLineCanvasRenderer.js.map +1 -0
- package/dist/debug/DebugOverlay.d.ts +18 -0
- package/dist/debug/DebugOverlay.d.ts.map +1 -0
- package/dist/debug/DebugOverlay.js +19 -0
- package/dist/debug/DebugOverlay.js.map +1 -0
- package/dist/debug/DrawCallTracker.d.ts +22 -0
- package/dist/debug/DrawCallTracker.d.ts.map +1 -0
- package/dist/debug/DrawCallTracker.js +28 -0
- package/dist/debug/DrawCallTracker.js.map +1 -0
- package/dist/debug/ECSInspector.d.ts +16 -0
- package/dist/debug/ECSInspector.d.ts.map +1 -0
- package/dist/debug/ECSInspector.js +12 -0
- package/dist/debug/ECSInspector.js.map +1 -0
- package/dist/debug/GPUProfiler.d.ts +22 -0
- package/dist/debug/GPUProfiler.d.ts.map +1 -0
- package/dist/debug/GPUProfiler.js +32 -0
- package/dist/debug/GPUProfiler.js.map +1 -0
- package/dist/debug/MaterialDiagnostics.d.ts +17 -0
- package/dist/debug/MaterialDiagnostics.d.ts.map +1 -0
- package/dist/debug/MaterialDiagnostics.js +43 -0
- package/dist/debug/MaterialDiagnostics.js.map +1 -0
- package/dist/debug/PhysicsDebugAdapter.d.ts +29 -0
- package/dist/debug/PhysicsDebugAdapter.d.ts.map +1 -0
- package/dist/debug/PhysicsDebugAdapter.js +57 -0
- package/dist/debug/PhysicsDebugAdapter.js.map +1 -0
- package/dist/debug/Profiler.d.ts +24 -0
- package/dist/debug/Profiler.d.ts.map +1 -0
- package/dist/debug/Profiler.js +56 -0
- package/dist/debug/Profiler.js.map +1 -0
- package/dist/debug/RenderStateInspector.d.ts +19 -0
- package/dist/debug/RenderStateInspector.d.ts.map +1 -0
- package/dist/debug/RenderStateInspector.js +33 -0
- package/dist/debug/RenderStateInspector.js.map +1 -0
- package/dist/debug/ReportExporter.d.ts +12 -0
- package/dist/debug/ReportExporter.d.ts.map +1 -0
- package/dist/debug/ReportExporter.js +27 -0
- package/dist/debug/ReportExporter.js.map +1 -0
- package/dist/debug/ResourceTracker.d.ts +23 -0
- package/dist/debug/ResourceTracker.d.ts.map +1 -0
- package/dist/debug/ResourceTracker.js +41 -0
- package/dist/debug/ResourceTracker.js.map +1 -0
- package/dist/debug/SceneHelpers.d.ts +46 -0
- package/dist/debug/SceneHelpers.d.ts.map +1 -0
- package/dist/debug/SceneHelpers.js +137 -0
- package/dist/debug/SceneHelpers.js.map +1 -0
- package/dist/debug/ShaderDiagnostics.d.ts +20 -0
- package/dist/debug/ShaderDiagnostics.d.ts.map +1 -0
- package/dist/debug/ShaderDiagnostics.js +49 -0
- package/dist/debug/ShaderDiagnostics.js.map +1 -0
- package/dist/debug/index.d.ts +31 -0
- package/dist/debug/index.d.ts.map +1 -0
- package/dist/debug/index.js +16 -0
- package/dist/debug/index.js.map +1 -0
- package/dist/ecs/Archetype.d.ts +11 -0
- package/dist/ecs/Archetype.d.ts.map +1 -0
- package/dist/ecs/Archetype.js +19 -0
- package/dist/ecs/Archetype.js.map +1 -0
- package/dist/ecs/Bitset.d.ts +12 -0
- package/dist/ecs/Bitset.d.ts.map +1 -0
- package/dist/ecs/Bitset.js +43 -0
- package/dist/ecs/Bitset.js.map +1 -0
- package/dist/ecs/CommandBuffer.d.ts +16 -0
- package/dist/ecs/CommandBuffer.d.ts.map +1 -0
- package/dist/ecs/CommandBuffer.js +86 -0
- package/dist/ecs/CommandBuffer.js.map +1 -0
- package/dist/ecs/Component.d.ts +18 -0
- package/dist/ecs/Component.d.ts.map +1 -0
- package/dist/ecs/Component.js +7 -0
- package/dist/ecs/Component.js.map +1 -0
- package/dist/ecs/ComponentRegistry.d.ts +12 -0
- package/dist/ecs/ComponentRegistry.d.ts.map +1 -0
- package/dist/ecs/ComponentRegistry.js +36 -0
- package/dist/ecs/ComponentRegistry.js.map +1 -0
- package/dist/ecs/ComponentStore.d.ts +21 -0
- package/dist/ecs/ComponentStore.d.ts.map +1 -0
- package/dist/ecs/ComponentStore.js +66 -0
- package/dist/ecs/ComponentStore.js.map +1 -0
- package/dist/ecs/ECSProfiler.d.ts +12 -0
- package/dist/ecs/ECSProfiler.d.ts.map +1 -0
- package/dist/ecs/ECSProfiler.js +13 -0
- package/dist/ecs/ECSProfiler.js.map +1 -0
- package/dist/ecs/ECSSerializer.d.ts +18 -0
- package/dist/ecs/ECSSerializer.d.ts.map +1 -0
- package/dist/ecs/ECSSerializer.js +37 -0
- package/dist/ecs/ECSSerializer.js.map +1 -0
- package/dist/ecs/Entity.d.ts +8 -0
- package/dist/ecs/Entity.d.ts.map +1 -0
- package/dist/ecs/Entity.js +14 -0
- package/dist/ecs/Entity.js.map +1 -0
- package/dist/ecs/EntityManager.d.ts +12 -0
- package/dist/ecs/EntityManager.d.ts.map +1 -0
- package/dist/ecs/EntityManager.js +33 -0
- package/dist/ecs/EntityManager.js.map +1 -0
- package/dist/ecs/Query.d.ts +24 -0
- package/dist/ecs/Query.d.ts.map +1 -0
- package/dist/ecs/Query.js +47 -0
- package/dist/ecs/Query.js.map +1 -0
- package/dist/ecs/SparseSet.d.ts +14 -0
- package/dist/ecs/SparseSet.d.ts.map +1 -0
- package/dist/ecs/SparseSet.js +50 -0
- package/dist/ecs/SparseSet.js.map +1 -0
- package/dist/ecs/System.d.ts +18 -0
- package/dist/ecs/System.d.ts.map +1 -0
- package/dist/ecs/System.js +2 -0
- package/dist/ecs/System.js.map +1 -0
- package/dist/ecs/SystemScheduler.d.ts +10 -0
- package/dist/ecs/SystemScheduler.d.ts.map +1 -0
- package/dist/ecs/SystemScheduler.js +79 -0
- package/dist/ecs/SystemScheduler.js.map +1 -0
- package/dist/ecs/World.d.ts +27 -0
- package/dist/ecs/World.d.ts.map +1 -0
- package/dist/ecs/World.js +68 -0
- package/dist/ecs/World.js.map +1 -0
- package/dist/ecs/components/ActiveComponent.d.ts +16 -0
- package/dist/ecs/components/ActiveComponent.d.ts.map +1 -0
- package/dist/ecs/components/ActiveComponent.js +46 -0
- package/dist/ecs/components/ActiveComponent.js.map +1 -0
- package/dist/ecs/components/HierarchyComponent.d.ts +34 -0
- package/dist/ecs/components/HierarchyComponent.d.ts.map +1 -0
- package/dist/ecs/components/HierarchyComponent.js +103 -0
- package/dist/ecs/components/HierarchyComponent.js.map +1 -0
- package/dist/ecs/components/NameComponent.d.ts +5 -0
- package/dist/ecs/components/NameComponent.d.ts.map +1 -0
- package/dist/ecs/components/NameComponent.js +10 -0
- package/dist/ecs/components/NameComponent.js.map +1 -0
- package/dist/ecs/components/TagComponent.d.ts +5 -0
- package/dist/ecs/components/TagComponent.d.ts.map +1 -0
- package/dist/ecs/components/TagComponent.js +10 -0
- package/dist/ecs/components/TagComponent.js.map +1 -0
- package/dist/ecs/components/TransformComponent.d.ts +18 -0
- package/dist/ecs/components/TransformComponent.d.ts.map +1 -0
- package/dist/ecs/components/TransformComponent.js +27 -0
- package/dist/ecs/components/TransformComponent.js.map +1 -0
- package/dist/ecs/index.d.ts +22 -0
- package/dist/ecs/index.d.ts.map +1 -0
- package/dist/ecs/index.js +22 -0
- package/dist/ecs/index.js.map +1 -0
- package/dist/ecs/systems/ActiveSystem.d.ts +16 -0
- package/dist/ecs/systems/ActiveSystem.d.ts.map +1 -0
- package/dist/ecs/systems/ActiveSystem.js +61 -0
- package/dist/ecs/systems/ActiveSystem.js.map +1 -0
- package/dist/ecs/systems/HierarchySystem.d.ts +25 -0
- package/dist/ecs/systems/HierarchySystem.d.ts.map +1 -0
- package/dist/ecs/systems/HierarchySystem.js +185 -0
- package/dist/ecs/systems/HierarchySystem.js.map +1 -0
- package/dist/ecs/systems/index.d.ts +3 -0
- package/dist/ecs/systems/index.d.ts.map +1 -0
- package/dist/ecs/systems/index.js +3 -0
- package/dist/ecs/systems/index.js.map +1 -0
- package/dist/editor/index.d.ts +2 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/index.js +2 -0
- package/dist/editor/index.js.map +1 -0
- package/dist/editor-runtime/Command.d.ts +11 -0
- package/dist/editor-runtime/Command.d.ts.map +1 -0
- package/dist/editor-runtime/Command.js +2 -0
- package/dist/editor-runtime/Command.js.map +1 -0
- package/dist/editor-runtime/CommandHistory.d.ts +20 -0
- package/dist/editor-runtime/CommandHistory.d.ts.map +1 -0
- package/dist/editor-runtime/CommandHistory.js +124 -0
- package/dist/editor-runtime/CommandHistory.js.map +1 -0
- package/dist/editor-runtime/DiagnosticsOverlayModel.d.ts +30 -0
- package/dist/editor-runtime/DiagnosticsOverlayModel.d.ts.map +1 -0
- package/dist/editor-runtime/DiagnosticsOverlayModel.js +57 -0
- package/dist/editor-runtime/DiagnosticsOverlayModel.js.map +1 -0
- package/dist/editor-runtime/EditorPluginHost.d.ts +46 -0
- package/dist/editor-runtime/EditorPluginHost.d.ts.map +1 -0
- package/dist/editor-runtime/EditorPluginHost.js +57 -0
- package/dist/editor-runtime/EditorPluginHost.js.map +1 -0
- package/dist/editor-runtime/EditorRuntime.d.ts +95 -0
- package/dist/editor-runtime/EditorRuntime.d.ts.map +1 -0
- package/dist/editor-runtime/EditorRuntime.js +277 -0
- package/dist/editor-runtime/EditorRuntime.js.map +1 -0
- package/dist/editor-runtime/EditorStateModel.d.ts +93 -0
- package/dist/editor-runtime/EditorStateModel.d.ts.map +1 -0
- package/dist/editor-runtime/EditorStateModel.js +251 -0
- package/dist/editor-runtime/EditorStateModel.js.map +1 -0
- package/dist/editor-runtime/Gizmo.d.ts +43 -0
- package/dist/editor-runtime/Gizmo.d.ts.map +1 -0
- package/dist/editor-runtime/Gizmo.js +60 -0
- package/dist/editor-runtime/Gizmo.js.map +1 -0
- package/dist/editor-runtime/HierarchyModel.d.ts +21 -0
- package/dist/editor-runtime/HierarchyModel.d.ts.map +1 -0
- package/dist/editor-runtime/HierarchyModel.js +32 -0
- package/dist/editor-runtime/HierarchyModel.js.map +1 -0
- package/dist/editor-runtime/InspectorModel.d.ts +16 -0
- package/dist/editor-runtime/InspectorModel.d.ts.map +1 -0
- package/dist/editor-runtime/InspectorModel.js +53 -0
- package/dist/editor-runtime/InspectorModel.js.map +1 -0
- package/dist/editor-runtime/LocalizationAccessibilityFixtures.d.ts +70 -0
- package/dist/editor-runtime/LocalizationAccessibilityFixtures.d.ts.map +1 -0
- package/dist/editor-runtime/LocalizationAccessibilityFixtures.js +275 -0
- package/dist/editor-runtime/LocalizationAccessibilityFixtures.js.map +1 -0
- package/dist/editor-runtime/MaterialVariantWorkflow.d.ts +19 -0
- package/dist/editor-runtime/MaterialVariantWorkflow.d.ts.map +1 -0
- package/dist/editor-runtime/MaterialVariantWorkflow.js +82 -0
- package/dist/editor-runtime/MaterialVariantWorkflow.js.map +1 -0
- package/dist/editor-runtime/PickingService.d.ts +58 -0
- package/dist/editor-runtime/PickingService.d.ts.map +1 -0
- package/dist/editor-runtime/PickingService.js +119 -0
- package/dist/editor-runtime/PickingService.js.map +1 -0
- package/dist/editor-runtime/PlayModeBridge.d.ts +14 -0
- package/dist/editor-runtime/PlayModeBridge.d.ts.map +1 -0
- package/dist/editor-runtime/PlayModeBridge.js +23 -0
- package/dist/editor-runtime/PlayModeBridge.js.map +1 -0
- package/dist/editor-runtime/PrefabRegistry.d.ts +41 -0
- package/dist/editor-runtime/PrefabRegistry.d.ts.map +1 -0
- package/dist/editor-runtime/PrefabRegistry.js +119 -0
- package/dist/editor-runtime/PrefabRegistry.js.map +1 -0
- package/dist/editor-runtime/ProjectSerializer.d.ts +9 -0
- package/dist/editor-runtime/ProjectSerializer.d.ts.map +1 -0
- package/dist/editor-runtime/ProjectSerializer.js +14 -0
- package/dist/editor-runtime/ProjectSerializer.js.map +1 -0
- package/dist/editor-runtime/RotateGizmo.d.ts +5 -0
- package/dist/editor-runtime/RotateGizmo.d.ts.map +1 -0
- package/dist/editor-runtime/RotateGizmo.js +37 -0
- package/dist/editor-runtime/RotateGizmo.js.map +1 -0
- package/dist/editor-runtime/ScaleGizmo.d.ts +5 -0
- package/dist/editor-runtime/ScaleGizmo.d.ts.map +1 -0
- package/dist/editor-runtime/ScaleGizmo.js +42 -0
- package/dist/editor-runtime/ScaleGizmo.js.map +1 -0
- package/dist/editor-runtime/Selection.d.ts +20 -0
- package/dist/editor-runtime/Selection.d.ts.map +1 -0
- package/dist/editor-runtime/Selection.js +46 -0
- package/dist/editor-runtime/Selection.js.map +1 -0
- package/dist/editor-runtime/ShaderGraphModel.d.ts +69 -0
- package/dist/editor-runtime/ShaderGraphModel.d.ts.map +1 -0
- package/dist/editor-runtime/ShaderGraphModel.js +172 -0
- package/dist/editor-runtime/ShaderGraphModel.js.map +1 -0
- package/dist/editor-runtime/StaticExportRuntime.d.ts +13 -0
- package/dist/editor-runtime/StaticExportRuntime.d.ts.map +1 -0
- package/dist/editor-runtime/StaticExportRuntime.js +307 -0
- package/dist/editor-runtime/StaticExportRuntime.js.map +1 -0
- package/dist/editor-runtime/TimelineModel.d.ts +157 -0
- package/dist/editor-runtime/TimelineModel.d.ts.map +1 -0
- package/dist/editor-runtime/TimelineModel.js +271 -0
- package/dist/editor-runtime/TimelineModel.js.map +1 -0
- package/dist/editor-runtime/TranslateGizmo.d.ts +5 -0
- package/dist/editor-runtime/TranslateGizmo.d.ts.map +1 -0
- package/dist/editor-runtime/TranslateGizmo.js +41 -0
- package/dist/editor-runtime/TranslateGizmo.js.map +1 -0
- package/dist/editor-runtime/commands/CreateNodeCommand.d.ts +14 -0
- package/dist/editor-runtime/commands/CreateNodeCommand.d.ts.map +1 -0
- package/dist/editor-runtime/commands/CreateNodeCommand.js +16 -0
- package/dist/editor-runtime/commands/CreateNodeCommand.js.map +1 -0
- package/dist/editor-runtime/commands/DeleteNodeCommand.d.ts +13 -0
- package/dist/editor-runtime/commands/DeleteNodeCommand.d.ts.map +1 -0
- package/dist/editor-runtime/commands/DeleteNodeCommand.js +55 -0
- package/dist/editor-runtime/commands/DeleteNodeCommand.js.map +1 -0
- package/dist/editor-runtime/commands/ReparentNodeCommand.d.ts +24 -0
- package/dist/editor-runtime/commands/ReparentNodeCommand.d.ts.map +1 -0
- package/dist/editor-runtime/commands/ReparentNodeCommand.js +39 -0
- package/dist/editor-runtime/commands/ReparentNodeCommand.js.map +1 -0
- package/dist/editor-runtime/commands/SetPropertyCommand.d.ts +14 -0
- package/dist/editor-runtime/commands/SetPropertyCommand.d.ts.map +1 -0
- package/dist/editor-runtime/commands/SetPropertyCommand.js +43 -0
- package/dist/editor-runtime/commands/SetPropertyCommand.js.map +1 -0
- package/dist/editor-runtime/commands/TransformCommand.d.ts +42 -0
- package/dist/editor-runtime/commands/TransformCommand.d.ts.map +1 -0
- package/dist/editor-runtime/commands/TransformCommand.js +72 -0
- package/dist/editor-runtime/commands/TransformCommand.js.map +1 -0
- package/dist/editor-runtime/index.d.ts +47 -0
- package/dist/editor-runtime/index.d.ts.map +1 -0
- package/dist/editor-runtime/index.js +28 -0
- package/dist/editor-runtime/index.js.map +1 -0
- package/dist/engine/A3DApp.d.ts +3 -0
- package/dist/engine/A3DApp.d.ts.map +1 -0
- package/dist/engine/A3DApp.js +2 -0
- package/dist/engine/A3DApp.js.map +1 -0
- package/dist/engine/A3DQualityPresets.d.ts +7 -0
- package/dist/engine/A3DQualityPresets.d.ts.map +1 -0
- package/dist/engine/A3DQualityPresets.js +9 -0
- package/dist/engine/A3DQualityPresets.js.map +1 -0
- package/dist/engine/advanced-runtime/A3DAppLifecycle.d.ts +26 -0
- package/dist/engine/advanced-runtime/A3DAppLifecycle.d.ts.map +1 -0
- package/dist/engine/advanced-runtime/A3DAppLifecycle.js +77 -0
- package/dist/engine/advanced-runtime/A3DAppLifecycle.js.map +1 -0
- package/dist/engine/advanced-runtime/A3DRenderer.d.ts +22 -0
- package/dist/engine/advanced-runtime/A3DRenderer.d.ts.map +1 -0
- package/dist/engine/advanced-runtime/A3DRenderer.js +85 -0
- package/dist/engine/advanced-runtime/A3DRenderer.js.map +1 -0
- package/dist/engine/advanced-runtime/A3DScene.d.ts +29 -0
- package/dist/engine/advanced-runtime/A3DScene.d.ts.map +1 -0
- package/dist/engine/advanced-runtime/A3DScene.js +83 -0
- package/dist/engine/advanced-runtime/A3DScene.js.map +1 -0
- package/dist/engine/advanced-runtime/index.d.ts +11 -0
- package/dist/engine/advanced-runtime/index.d.ts.map +1 -0
- package/dist/engine/advanced-runtime/index.js +6 -0
- package/dist/engine/advanced-runtime/index.js.map +1 -0
- package/dist/engine/agent-api/assets/humanoid-fixture.glb +0 -0
- package/dist/engine/agent-api/assets/player-fixture.glb +0 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts +89 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.js +287 -0
- package/dist/engine/agent-api/humanoid-walk-runtime.js.map +1 -0
- package/dist/engine/agent-api/index.d.ts +1592 -0
- package/dist/engine/agent-api/index.d.ts.map +1 -0
- package/dist/engine/agent-api/index.js +8493 -0
- package/dist/engine/agent-api/index.js.map +1 -0
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts +91 -0
- package/dist/engine/agent-api/particle-fountain-runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/particle-fountain-runtime.js +299 -0
- package/dist/engine/agent-api/particle-fountain-runtime.js.map +1 -0
- package/dist/engine/agent-api/product-viewer-runtime.d.ts +115 -0
- package/dist/engine/agent-api/product-viewer-runtime.d.ts.map +1 -0
- package/dist/engine/agent-api/product-viewer-runtime.js +338 -0
- package/dist/engine/agent-api/product-viewer-runtime.js.map +1 -0
- package/dist/engine/devtools/AuraAssetPanel.d.ts +9 -0
- package/dist/engine/devtools/AuraAssetPanel.d.ts.map +1 -0
- package/dist/engine/devtools/AuraAssetPanel.js +9 -0
- package/dist/engine/devtools/AuraAssetPanel.js.map +1 -0
- package/dist/engine/devtools/AuraDiagnosticsOverlay.d.ts +8 -0
- package/dist/engine/devtools/AuraDiagnosticsOverlay.d.ts.map +1 -0
- package/dist/engine/devtools/AuraDiagnosticsOverlay.js +42 -0
- package/dist/engine/devtools/AuraDiagnosticsOverlay.js.map +1 -0
- package/dist/engine/devtools/AuraPerformancePanel.d.ts +10 -0
- package/dist/engine/devtools/AuraPerformancePanel.d.ts.map +1 -0
- package/dist/engine/devtools/AuraPerformancePanel.js +10 -0
- package/dist/engine/devtools/AuraPerformancePanel.js.map +1 -0
- package/dist/engine/index.d.ts +91 -0
- package/dist/engine/index.d.ts.map +1 -0
- package/dist/engine/index.js +136 -0
- package/dist/engine/index.js.map +1 -0
- package/dist/engine/production-runtime/index.d.ts +492 -0
- package/dist/engine/production-runtime/index.d.ts.map +1 -0
- package/dist/engine/production-runtime/index.js +1267 -0
- package/dist/engine/production-runtime/index.js.map +1 -0
- package/dist/engine/testing/routeHealth.d.ts +10 -0
- package/dist/engine/testing/routeHealth.d.ts.map +1 -0
- package/dist/engine/testing/routeHealth.js +16 -0
- package/dist/engine/testing/routeHealth.js.map +1 -0
- package/dist/engine/testing/screenshot.d.ts +4 -0
- package/dist/engine/testing/screenshot.d.ts.map +1 -0
- package/dist/engine/testing/screenshot.js +10 -0
- package/dist/engine/testing/screenshot.js.map +1 -0
- package/dist/engine/threejs-example-parity/FlagshipFoundation.d.ts +158 -0
- package/dist/engine/threejs-example-parity/FlagshipFoundation.d.ts.map +1 -0
- package/dist/engine/threejs-example-parity/FlagshipFoundation.js +332 -0
- package/dist/engine/threejs-example-parity/FlagshipFoundation.js.map +1 -0
- package/dist/engine/threejs-example-parity/index.d.ts +113 -0
- package/dist/engine/threejs-example-parity/index.d.ts.map +1 -0
- package/dist/engine/threejs-example-parity/index.js +737 -0
- package/dist/engine/threejs-example-parity/index.js.map +1 -0
- package/dist/environments/EnvironmentPreview.d.ts +13 -0
- package/dist/environments/EnvironmentPreview.d.ts.map +1 -0
- package/dist/environments/EnvironmentPreview.js +16 -0
- package/dist/environments/EnvironmentPreview.js.map +1 -0
- package/dist/environments/EnvironmentRegistry.d.ts +35 -0
- package/dist/environments/EnvironmentRegistry.d.ts.map +1 -0
- package/dist/environments/EnvironmentRegistry.js +39 -0
- package/dist/environments/EnvironmentRegistry.js.map +1 -0
- package/dist/environments/HDRIEnvironment.d.ts +38 -0
- package/dist/environments/HDRIEnvironment.d.ts.map +1 -0
- package/dist/environments/HDRIEnvironment.js +34 -0
- package/dist/environments/HDRIEnvironment.js.map +1 -0
- package/dist/environments/PMREMPreset.d.ts +14 -0
- package/dist/environments/PMREMPreset.d.ts.map +1 -0
- package/dist/environments/PMREMPreset.js +16 -0
- package/dist/environments/PMREMPreset.js.map +1 -0
- package/dist/environments/index.d.ts +11 -0
- package/dist/environments/index.d.ts.map +1 -0
- package/dist/environments/index.js +6 -0
- package/dist/environments/index.js.map +1 -0
- package/dist/environments/production-runtime/ProductionEnvironmentCorpus.d.ts +78 -0
- package/dist/environments/production-runtime/ProductionEnvironmentCorpus.d.ts.map +1 -0
- package/dist/environments/production-runtime/ProductionEnvironmentCorpus.js +67 -0
- package/dist/environments/production-runtime/ProductionEnvironmentCorpus.js.map +1 -0
- package/dist/environments/production-runtime/index.d.ts +3 -0
- package/dist/environments/production-runtime/index.d.ts.map +1 -0
- package/dist/environments/production-runtime/index.js +2 -0
- package/dist/environments/production-runtime/index.js.map +1 -0
- package/dist/environments/threejs-example-parity/index.d.ts +17 -0
- package/dist/environments/threejs-example-parity/index.d.ts.map +1 -0
- package/dist/environments/threejs-example-parity/index.js +49 -0
- package/dist/environments/threejs-example-parity/index.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +24 -0
- package/dist/input/ActionMap.d.ts +44 -0
- package/dist/input/ActionMap.d.ts.map +1 -0
- package/dist/input/ActionMap.js +74 -0
- package/dist/input/ActionMap.js.map +1 -0
- package/dist/input/GamepadDevice.d.ts +17 -0
- package/dist/input/GamepadDevice.d.ts.map +1 -0
- package/dist/input/GamepadDevice.js +27 -0
- package/dist/input/GamepadDevice.js.map +1 -0
- package/dist/input/GamepadInput.d.ts +3 -0
- package/dist/input/GamepadInput.d.ts.map +1 -0
- package/dist/input/GamepadInput.js +2 -0
- package/dist/input/GamepadInput.js.map +1 -0
- package/dist/input/GestureControls.d.ts +3 -0
- package/dist/input/GestureControls.d.ts.map +1 -0
- package/dist/input/GestureControls.js +2 -0
- package/dist/input/GestureControls.js.map +1 -0
- package/dist/input/GestureHapticsFixtures.d.ts +57 -0
- package/dist/input/GestureHapticsFixtures.d.ts.map +1 -0
- package/dist/input/GestureHapticsFixtures.js +115 -0
- package/dist/input/GestureHapticsFixtures.js.map +1 -0
- package/dist/input/GestureRecognizer.d.ts +19 -0
- package/dist/input/GestureRecognizer.d.ts.map +1 -0
- package/dist/input/GestureRecognizer.js +32 -0
- package/dist/input/GestureRecognizer.js.map +1 -0
- package/dist/input/InputActionBindingFixtures.d.ts +44 -0
- package/dist/input/InputActionBindingFixtures.d.ts.map +1 -0
- package/dist/input/InputActionBindingFixtures.js +86 -0
- package/dist/input/InputActionBindingFixtures.js.map +1 -0
- package/dist/input/InputReplay.d.ts +97 -0
- package/dist/input/InputReplay.d.ts.map +1 -0
- package/dist/input/InputReplay.js +189 -0
- package/dist/input/InputReplay.js.map +1 -0
- package/dist/input/InputSnapshot.d.ts +44 -0
- package/dist/input/InputSnapshot.d.ts.map +1 -0
- package/dist/input/InputSnapshot.js +44 -0
- package/dist/input/InputSnapshot.js.map +1 -0
- package/dist/input/InputSystem.d.ts +24 -0
- package/dist/input/InputSystem.d.ts.map +1 -0
- package/dist/input/InputSystem.js +77 -0
- package/dist/input/InputSystem.js.map +1 -0
- package/dist/input/InteractionSystem.d.ts +42 -0
- package/dist/input/InteractionSystem.d.ts.map +1 -0
- package/dist/input/InteractionSystem.js +80 -0
- package/dist/input/InteractionSystem.js.map +1 -0
- package/dist/input/KeyboardDevice.d.ts +18 -0
- package/dist/input/KeyboardDevice.d.ts.map +1 -0
- package/dist/input/KeyboardDevice.js +22 -0
- package/dist/input/KeyboardDevice.js.map +1 -0
- package/dist/input/PickingRay.d.ts +10 -0
- package/dist/input/PickingRay.d.ts.map +1 -0
- package/dist/input/PickingRay.js +27 -0
- package/dist/input/PickingRay.js.map +1 -0
- package/dist/input/PointerDevice.d.ts +51 -0
- package/dist/input/PointerDevice.d.ts.map +1 -0
- package/dist/input/PointerDevice.js +75 -0
- package/dist/input/PointerDevice.js.map +1 -0
- package/dist/input/VirtualTouchControls.d.ts +57 -0
- package/dist/input/VirtualTouchControls.d.ts.map +1 -0
- package/dist/input/VirtualTouchControls.js +127 -0
- package/dist/input/VirtualTouchControls.js.map +1 -0
- package/dist/input/WebXRSessionController.d.ts +108 -0
- package/dist/input/WebXRSessionController.d.ts.map +1 -0
- package/dist/input/WebXRSessionController.js +143 -0
- package/dist/input/WebXRSessionController.js.map +1 -0
- package/dist/input/XRFixtures.d.ts +65 -0
- package/dist/input/XRFixtures.d.ts.map +1 -0
- package/dist/input/XRFixtures.js +136 -0
- package/dist/input/XRFixtures.js.map +1 -0
- package/dist/input/controls/CameraRig.d.ts +12 -0
- package/dist/input/controls/CameraRig.d.ts.map +1 -0
- package/dist/input/controls/CameraRig.js +32 -0
- package/dist/input/controls/CameraRig.js.map +1 -0
- package/dist/input/controls/ControlTypes.d.ts +17 -0
- package/dist/input/controls/ControlTypes.d.ts.map +1 -0
- package/dist/input/controls/ControlTypes.js +4 -0
- package/dist/input/controls/ControlTypes.js.map +1 -0
- package/dist/input/controls/EditorFlyControls.d.ts +20 -0
- package/dist/input/controls/EditorFlyControls.d.ts.map +1 -0
- package/dist/input/controls/EditorFlyControls.js +44 -0
- package/dist/input/controls/EditorFlyControls.js.map +1 -0
- package/dist/input/controls/FirstPersonControls.d.ts +22 -0
- package/dist/input/controls/FirstPersonControls.d.ts.map +1 -0
- package/dist/input/controls/FirstPersonControls.js +44 -0
- package/dist/input/controls/FirstPersonControls.js.map +1 -0
- package/dist/input/controls/OrbitControls.d.ts +49 -0
- package/dist/input/controls/OrbitControls.d.ts.map +1 -0
- package/dist/input/controls/OrbitControls.js +131 -0
- package/dist/input/controls/OrbitControls.js.map +1 -0
- package/dist/input/controls/PointerLockControls.d.ts +11 -0
- package/dist/input/controls/PointerLockControls.d.ts.map +1 -0
- package/dist/input/controls/PointerLockControls.js +19 -0
- package/dist/input/controls/PointerLockControls.js.map +1 -0
- package/dist/input/controls/SceneCameraAdapter.d.ts +10 -0
- package/dist/input/controls/SceneCameraAdapter.d.ts.map +1 -0
- package/dist/input/controls/SceneCameraAdapter.js +90 -0
- package/dist/input/controls/SceneCameraAdapter.js.map +1 -0
- package/dist/input/controls/ThirdPersonFollowControls.d.ts +20 -0
- package/dist/input/controls/ThirdPersonFollowControls.d.ts.map +1 -0
- package/dist/input/controls/ThirdPersonFollowControls.js +33 -0
- package/dist/input/controls/ThirdPersonFollowControls.js.map +1 -0
- package/dist/input/index.d.ts +47 -0
- package/dist/input/index.d.ts.map +1 -0
- package/dist/input/index.js +25 -0
- package/dist/input/index.js.map +1 -0
- package/dist/materials/MaterialPreset.d.ts +30 -0
- package/dist/materials/MaterialPreset.d.ts.map +1 -0
- package/dist/materials/MaterialPreset.js +2 -0
- package/dist/materials/MaterialPreset.js.map +1 -0
- package/dist/materials/MaterialPresets.d.ts +3 -0
- package/dist/materials/MaterialPresets.d.ts.map +1 -0
- package/dist/materials/MaterialPresets.js +2 -0
- package/dist/materials/MaterialPresets.js.map +1 -0
- package/dist/materials/MaterialPreviewScene.d.ts +12 -0
- package/dist/materials/MaterialPreviewScene.d.ts.map +1 -0
- package/dist/materials/MaterialPreviewScene.js +20 -0
- package/dist/materials/MaterialPreviewScene.js.map +1 -0
- package/dist/materials/MaterialValidation.d.ts +14 -0
- package/dist/materials/MaterialValidation.d.ts.map +1 -0
- package/dist/materials/MaterialValidation.js +26 -0
- package/dist/materials/MaterialValidation.js.map +1 -0
- package/dist/materials/NodeMaterial.d.ts +11 -0
- package/dist/materials/NodeMaterial.d.ts.map +1 -0
- package/dist/materials/NodeMaterial.js +15 -0
- package/dist/materials/NodeMaterial.js.map +1 -0
- package/dist/materials/PBRMaterialLibrary.d.ts +7 -0
- package/dist/materials/PBRMaterialLibrary.d.ts.map +1 -0
- package/dist/materials/PBRMaterialLibrary.js +89 -0
- package/dist/materials/PBRMaterialLibrary.js.map +1 -0
- package/dist/materials/TextureSet.d.ts +17 -0
- package/dist/materials/TextureSet.d.ts.map +1 -0
- package/dist/materials/TextureSet.js +40 -0
- package/dist/materials/TextureSet.js.map +1 -0
- package/dist/materials/browser-index.d.ts +9 -0
- package/dist/materials/browser-index.d.ts.map +1 -0
- package/dist/materials/browser-index.js +6 -0
- package/dist/materials/browser-index.js.map +1 -0
- package/dist/materials/index.d.ts +11 -0
- package/dist/materials/index.d.ts.map +1 -0
- package/dist/materials/index.js +7 -0
- package/dist/materials/index.js.map +1 -0
- package/dist/math/Box3.d.ts +19 -0
- package/dist/math/Box3.d.ts.map +1 -0
- package/dist/math/Box3.js +61 -0
- package/dist/math/Box3.js.map +1 -0
- package/dist/math/Color.d.ts +15 -0
- package/dist/math/Color.d.ts.map +1 -0
- package/dist/math/Color.js +41 -0
- package/dist/math/Color.js.map +1 -0
- package/dist/math/Curves.d.ts +22 -0
- package/dist/math/Curves.d.ts.map +1 -0
- package/dist/math/Curves.js +74 -0
- package/dist/math/Curves.js.map +1 -0
- package/dist/math/Easing.d.ts +7 -0
- package/dist/math/Easing.d.ts.map +1 -0
- package/dist/math/Easing.js +24 -0
- package/dist/math/Easing.js.map +1 -0
- package/dist/math/Euler.d.ts +12 -0
- package/dist/math/Euler.d.ts.map +1 -0
- package/dist/math/Euler.js +30 -0
- package/dist/math/Euler.js.map +1 -0
- package/dist/math/Frustum.d.ts +14 -0
- package/dist/math/Frustum.d.ts.map +1 -0
- package/dist/math/Frustum.js +40 -0
- package/dist/math/Frustum.js.map +1 -0
- package/dist/math/Interpolation.d.ts +11 -0
- package/dist/math/Interpolation.d.ts.map +1 -0
- package/dist/math/Interpolation.js +30 -0
- package/dist/math/Interpolation.js.map +1 -0
- package/dist/math/Matrix3.d.ts +9 -0
- package/dist/math/Matrix3.d.ts.map +1 -0
- package/dist/math/Matrix3.js +51 -0
- package/dist/math/Matrix3.js.map +1 -0
- package/dist/math/Matrix4.d.ts +45 -0
- package/dist/math/Matrix4.d.ts.map +1 -0
- package/dist/math/Matrix4.js +204 -0
- package/dist/math/Matrix4.js.map +1 -0
- package/dist/math/Plane.d.ts +11 -0
- package/dist/math/Plane.d.ts.map +1 -0
- package/dist/math/Plane.js +31 -0
- package/dist/math/Plane.js.map +1 -0
- package/dist/math/Quaternion.d.ts +25 -0
- package/dist/math/Quaternion.d.ts.map +1 -0
- package/dist/math/Quaternion.js +121 -0
- package/dist/math/Quaternion.js.map +1 -0
- package/dist/math/Random.d.ts +9 -0
- package/dist/math/Random.d.ts.map +1 -0
- package/dist/math/Random.js +30 -0
- package/dist/math/Random.js.map +1 -0
- package/dist/math/Ray.d.ts +14 -0
- package/dist/math/Ray.d.ts.map +1 -0
- package/dist/math/Ray.js +67 -0
- package/dist/math/Ray.js.map +1 -0
- package/dist/math/Sphere.d.ts +9 -0
- package/dist/math/Sphere.d.ts.map +1 -0
- package/dist/math/Sphere.js +18 -0
- package/dist/math/Sphere.js.map +1 -0
- package/dist/math/Transform.d.ts +14 -0
- package/dist/math/Transform.d.ts.map +1 -0
- package/dist/math/Transform.js +28 -0
- package/dist/math/Transform.js.map +1 -0
- package/dist/math/Vector2.d.ts +22 -0
- package/dist/math/Vector2.d.ts.map +1 -0
- package/dist/math/Vector2.js +54 -0
- package/dist/math/Vector2.js.map +1 -0
- package/dist/math/Vector3.d.ts +34 -0
- package/dist/math/Vector3.d.ts.map +1 -0
- package/dist/math/Vector3.js +77 -0
- package/dist/math/Vector3.js.map +1 -0
- package/dist/math/Vector4.d.ts +19 -0
- package/dist/math/Vector4.d.ts.map +1 -0
- package/dist/math/Vector4.js +43 -0
- package/dist/math/Vector4.js.map +1 -0
- package/dist/math/index.d.ts +19 -0
- package/dist/math/index.d.ts.map +1 -0
- package/dist/math/index.js +19 -0
- package/dist/math/index.js.map +1 -0
- package/dist/physics/CharacterController.d.ts +52 -0
- package/dist/physics/CharacterController.d.ts.map +1 -0
- package/dist/physics/CharacterController.js +146 -0
- package/dist/physics/CharacterController.js.map +1 -0
- package/dist/physics/ClothFixtures.d.ts +87 -0
- package/dist/physics/ClothFixtures.d.ts.map +1 -0
- package/dist/physics/ClothFixtures.js +264 -0
- package/dist/physics/ClothFixtures.js.map +1 -0
- package/dist/physics/Collider.d.ts +27 -0
- package/dist/physics/Collider.d.ts.map +1 -0
- package/dist/physics/Collider.js +45 -0
- package/dist/physics/Collider.js.map +1 -0
- package/dist/physics/CollisionEvents.d.ts +26 -0
- package/dist/physics/CollisionEvents.d.ts.map +1 -0
- package/dist/physics/CollisionEvents.js +46 -0
- package/dist/physics/CollisionEvents.js.map +1 -0
- package/dist/physics/Constraint.d.ts +31 -0
- package/dist/physics/Constraint.d.ts.map +1 -0
- package/dist/physics/Constraint.js +103 -0
- package/dist/physics/Constraint.js.map +1 -0
- package/dist/physics/Constraints.d.ts +2 -0
- package/dist/physics/Constraints.d.ts.map +1 -0
- package/dist/physics/Constraints.js +2 -0
- package/dist/physics/Constraints.js.map +1 -0
- package/dist/physics/Crowd.d.ts +64 -0
- package/dist/physics/Crowd.d.ts.map +1 -0
- package/dist/physics/Crowd.js +209 -0
- package/dist/physics/Crowd.js.map +1 -0
- package/dist/physics/ECSPhysicsBridge.d.ts +17 -0
- package/dist/physics/ECSPhysicsBridge.d.ts.map +1 -0
- package/dist/physics/ECSPhysicsBridge.js +37 -0
- package/dist/physics/ECSPhysicsBridge.js.map +1 -0
- package/dist/physics/FireSmokeFixtures.d.ts +103 -0
- package/dist/physics/FireSmokeFixtures.d.ts.map +1 -0
- package/dist/physics/FireSmokeFixtures.js +271 -0
- package/dist/physics/FireSmokeFixtures.js.map +1 -0
- package/dist/physics/FluidFixtures.d.ts +75 -0
- package/dist/physics/FluidFixtures.d.ts.map +1 -0
- package/dist/physics/FluidFixtures.js +219 -0
- package/dist/physics/FluidFixtures.js.map +1 -0
- package/dist/physics/FractureFixtures.d.ts +68 -0
- package/dist/physics/FractureFixtures.d.ts.map +1 -0
- package/dist/physics/FractureFixtures.js +199 -0
- package/dist/physics/FractureFixtures.js.map +1 -0
- package/dist/physics/Navigation.d.ts +67 -0
- package/dist/physics/Navigation.d.ts.map +1 -0
- package/dist/physics/Navigation.js +261 -0
- package/dist/physics/Navigation.js.map +1 -0
- package/dist/physics/PhysicsDebugDraw.d.ts +11 -0
- package/dist/physics/PhysicsDebugDraw.d.ts.map +1 -0
- package/dist/physics/PhysicsDebugDraw.js +64 -0
- package/dist/physics/PhysicsDebugDraw.js.map +1 -0
- package/dist/physics/PhysicsSandboxFixtures.d.ts +53 -0
- package/dist/physics/PhysicsSandboxFixtures.d.ts.map +1 -0
- package/dist/physics/PhysicsSandboxFixtures.js +280 -0
- package/dist/physics/PhysicsSandboxFixtures.js.map +1 -0
- package/dist/physics/PhysicsStepper.d.ts +15 -0
- package/dist/physics/PhysicsStepper.d.ts.map +1 -0
- package/dist/physics/PhysicsStepper.js +37 -0
- package/dist/physics/PhysicsStepper.js.map +1 -0
- package/dist/physics/PhysicsWorld.d.ts +101 -0
- package/dist/physics/PhysicsWorld.d.ts.map +1 -0
- package/dist/physics/PhysicsWorld.js +868 -0
- package/dist/physics/PhysicsWorld.js.map +1 -0
- package/dist/physics/PlatformerFixtures.d.ts +70 -0
- package/dist/physics/PlatformerFixtures.d.ts.map +1 -0
- package/dist/physics/PlatformerFixtures.js +120 -0
- package/dist/physics/PlatformerFixtures.js.map +1 -0
- package/dist/physics/Raycast.d.ts +23 -0
- package/dist/physics/Raycast.d.ts.map +1 -0
- package/dist/physics/Raycast.js +271 -0
- package/dist/physics/Raycast.js.map +1 -0
- package/dist/physics/RigidBody.d.ts +69 -0
- package/dist/physics/RigidBody.d.ts.map +1 -0
- package/dist/physics/RigidBody.js +255 -0
- package/dist/physics/RigidBody.js.map +1 -0
- package/dist/physics/ScenePhysicsBridge.d.ts +42 -0
- package/dist/physics/ScenePhysicsBridge.d.ts.map +1 -0
- package/dist/physics/ScenePhysicsBridge.js +168 -0
- package/dist/physics/ScenePhysicsBridge.js.map +1 -0
- package/dist/physics/Shape.d.ts +50 -0
- package/dist/physics/Shape.d.ts.map +1 -0
- package/dist/physics/Shape.js +128 -0
- package/dist/physics/Shape.js.map +1 -0
- package/dist/physics/SoftBodyFixtures.d.ts +70 -0
- package/dist/physics/SoftBodyFixtures.d.ts.map +1 -0
- package/dist/physics/SoftBodyFixtures.js +272 -0
- package/dist/physics/SoftBodyFixtures.js.map +1 -0
- package/dist/physics/Steering.d.ts +161 -0
- package/dist/physics/Steering.d.ts.map +1 -0
- package/dist/physics/Steering.js +347 -0
- package/dist/physics/Steering.js.map +1 -0
- package/dist/physics/VehicleDynamics.d.ts +152 -0
- package/dist/physics/VehicleDynamics.d.ts.map +1 -0
- package/dist/physics/VehicleDynamics.js +335 -0
- package/dist/physics/VehicleDynamics.js.map +1 -0
- package/dist/physics/index.d.ts +25 -0
- package/dist/physics/index.d.ts.map +1 -0
- package/dist/physics/index.js +25 -0
- package/dist/physics/index.js.map +1 -0
- package/dist/product-studio/ProductAsset.d.ts +2 -0
- package/dist/product-studio/ProductAsset.d.ts.map +1 -0
- package/dist/product-studio/ProductAsset.js +2 -0
- package/dist/product-studio/ProductAsset.js.map +1 -0
- package/dist/product-studio/ProductAssetLoader.d.ts +3 -0
- package/dist/product-studio/ProductAssetLoader.d.ts.map +1 -0
- package/dist/product-studio/ProductAssetLoader.js +77 -0
- package/dist/product-studio/ProductAssetLoader.js.map +1 -0
- package/dist/product-studio/ProductCamera.d.ts +4 -0
- package/dist/product-studio/ProductCamera.d.ts.map +1 -0
- package/dist/product-studio/ProductCamera.js +45 -0
- package/dist/product-studio/ProductCamera.js.map +1 -0
- package/dist/product-studio/ProductDiagnostics.d.ts +4 -0
- package/dist/product-studio/ProductDiagnostics.d.ts.map +1 -0
- package/dist/product-studio/ProductDiagnostics.js +21 -0
- package/dist/product-studio/ProductDiagnostics.js.map +1 -0
- package/dist/product-studio/ProductExport.d.ts +4 -0
- package/dist/product-studio/ProductExport.d.ts.map +1 -0
- package/dist/product-studio/ProductExport.js +40 -0
- package/dist/product-studio/ProductExport.js.map +1 -0
- package/dist/product-studio/ProductFloor.d.ts +4 -0
- package/dist/product-studio/ProductFloor.d.ts.map +1 -0
- package/dist/product-studio/ProductFloor.js +15 -0
- package/dist/product-studio/ProductFloor.js.map +1 -0
- package/dist/product-studio/ProductLighting.d.ts +3 -0
- package/dist/product-studio/ProductLighting.d.ts.map +1 -0
- package/dist/product-studio/ProductLighting.js +42 -0
- package/dist/product-studio/ProductLighting.js.map +1 -0
- package/dist/product-studio/ProductMaterials.d.ts +5 -0
- package/dist/product-studio/ProductMaterials.d.ts.map +1 -0
- package/dist/product-studio/ProductMaterials.js +41 -0
- package/dist/product-studio/ProductMaterials.js.map +1 -0
- package/dist/product-studio/ProductRenderScene.d.ts +4 -0
- package/dist/product-studio/ProductRenderScene.d.ts.map +1 -0
- package/dist/product-studio/ProductRenderScene.js +46 -0
- package/dist/product-studio/ProductRenderScene.js.map +1 -0
- package/dist/product-studio/ProductShowcaseLayout.d.ts +32 -0
- package/dist/product-studio/ProductShowcaseLayout.d.ts.map +1 -0
- package/dist/product-studio/ProductShowcaseLayout.js +54 -0
- package/dist/product-studio/ProductShowcaseLayout.js.map +1 -0
- package/dist/product-studio/ProductStudio.d.ts +3 -0
- package/dist/product-studio/ProductStudio.d.ts.map +1 -0
- package/dist/product-studio/ProductStudio.js +51 -0
- package/dist/product-studio/ProductStudio.js.map +1 -0
- package/dist/product-studio/ProductTypes.d.ts +133 -0
- package/dist/product-studio/ProductTypes.d.ts.map +1 -0
- package/dist/product-studio/ProductTypes.js +2 -0
- package/dist/product-studio/ProductTypes.js.map +1 -0
- package/dist/product-studio/index.d.ts +13 -0
- package/dist/product-studio/index.d.ts.map +1 -0
- package/dist/product-studio/index.js +11 -0
- package/dist/product-studio/index.js.map +1 -0
- package/dist/react/index.d.ts +44 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +116 -0
- package/dist/react/index.js.map +1 -0
- package/dist/rendering/ArchitecturalLightingFixtures.d.ts +40 -0
- package/dist/rendering/ArchitecturalLightingFixtures.d.ts.map +1 -0
- package/dist/rendering/ArchitecturalLightingFixtures.js +171 -0
- package/dist/rendering/ArchitecturalLightingFixtures.js.map +1 -0
- package/dist/rendering/ArchitecturalMaterialCatalog.d.ts +30 -0
- package/dist/rendering/ArchitecturalMaterialCatalog.d.ts.map +1 -0
- package/dist/rendering/ArchitecturalMaterialCatalog.js +90 -0
- package/dist/rendering/ArchitecturalMaterialCatalog.js.map +1 -0
- package/dist/rendering/ArchitecturalMeasurementFixtures.d.ts +30 -0
- package/dist/rendering/ArchitecturalMeasurementFixtures.d.ts.map +1 -0
- package/dist/rendering/ArchitecturalMeasurementFixtures.js +115 -0
- package/dist/rendering/ArchitecturalMeasurementFixtures.js.map +1 -0
- package/dist/rendering/BRDFLut.d.ts +13 -0
- package/dist/rendering/BRDFLut.d.ts.map +1 -0
- package/dist/rendering/BRDFLut.js +34 -0
- package/dist/rendering/BRDFLut.js.map +1 -0
- package/dist/rendering/CameraFraming.d.ts +31 -0
- package/dist/rendering/CameraFraming.d.ts.map +1 -0
- package/dist/rendering/CameraFraming.js +143 -0
- package/dist/rendering/CameraFraming.js.map +1 -0
- package/dist/rendering/CanonicalSceneFixtures.d.ts +13 -0
- package/dist/rendering/CanonicalSceneFixtures.d.ts.map +1 -0
- package/dist/rendering/CanonicalSceneFixtures.js +78 -0
- package/dist/rendering/CanonicalSceneFixtures.js.map +1 -0
- package/dist/rendering/CascadedShadowMaps.d.ts +121 -0
- package/dist/rendering/CascadedShadowMaps.d.ts.map +1 -0
- package/dist/rendering/CascadedShadowMaps.js +315 -0
- package/dist/rendering/CascadedShadowMaps.js.map +1 -0
- package/dist/rendering/ColorManagement.d.ts +33 -0
- package/dist/rendering/ColorManagement.d.ts.map +1 -0
- package/dist/rendering/ColorManagement.js +71 -0
- package/dist/rendering/ColorManagement.js.map +1 -0
- package/dist/rendering/CullingFixtures.d.ts +70 -0
- package/dist/rendering/CullingFixtures.d.ts.map +1 -0
- package/dist/rendering/CullingFixtures.js +191 -0
- package/dist/rendering/CullingFixtures.js.map +1 -0
- package/dist/rendering/DecalGeometry.d.ts +3 -0
- package/dist/rendering/DecalGeometry.d.ts.map +1 -0
- package/dist/rendering/DecalGeometry.js +2 -0
- package/dist/rendering/DecalGeometry.js.map +1 -0
- package/dist/rendering/DepthPass.d.ts +23 -0
- package/dist/rendering/DepthPass.d.ts.map +1 -0
- package/dist/rendering/DepthPass.js +99 -0
- package/dist/rendering/DepthPass.js.map +1 -0
- package/dist/rendering/EnvironmentBackgroundPass.d.ts +27 -0
- package/dist/rendering/EnvironmentBackgroundPass.d.ts.map +1 -0
- package/dist/rendering/EnvironmentBackgroundPass.js +167 -0
- package/dist/rendering/EnvironmentBackgroundPass.js.map +1 -0
- package/dist/rendering/EnvironmentBackgroundResources.d.ts +31 -0
- package/dist/rendering/EnvironmentBackgroundResources.d.ts.map +1 -0
- package/dist/rendering/EnvironmentBackgroundResources.js +237 -0
- package/dist/rendering/EnvironmentBackgroundResources.js.map +1 -0
- package/dist/rendering/EnvironmentLighting.d.ts +10 -0
- package/dist/rendering/EnvironmentLighting.d.ts.map +1 -0
- package/dist/rendering/EnvironmentLighting.js +64 -0
- package/dist/rendering/EnvironmentLighting.js.map +1 -0
- package/dist/rendering/EnvironmentMapResources.d.ts +98 -0
- package/dist/rendering/EnvironmentMapResources.d.ts.map +1 -0
- package/dist/rendering/EnvironmentMapResources.js +794 -0
- package/dist/rendering/EnvironmentMapResources.js.map +1 -0
- package/dist/rendering/EnvironmentPipeline.d.ts +21 -0
- package/dist/rendering/EnvironmentPipeline.d.ts.map +1 -0
- package/dist/rendering/EnvironmentPipeline.js +43 -0
- package/dist/rendering/EnvironmentPipeline.js.map +1 -0
- package/dist/rendering/EnvironmentPlatform.d.ts +185 -0
- package/dist/rendering/EnvironmentPlatform.d.ts.map +1 -0
- package/dist/rendering/EnvironmentPlatform.js +922 -0
- package/dist/rendering/EnvironmentPlatform.js.map +1 -0
- package/dist/rendering/EnvironmentPreset.d.ts +35 -0
- package/dist/rendering/EnvironmentPreset.d.ts.map +1 -0
- package/dist/rendering/EnvironmentPreset.js +96 -0
- package/dist/rendering/EnvironmentPreset.js.map +1 -0
- package/dist/rendering/Exposure.d.ts +19 -0
- package/dist/rendering/Exposure.d.ts.map +1 -0
- package/dist/rendering/Exposure.js +34 -0
- package/dist/rendering/Exposure.js.map +1 -0
- package/dist/rendering/ExternalParityRenderPreset.d.ts +149 -0
- package/dist/rendering/ExternalParityRenderPreset.d.ts.map +1 -0
- package/dist/rendering/ExternalParityRenderPreset.js +519 -0
- package/dist/rendering/ExternalParityRenderPreset.js.map +1 -0
- package/dist/rendering/ForwardPass.d.ts +122 -0
- package/dist/rendering/ForwardPass.d.ts.map +1 -0
- package/dist/rendering/ForwardPass.js +1352 -0
- package/dist/rendering/ForwardPass.js.map +1 -0
- package/dist/rendering/FrameVisualMetrics.d.ts +60 -0
- package/dist/rendering/FrameVisualMetrics.d.ts.map +1 -0
- package/dist/rendering/FrameVisualMetrics.js +146 -0
- package/dist/rendering/FrameVisualMetrics.js.map +1 -0
- package/dist/rendering/Geometry.d.ts +50 -0
- package/dist/rendering/Geometry.d.ts.map +1 -0
- package/dist/rendering/Geometry.js +385 -0
- package/dist/rendering/Geometry.js.map +1 -0
- package/dist/rendering/GeometryPrimitives.d.ts +3 -0
- package/dist/rendering/GeometryPrimitives.d.ts.map +1 -0
- package/dist/rendering/GeometryPrimitives.js +2 -0
- package/dist/rendering/GeometryPrimitives.js.map +1 -0
- package/dist/rendering/HDRRenderPipeline.d.ts +27 -0
- package/dist/rendering/HDRRenderPipeline.d.ts.map +1 -0
- package/dist/rendering/HDRRenderPipeline.js +67 -0
- package/dist/rendering/HDRRenderPipeline.js.map +1 -0
- package/dist/rendering/IBL.d.ts +37 -0
- package/dist/rendering/IBL.d.ts.map +1 -0
- package/dist/rendering/IBL.js +48 -0
- package/dist/rendering/IBL.js.map +1 -0
- package/dist/rendering/IndexBuffer.d.ts +15 -0
- package/dist/rendering/IndexBuffer.d.ts.map +1 -0
- package/dist/rendering/IndexBuffer.js +51 -0
- package/dist/rendering/IndexBuffer.js.map +1 -0
- package/dist/rendering/InstancedPBRMaterial.d.ts +33 -0
- package/dist/rendering/InstancedPBRMaterial.d.ts.map +1 -0
- package/dist/rendering/InstancedPBRMaterial.js +147 -0
- package/dist/rendering/InstancedPBRMaterial.js.map +1 -0
- package/dist/rendering/InstancedUnlitMaterial.d.ts +11 -0
- package/dist/rendering/InstancedUnlitMaterial.d.ts.map +1 -0
- package/dist/rendering/InstancedUnlitMaterial.js +50 -0
- package/dist/rendering/InstancedUnlitMaterial.js.map +1 -0
- package/dist/rendering/Instancing.d.ts +7 -0
- package/dist/rendering/Instancing.d.ts.map +1 -0
- package/dist/rendering/Instancing.js +14 -0
- package/dist/rendering/Instancing.js.map +1 -0
- package/dist/rendering/LightCollector.d.ts +24 -0
- package/dist/rendering/LightCollector.d.ts.map +1 -0
- package/dist/rendering/LightCollector.js +56 -0
- package/dist/rendering/LightCollector.js.map +1 -0
- package/dist/rendering/LightUniforms.d.ts +14 -0
- package/dist/rendering/LightUniforms.d.ts.map +1 -0
- package/dist/rendering/LightUniforms.js +37 -0
- package/dist/rendering/LightUniforms.js.map +1 -0
- package/dist/rendering/LightingDebug.d.ts +13 -0
- package/dist/rendering/LightingDebug.d.ts.map +1 -0
- package/dist/rendering/LightingDebug.js +69 -0
- package/dist/rendering/LightingDebug.js.map +1 -0
- package/dist/rendering/LightingDefaults.d.ts +13 -0
- package/dist/rendering/LightingDefaults.d.ts.map +1 -0
- package/dist/rendering/LightingDefaults.js +64 -0
- package/dist/rendering/LightingDefaults.js.map +1 -0
- package/dist/rendering/LightingRig.d.ts +53 -0
- package/dist/rendering/LightingRig.d.ts.map +1 -0
- package/dist/rendering/LightingRig.js +197 -0
- package/dist/rendering/LightingRig.js.map +1 -0
- package/dist/rendering/LineGeometry.d.ts +3 -0
- package/dist/rendering/LineGeometry.d.ts.map +1 -0
- package/dist/rendering/LineGeometry.js +2 -0
- package/dist/rendering/LineGeometry.js.map +1 -0
- package/dist/rendering/Material.d.ts +77 -0
- package/dist/rendering/Material.d.ts.map +1 -0
- package/dist/rendering/Material.js +137 -0
- package/dist/rendering/Material.js.map +1 -0
- package/dist/rendering/MaterialBinding.d.ts +17 -0
- package/dist/rendering/MaterialBinding.d.ts.map +1 -0
- package/dist/rendering/MaterialBinding.js +119 -0
- package/dist/rendering/MaterialBinding.js.map +1 -0
- package/dist/rendering/MaterialInstance.d.ts +16 -0
- package/dist/rendering/MaterialInstance.d.ts.map +1 -0
- package/dist/rendering/MaterialInstance.js +53 -0
- package/dist/rendering/MaterialInstance.js.map +1 -0
- package/dist/rendering/MaterialPresets.d.ts +31 -0
- package/dist/rendering/MaterialPresets.d.ts.map +1 -0
- package/dist/rendering/MaterialPresets.js +219 -0
- package/dist/rendering/MaterialPresets.js.map +1 -0
- package/dist/rendering/MorphTarget.d.ts +10 -0
- package/dist/rendering/MorphTarget.d.ts.map +1 -0
- package/dist/rendering/MorphTarget.js +101 -0
- package/dist/rendering/MorphTarget.js.map +1 -0
- package/dist/rendering/MorphUnlitMaterial.d.ts +11 -0
- package/dist/rendering/MorphUnlitMaterial.d.ts.map +1 -0
- package/dist/rendering/MorphUnlitMaterial.js +45 -0
- package/dist/rendering/MorphUnlitMaterial.js.map +1 -0
- package/dist/rendering/NormalMappedPBRMaterial.d.ts +37 -0
- package/dist/rendering/NormalMappedPBRMaterial.d.ts.map +1 -0
- package/dist/rendering/NormalMappedPBRMaterial.js +148 -0
- package/dist/rendering/NormalMappedPBRMaterial.js.map +1 -0
- package/dist/rendering/OceanFixtures.d.ts +62 -0
- package/dist/rendering/OceanFixtures.d.ts.map +1 -0
- package/dist/rendering/OceanFixtures.js +240 -0
- package/dist/rendering/OceanFixtures.js.map +1 -0
- package/dist/rendering/PBRLightingDefaults.d.ts +4 -0
- package/dist/rendering/PBRLightingDefaults.d.ts.map +1 -0
- package/dist/rendering/PBRLightingDefaults.js +10 -0
- package/dist/rendering/PBRLightingDefaults.js.map +1 -0
- package/dist/rendering/PBRMaterial.d.ts +84 -0
- package/dist/rendering/PBRMaterial.d.ts.map +1 -0
- package/dist/rendering/PBRMaterial.js +349 -0
- package/dist/rendering/PBRMaterial.js.map +1 -0
- package/dist/rendering/PMREM.d.ts +26 -0
- package/dist/rendering/PMREM.d.ts.map +1 -0
- package/dist/rendering/PMREM.js +26 -0
- package/dist/rendering/PMREM.js.map +1 -0
- package/dist/rendering/PbrReference.d.ts +153 -0
- package/dist/rendering/PbrReference.d.ts.map +1 -0
- package/dist/rendering/PbrReference.js +500 -0
- package/dist/rendering/PbrReference.js.map +1 -0
- package/dist/rendering/PostProcessPass.d.ts +439 -0
- package/dist/rendering/PostProcessPass.d.ts.map +1 -0
- package/dist/rendering/PostProcessPass.js +1834 -0
- package/dist/rendering/PostProcessPass.js.map +1 -0
- package/dist/rendering/ProceduralTextureFixtures.d.ts +27 -0
- package/dist/rendering/ProceduralTextureFixtures.d.ts.map +1 -0
- package/dist/rendering/ProceduralTextureFixtures.js +336 -0
- package/dist/rendering/ProceduralTextureFixtures.js.map +1 -0
- package/dist/rendering/ProductTurntableFixtures.d.ts +96 -0
- package/dist/rendering/ProductTurntableFixtures.d.ts.map +1 -0
- package/dist/rendering/ProductTurntableFixtures.js +559 -0
- package/dist/rendering/ProductTurntableFixtures.js.map +1 -0
- package/dist/rendering/Raycaster.d.ts +14 -0
- package/dist/rendering/Raycaster.d.ts.map +1 -0
- package/dist/rendering/Raycaster.js +10 -0
- package/dist/rendering/Raycaster.js.map +1 -0
- package/dist/rendering/ReflectionProbe.d.ts +8 -0
- package/dist/rendering/ReflectionProbe.d.ts.map +1 -0
- package/dist/rendering/ReflectionProbe.js +10 -0
- package/dist/rendering/ReflectionProbe.js.map +1 -0
- package/dist/rendering/ReflectionSurfaces.d.ts +35 -0
- package/dist/rendering/ReflectionSurfaces.d.ts.map +1 -0
- package/dist/rendering/ReflectionSurfaces.js +155 -0
- package/dist/rendering/ReflectionSurfaces.js.map +1 -0
- package/dist/rendering/RenderBackend.d.ts +14 -0
- package/dist/rendering/RenderBackend.d.ts.map +1 -0
- package/dist/rendering/RenderBackend.js +33 -0
- package/dist/rendering/RenderBackend.js.map +1 -0
- package/dist/rendering/RenderDebugViews.d.ts +26 -0
- package/dist/rendering/RenderDebugViews.d.ts.map +1 -0
- package/dist/rendering/RenderDebugViews.js +97 -0
- package/dist/rendering/RenderDebugViews.js.map +1 -0
- package/dist/rendering/RenderDevice.d.ts +280 -0
- package/dist/rendering/RenderDevice.d.ts.map +1 -0
- package/dist/rendering/RenderDevice.js +561 -0
- package/dist/rendering/RenderDevice.js.map +1 -0
- package/dist/rendering/RenderGraph.d.ts +22 -0
- package/dist/rendering/RenderGraph.d.ts.map +1 -0
- package/dist/rendering/RenderGraph.js +159 -0
- package/dist/rendering/RenderGraph.js.map +1 -0
- package/dist/rendering/RenderPass.d.ts +23 -0
- package/dist/rendering/RenderPass.d.ts.map +1 -0
- package/dist/rendering/RenderPass.js +14 -0
- package/dist/rendering/RenderPass.js.map +1 -0
- package/dist/rendering/RenderPipeline.d.ts +39 -0
- package/dist/rendering/RenderPipeline.d.ts.map +1 -0
- package/dist/rendering/RenderPipeline.js +67 -0
- package/dist/rendering/RenderPipeline.js.map +1 -0
- package/dist/rendering/RenderQueue.d.ts +3 -0
- package/dist/rendering/RenderQueue.d.ts.map +1 -0
- package/dist/rendering/RenderQueue.js +2 -0
- package/dist/rendering/RenderQueue.js.map +1 -0
- package/dist/rendering/RenderState.d.ts +3 -0
- package/dist/rendering/RenderState.d.ts.map +1 -0
- package/dist/rendering/RenderState.js +2 -0
- package/dist/rendering/RenderState.js.map +1 -0
- package/dist/rendering/Renderer.d.ts +265 -0
- package/dist/rendering/Renderer.d.ts.map +1 -0
- package/dist/rendering/Renderer.js +2094 -0
- package/dist/rendering/Renderer.js.map +1 -0
- package/dist/rendering/RendererDebugOverlay.d.ts +20 -0
- package/dist/rendering/RendererDebugOverlay.d.ts.map +1 -0
- package/dist/rendering/RendererDebugOverlay.js +54 -0
- package/dist/rendering/RendererDebugOverlay.js.map +1 -0
- package/dist/rendering/RendererFeatureGates.d.ts +17 -0
- package/dist/rendering/RendererFeatureGates.d.ts.map +1 -0
- package/dist/rendering/RendererFeatureGates.js +92 -0
- package/dist/rendering/RendererFeatureGates.js.map +1 -0
- package/dist/rendering/RendererPostprocessPlan.d.ts +59 -0
- package/dist/rendering/RendererPostprocessPlan.d.ts.map +1 -0
- package/dist/rendering/RendererPostprocessPlan.js +155 -0
- package/dist/rendering/RendererPostprocessPlan.js.map +1 -0
- package/dist/rendering/RendererTiming.d.ts +53 -0
- package/dist/rendering/RendererTiming.d.ts.map +1 -0
- package/dist/rendering/RendererTiming.js +186 -0
- package/dist/rendering/RendererTiming.js.map +1 -0
- package/dist/rendering/RendererVisualPipelineReport.d.ts +224 -0
- package/dist/rendering/RendererVisualPipelineReport.d.ts.map +1 -0
- package/dist/rendering/RendererVisualPipelineReport.js +499 -0
- package/dist/rendering/RendererVisualPipelineReport.js.map +1 -0
- package/dist/rendering/ResourceLifecycle.d.ts +8 -0
- package/dist/rendering/ResourceLifecycle.d.ts.map +1 -0
- package/dist/rendering/ResourceLifecycle.js +18 -0
- package/dist/rendering/ResourceLifecycle.js.map +1 -0
- package/dist/rendering/Sampler.d.ts +20 -0
- package/dist/rendering/Sampler.d.ts.map +1 -0
- package/dist/rendering/Sampler.js +19 -0
- package/dist/rendering/Sampler.js.map +1 -0
- package/dist/rendering/SceneOptimization.d.ts +127 -0
- package/dist/rendering/SceneOptimization.d.ts.map +1 -0
- package/dist/rendering/SceneOptimization.js +342 -0
- package/dist/rendering/SceneOptimization.js.map +1 -0
- package/dist/rendering/ShaderChunks.d.ts +8 -0
- package/dist/rendering/ShaderChunks.d.ts.map +1 -0
- package/dist/rendering/ShaderChunks.js +386 -0
- package/dist/rendering/ShaderChunks.js.map +1 -0
- package/dist/rendering/ShaderLibrary.d.ts +63 -0
- package/dist/rendering/ShaderLibrary.d.ts.map +1 -0
- package/dist/rendering/ShaderLibrary.js +2707 -0
- package/dist/rendering/ShaderLibrary.js.map +1 -0
- package/dist/rendering/ShaderModule.d.ts +14 -0
- package/dist/rendering/ShaderModule.d.ts.map +1 -0
- package/dist/rendering/ShaderModule.js +33 -0
- package/dist/rendering/ShaderModule.js.map +1 -0
- package/dist/rendering/ShaderPreprocessor.d.ts +19 -0
- package/dist/rendering/ShaderPreprocessor.d.ts.map +1 -0
- package/dist/rendering/ShaderPreprocessor.js +212 -0
- package/dist/rendering/ShaderPreprocessor.js.map +1 -0
- package/dist/rendering/ShaderReflection.d.ts +23 -0
- package/dist/rendering/ShaderReflection.d.ts.map +1 -0
- package/dist/rendering/ShaderReflection.js +134 -0
- package/dist/rendering/ShaderReflection.js.map +1 -0
- package/dist/rendering/ShadowMap.d.ts +58 -0
- package/dist/rendering/ShadowMap.d.ts.map +1 -0
- package/dist/rendering/ShadowMap.js +183 -0
- package/dist/rendering/ShadowMap.js.map +1 -0
- package/dist/rendering/ShadowPass.d.ts +44 -0
- package/dist/rendering/ShadowPass.d.ts.map +1 -0
- package/dist/rendering/ShadowPass.js +162 -0
- package/dist/rendering/ShadowPass.js.map +1 -0
- package/dist/rendering/ShadowProjection.d.ts +15 -0
- package/dist/rendering/ShadowProjection.d.ts.map +1 -0
- package/dist/rendering/ShadowProjection.js +90 -0
- package/dist/rendering/ShadowProjection.js.map +1 -0
- package/dist/rendering/SkinnedLitMaterial.d.ts +63 -0
- package/dist/rendering/SkinnedLitMaterial.d.ts.map +1 -0
- package/dist/rendering/SkinnedLitMaterial.js +296 -0
- package/dist/rendering/SkinnedLitMaterial.js.map +1 -0
- package/dist/rendering/SkinnedUnlitMaterial.d.ts +13 -0
- package/dist/rendering/SkinnedUnlitMaterial.d.ts.map +1 -0
- package/dist/rendering/SkinnedUnlitMaterial.js +52 -0
- package/dist/rendering/SkinnedUnlitMaterial.js.map +1 -0
- package/dist/rendering/SkinningBounds.d.ts +10 -0
- package/dist/rendering/SkinningBounds.d.ts.map +1 -0
- package/dist/rendering/SkinningBounds.js +107 -0
- package/dist/rendering/SkinningBounds.js.map +1 -0
- package/dist/rendering/SpaceEnvironmentFixtures.d.ts +59 -0
- package/dist/rendering/SpaceEnvironmentFixtures.d.ts.map +1 -0
- package/dist/rendering/SpaceEnvironmentFixtures.js +132 -0
- package/dist/rendering/SpaceEnvironmentFixtures.js.map +1 -0
- package/dist/rendering/SpriteGeometry.d.ts +3 -0
- package/dist/rendering/SpriteGeometry.d.ts.map +1 -0
- package/dist/rendering/SpriteGeometry.js +21 -0
- package/dist/rendering/SpriteGeometry.js.map +1 -0
- package/dist/rendering/StereoCameraRig.d.ts +34 -0
- package/dist/rendering/StereoCameraRig.d.ts.map +1 -0
- package/dist/rendering/StereoCameraRig.js +79 -0
- package/dist/rendering/StereoCameraRig.js.map +1 -0
- package/dist/rendering/StereoEffects.d.ts +90 -0
- package/dist/rendering/StereoEffects.d.ts.map +1 -0
- package/dist/rendering/StereoEffects.js +171 -0
- package/dist/rendering/StereoEffects.js.map +1 -0
- package/dist/rendering/TerrainFixtures.d.ts +36 -0
- package/dist/rendering/TerrainFixtures.d.ts.map +1 -0
- package/dist/rendering/TerrainFixtures.js +143 -0
- package/dist/rendering/TerrainFixtures.js.map +1 -0
- package/dist/rendering/Texture.d.ts +64 -0
- package/dist/rendering/Texture.d.ts.map +1 -0
- package/dist/rendering/Texture.js +257 -0
- package/dist/rendering/Texture.js.map +1 -0
- package/dist/rendering/TextureBinding.d.ts +38 -0
- package/dist/rendering/TextureBinding.d.ts.map +1 -0
- package/dist/rendering/TextureBinding.js +66 -0
- package/dist/rendering/TextureBinding.js.map +1 -0
- package/dist/rendering/TexturedPBRMaterial.d.ts +206 -0
- package/dist/rendering/TexturedPBRMaterial.d.ts.map +1 -0
- package/dist/rendering/TexturedPBRMaterial.js +842 -0
- package/dist/rendering/TexturedPBRMaterial.js.map +1 -0
- package/dist/rendering/TexturedUnlitMaterial.d.ts +19 -0
- package/dist/rendering/TexturedUnlitMaterial.d.ts.map +1 -0
- package/dist/rendering/TexturedUnlitMaterial.js +52 -0
- package/dist/rendering/TexturedUnlitMaterial.js.map +1 -0
- package/dist/rendering/ToneMapping.d.ts +19 -0
- package/dist/rendering/ToneMapping.d.ts.map +1 -0
- package/dist/rendering/ToneMapping.js +53 -0
- package/dist/rendering/ToneMapping.js.map +1 -0
- package/dist/rendering/UniformBinder.d.ts +7 -0
- package/dist/rendering/UniformBinder.d.ts.map +1 -0
- package/dist/rendering/UniformBinder.js +14 -0
- package/dist/rendering/UniformBinder.js.map +1 -0
- package/dist/rendering/UniformLayout.d.ts +19 -0
- package/dist/rendering/UniformLayout.d.ts.map +1 -0
- package/dist/rendering/UniformLayout.js +107 -0
- package/dist/rendering/UniformLayout.js.map +1 -0
- package/dist/rendering/UnlitMaterial.d.ts +16 -0
- package/dist/rendering/UnlitMaterial.d.ts.map +1 -0
- package/dist/rendering/UnlitMaterial.js +60 -0
- package/dist/rendering/UnlitMaterial.js.map +1 -0
- package/dist/rendering/VegetationFixtures.d.ts +68 -0
- package/dist/rendering/VegetationFixtures.d.ts.map +1 -0
- package/dist/rendering/VegetationFixtures.js +241 -0
- package/dist/rendering/VegetationFixtures.js.map +1 -0
- package/dist/rendering/VertexBuffer.d.ts +29 -0
- package/dist/rendering/VertexBuffer.d.ts.map +1 -0
- package/dist/rendering/VertexBuffer.js +106 -0
- package/dist/rendering/VertexBuffer.js.map +1 -0
- package/dist/rendering/VertexFormat.d.ts +36 -0
- package/dist/rendering/VertexFormat.d.ts.map +1 -0
- package/dist/rendering/VertexFormat.js +127 -0
- package/dist/rendering/VertexFormat.js.map +1 -0
- package/dist/rendering/VoxelWorldFixtures.d.ts +54 -0
- package/dist/rendering/VoxelWorldFixtures.d.ts.map +1 -0
- package/dist/rendering/VoxelWorldFixtures.js +186 -0
- package/dist/rendering/VoxelWorldFixtures.js.map +1 -0
- package/dist/rendering/WeatherFixtures.d.ts +46 -0
- package/dist/rendering/WeatherFixtures.d.ts.map +1 -0
- package/dist/rendering/WeatherFixtures.js +142 -0
- package/dist/rendering/WeatherFixtures.js.map +1 -0
- package/dist/rendering/WebGL2Device.d.ts +137 -0
- package/dist/rendering/WebGL2Device.d.ts.map +1 -0
- package/dist/rendering/WebGL2Device.js +2107 -0
- package/dist/rendering/WebGL2Device.js.map +1 -0
- package/dist/rendering/WebGL2StateCache.d.ts +89 -0
- package/dist/rendering/WebGL2StateCache.d.ts.map +1 -0
- package/dist/rendering/WebGL2StateCache.js +265 -0
- package/dist/rendering/WebGL2StateCache.js.map +1 -0
- package/dist/rendering/WebGPUDevice.d.ts +287 -0
- package/dist/rendering/WebGPUDevice.d.ts.map +1 -0
- package/dist/rendering/WebGPUDevice.js +2403 -0
- package/dist/rendering/WebGPUDevice.js.map +1 -0
- package/dist/rendering/WebGPURenderToTextureProof.d.ts +29 -0
- package/dist/rendering/WebGPURenderToTextureProof.d.ts.map +1 -0
- package/dist/rendering/WebGPURenderToTextureProof.js +96 -0
- package/dist/rendering/WebGPURenderToTextureProof.js.map +1 -0
- package/dist/rendering/advanced-runtime/AdvancedRenderer.d.ts +23 -0
- package/dist/rendering/advanced-runtime/AdvancedRenderer.d.ts.map +1 -0
- package/dist/rendering/advanced-runtime/AdvancedRenderer.js +45 -0
- package/dist/rendering/advanced-runtime/AdvancedRenderer.js.map +1 -0
- package/dist/rendering/advanced-runtime/index.d.ts +10 -0
- package/dist/rendering/advanced-runtime/index.d.ts.map +1 -0
- package/dist/rendering/advanced-runtime/index.js +9 -0
- package/dist/rendering/advanced-runtime/index.js.map +1 -0
- package/dist/rendering/cinematic/BloomPass.d.ts +10 -0
- package/dist/rendering/cinematic/BloomPass.d.ts.map +1 -0
- package/dist/rendering/cinematic/BloomPass.js +18 -0
- package/dist/rendering/cinematic/BloomPass.js.map +1 -0
- package/dist/rendering/cinematic/CinematicDepthComposition.d.ts +12 -0
- package/dist/rendering/cinematic/CinematicDepthComposition.d.ts.map +1 -0
- package/dist/rendering/cinematic/CinematicDepthComposition.js +22 -0
- package/dist/rendering/cinematic/CinematicDepthComposition.js.map +1 -0
- package/dist/rendering/cinematic/CinematicEvidence.d.ts +43 -0
- package/dist/rendering/cinematic/CinematicEvidence.d.ts.map +1 -0
- package/dist/rendering/cinematic/CinematicEvidence.js +55 -0
- package/dist/rendering/cinematic/CinematicEvidence.js.map +1 -0
- package/dist/rendering/cinematic/CinematicLightingRig.d.ts +32 -0
- package/dist/rendering/cinematic/CinematicLightingRig.d.ts.map +1 -0
- package/dist/rendering/cinematic/CinematicLightingRig.js +90 -0
- package/dist/rendering/cinematic/CinematicLightingRig.js.map +1 -0
- package/dist/rendering/cinematic/CinematicMaterialPresets.d.ts +16 -0
- package/dist/rendering/cinematic/CinematicMaterialPresets.d.ts.map +1 -0
- package/dist/rendering/cinematic/CinematicMaterialPresets.js +114 -0
- package/dist/rendering/cinematic/CinematicMaterialPresets.js.map +1 -0
- package/dist/rendering/cinematic/CinematicPostProcess.d.ts +25 -0
- package/dist/rendering/cinematic/CinematicPostProcess.d.ts.map +1 -0
- package/dist/rendering/cinematic/CinematicPostProcess.js +64 -0
- package/dist/rendering/cinematic/CinematicPostProcess.js.map +1 -0
- package/dist/rendering/cinematic/DepthHazePass.d.ts +12 -0
- package/dist/rendering/cinematic/DepthHazePass.d.ts.map +1 -0
- package/dist/rendering/cinematic/DepthHazePass.js +20 -0
- package/dist/rendering/cinematic/DepthHazePass.js.map +1 -0
- package/dist/rendering/cinematic/EmissivePracticalLightSystem.d.ts +18 -0
- package/dist/rendering/cinematic/EmissivePracticalLightSystem.d.ts.map +1 -0
- package/dist/rendering/cinematic/EmissivePracticalLightSystem.js +25 -0
- package/dist/rendering/cinematic/EmissivePracticalLightSystem.js.map +1 -0
- package/dist/rendering/cinematic/FilmGrainPass.d.ts +9 -0
- package/dist/rendering/cinematic/FilmGrainPass.d.ts.map +1 -0
- package/dist/rendering/cinematic/FilmGrainPass.js +17 -0
- package/dist/rendering/cinematic/FilmGrainPass.js.map +1 -0
- package/dist/rendering/cinematic/FogVolumeSystem.d.ts +12 -0
- package/dist/rendering/cinematic/FogVolumeSystem.d.ts.map +1 -0
- package/dist/rendering/cinematic/FogVolumeSystem.js +20 -0
- package/dist/rendering/cinematic/FogVolumeSystem.js.map +1 -0
- package/dist/rendering/cinematic/GlowCardSystem.d.ts +17 -0
- package/dist/rendering/cinematic/GlowCardSystem.d.ts.map +1 -0
- package/dist/rendering/cinematic/GlowCardSystem.js +28 -0
- package/dist/rendering/cinematic/GlowCardSystem.js.map +1 -0
- package/dist/rendering/cinematic/RainParticleSystem.d.ts +22 -0
- package/dist/rendering/cinematic/RainParticleSystem.d.ts.map +1 -0
- package/dist/rendering/cinematic/RainParticleSystem.js +114 -0
- package/dist/rendering/cinematic/RainParticleSystem.js.map +1 -0
- package/dist/rendering/cinematic/VignettePass.d.ts +10 -0
- package/dist/rendering/cinematic/VignettePass.d.ts.map +1 -0
- package/dist/rendering/cinematic/VignettePass.js +17 -0
- package/dist/rendering/cinematic/VignettePass.js.map +1 -0
- package/dist/rendering/cinematic/WetReflectionApproximation.d.ts +13 -0
- package/dist/rendering/cinematic/WetReflectionApproximation.d.ts.map +1 -0
- package/dist/rendering/cinematic/WetReflectionApproximation.js +18 -0
- package/dist/rendering/cinematic/WetReflectionApproximation.js.map +1 -0
- package/dist/rendering/cinematic/index.d.ts +15 -0
- package/dist/rendering/cinematic/index.d.ts.map +1 -0
- package/dist/rendering/cinematic/index.js +15 -0
- package/dist/rendering/cinematic/index.js.map +1 -0
- package/dist/rendering/effects/CollisionModule.d.ts +15 -0
- package/dist/rendering/effects/CollisionModule.d.ts.map +1 -0
- package/dist/rendering/effects/CollisionModule.js +46 -0
- package/dist/rendering/effects/CollisionModule.js.map +1 -0
- package/dist/rendering/effects/ColorModule.d.ts +15 -0
- package/dist/rendering/effects/ColorModule.d.ts.map +1 -0
- package/dist/rendering/effects/ColorModule.js +45 -0
- package/dist/rendering/effects/ColorModule.js.map +1 -0
- package/dist/rendering/effects/ForceModule.d.ts +11 -0
- package/dist/rendering/effects/ForceModule.d.ts.map +1 -0
- package/dist/rendering/effects/ForceModule.js +17 -0
- package/dist/rendering/effects/ForceModule.js.map +1 -0
- package/dist/rendering/effects/GPUParticleBackend.d.ts +153 -0
- package/dist/rendering/effects/GPUParticleBackend.d.ts.map +1 -0
- package/dist/rendering/effects/GPUParticleBackend.js +397 -0
- package/dist/rendering/effects/GPUParticleBackend.js.map +1 -0
- package/dist/rendering/effects/Particle.d.ts +49 -0
- package/dist/rendering/effects/Particle.d.ts.map +1 -0
- package/dist/rendering/effects/Particle.js +56 -0
- package/dist/rendering/effects/Particle.js.map +1 -0
- package/dist/rendering/effects/ParticleDiagnostics.d.ts +58 -0
- package/dist/rendering/effects/ParticleDiagnostics.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleDiagnostics.js +145 -0
- package/dist/rendering/effects/ParticleDiagnostics.js.map +1 -0
- package/dist/rendering/effects/ParticleEffectPresets.d.ts +8 -0
- package/dist/rendering/effects/ParticleEffectPresets.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleEffectPresets.js +137 -0
- package/dist/rendering/effects/ParticleEffectPresets.js.map +1 -0
- package/dist/rendering/effects/ParticleEmitter.d.ts +87 -0
- package/dist/rendering/effects/ParticleEmitter.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleEmitter.js +254 -0
- package/dist/rendering/effects/ParticleEmitter.js.map +1 -0
- package/dist/rendering/effects/ParticleModule.d.ts +15 -0
- package/dist/rendering/effects/ParticleModule.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleModule.js +6 -0
- package/dist/rendering/effects/ParticleModule.js.map +1 -0
- package/dist/rendering/effects/ParticleRenderPass.d.ts +35 -0
- package/dist/rendering/effects/ParticleRenderPass.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleRenderPass.js +91 -0
- package/dist/rendering/effects/ParticleRenderPass.js.map +1 -0
- package/dist/rendering/effects/ParticleRenderer.d.ts +34 -0
- package/dist/rendering/effects/ParticleRenderer.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleRenderer.js +93 -0
- package/dist/rendering/effects/ParticleRenderer.js.map +1 -0
- package/dist/rendering/effects/ParticleSystem.d.ts +51 -0
- package/dist/rendering/effects/ParticleSystem.d.ts.map +1 -0
- package/dist/rendering/effects/ParticleSystem.js +261 -0
- package/dist/rendering/effects/ParticleSystem.js.map +1 -0
- package/dist/rendering/effects/SizeModule.d.ts +14 -0
- package/dist/rendering/effects/SizeModule.d.ts.map +1 -0
- package/dist/rendering/effects/SizeModule.js +42 -0
- package/dist/rendering/effects/SizeModule.js.map +1 -0
- package/dist/rendering/effects/TrailModule.d.ts +22 -0
- package/dist/rendering/effects/TrailModule.d.ts.map +1 -0
- package/dist/rendering/effects/TrailModule.js +50 -0
- package/dist/rendering/effects/TrailModule.js.map +1 -0
- package/dist/rendering/effects/VelocityModule.d.ts +15 -0
- package/dist/rendering/effects/VelocityModule.d.ts.map +1 -0
- package/dist/rendering/effects/VelocityModule.js +57 -0
- package/dist/rendering/effects/VelocityModule.js.map +1 -0
- package/dist/rendering/effects/index.d.ts +16 -0
- package/dist/rendering/effects/index.d.ts.map +1 -0
- package/dist/rendering/effects/index.js +16 -0
- package/dist/rendering/effects/index.js.map +1 -0
- package/dist/rendering/index.d.ts +260 -0
- package/dist/rendering/index.d.ts.map +1 -0
- package/dist/rendering/index.js +155 -0
- package/dist/rendering/index.js.map +1 -0
- package/dist/rendering/materials/AlphaSorting.d.ts +8 -0
- package/dist/rendering/materials/AlphaSorting.d.ts.map +1 -0
- package/dist/rendering/materials/AlphaSorting.js +26 -0
- package/dist/rendering/materials/AlphaSorting.js.map +1 -0
- package/dist/rendering/materials/MaterialExtensions.d.ts +10 -0
- package/dist/rendering/materials/MaterialExtensions.d.ts.map +1 -0
- package/dist/rendering/materials/MaterialExtensions.js +20 -0
- package/dist/rendering/materials/MaterialExtensions.js.map +1 -0
- package/dist/rendering/materials/PhysicalMaterial.d.ts +36 -0
- package/dist/rendering/materials/PhysicalMaterial.d.ts.map +1 -0
- package/dist/rendering/materials/PhysicalMaterial.js +79 -0
- package/dist/rendering/materials/PhysicalMaterial.js.map +1 -0
- package/dist/rendering/materials/TransmissionPass.d.ts +16 -0
- package/dist/rendering/materials/TransmissionPass.d.ts.map +1 -0
- package/dist/rendering/materials/TransmissionPass.js +30 -0
- package/dist/rendering/materials/TransmissionPass.js.map +1 -0
- package/dist/rendering/performance/BVH.d.ts +3 -0
- package/dist/rendering/performance/BVH.d.ts.map +1 -0
- package/dist/rendering/performance/BVH.js +2 -0
- package/dist/rendering/performance/BVH.js.map +1 -0
- package/dist/rendering/performance/Batcher.d.ts +3 -0
- package/dist/rendering/performance/Batcher.d.ts.map +1 -0
- package/dist/rendering/performance/Batcher.js +2 -0
- package/dist/rendering/performance/Batcher.js.map +1 -0
- package/dist/rendering/performance/FrustumCuller.d.ts +3 -0
- package/dist/rendering/performance/FrustumCuller.d.ts.map +1 -0
- package/dist/rendering/performance/FrustumCuller.js +5 -0
- package/dist/rendering/performance/FrustumCuller.js.map +1 -0
- package/dist/rendering/performance/LOD.d.ts +8 -0
- package/dist/rendering/performance/LOD.d.ts.map +1 -0
- package/dist/rendering/performance/LOD.js +15 -0
- package/dist/rendering/performance/LOD.js.map +1 -0
- package/dist/rendering/performance/Octree.d.ts +7 -0
- package/dist/rendering/performance/Octree.d.ts.map +1 -0
- package/dist/rendering/performance/Octree.js +4 -0
- package/dist/rendering/performance/Octree.js.map +1 -0
- package/dist/rendering/performance/RenderItemSorting.d.ts +43 -0
- package/dist/rendering/performance/RenderItemSorting.d.ts.map +1 -0
- package/dist/rendering/performance/RenderItemSorting.js +111 -0
- package/dist/rendering/performance/RenderItemSorting.js.map +1 -0
- package/dist/rendering/performance/RendererStats.d.ts +23 -0
- package/dist/rendering/performance/RendererStats.d.ts.map +1 -0
- package/dist/rendering/performance/RendererStats.js +23 -0
- package/dist/rendering/performance/RendererStats.js.map +1 -0
- package/dist/rendering/performance/ResourceBudget.d.ts +19 -0
- package/dist/rendering/performance/ResourceBudget.d.ts.map +1 -0
- package/dist/rendering/performance/ResourceBudget.js +21 -0
- package/dist/rendering/performance/ResourceBudget.js.map +1 -0
- package/dist/rendering/postprocess/BloomPass.d.ts +11 -0
- package/dist/rendering/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/rendering/postprocess/BloomPass.js +14 -0
- package/dist/rendering/postprocess/BloomPass.js.map +1 -0
- package/dist/rendering/postprocess/CinematicDiagnostics.d.ts +112 -0
- package/dist/rendering/postprocess/CinematicDiagnostics.d.ts.map +1 -0
- package/dist/rendering/postprocess/CinematicDiagnostics.js +492 -0
- package/dist/rendering/postprocess/CinematicDiagnostics.js.map +1 -0
- package/dist/rendering/postprocess/ColorGradingPass.d.ts +4 -0
- package/dist/rendering/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/rendering/postprocess/ColorGradingPass.js +15 -0
- package/dist/rendering/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/rendering/postprocess/DepthOfFieldPass.d.ts +3 -0
- package/dist/rendering/postprocess/DepthOfFieldPass.d.ts.map +1 -0
- package/dist/rendering/postprocess/DepthOfFieldPass.js +7 -0
- package/dist/rendering/postprocess/DepthOfFieldPass.js.map +1 -0
- package/dist/rendering/postprocess/EffectComposer.d.ts +110 -0
- package/dist/rendering/postprocess/EffectComposer.d.ts.map +1 -0
- package/dist/rendering/postprocess/EffectComposer.js +249 -0
- package/dist/rendering/postprocess/EffectComposer.js.map +1 -0
- package/dist/rendering/postprocess/SSAOPass.d.ts +6 -0
- package/dist/rendering/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/rendering/postprocess/SSAOPass.js +18 -0
- package/dist/rendering/postprocess/SSAOPass.js.map +1 -0
- package/dist/rendering/postprocess/index.d.ts +11 -0
- package/dist/rendering/postprocess/index.d.ts.map +1 -0
- package/dist/rendering/postprocess/index.js +7 -0
- package/dist/rendering/postprocess/index.js.map +1 -0
- package/dist/rendering/production-runtime/AnimationControlsPipeline.d.ts +37 -0
- package/dist/rendering/production-runtime/AnimationControlsPipeline.d.ts.map +1 -0
- package/dist/rendering/production-runtime/AnimationControlsPipeline.js +41 -0
- package/dist/rendering/production-runtime/AnimationControlsPipeline.js.map +1 -0
- package/dist/rendering/production-runtime/PBRHDRPipeline.d.ts +81 -0
- package/dist/rendering/production-runtime/PBRHDRPipeline.d.ts.map +1 -0
- package/dist/rendering/production-runtime/PBRHDRPipeline.js +279 -0
- package/dist/rendering/production-runtime/PBRHDRPipeline.js.map +1 -0
- package/dist/rendering/production-runtime/ProductionEffectsPipeline.d.ts +20 -0
- package/dist/rendering/production-runtime/ProductionEffectsPipeline.d.ts.map +1 -0
- package/dist/rendering/production-runtime/ProductionEffectsPipeline.js +65 -0
- package/dist/rendering/production-runtime/ProductionEffectsPipeline.js.map +1 -0
- package/dist/rendering/production-runtime/ProductionRendererTypes.d.ts +97 -0
- package/dist/rendering/production-runtime/ProductionRendererTypes.d.ts.map +1 -0
- package/dist/rendering/production-runtime/ProductionRendererTypes.js +29 -0
- package/dist/rendering/production-runtime/ProductionRendererTypes.js.map +1 -0
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.d.ts +36 -0
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.js +124 -0
- package/dist/rendering/production-runtime/ProductionRuntimeRenderer.js.map +1 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.d.ts +51 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.js +269 -0
- package/dist/rendering/production-runtime/ProductionWebGL2Renderer.js.map +1 -0
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.d.ts +69 -0
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.js +313 -0
- package/dist/rendering/production-runtime/ProductionWebGPURenderer.js.map +1 -0
- package/dist/rendering/production-runtime/TransmissionBackdropCapture.d.ts +11 -0
- package/dist/rendering/production-runtime/TransmissionBackdropCapture.d.ts.map +1 -0
- package/dist/rendering/production-runtime/TransmissionBackdropCapture.js +119 -0
- package/dist/rendering/production-runtime/TransmissionBackdropCapture.js.map +1 -0
- package/dist/rendering/production-runtime/animation/MorphTargetRenderer.d.ts +7 -0
- package/dist/rendering/production-runtime/animation/MorphTargetRenderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/animation/MorphTargetRenderer.js +2 -0
- package/dist/rendering/production-runtime/animation/MorphTargetRenderer.js.map +1 -0
- package/dist/rendering/production-runtime/animation/SkinningRenderer.d.ts +7 -0
- package/dist/rendering/production-runtime/animation/SkinningRenderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/animation/SkinningRenderer.js +2 -0
- package/dist/rendering/production-runtime/animation/SkinningRenderer.js.map +1 -0
- package/dist/rendering/production-runtime/backends/RendererBackend.d.ts +16 -0
- package/dist/rendering/production-runtime/backends/RendererBackend.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/RendererBackend.js +2 -0
- package/dist/rendering/production-runtime/backends/RendererBackend.js.map +1 -0
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.d.ts +15 -0
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.js +25 -0
- package/dist/rendering/production-runtime/backends/WebGL2RendererBackend.js.map +1 -0
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.d.ts +20 -0
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.js +19 -0
- package/dist/rendering/production-runtime/backends/WebGPURendererBackend.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.js +8 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Buffer.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.js +8 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Capabilities.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.js +8 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2RenderTarget.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.js +8 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Shader.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.d.ts +2 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.js +2 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2StateCache.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.js +8 -0
- package/dist/rendering/production-runtime/backends/webgl2/WebGL2Texture.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.js +8 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUBuffer.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.js +8 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUCapabilities.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.js +8 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPURenderTarget.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.js +8 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUShader.js.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.d.ts +11 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.d.ts.map +1 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.js +8 -0
- package/dist/rendering/production-runtime/backends/webgpu/WebGPUTexture.js.map +1 -0
- package/dist/rendering/production-runtime/color/ColorManagement.d.ts +4 -0
- package/dist/rendering/production-runtime/color/ColorManagement.d.ts.map +1 -0
- package/dist/rendering/production-runtime/color/ColorManagement.js +3 -0
- package/dist/rendering/production-runtime/color/ColorManagement.js.map +1 -0
- package/dist/rendering/production-runtime/color/ToneMapping.d.ts +3 -0
- package/dist/rendering/production-runtime/color/ToneMapping.d.ts.map +1 -0
- package/dist/rendering/production-runtime/color/ToneMapping.js +9 -0
- package/dist/rendering/production-runtime/color/ToneMapping.js.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/FrameCapture.d.ts +7 -0
- package/dist/rendering/production-runtime/diagnostics/FrameCapture.d.ts.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/FrameCapture.js +2 -0
- package/dist/rendering/production-runtime/diagnostics/FrameCapture.js.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/GPUCapabilities.d.ts +9 -0
- package/dist/rendering/production-runtime/diagnostics/GPUCapabilities.d.ts.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/GPUCapabilities.js +2 -0
- package/dist/rendering/production-runtime/diagnostics/GPUCapabilities.js.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/RendererStats.d.ts +9 -0
- package/dist/rendering/production-runtime/diagnostics/RendererStats.d.ts.map +1 -0
- package/dist/rendering/production-runtime/diagnostics/RendererStats.js +2 -0
- package/dist/rendering/production-runtime/diagnostics/RendererStats.js.map +1 -0
- package/dist/rendering/production-runtime/environment/EnvironmentMap.d.ts +8 -0
- package/dist/rendering/production-runtime/environment/EnvironmentMap.d.ts.map +1 -0
- package/dist/rendering/production-runtime/environment/EnvironmentMap.js +2 -0
- package/dist/rendering/production-runtime/environment/EnvironmentMap.js.map +1 -0
- package/dist/rendering/production-runtime/environment/HDRLoader.d.ts +19 -0
- package/dist/rendering/production-runtime/environment/HDRLoader.d.ts.map +1 -0
- package/dist/rendering/production-runtime/environment/HDRLoader.js +22 -0
- package/dist/rendering/production-runtime/environment/HDRLoader.js.map +1 -0
- package/dist/rendering/production-runtime/environment/PMREMGenerator.d.ts +99 -0
- package/dist/rendering/production-runtime/environment/PMREMGenerator.d.ts.map +1 -0
- package/dist/rendering/production-runtime/environment/PMREMGenerator.js +534 -0
- package/dist/rendering/production-runtime/environment/PMREMGenerator.js.map +1 -0
- package/dist/rendering/production-runtime/framegraph/FrameGraph.d.ts +8 -0
- package/dist/rendering/production-runtime/framegraph/FrameGraph.d.ts.map +1 -0
- package/dist/rendering/production-runtime/framegraph/FrameGraph.js +14 -0
- package/dist/rendering/production-runtime/framegraph/FrameGraph.js.map +1 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.d.ts +14 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.js +2 -0
- package/dist/rendering/production-runtime/framegraph/RenderPass.js.map +1 -0
- package/dist/rendering/production-runtime/geometry/ProjectedDecalGeometry.d.ts +53 -0
- package/dist/rendering/production-runtime/geometry/ProjectedDecalGeometry.d.ts.map +1 -0
- package/dist/rendering/production-runtime/geometry/ProjectedDecalGeometry.js +340 -0
- package/dist/rendering/production-runtime/geometry/ProjectedDecalGeometry.js.map +1 -0
- package/dist/rendering/production-runtime/index.d.ts +73 -0
- package/dist/rendering/production-runtime/index.d.ts.map +1 -0
- package/dist/rendering/production-runtime/index.js +67 -0
- package/dist/rendering/production-runtime/index.js.map +1 -0
- package/dist/rendering/production-runtime/lights/LightManager.d.ts +8 -0
- package/dist/rendering/production-runtime/lights/LightManager.d.ts.map +1 -0
- package/dist/rendering/production-runtime/lights/LightManager.js +7 -0
- package/dist/rendering/production-runtime/lights/LightManager.js.map +1 -0
- package/dist/rendering/production-runtime/lights/ShadowMapRenderer.d.ts +8 -0
- package/dist/rendering/production-runtime/lights/ShadowMapRenderer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/lights/ShadowMapRenderer.js +4 -0
- package/dist/rendering/production-runtime/lights/ShadowMapRenderer.js.map +1 -0
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.d.ts +14 -0
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.js +5 -0
- package/dist/rendering/production-runtime/materials/GLTFMaterialAdapter.js.map +1 -0
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts +3 -0
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.js +2 -0
- package/dist/rendering/production-runtime/materials/GLTFPBRMaterialAdapter.js.map +1 -0
- package/dist/rendering/production-runtime/materials/MaterialCompiler.d.ts +9 -0
- package/dist/rendering/production-runtime/materials/MaterialCompiler.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/MaterialCompiler.js +5 -0
- package/dist/rendering/production-runtime/materials/MaterialCompiler.js.map +1 -0
- package/dist/rendering/production-runtime/materials/MaterialTextureBindings.d.ts +8 -0
- package/dist/rendering/production-runtime/materials/MaterialTextureBindings.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/MaterialTextureBindings.js +4 -0
- package/dist/rendering/production-runtime/materials/MaterialTextureBindings.js.map +1 -0
- package/dist/rendering/production-runtime/materials/PBRMaterial.d.ts +23 -0
- package/dist/rendering/production-runtime/materials/PBRMaterial.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/PBRMaterial.js +2 -0
- package/dist/rendering/production-runtime/materials/PBRMaterial.js.map +1 -0
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.d.ts +13 -0
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.d.ts.map +1 -0
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.js +2 -0
- package/dist/rendering/production-runtime/materials/PBRShaderFeatures.js.map +1 -0
- package/dist/rendering/production-runtime/passes/ContactShadowPass.d.ts +40 -0
- package/dist/rendering/production-runtime/passes/ContactShadowPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/ContactShadowPass.js +126 -0
- package/dist/rendering/production-runtime/passes/ContactShadowPass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/DepthPrepass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/DepthPrepass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/DepthPrepass.js +7 -0
- package/dist/rendering/production-runtime/passes/DepthPrepass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/OpaquePass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/OpaquePass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/OpaquePass.js +7 -0
- package/dist/rendering/production-runtime/passes/OpaquePass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/ShadowPass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/ShadowPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/ShadowPass.js +7 -0
- package/dist/rendering/production-runtime/passes/ShadowPass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/SkyboxPass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/SkyboxPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/SkyboxPass.js +7 -0
- package/dist/rendering/production-runtime/passes/SkyboxPass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/ToneMappingPass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/ToneMappingPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/ToneMappingPass.js +7 -0
- package/dist/rendering/production-runtime/passes/ToneMappingPass.js.map +1 -0
- package/dist/rendering/production-runtime/passes/TransparentPass.d.ts +8 -0
- package/dist/rendering/production-runtime/passes/TransparentPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/passes/TransparentPass.js +7 -0
- package/dist/rendering/production-runtime/passes/TransparentPass.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/BloomPass.d.ts +15 -0
- package/dist/rendering/production-runtime/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/BloomPass.js +37 -0
- package/dist/rendering/production-runtime/postprocess/BloomPass.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ColorGradingPass.d.ts +16 -0
- package/dist/rendering/production-runtime/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ColorGradingPass.js +34 -0
- package/dist/rendering/production-runtime/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/DOFPass.d.ts +16 -0
- package/dist/rendering/production-runtime/postprocess/DOFPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/DOFPass.js +31 -0
- package/dist/rendering/production-runtime/postprocess/DOFPass.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/FXAAPass.d.ts +16 -0
- package/dist/rendering/production-runtime/postprocess/FXAAPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/FXAAPass.js +39 -0
- package/dist/rendering/production-runtime/postprocess/FXAAPass.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ProductionEffectComposer.d.ts +21 -0
- package/dist/rendering/production-runtime/postprocess/ProductionEffectComposer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ProductionEffectComposer.js +53 -0
- package/dist/rendering/production-runtime/postprocess/ProductionEffectComposer.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ProductionPostProcessTypes.d.ts +37 -0
- package/dist/rendering/production-runtime/postprocess/ProductionPostProcessTypes.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/ProductionPostProcessTypes.js +124 -0
- package/dist/rendering/production-runtime/postprocess/ProductionPostProcessTypes.js.map +1 -0
- package/dist/rendering/production-runtime/postprocess/SSAOPass.d.ts +15 -0
- package/dist/rendering/production-runtime/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/rendering/production-runtime/postprocess/SSAOPass.js +30 -0
- package/dist/rendering/production-runtime/postprocess/SSAOPass.js.map +1 -0
- package/dist/rendering/production-runtime/resources/GPUBuffer.d.ts +10 -0
- package/dist/rendering/production-runtime/resources/GPUBuffer.d.ts.map +1 -0
- package/dist/rendering/production-runtime/resources/GPUBuffer.js +7 -0
- package/dist/rendering/production-runtime/resources/GPUBuffer.js.map +1 -0
- package/dist/rendering/production-runtime/resources/GPUTexture.d.ts +12 -0
- package/dist/rendering/production-runtime/resources/GPUTexture.d.ts.map +1 -0
- package/dist/rendering/production-runtime/resources/GPUTexture.js +7 -0
- package/dist/rendering/production-runtime/resources/GPUTexture.js.map +1 -0
- package/dist/rendering/production-runtime/resources/RenderTarget.d.ts +11 -0
- package/dist/rendering/production-runtime/resources/RenderTarget.d.ts.map +1 -0
- package/dist/rendering/production-runtime/resources/RenderTarget.js +7 -0
- package/dist/rendering/production-runtime/resources/RenderTarget.js.map +1 -0
- package/dist/rendering/production-runtime/resources/ResourceCache.d.ts +8 -0
- package/dist/rendering/production-runtime/resources/ResourceCache.d.ts.map +1 -0
- package/dist/rendering/production-runtime/resources/ResourceCache.js +8 -0
- package/dist/rendering/production-runtime/resources/ResourceCache.js.map +1 -0
- package/dist/rendering/production-runtime/scene/Camera.d.ts +8 -0
- package/dist/rendering/production-runtime/scene/Camera.d.ts.map +1 -0
- package/dist/rendering/production-runtime/scene/Camera.js +2 -0
- package/dist/rendering/production-runtime/scene/Camera.js.map +1 -0
- package/dist/rendering/production-runtime/scene/Lights.d.ts +9 -0
- package/dist/rendering/production-runtime/scene/Lights.d.ts.map +1 -0
- package/dist/rendering/production-runtime/scene/Lights.js +2 -0
- package/dist/rendering/production-runtime/scene/Lights.js.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderableMesh.d.ts +8 -0
- package/dist/rendering/production-runtime/scene/RenderableMesh.d.ts.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderableMesh.js +2 -0
- package/dist/rendering/production-runtime/scene/RenderableMesh.js.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderablePrimitive.d.ts +8 -0
- package/dist/rendering/production-runtime/scene/RenderablePrimitive.d.ts.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderablePrimitive.js +2 -0
- package/dist/rendering/production-runtime/scene/RenderablePrimitive.js.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderableScene.d.ts +11 -0
- package/dist/rendering/production-runtime/scene/RenderableScene.d.ts.map +1 -0
- package/dist/rendering/production-runtime/scene/RenderableScene.js +2 -0
- package/dist/rendering/production-runtime/scene/RenderableScene.js.map +1 -0
- package/dist/rendering/production-runtime/shaders/ShaderProgramLibrary.d.ts +12 -0
- package/dist/rendering/production-runtime/shaders/ShaderProgramLibrary.d.ts.map +1 -0
- package/dist/rendering/production-runtime/shaders/ShaderProgramLibrary.js +7 -0
- package/dist/rendering/production-runtime/shaders/ShaderProgramLibrary.js.map +1 -0
- package/dist/rendering/shadows/CascadedShadowPipeline.d.ts +25 -0
- package/dist/rendering/shadows/CascadedShadowPipeline.d.ts.map +1 -0
- package/dist/rendering/shadows/CascadedShadowPipeline.js +31 -0
- package/dist/rendering/shadows/CascadedShadowPipeline.js.map +1 -0
- package/dist/rendering/shadows/ContactShadows.d.ts +37 -0
- package/dist/rendering/shadows/ContactShadows.d.ts.map +1 -0
- package/dist/rendering/shadows/ContactShadows.js +68 -0
- package/dist/rendering/shadows/ContactShadows.js.map +1 -0
- package/dist/rendering/shadows/ShadowDebugViews.d.ts +12 -0
- package/dist/rendering/shadows/ShadowDebugViews.d.ts.map +1 -0
- package/dist/rendering/shadows/ShadowDebugViews.js +35 -0
- package/dist/rendering/shadows/ShadowDebugViews.js.map +1 -0
- package/dist/rendering/threejs-compatibility/InstancingSystem.d.ts +10 -0
- package/dist/rendering/threejs-compatibility/InstancingSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/InstancingSystem.js +11 -0
- package/dist/rendering/threejs-compatibility/InstancingSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/LightingSystem.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/LightingSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/LightingSystem.js +14 -0
- package/dist/rendering/threejs-compatibility/LightingSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/MaterialSystem.d.ts +6 -0
- package/dist/rendering/threejs-compatibility/MaterialSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/MaterialSystem.js +7 -0
- package/dist/rendering/threejs-compatibility/MaterialSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/RenderTargetSystem.d.ts +16 -0
- package/dist/rendering/threejs-compatibility/RenderTargetSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/RenderTargetSystem.js +23 -0
- package/dist/rendering/threejs-compatibility/RenderTargetSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/RendererDiagnostics.d.ts +27 -0
- package/dist/rendering/threejs-compatibility/RendererDiagnostics.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/RendererDiagnostics.js +41 -0
- package/dist/rendering/threejs-compatibility/RendererDiagnostics.js.map +1 -0
- package/dist/rendering/threejs-compatibility/SceneRenderer.d.ts +19 -0
- package/dist/rendering/threejs-compatibility/SceneRenderer.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/SceneRenderer.js +18 -0
- package/dist/rendering/threejs-compatibility/SceneRenderer.js.map +1 -0
- package/dist/rendering/threejs-compatibility/ShadowSystem.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/ShadowSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/ShadowSystem.js +12 -0
- package/dist/rendering/threejs-compatibility/ShadowSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/TextureSystem.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/TextureSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/TextureSystem.js +14 -0
- package/dist/rendering/threejs-compatibility/TextureSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/ThreeCompatRenderer.d.ts +37 -0
- package/dist/rendering/threejs-compatibility/ThreeCompatRenderer.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/ThreeCompatRenderer.js +77 -0
- package/dist/rendering/threejs-compatibility/ThreeCompatRenderer.js.map +1 -0
- package/dist/rendering/threejs-compatibility/TransparencySystem.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/TransparencySystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/TransparencySystem.js +12 -0
- package/dist/rendering/threejs-compatibility/TransparencySystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/index.d.ts +25 -0
- package/dist/rendering/threejs-compatibility/index.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/index.js +15 -0
- package/dist/rendering/threejs-compatibility/index.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/BVH.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/performance/BVH.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/BVH.js +10 -0
- package/dist/rendering/threejs-compatibility/performance/BVH.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/FrustumCulling.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/performance/FrustumCulling.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/FrustumCulling.js +5 -0
- package/dist/rendering/threejs-compatibility/performance/FrustumCulling.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/Instancing.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/performance/Instancing.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/Instancing.js +10 -0
- package/dist/rendering/threejs-compatibility/performance/Instancing.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/LODSystem.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/performance/LODSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/LODSystem.js +11 -0
- package/dist/rendering/threejs-compatibility/performance/LODSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/OcclusionCulling.d.ts +3 -0
- package/dist/rendering/threejs-compatibility/performance/OcclusionCulling.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/OcclusionCulling.js +5 -0
- package/dist/rendering/threejs-compatibility/performance/OcclusionCulling.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/RaycastAcceleration.d.ts +8 -0
- package/dist/rendering/threejs-compatibility/performance/RaycastAcceleration.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/RaycastAcceleration.js +11 -0
- package/dist/rendering/threejs-compatibility/performance/RaycastAcceleration.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/RendererProfiler.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/performance/RendererProfiler.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/RendererProfiler.js +10 -0
- package/dist/rendering/threejs-compatibility/performance/RendererProfiler.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/TextureStreaming.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/performance/TextureStreaming.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/TextureStreaming.js +10 -0
- package/dist/rendering/threejs-compatibility/performance/TextureStreaming.js.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/index.d.ts +13 -0
- package/dist/rendering/threejs-compatibility/performance/index.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/performance/index.js +9 -0
- package/dist/rendering/threejs-compatibility/performance/index.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/BloomPass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/BloomPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/BloomPass.js +14 -0
- package/dist/rendering/threejs-compatibility/postprocess/BloomPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/ColorGradingPass.d.ts +10 -0
- package/dist/rendering/threejs-compatibility/postprocess/ColorGradingPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/ColorGradingPass.js +16 -0
- package/dist/rendering/threejs-compatibility/postprocess/ColorGradingPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/DepthOfFieldPass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/DepthOfFieldPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/DepthOfFieldPass.js +19 -0
- package/dist/rendering/threejs-compatibility/postprocess/DepthOfFieldPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/EffectComposer.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/postprocess/EffectComposer.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/EffectComposer.js +11 -0
- package/dist/rendering/threejs-compatibility/postprocess/EffectComposer.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/FXAAPass.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/postprocess/FXAAPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/FXAAPass.js +10 -0
- package/dist/rendering/threejs-compatibility/postprocess/FXAAPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/MotionBlurPass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/MotionBlurPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/MotionBlurPass.js +18 -0
- package/dist/rendering/threejs-compatibility/postprocess/MotionBlurPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/OutlinePass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/OutlinePass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/OutlinePass.js +19 -0
- package/dist/rendering/threejs-compatibility/postprocess/OutlinePass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/PostProcessTypes.d.ts +42 -0
- package/dist/rendering/threejs-compatibility/postprocess/PostProcessTypes.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/PostProcessTypes.js +123 -0
- package/dist/rendering/threejs-compatibility/postprocess/PostProcessTypes.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/RenderPass.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/postprocess/RenderPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/RenderPass.js +8 -0
- package/dist/rendering/threejs-compatibility/postprocess/RenderPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/SMAAPass.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/postprocess/SMAAPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/SMAAPass.js +10 -0
- package/dist/rendering/threejs-compatibility/postprocess/SMAAPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/SSAOPass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/SSAOPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/SSAOPass.js +19 -0
- package/dist/rendering/threejs-compatibility/postprocess/SSAOPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/ShaderPass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/ShaderPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/ShaderPass.js +11 -0
- package/dist/rendering/threejs-compatibility/postprocess/ShaderPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/TAAPass.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/postprocess/TAAPass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/TAAPass.js +10 -0
- package/dist/rendering/threejs-compatibility/postprocess/TAAPass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/VignettePass.d.ts +9 -0
- package/dist/rendering/threejs-compatibility/postprocess/VignettePass.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/VignettePass.js +14 -0
- package/dist/rendering/threejs-compatibility/postprocess/VignettePass.js.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/index.d.ts +16 -0
- package/dist/rendering/threejs-compatibility/postprocess/index.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/postprocess/index.js +15 -0
- package/dist/rendering/threejs-compatibility/postprocess/index.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/NodeMaterial.d.ts +14 -0
- package/dist/rendering/threejs-compatibility/shaders/NodeMaterial.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/NodeMaterial.js +15 -0
- package/dist/rendering/threejs-compatibility/shaders/NodeMaterial.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/RawShaderMaterial.d.ts +6 -0
- package/dist/rendering/threejs-compatibility/shaders/RawShaderMaterial.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/RawShaderMaterial.js +6 -0
- package/dist/rendering/threejs-compatibility/shaders/RawShaderMaterial.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderDiagnostics.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderDiagnostics.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderDiagnostics.js +12 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderDiagnostics.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderMaterial.d.ts +12 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderMaterial.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderMaterial.js +20 -0
- package/dist/rendering/threejs-compatibility/shaders/ShaderMaterial.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ThreeCompatShaderChunks.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/shaders/ThreeCompatShaderChunks.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/ThreeCompatShaderChunks.js +7 -0
- package/dist/rendering/threejs-compatibility/shaders/ThreeCompatShaderChunks.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/Uniforms.d.ts +8 -0
- package/dist/rendering/threejs-compatibility/shaders/Uniforms.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/Uniforms.js +14 -0
- package/dist/rendering/threejs-compatibility/shaders/Uniforms.js.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/index.d.ts +10 -0
- package/dist/rendering/threejs-compatibility/shaders/index.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/shaders/index.js +7 -0
- package/dist/rendering/threejs-compatibility/shaders/index.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/GPUPointCloud.d.ts +7 -0
- package/dist/rendering/threejs-compatibility/vfx/GPUPointCloud.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/GPUPointCloud.js +12 -0
- package/dist/rendering/threejs-compatibility/vfx/GPUPointCloud.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/LineRenderer.d.ts +10 -0
- package/dist/rendering/threejs-compatibility/vfx/LineRenderer.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/LineRenderer.js +7 -0
- package/dist/rendering/threejs-compatibility/vfx/LineRenderer.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/ParticleSystem.d.ts +12 -0
- package/dist/rendering/threejs-compatibility/vfx/ParticleSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/ParticleSystem.js +15 -0
- package/dist/rendering/threejs-compatibility/vfx/ParticleSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/SpriteSystem.d.ts +11 -0
- package/dist/rendering/threejs-compatibility/vfx/SpriteSystem.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/SpriteSystem.js +7 -0
- package/dist/rendering/threejs-compatibility/vfx/SpriteSystem.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/TrailRenderer.d.ts +5 -0
- package/dist/rendering/threejs-compatibility/vfx/TrailRenderer.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/TrailRenderer.js +9 -0
- package/dist/rendering/threejs-compatibility/vfx/TrailRenderer.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/VFXDiagnostics.d.ts +21 -0
- package/dist/rendering/threejs-compatibility/vfx/VFXDiagnostics.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/VFXDiagnostics.js +12 -0
- package/dist/rendering/threejs-compatibility/vfx/VFXDiagnostics.js.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/index.d.ts +10 -0
- package/dist/rendering/threejs-compatibility/vfx/index.d.ts.map +1 -0
- package/dist/rendering/threejs-compatibility/vfx/index.js +7 -0
- package/dist/rendering/threejs-compatibility/vfx/index.js.map +1 -0
- package/dist/rendering/threejs-example-parity/index.d.ts +57 -0
- package/dist/rendering/threejs-example-parity/index.d.ts.map +1 -0
- package/dist/rendering/threejs-example-parity/index.js +139 -0
- package/dist/rendering/threejs-example-parity/index.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUBuffer.d.ts +2 -0
- package/dist/rendering/webgpu/WebGPUBuffer.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUBuffer.js +2 -0
- package/dist/rendering/webgpu/WebGPUBuffer.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUCompute.d.ts +3 -0
- package/dist/rendering/webgpu/WebGPUCompute.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUCompute.js +2 -0
- package/dist/rendering/webgpu/WebGPUCompute.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.d.ts +6 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.js +15 -0
- package/dist/rendering/webgpu/WebGPUPipelineCache.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUPostProcess.d.ts +3 -0
- package/dist/rendering/webgpu/WebGPUPostProcess.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUPostProcess.js +2 -0
- package/dist/rendering/webgpu/WebGPUPostProcess.js.map +1 -0
- package/dist/rendering/webgpu/WebGPUTexture.d.ts +3 -0
- package/dist/rendering/webgpu/WebGPUTexture.d.ts.map +1 -0
- package/dist/rendering/webgpu/WebGPUTexture.js +2 -0
- package/dist/rendering/webgpu/WebGPUTexture.js.map +1 -0
- package/dist/scene/Bounds.d.ts +18 -0
- package/dist/scene/Bounds.d.ts.map +1 -0
- package/dist/scene/Bounds.js +55 -0
- package/dist/scene/Bounds.js.map +1 -0
- package/dist/scene/Camera.d.ts +22 -0
- package/dist/scene/Camera.d.ts.map +1 -0
- package/dist/scene/Camera.js +44 -0
- package/dist/scene/Camera.js.map +1 -0
- package/dist/scene/DirectionalLight.d.ts +7 -0
- package/dist/scene/DirectionalLight.d.ts.map +1 -0
- package/dist/scene/DirectionalLight.js +12 -0
- package/dist/scene/DirectionalLight.js.map +1 -0
- package/dist/scene/Hierarchy.d.ts +6 -0
- package/dist/scene/Hierarchy.d.ts.map +1 -0
- package/dist/scene/Hierarchy.js +19 -0
- package/dist/scene/Hierarchy.js.map +1 -0
- package/dist/scene/Layers.d.ts +8 -0
- package/dist/scene/Layers.d.ts.map +1 -0
- package/dist/scene/Layers.js +21 -0
- package/dist/scene/Layers.js.map +1 -0
- package/dist/scene/Light.d.ts +14 -0
- package/dist/scene/Light.d.ts.map +1 -0
- package/dist/scene/Light.js +23 -0
- package/dist/scene/Light.js.map +1 -0
- package/dist/scene/Lights.d.ts +6 -0
- package/dist/scene/Lights.d.ts.map +1 -0
- package/dist/scene/Lights.js +5 -0
- package/dist/scene/Lights.js.map +1 -0
- package/dist/scene/MathTypes.d.ts +52 -0
- package/dist/scene/MathTypes.d.ts.map +1 -0
- package/dist/scene/MathTypes.js +119 -0
- package/dist/scene/MathTypes.js.map +1 -0
- package/dist/scene/Object3D.d.ts +48 -0
- package/dist/scene/Object3D.d.ts.map +1 -0
- package/dist/scene/Object3D.js +122 -0
- package/dist/scene/Object3D.js.map +1 -0
- package/dist/scene/OrthographicCamera.d.ts +29 -0
- package/dist/scene/OrthographicCamera.d.ts.map +1 -0
- package/dist/scene/OrthographicCamera.js +59 -0
- package/dist/scene/OrthographicCamera.js.map +1 -0
- package/dist/scene/PerspectiveCamera.d.ts +20 -0
- package/dist/scene/PerspectiveCamera.d.ts.map +1 -0
- package/dist/scene/PerspectiveCamera.js +42 -0
- package/dist/scene/PerspectiveCamera.js.map +1 -0
- package/dist/scene/PointLight.d.ts +10 -0
- package/dist/scene/PointLight.d.ts.map +1 -0
- package/dist/scene/PointLight.js +22 -0
- package/dist/scene/PointLight.js.map +1 -0
- package/dist/scene/Renderable.d.ts +30 -0
- package/dist/scene/Renderable.d.ts.map +1 -0
- package/dist/scene/Renderable.js +54 -0
- package/dist/scene/Renderable.js.map +1 -0
- package/dist/scene/Scene.d.ts +45 -0
- package/dist/scene/Scene.d.ts.map +1 -0
- package/dist/scene/Scene.js +117 -0
- package/dist/scene/Scene.js.map +1 -0
- package/dist/scene/SceneMetadata.d.ts +79 -0
- package/dist/scene/SceneMetadata.d.ts.map +1 -0
- package/dist/scene/SceneMetadata.js +130 -0
- package/dist/scene/SceneMetadata.js.map +1 -0
- package/dist/scene/SceneNode.d.ts +42 -0
- package/dist/scene/SceneNode.d.ts.map +1 -0
- package/dist/scene/SceneNode.js +126 -0
- package/dist/scene/SceneNode.js.map +1 -0
- package/dist/scene/SceneQuery.d.ts +16 -0
- package/dist/scene/SceneQuery.d.ts.map +1 -0
- package/dist/scene/SceneQuery.js +37 -0
- package/dist/scene/SceneQuery.js.map +1 -0
- package/dist/scene/SceneSerializer.d.ts +59 -0
- package/dist/scene/SceneSerializer.d.ts.map +1 -0
- package/dist/scene/SceneSerializer.js +127 -0
- package/dist/scene/SceneSerializer.js.map +1 -0
- package/dist/scene/SpotLight.d.ts +14 -0
- package/dist/scene/SpotLight.d.ts.map +1 -0
- package/dist/scene/SpotLight.js +35 -0
- package/dist/scene/SpotLight.js.map +1 -0
- package/dist/scene/TransformNode.d.ts +26 -0
- package/dist/scene/TransformNode.d.ts.map +1 -0
- package/dist/scene/TransformNode.js +98 -0
- package/dist/scene/TransformNode.js.map +1 -0
- package/dist/scene/index.d.ts +21 -0
- package/dist/scene/index.d.ts.map +1 -0
- package/dist/scene/index.js +21 -0
- package/dist/scene/index.js.map +1 -0
- package/dist/scripting/AdaptiveDifficultyFixtures.d.ts +58 -0
- package/dist/scripting/AdaptiveDifficultyFixtures.d.ts.map +1 -0
- package/dist/scripting/AdaptiveDifficultyFixtures.js +228 -0
- package/dist/scripting/AdaptiveDifficultyFixtures.js.map +1 -0
- package/dist/scripting/AnalyticsPrivacyFixtures.d.ts +63 -0
- package/dist/scripting/AnalyticsPrivacyFixtures.d.ts.map +1 -0
- package/dist/scripting/AnalyticsPrivacyFixtures.js +120 -0
- package/dist/scripting/AnalyticsPrivacyFixtures.js.map +1 -0
- package/dist/scripting/Behavior.d.ts +10 -0
- package/dist/scripting/Behavior.d.ts.map +1 -0
- package/dist/scripting/Behavior.js +2 -0
- package/dist/scripting/Behavior.js.map +1 -0
- package/dist/scripting/BehaviorHost.d.ts +17 -0
- package/dist/scripting/BehaviorHost.d.ts.map +1 -0
- package/dist/scripting/BehaviorHost.js +39 -0
- package/dist/scripting/BehaviorHost.js.map +1 -0
- package/dist/scripting/BehaviorRegistry.d.ts +8 -0
- package/dist/scripting/BehaviorRegistry.d.ts.map +1 -0
- package/dist/scripting/BehaviorRegistry.js +17 -0
- package/dist/scripting/BehaviorRegistry.js.map +1 -0
- package/dist/scripting/BehaviorSystem.d.ts +26 -0
- package/dist/scripting/BehaviorSystem.d.ts.map +1 -0
- package/dist/scripting/BehaviorSystem.js +76 -0
- package/dist/scripting/BehaviorSystem.js.map +1 -0
- package/dist/scripting/BehaviorTree.d.ts +75 -0
- package/dist/scripting/BehaviorTree.d.ts.map +1 -0
- package/dist/scripting/BehaviorTree.js +204 -0
- package/dist/scripting/BehaviorTree.js.map +1 -0
- package/dist/scripting/CloudServiceFixtures.d.ts +81 -0
- package/dist/scripting/CloudServiceFixtures.d.ts.map +1 -0
- package/dist/scripting/CloudServiceFixtures.js +144 -0
- package/dist/scripting/CloudServiceFixtures.js.map +1 -0
- package/dist/scripting/CulturalBehaviorFixtures.d.ts +75 -0
- package/dist/scripting/CulturalBehaviorFixtures.d.ts.map +1 -0
- package/dist/scripting/CulturalBehaviorFixtures.js +180 -0
- package/dist/scripting/CulturalBehaviorFixtures.js.map +1 -0
- package/dist/scripting/DecisionTree.d.ts +42 -0
- package/dist/scripting/DecisionTree.d.ts.map +1 -0
- package/dist/scripting/DecisionTree.js +125 -0
- package/dist/scripting/DecisionTree.js.map +1 -0
- package/dist/scripting/GOAP.d.ts +51 -0
- package/dist/scripting/GOAP.d.ts.map +1 -0
- package/dist/scripting/GOAP.js +105 -0
- package/dist/scripting/GOAP.js.map +1 -0
- package/dist/scripting/HTN.d.ts +58 -0
- package/dist/scripting/HTN.d.ts.map +1 -0
- package/dist/scripting/HTN.js +115 -0
- package/dist/scripting/HTN.js.map +1 -0
- package/dist/scripting/LearningAgentFixtures.d.ts +60 -0
- package/dist/scripting/LearningAgentFixtures.d.ts.map +1 -0
- package/dist/scripting/LearningAgentFixtures.js +122 -0
- package/dist/scripting/LearningAgentFixtures.js.map +1 -0
- package/dist/scripting/NetworkReplicationFixtures.d.ts +82 -0
- package/dist/scripting/NetworkReplicationFixtures.d.ts.map +1 -0
- package/dist/scripting/NetworkReplicationFixtures.js +330 -0
- package/dist/scripting/NetworkReplicationFixtures.js.map +1 -0
- package/dist/scripting/Perception.d.ts +58 -0
- package/dist/scripting/Perception.d.ts.map +1 -0
- package/dist/scripting/Perception.js +111 -0
- package/dist/scripting/Perception.js.map +1 -0
- package/dist/scripting/PlayerBehaviorTelemetryFixtures.d.ts +74 -0
- package/dist/scripting/PlayerBehaviorTelemetryFixtures.d.ts.map +1 -0
- package/dist/scripting/PlayerBehaviorTelemetryFixtures.js +189 -0
- package/dist/scripting/PlayerBehaviorTelemetryFixtures.js.map +1 -0
- package/dist/scripting/ProceduralContentAdaptationFixtures.d.ts +52 -0
- package/dist/scripting/ProceduralContentAdaptationFixtures.d.ts.map +1 -0
- package/dist/scripting/ProceduralContentAdaptationFixtures.js +149 -0
- package/dist/scripting/ProceduralContentAdaptationFixtures.js.map +1 -0
- package/dist/scripting/ScriptContext.d.ts +18 -0
- package/dist/scripting/ScriptContext.d.ts.map +1 -0
- package/dist/scripting/ScriptContext.js +21 -0
- package/dist/scripting/ScriptContext.js.map +1 -0
- package/dist/scripting/StateMachine.d.ts +52 -0
- package/dist/scripting/StateMachine.d.ts.map +1 -0
- package/dist/scripting/StateMachine.js +117 -0
- package/dist/scripting/StateMachine.js.map +1 -0
- package/dist/scripting/UtilityAI.d.ts +55 -0
- package/dist/scripting/UtilityAI.d.ts.map +1 -0
- package/dist/scripting/UtilityAI.js +113 -0
- package/dist/scripting/UtilityAI.js.map +1 -0
- package/dist/scripting/VisualGraph.d.ts +19 -0
- package/dist/scripting/VisualGraph.d.ts.map +1 -0
- package/dist/scripting/VisualGraph.js +74 -0
- package/dist/scripting/VisualGraph.js.map +1 -0
- package/dist/scripting/VisualGraphExecutor.d.ts +11 -0
- package/dist/scripting/VisualGraphExecutor.d.ts.map +1 -0
- package/dist/scripting/VisualGraphExecutor.js +214 -0
- package/dist/scripting/VisualGraphExecutor.js.map +1 -0
- package/dist/scripting/VisualNode.d.ts +17 -0
- package/dist/scripting/VisualNode.d.ts.map +1 -0
- package/dist/scripting/VisualNode.js +24 -0
- package/dist/scripting/VisualNode.js.map +1 -0
- package/dist/scripting/VisualNodeCatalog.d.ts +14 -0
- package/dist/scripting/VisualNodeCatalog.d.ts.map +1 -0
- package/dist/scripting/VisualNodeCatalog.js +82 -0
- package/dist/scripting/VisualNodeCatalog.js.map +1 -0
- package/dist/scripting/WeaponSystem.d.ts +228 -0
- package/dist/scripting/WeaponSystem.d.ts.map +1 -0
- package/dist/scripting/WeaponSystem.js +530 -0
- package/dist/scripting/WeaponSystem.js.map +1 -0
- package/dist/scripting/index.d.ts +50 -0
- package/dist/scripting/index.d.ts.map +1 -0
- package/dist/scripting/index.js +25 -0
- package/dist/scripting/index.js.map +1 -0
- package/dist/three-compat/ThreeApiInventory.d.ts +18 -0
- package/dist/three-compat/ThreeApiInventory.d.ts.map +1 -0
- package/dist/three-compat/ThreeApiInventory.js +99 -0
- package/dist/three-compat/ThreeApiInventory.js.map +1 -0
- package/dist/three-compat/ThreeCompatibilityMatrix.d.ts +30 -0
- package/dist/three-compat/ThreeCompatibilityMatrix.d.ts.map +1 -0
- package/dist/three-compat/ThreeCompatibilityMatrix.js +69 -0
- package/dist/three-compat/ThreeCompatibilityMatrix.js.map +1 -0
- package/dist/three-compat/animation/index.d.ts +3 -0
- package/dist/three-compat/animation/index.d.ts.map +1 -0
- package/dist/three-compat/animation/index.js +2 -0
- package/dist/three-compat/animation/index.js.map +1 -0
- package/dist/three-compat/cameras/index.d.ts +24 -0
- package/dist/three-compat/cameras/index.d.ts.map +1 -0
- package/dist/three-compat/cameras/index.js +44 -0
- package/dist/three-compat/cameras/index.js.map +1 -0
- package/dist/three-compat/controls/index.d.ts +3 -0
- package/dist/three-compat/controls/index.d.ts.map +1 -0
- package/dist/three-compat/controls/index.js +2 -0
- package/dist/three-compat/controls/index.js.map +1 -0
- package/dist/three-compat/core/Object3DCompat.d.ts +62 -0
- package/dist/three-compat/core/Object3DCompat.d.ts.map +1 -0
- package/dist/three-compat/core/Object3DCompat.js +112 -0
- package/dist/three-compat/core/Object3DCompat.js.map +1 -0
- package/dist/three-compat/core/RaycasterCompat.d.ts +18 -0
- package/dist/three-compat/core/RaycasterCompat.d.ts.map +1 -0
- package/dist/three-compat/core/RaycasterCompat.js +28 -0
- package/dist/three-compat/core/RaycasterCompat.js.map +1 -0
- package/dist/three-compat/core/SceneCompat.d.ts +8 -0
- package/dist/three-compat/core/SceneCompat.d.ts.map +1 -0
- package/dist/three-compat/core/SceneCompat.js +8 -0
- package/dist/three-compat/core/SceneCompat.js.map +1 -0
- package/dist/three-compat/geometries/index.d.ts +67 -0
- package/dist/three-compat/geometries/index.d.ts.map +1 -0
- package/dist/three-compat/geometries/index.js +114 -0
- package/dist/three-compat/geometries/index.js.map +1 -0
- package/dist/three-compat/helpers/index.d.ts +40 -0
- package/dist/three-compat/helpers/index.d.ts.map +1 -0
- package/dist/three-compat/helpers/index.js +129 -0
- package/dist/three-compat/helpers/index.js.map +1 -0
- package/dist/three-compat/index.d.ts +32 -0
- package/dist/three-compat/index.d.ts.map +1 -0
- package/dist/three-compat/index.js +22 -0
- package/dist/three-compat/index.js.map +1 -0
- package/dist/three-compat/lights/index.d.ts +35 -0
- package/dist/three-compat/lights/index.d.ts.map +1 -0
- package/dist/three-compat/lights/index.js +39 -0
- package/dist/three-compat/lights/index.js.map +1 -0
- package/dist/three-compat/loaders/index.d.ts +54 -0
- package/dist/three-compat/loaders/index.d.ts.map +1 -0
- package/dist/three-compat/loaders/index.js +79 -0
- package/dist/three-compat/loaders/index.js.map +1 -0
- package/dist/three-compat/materials/index.d.ts +70 -0
- package/dist/three-compat/materials/index.d.ts.map +1 -0
- package/dist/three-compat/materials/index.js +85 -0
- package/dist/three-compat/materials/index.js.map +1 -0
- package/dist/three-compat/math/index.d.ts +34 -0
- package/dist/three-compat/math/index.d.ts.map +1 -0
- package/dist/three-compat/math/index.js +90 -0
- package/dist/three-compat/math/index.js.map +1 -0
- package/dist/three-compat/migration/CompatibilityWarnings.d.ts +6 -0
- package/dist/three-compat/migration/CompatibilityWarnings.d.ts.map +1 -0
- package/dist/three-compat/migration/CompatibilityWarnings.js +8 -0
- package/dist/three-compat/migration/CompatibilityWarnings.js.map +1 -0
- package/dist/three-compat/migration/ImportMap.d.ts +2 -0
- package/dist/three-compat/migration/ImportMap.d.ts.map +1 -0
- package/dist/three-compat/migration/ImportMap.js +10 -0
- package/dist/three-compat/migration/ImportMap.js.map +1 -0
- package/dist/three-compat/migration/ThreeToA3DAdapter.d.ts +8 -0
- package/dist/three-compat/migration/ThreeToA3DAdapter.d.ts.map +1 -0
- package/dist/three-compat/migration/ThreeToA3DAdapter.js +20 -0
- package/dist/three-compat/migration/ThreeToA3DAdapter.js.map +1 -0
- package/dist/three-compat/postprocessing/index.d.ts +2 -0
- package/dist/three-compat/postprocessing/index.d.ts.map +1 -0
- package/dist/three-compat/postprocessing/index.js +2 -0
- package/dist/three-compat/postprocessing/index.js.map +1 -0
- package/dist/three-compat/render-targets/index.d.ts +17 -0
- package/dist/three-compat/render-targets/index.d.ts.map +1 -0
- package/dist/three-compat/render-targets/index.js +29 -0
- package/dist/three-compat/render-targets/index.js.map +1 -0
- package/dist/three-compat/shaders/index.d.ts +3 -0
- package/dist/three-compat/shaders/index.d.ts.map +1 -0
- package/dist/three-compat/shaders/index.js +3 -0
- package/dist/three-compat/shaders/index.js.map +1 -0
- package/dist/three-compat/textures/index.d.ts +19 -0
- package/dist/three-compat/textures/index.d.ts.map +1 -0
- package/dist/three-compat/textures/index.js +24 -0
- package/dist/three-compat/textures/index.js.map +1 -0
- package/dist/workflows/AnimationLabWorkflow.d.ts +3 -0
- package/dist/workflows/AnimationLabWorkflow.d.ts.map +1 -0
- package/dist/workflows/AnimationLabWorkflow.js +156 -0
- package/dist/workflows/AnimationLabWorkflow.js.map +1 -0
- package/dist/workflows/AssetViewerWorkflow.d.ts +3 -0
- package/dist/workflows/AssetViewerWorkflow.d.ts.map +1 -0
- package/dist/workflows/AssetViewerWorkflow.js +35 -0
- package/dist/workflows/AssetViewerWorkflow.js.map +1 -0
- package/dist/workflows/ComparisonWorkflow.d.ts +3 -0
- package/dist/workflows/ComparisonWorkflow.d.ts.map +1 -0
- package/dist/workflows/ComparisonWorkflow.js +67 -0
- package/dist/workflows/ComparisonWorkflow.js.map +1 -0
- package/dist/workflows/InteractiveSceneWorkflow.d.ts +3 -0
- package/dist/workflows/InteractiveSceneWorkflow.d.ts.map +1 -0
- package/dist/workflows/InteractiveSceneWorkflow.js +43 -0
- package/dist/workflows/InteractiveSceneWorkflow.js.map +1 -0
- package/dist/workflows/MaterialStudioWorkflow.d.ts +3 -0
- package/dist/workflows/MaterialStudioWorkflow.d.ts.map +1 -0
- package/dist/workflows/MaterialStudioWorkflow.js +47 -0
- package/dist/workflows/MaterialStudioWorkflow.js.map +1 -0
- package/dist/workflows/ProductConfiguratorWorkflow.d.ts +3 -0
- package/dist/workflows/ProductConfiguratorWorkflow.d.ts.map +1 -0
- package/dist/workflows/ProductConfiguratorWorkflow.js +25 -0
- package/dist/workflows/ProductConfiguratorWorkflow.js.map +1 -0
- package/dist/workflows/SceneShowcaseWorkflow.d.ts +3 -0
- package/dist/workflows/SceneShowcaseWorkflow.d.ts.map +1 -0
- package/dist/workflows/SceneShowcaseWorkflow.js +44 -0
- package/dist/workflows/SceneShowcaseWorkflow.js.map +1 -0
- package/dist/workflows/WorkflowDiagnostics.d.ts +11 -0
- package/dist/workflows/WorkflowDiagnostics.d.ts.map +1 -0
- package/dist/workflows/WorkflowDiagnostics.js +34 -0
- package/dist/workflows/WorkflowDiagnostics.js.map +1 -0
- package/dist/workflows/WorkflowTypes.d.ts +90 -0
- package/dist/workflows/WorkflowTypes.d.ts.map +1 -0
- package/dist/workflows/WorkflowTypes.js +2 -0
- package/dist/workflows/WorkflowTypes.js.map +1 -0
- package/dist/workflows/index.d.ts +13 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +11 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/production-runtime/ArchitectureWorkflow.d.ts +7 -0
- package/dist/workflows/production-runtime/ArchitectureWorkflow.d.ts.map +1 -0
- package/dist/workflows/production-runtime/ArchitectureWorkflow.js +2 -0
- package/dist/workflows/production-runtime/ArchitectureWorkflow.js.map +1 -0
- package/dist/workflows/production-runtime/AssetInspectionWorkflow.d.ts +7 -0
- package/dist/workflows/production-runtime/AssetInspectionWorkflow.d.ts.map +1 -0
- package/dist/workflows/production-runtime/AssetInspectionWorkflow.js +2 -0
- package/dist/workflows/production-runtime/AssetInspectionWorkflow.js.map +1 -0
- package/dist/workflows/production-runtime/CinematicWorkflow.d.ts +7 -0
- package/dist/workflows/production-runtime/CinematicWorkflow.d.ts.map +1 -0
- package/dist/workflows/production-runtime/CinematicWorkflow.js +2 -0
- package/dist/workflows/production-runtime/CinematicWorkflow.js.map +1 -0
- package/dist/workflows/production-runtime/MaterialAuthoringWorkflow.d.ts +7 -0
- package/dist/workflows/production-runtime/MaterialAuthoringWorkflow.d.ts.map +1 -0
- package/dist/workflows/production-runtime/MaterialAuthoringWorkflow.js +2 -0
- package/dist/workflows/production-runtime/MaterialAuthoringWorkflow.js.map +1 -0
- package/dist/workflows/production-runtime/ProductRenderWorkflow.d.ts +7 -0
- package/dist/workflows/production-runtime/ProductRenderWorkflow.d.ts.map +1 -0
- package/dist/workflows/production-runtime/ProductRenderWorkflow.js +2 -0
- package/dist/workflows/production-runtime/ProductRenderWorkflow.js.map +1 -0
- package/dist/workflows/production-runtime/ProductionExampleRuntime.d.ts +66 -0
- package/dist/workflows/production-runtime/ProductionExampleRuntime.d.ts.map +1 -0
- package/dist/workflows/production-runtime/ProductionExampleRuntime.js +189 -0
- package/dist/workflows/production-runtime/ProductionExampleRuntime.js.map +1 -0
- package/dist/workflows/production-runtime/ProductionWorkflows.d.ts +69 -0
- package/dist/workflows/production-runtime/ProductionWorkflows.d.ts.map +1 -0
- package/dist/workflows/production-runtime/ProductionWorkflows.js +128 -0
- package/dist/workflows/production-runtime/ProductionWorkflows.js.map +1 -0
- package/dist/workflows/production-runtime/WorkflowDiagnostics.d.ts +7 -0
- package/dist/workflows/production-runtime/WorkflowDiagnostics.d.ts.map +1 -0
- package/dist/workflows/production-runtime/WorkflowDiagnostics.js +2 -0
- package/dist/workflows/production-runtime/WorkflowDiagnostics.js.map +1 -0
- package/dist/workflows/production-runtime/index.d.ts +11 -0
- package/dist/workflows/production-runtime/index.d.ts.map +1 -0
- package/dist/workflows/production-runtime/index.js +9 -0
- package/dist/workflows/production-runtime/index.js.map +1 -0
- package/dist/workflows/workflow-foundation/index.d.ts +26 -0
- package/dist/workflows/workflow-foundation/index.d.ts.map +1 -0
- package/dist/workflows/workflow-foundation/index.js +25 -0
- package/dist/workflows/workflow-foundation/index.js.map +1 -0
- package/package.json +490 -0
- package/templates/cinematic-scene/README.md +11 -0
- package/templates/cinematic-scene/index.html +13 -0
- package/templates/cinematic-scene/package.json +21 -0
- package/templates/cinematic-scene/playwright.config.ts +14 -0
- package/templates/cinematic-scene/public/aura-assets/hero-fixture.glb +0 -0
- package/templates/cinematic-scene/public/aura-assets/hero.thumb.svg +1 -0
- package/templates/cinematic-scene/src/aura-assets.ts +17 -0
- package/templates/cinematic-scene/src/main.ts +27 -0
- package/templates/cinematic-scene/tests/route-health.spec.ts +16 -0
- package/templates/cinematic-scene/tests/screenshot.spec.ts +56 -0
- package/templates/cinematic-scene/tsconfig.json +15 -0
- package/templates/mini-game/README.md +10 -0
- package/templates/mini-game/index.html +13 -0
- package/templates/mini-game/package.json +21 -0
- package/templates/mini-game/playwright.config.ts +14 -0
- package/templates/mini-game/public/aura-assets/player-fixture.glb +0 -0
- package/templates/mini-game/public/aura-assets/player.thumb.svg +8 -0
- package/templates/mini-game/src/aura-assets.ts +17 -0
- package/templates/mini-game/src/main.ts +27 -0
- package/templates/mini-game/tests/route-health.spec.ts +16 -0
- package/templates/mini-game/tests/screenshot.spec.ts +63 -0
- package/templates/mini-game/tsconfig.json +15 -0
- package/templates/product-viewer/README.md +16 -0
- package/templates/product-viewer/index.html +16 -0
- package/templates/product-viewer/package.json +21 -0
- package/templates/product-viewer/playwright.config.ts +14 -0
- package/templates/product-viewer/public/aura-assets/product-fixture.glb +0 -0
- package/templates/product-viewer/public/aura-assets/product.thumb.svg +1 -0
- package/templates/product-viewer/src/aura-assets.ts +17 -0
- package/templates/product-viewer/src/main.ts +27 -0
- package/templates/product-viewer/tests/route-health.spec.ts +16 -0
- package/templates/product-viewer/tests/screenshot.spec.ts +60 -0
- package/templates/product-viewer/tsconfig.json +15 -0
|
@@ -0,0 +1,1352 @@
|
|
|
1
|
+
import { Geometry } from "./Geometry.js";
|
|
2
|
+
import {} from "./LightCollector.js";
|
|
3
|
+
import { LightUniforms } from "./LightUniforms.js";
|
|
4
|
+
import { Material } from "./Material.js";
|
|
5
|
+
import { MaterialBinding } from "./MaterialBinding.js";
|
|
6
|
+
import { MaterialInstance } from "./MaterialInstance.js";
|
|
7
|
+
import { applyMorphTargets } from "./MorphTarget.js";
|
|
8
|
+
import { RenderDeviceError } from "./RenderDevice.js";
|
|
9
|
+
import { RenderPipeline } from "./RenderPipeline.js";
|
|
10
|
+
import { BaseRenderPass } from "./RenderPass.js";
|
|
11
|
+
import { ShaderModule } from "./ShaderModule.js";
|
|
12
|
+
import { createDefaultShaderLibrary } from "./ShaderLibrary.js";
|
|
13
|
+
import { createShadowFilterKernel } from "./ShadowMap.js";
|
|
14
|
+
import { TextureBinding } from "./TextureBinding.js";
|
|
15
|
+
import { UnlitMaterial } from "./UnlitMaterial.js";
|
|
16
|
+
import { sortRenderQueueItems } from "./performance/RenderItemSorting.js";
|
|
17
|
+
export const MAX_GPU_MORPH_VERTICES = 64;
|
|
18
|
+
export const MAX_GPU_MORPH_TARGETS = 4;
|
|
19
|
+
export const MAX_GPU_INSTANCES = 64;
|
|
20
|
+
const MAX_FORWARD_SHADOW_PCF_SAMPLES = 32;
|
|
21
|
+
const DEFAULT_FORWARD_SHADOW_FILTER_KERNEL = createShadowFilterKernel({ filter: "pcf", pcfRadius: 1, pcfSamples: 9 });
|
|
22
|
+
const INSTANCE_MATRIX_ATTRIBUTE_NAMES = [
|
|
23
|
+
"a_instanceMatrix0",
|
|
24
|
+
"a_instanceMatrix1",
|
|
25
|
+
"a_instanceMatrix2",
|
|
26
|
+
"a_instanceMatrix3"
|
|
27
|
+
];
|
|
28
|
+
export class ForwardPass extends BaseRenderPass {
|
|
29
|
+
options;
|
|
30
|
+
static shaderCaches = new WeakMap();
|
|
31
|
+
materialBinding = new MaterialBinding();
|
|
32
|
+
shaderLibrary;
|
|
33
|
+
skinningPaletteUploads = new SkinningPaletteUploadManager();
|
|
34
|
+
constructor(options) {
|
|
35
|
+
super("forward", options.inputColorResource ? [options.inputColorResource] : [], ["color"]);
|
|
36
|
+
this.options = options;
|
|
37
|
+
this.shaderLibrary = options.shaderLibrary ?? createDefaultShaderLibrary();
|
|
38
|
+
}
|
|
39
|
+
execute(context) {
|
|
40
|
+
this.skinningPaletteUploads.beginFrame();
|
|
41
|
+
for (const item of sortForwardRenderItems(this.options.items, this.options.cameraPosition)) {
|
|
42
|
+
this.drawItem(context.device, item);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
drawItem(device, item) {
|
|
46
|
+
const material = item.material ?? new UnlitMaterial();
|
|
47
|
+
const baseMaterial = getBaseMaterial(material);
|
|
48
|
+
this.applyLightUniforms(material);
|
|
49
|
+
const shader = this.getShader(baseMaterial, device);
|
|
50
|
+
if (item.instanceTransforms && baseMaterial.renderState.cullMode !== "none" && instancedItemNeedsPerInstanceCullState(item)) {
|
|
51
|
+
for (const expanded of expandInstancedRenderItem(item)) {
|
|
52
|
+
this.drawItem(device, expanded);
|
|
53
|
+
}
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (item.instanceTransforms && !supportsInstanceAttributes(shader) && instanceTransformCount(item) > MAX_GPU_INSTANCES) {
|
|
57
|
+
for (const batch of splitInstanceTransforms(item.instanceTransforms)) {
|
|
58
|
+
this.drawItem(device, { ...item, instanceTransforms: batch });
|
|
59
|
+
}
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (item.instanceTransforms && !supportsInstanceAttributes(shader) && !supportsInstanceUniforms(shader)) {
|
|
63
|
+
for (const expanded of expandInstancedRenderItem(item)) {
|
|
64
|
+
this.drawItem(device, expanded);
|
|
65
|
+
}
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const binding = this.materialBinding.bind(material, shader);
|
|
69
|
+
const uniforms = new Map(binding.uniforms);
|
|
70
|
+
applyEnvironmentLightingUniforms(this.options.environmentLighting, item, shader, uniforms);
|
|
71
|
+
applyEnvironmentFogUniforms(this.options.environmentFog, item, shader, uniforms);
|
|
72
|
+
applyForwardShadowMapUniforms(this.options.shadowMap, item, shader, uniforms);
|
|
73
|
+
applyOutputColorSpaceUniform(this.options.outputColorSpace ?? "srgb", item, shader, uniforms);
|
|
74
|
+
applyCameraUniforms(this.options.cameraPosition, item, shader, uniforms);
|
|
75
|
+
applyAlphaCutoffUniform(item, shader, uniforms);
|
|
76
|
+
applyTransformUniforms(item, shader, uniforms);
|
|
77
|
+
if (item.skinning) {
|
|
78
|
+
this.skinningPaletteUploads.bind(item, item.skinning, baseMaterial, shader, uniforms);
|
|
79
|
+
}
|
|
80
|
+
const instanceBinding = item.instanceTransforms ? applyInstanceBinding(device, item, shader, uniforms) : { count: 1 };
|
|
81
|
+
const gpuMorph = item.morphTargets || item.morphWeights ? applyGpuMorphUniforms(item, shader, uniforms) : false;
|
|
82
|
+
const geometry = gpuMorph ? item.geometry : resolveRenderGeometry(item);
|
|
83
|
+
validateMaterialGeometryContract(item, baseMaterial, geometry);
|
|
84
|
+
try {
|
|
85
|
+
const vertexBuffer = geometry.vertexBuffer.upload(device);
|
|
86
|
+
const indexBuffer = geometry.indexBuffer?.upload(device);
|
|
87
|
+
const drawRange = resolveDrawRange(geometry, item.drawRange);
|
|
88
|
+
const pipeline = new RenderPipeline({
|
|
89
|
+
label: item.label ?? baseMaterial.name,
|
|
90
|
+
shader,
|
|
91
|
+
vertexFormat: geometry.vertexBuffer.format,
|
|
92
|
+
topology: geometry.topology,
|
|
93
|
+
renderState: renderStateForItem(baseMaterial.renderState, item),
|
|
94
|
+
requiredAttributes: baseMaterial.requiredAttributes
|
|
95
|
+
});
|
|
96
|
+
const command = pipeline.createDrawCommand({
|
|
97
|
+
label: item.label,
|
|
98
|
+
vertexBuffer,
|
|
99
|
+
vertexCount: indexBuffer !== undefined ? geometry.vertexBuffer.vertexCount : drawRange.count,
|
|
100
|
+
...(indexBuffer === undefined && drawRange.start > 0 ? { firstVertex: drawRange.start } : {}),
|
|
101
|
+
uniforms,
|
|
102
|
+
...(item.instanceTransforms ? { instanceCount: instanceBinding.count } : {}),
|
|
103
|
+
...(instanceBinding.attributes ? { instanceAttributes: instanceBinding.attributes } : {})
|
|
104
|
+
});
|
|
105
|
+
if (indexBuffer !== undefined) {
|
|
106
|
+
Object.assign(command, {
|
|
107
|
+
indexBuffer,
|
|
108
|
+
indexType: geometry.indexBuffer?.type,
|
|
109
|
+
indexCount: drawRange.count,
|
|
110
|
+
...(drawRange.start > 0 ? { firstIndex: drawRange.start } : {})
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
device.draw(command);
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
for (const buffer of instanceBinding.buffers ?? [])
|
|
117
|
+
buffer.dispose();
|
|
118
|
+
if (geometry !== item.geometry) {
|
|
119
|
+
geometry.dispose();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
applyLightUniforms(material) {
|
|
124
|
+
const baseMaterial = getBaseMaterial(material);
|
|
125
|
+
if (!baseMaterial.requiredUniforms.includes("u_lightCount") || !baseMaterial.requiredUniforms.includes("u_lightData")) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const packed = LightUniforms.pack(this.options.lights ?? []);
|
|
129
|
+
if (material instanceof MaterialInstance) {
|
|
130
|
+
material.setOverride("u_lightCount", packed.lightCount);
|
|
131
|
+
material.setOverride("u_lightData", packed.data);
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
material.setParameter("u_lightCount", packed.lightCount);
|
|
135
|
+
material.setParameter("u_lightData", packed.data);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
getShader(material, device) {
|
|
139
|
+
const cacheKey = shaderCacheKey(material);
|
|
140
|
+
const shaderCache = getForwardPassShaderCache(device, this.shaderLibrary);
|
|
141
|
+
let module = shaderCache.get(cacheKey);
|
|
142
|
+
if (!module) {
|
|
143
|
+
module = material.shaderVariant
|
|
144
|
+
? ShaderModule.fromLibraryVariant(this.shaderLibrary, material.shaderKey, material.shaderVariant)
|
|
145
|
+
: ShaderModule.fromLibrary(this.shaderLibrary, material.shaderKey);
|
|
146
|
+
shaderCache.set(cacheKey, module);
|
|
147
|
+
}
|
|
148
|
+
return module.compile(device);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
class SkinningPaletteUploadManager {
|
|
152
|
+
static validatedGeometryJointCounts = new WeakMap();
|
|
153
|
+
submissions = 0;
|
|
154
|
+
jointsUploaded = 0;
|
|
155
|
+
maxJointCount = 0;
|
|
156
|
+
beginFrame() {
|
|
157
|
+
this.submissions = 0;
|
|
158
|
+
this.jointsUploaded = 0;
|
|
159
|
+
this.maxJointCount = 0;
|
|
160
|
+
}
|
|
161
|
+
bind(item, skinning, material, shader, uniforms) {
|
|
162
|
+
applySkinningUniforms(skinning, material, shader, uniforms);
|
|
163
|
+
const validatedJointCounts = SkinningPaletteUploadManager.validatedGeometryJointCounts.get(item.geometry) ?? new Set();
|
|
164
|
+
if (!validatedJointCounts.has(skinning.jointCount)) {
|
|
165
|
+
validateSkinningGeometryContract(item, skinning);
|
|
166
|
+
validatedJointCounts.add(skinning.jointCount);
|
|
167
|
+
SkinningPaletteUploadManager.validatedGeometryJointCounts.set(item.geometry, validatedJointCounts);
|
|
168
|
+
}
|
|
169
|
+
this.submissions += 1;
|
|
170
|
+
this.jointsUploaded += skinning.jointCount;
|
|
171
|
+
this.maxJointCount = Math.max(this.maxJointCount, skinning.jointCount);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function getForwardPassShaderCache(device, library) {
|
|
175
|
+
let libraryCaches = ForwardPass["shaderCaches"].get(device);
|
|
176
|
+
if (!libraryCaches) {
|
|
177
|
+
libraryCaches = new WeakMap();
|
|
178
|
+
ForwardPass["shaderCaches"].set(device, libraryCaches);
|
|
179
|
+
}
|
|
180
|
+
let shaderCache = libraryCaches.get(library);
|
|
181
|
+
if (!shaderCache) {
|
|
182
|
+
shaderCache = new Map();
|
|
183
|
+
libraryCaches.set(library, shaderCache);
|
|
184
|
+
}
|
|
185
|
+
return shaderCache;
|
|
186
|
+
}
|
|
187
|
+
function applyOutputColorSpaceUniform(outputColorSpace, item, shader, uniforms) {
|
|
188
|
+
if (!shader.reflection.uniforms.has("u_outputColorSpace"))
|
|
189
|
+
return;
|
|
190
|
+
if (outputColorSpace !== "linear" && outputColorSpace !== "srgb") {
|
|
191
|
+
throw new RenderDeviceError("Forward pass outputColorSpace must be linear or srgb", "FORWARD_OUTPUT_COLOR_SPACE_CONTRACT", {
|
|
192
|
+
label: item.label,
|
|
193
|
+
outputColorSpace
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
uniforms.set("u_outputColorSpace", outputColorSpace === "srgb" ? 1 : 0);
|
|
197
|
+
}
|
|
198
|
+
function applyEnvironmentFogUniforms(fog, item, shader, uniforms) {
|
|
199
|
+
const requiredUniforms = [
|
|
200
|
+
"u_environmentFogEnabled",
|
|
201
|
+
"u_environmentFogMode",
|
|
202
|
+
"u_environmentFogColor",
|
|
203
|
+
"u_environmentFogNear",
|
|
204
|
+
"u_environmentFogFar",
|
|
205
|
+
"u_environmentFogDensity",
|
|
206
|
+
"u_environmentFogHeightFalloff",
|
|
207
|
+
"u_environmentFogHeightReference",
|
|
208
|
+
"u_environmentFogMaxOpacity"
|
|
209
|
+
];
|
|
210
|
+
if (!requiredUniforms.every((uniform) => shader.reflection.uniforms.has(uniform))) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
if (!fog) {
|
|
214
|
+
uniforms.set("u_environmentFogEnabled", 0);
|
|
215
|
+
uniforms.set("u_environmentFogMode", 1);
|
|
216
|
+
uniforms.set("u_environmentFogColor", [0, 0, 0]);
|
|
217
|
+
uniforms.set("u_environmentFogNear", 0);
|
|
218
|
+
uniforms.set("u_environmentFogFar", 1);
|
|
219
|
+
uniforms.set("u_environmentFogDensity", 0);
|
|
220
|
+
uniforms.set("u_environmentFogHeightFalloff", 0);
|
|
221
|
+
uniforms.set("u_environmentFogHeightReference", 0);
|
|
222
|
+
uniforms.set("u_environmentFogMaxOpacity", 1);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const color = Array.from(fog.color);
|
|
226
|
+
const heightFalloff = fog.heightFalloff ?? 0;
|
|
227
|
+
const heightReference = fog.heightReference ?? 0;
|
|
228
|
+
const maxOpacity = fog.maxOpacity ?? 1;
|
|
229
|
+
if (color.length !== 3 || !color.every((component) => Number.isFinite(component) && component >= 0 && component <= 1)) {
|
|
230
|
+
throw new RenderDeviceError("Forward environment fog color must contain three finite linear RGB values in [0, 1]", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
231
|
+
label: item.label,
|
|
232
|
+
color
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
if (!Number.isFinite(fog.near) || !Number.isFinite(fog.far) || fog.far <= fog.near) {
|
|
236
|
+
throw new RenderDeviceError("Forward environment fog requires finite far greater than near", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
237
|
+
label: item.label,
|
|
238
|
+
near: fog.near,
|
|
239
|
+
far: fog.far
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
if (!Number.isFinite(fog.density) || fog.density < 0) {
|
|
243
|
+
throw new RenderDeviceError("Forward environment fog density must be finite and non-negative", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
244
|
+
label: item.label,
|
|
245
|
+
density: fog.density
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
if (!Number.isFinite(heightFalloff) || heightFalloff < 0) {
|
|
249
|
+
throw new RenderDeviceError("Forward environment fog heightFalloff must be finite and non-negative", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
250
|
+
label: item.label,
|
|
251
|
+
heightFalloff
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
if (!Number.isFinite(heightReference)) {
|
|
255
|
+
throw new RenderDeviceError("Forward environment fog heightReference must be finite", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
256
|
+
label: item.label,
|
|
257
|
+
heightReference
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
if (!Number.isFinite(maxOpacity) || maxOpacity < 0 || maxOpacity > 1) {
|
|
261
|
+
throw new RenderDeviceError("Forward environment fog maxOpacity must be finite in [0, 1]", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
262
|
+
label: item.label,
|
|
263
|
+
maxOpacity
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
uniforms.set("u_environmentFogEnabled", 1);
|
|
267
|
+
uniforms.set("u_environmentFogMode", fogModeUniform(fog.mode, item.label));
|
|
268
|
+
uniforms.set("u_environmentFogColor", color);
|
|
269
|
+
uniforms.set("u_environmentFogNear", fog.near);
|
|
270
|
+
uniforms.set("u_environmentFogFar", fog.far);
|
|
271
|
+
uniforms.set("u_environmentFogDensity", fog.density);
|
|
272
|
+
uniforms.set("u_environmentFogHeightFalloff", heightFalloff);
|
|
273
|
+
uniforms.set("u_environmentFogHeightReference", heightReference);
|
|
274
|
+
uniforms.set("u_environmentFogMaxOpacity", maxOpacity);
|
|
275
|
+
}
|
|
276
|
+
function fogModeUniform(mode, label) {
|
|
277
|
+
switch (mode) {
|
|
278
|
+
case "linear":
|
|
279
|
+
return 1;
|
|
280
|
+
case "exponential":
|
|
281
|
+
return 2;
|
|
282
|
+
case "exponential-squared":
|
|
283
|
+
return 3;
|
|
284
|
+
default:
|
|
285
|
+
throw new RenderDeviceError("Forward environment fog mode must be linear, exponential, or exponential-squared", "FORWARD_ENVIRONMENT_FOG_CONTRACT", {
|
|
286
|
+
label,
|
|
287
|
+
mode
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
function validateMaterialGeometryContract(item, material, geometry) {
|
|
292
|
+
const missing = material.requiredAttributes.filter((attribute) => !geometryHasAttribute(geometry, attribute));
|
|
293
|
+
if (missing.length === 0) {
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
throw new RenderDeviceError("Render item geometry is missing attributes required by its material", "RENDER_ITEM_GEOMETRY_MATERIAL_CONTRACT", {
|
|
297
|
+
label: item.label,
|
|
298
|
+
material: material.name,
|
|
299
|
+
topology: geometry.topology,
|
|
300
|
+
vertexFormat: geometry.vertexBuffer.format.attributes.map((attribute) => attribute.shaderName),
|
|
301
|
+
missingAttributes: missing
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function resolveDrawRange(geometry, range) {
|
|
305
|
+
const available = geometry.indexBuffer?.count ?? geometry.vertexBuffer.vertexCount;
|
|
306
|
+
if (!range) {
|
|
307
|
+
return { start: 0, count: available };
|
|
308
|
+
}
|
|
309
|
+
if (!Number.isInteger(range.start) || range.start < 0 || !Number.isInteger(range.count) || range.count <= 0) {
|
|
310
|
+
throw new RenderDeviceError("Render item drawRange must contain non-negative integer start and positive integer count", "RENDER_ITEM_DRAW_RANGE_INVALID", {
|
|
311
|
+
start: range.start,
|
|
312
|
+
count: range.count,
|
|
313
|
+
available
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
if (range.start + range.count > available) {
|
|
317
|
+
throw new RenderDeviceError("Render item drawRange exceeds geometry draw count", "RENDER_ITEM_DRAW_RANGE_INVALID", {
|
|
318
|
+
start: range.start,
|
|
319
|
+
count: range.count,
|
|
320
|
+
available
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
return range;
|
|
324
|
+
}
|
|
325
|
+
function geometryHasAttribute(geometry, attribute) {
|
|
326
|
+
return geometry.vertexBuffer.format.attributes.some((candidate) => candidate.semantic === attribute || candidate.shaderName === attribute);
|
|
327
|
+
}
|
|
328
|
+
function shaderCacheKey(material) {
|
|
329
|
+
return material.shaderVariant ? `${material.shaderKey}:${material.shaderVariant}` : material.shaderKey;
|
|
330
|
+
}
|
|
331
|
+
function supportsInstanceUniforms(shader) {
|
|
332
|
+
return shader.reflection.uniforms.has("u_instanceMatrices") && shader.reflection.uniforms.has("u_instanceCount");
|
|
333
|
+
}
|
|
334
|
+
function supportsInstanceAttributes(shader) {
|
|
335
|
+
return shader.reflection.uniforms.has("u_instanceAttributeMode") &&
|
|
336
|
+
shader.reflection.uniforms.has("u_instanceCount") &&
|
|
337
|
+
INSTANCE_MATRIX_ATTRIBUTE_NAMES.every((name) => shader.reflection.attributes.has(name));
|
|
338
|
+
}
|
|
339
|
+
function renderStateForItem(renderState, item) {
|
|
340
|
+
if (renderState.cullMode === "none")
|
|
341
|
+
return renderState;
|
|
342
|
+
const modelMatrix = toMat4Values(item.modelMatrix ?? identityMatrix(), "modelMatrix", item.label);
|
|
343
|
+
if (!hasNegativeHandedness(modelMatrix))
|
|
344
|
+
return renderState;
|
|
345
|
+
return {
|
|
346
|
+
...renderState,
|
|
347
|
+
cullMode: renderState.cullMode === "back" ? "front" : "back"
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
function instancedItemNeedsPerInstanceCullState(item) {
|
|
351
|
+
const source = validateInstanceTransformSource(item);
|
|
352
|
+
const baseModel = toMat4Values(item.modelMatrix ?? identityMatrix(), "modelMatrix", item.label);
|
|
353
|
+
const handedness = new Set();
|
|
354
|
+
for (let offset = 0; offset < source.length; offset += 16) {
|
|
355
|
+
const instanceMatrix = mat4FromArrayLike(source, offset);
|
|
356
|
+
handedness.add(hasNegativeHandedness(multiplyMat4(baseModel, instanceMatrix)));
|
|
357
|
+
}
|
|
358
|
+
return handedness.has(true);
|
|
359
|
+
}
|
|
360
|
+
function expandInstancedRenderItem(item) {
|
|
361
|
+
const source = validateInstanceTransformSource(item);
|
|
362
|
+
const baseModel = toMat4Values(item.modelMatrix ?? identityMatrix(), "modelMatrix", item.label);
|
|
363
|
+
const baseModelViewProjection = toMat4Values(item.modelViewProjectionMatrix ?? baseModel, "modelViewProjectionMatrix", item.label);
|
|
364
|
+
const { instanceTransforms: _instanceTransforms, normalMatrix: _normalMatrix, ...baseItem } = item;
|
|
365
|
+
const expanded = [];
|
|
366
|
+
for (let offset = 0; offset < source.length; offset += 16) {
|
|
367
|
+
const index = offset / 16;
|
|
368
|
+
const instanceMatrix = mat4FromArrayLike(source, offset);
|
|
369
|
+
const modelMatrix = multiplyMat4(baseModel, instanceMatrix);
|
|
370
|
+
expanded.push({
|
|
371
|
+
...baseItem,
|
|
372
|
+
label: item.label ? `${item.label}#instance-${index}` : undefined,
|
|
373
|
+
modelMatrix: new Float32Array(modelMatrix),
|
|
374
|
+
modelViewProjectionMatrix: new Float32Array(multiplyMat4(baseModelViewProjection, instanceMatrix)),
|
|
375
|
+
normalMatrix: new Float32Array(normalMatrixFromModel(modelMatrix))
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
return expanded;
|
|
379
|
+
}
|
|
380
|
+
function multiplyMat4(left, right) {
|
|
381
|
+
const out = new Array(16).fill(0);
|
|
382
|
+
for (let column = 0; column < 4; column += 1) {
|
|
383
|
+
for (let row = 0; row < 4; row += 1) {
|
|
384
|
+
out[column * 4 + row] =
|
|
385
|
+
left[0 * 4 + row] * right[column * 4 + 0] +
|
|
386
|
+
left[1 * 4 + row] * right[column * 4 + 1] +
|
|
387
|
+
left[2 * 4 + row] * right[column * 4 + 2] +
|
|
388
|
+
left[3 * 4 + row] * right[column * 4 + 3];
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
return out;
|
|
392
|
+
}
|
|
393
|
+
function normalMatrixFromModel(modelMatrix) {
|
|
394
|
+
const matrix = transposeMat4(invertMat4(modelMatrix));
|
|
395
|
+
return [
|
|
396
|
+
matrix[0], matrix[1], matrix[2], 0,
|
|
397
|
+
matrix[4], matrix[5], matrix[6], 0,
|
|
398
|
+
matrix[8], matrix[9], matrix[10], 0,
|
|
399
|
+
0, 0, 0, 1
|
|
400
|
+
];
|
|
401
|
+
}
|
|
402
|
+
function hasNegativeHandedness(matrix) {
|
|
403
|
+
const determinant = matrix[0] * (matrix[5] * matrix[10] - matrix[9] * matrix[6]) -
|
|
404
|
+
matrix[4] * (matrix[1] * matrix[10] - matrix[9] * matrix[2]) +
|
|
405
|
+
matrix[8] * (matrix[1] * matrix[6] - matrix[5] * matrix[2]);
|
|
406
|
+
return Number.isFinite(determinant) && determinant < -1e-8;
|
|
407
|
+
}
|
|
408
|
+
function transposeMat4(matrix) {
|
|
409
|
+
return [
|
|
410
|
+
matrix[0], matrix[4], matrix[8], matrix[12],
|
|
411
|
+
matrix[1], matrix[5], matrix[9], matrix[13],
|
|
412
|
+
matrix[2], matrix[6], matrix[10], matrix[14],
|
|
413
|
+
matrix[3], matrix[7], matrix[11], matrix[15]
|
|
414
|
+
];
|
|
415
|
+
}
|
|
416
|
+
function invertMat4(matrix) {
|
|
417
|
+
const [a00, a01, a02, a03, a10, a11, a12, a13, a20, a21, a22, a23, a30, a31, a32, a33] = matrix;
|
|
418
|
+
const b00 = a00 * a11 - a01 * a10;
|
|
419
|
+
const b01 = a00 * a12 - a02 * a10;
|
|
420
|
+
const b02 = a00 * a13 - a03 * a10;
|
|
421
|
+
const b03 = a01 * a12 - a02 * a11;
|
|
422
|
+
const b04 = a01 * a13 - a03 * a11;
|
|
423
|
+
const b05 = a02 * a13 - a03 * a12;
|
|
424
|
+
const b06 = a20 * a31 - a21 * a30;
|
|
425
|
+
const b07 = a20 * a32 - a22 * a30;
|
|
426
|
+
const b08 = a20 * a33 - a23 * a30;
|
|
427
|
+
const b09 = a21 * a32 - a22 * a31;
|
|
428
|
+
const b10 = a21 * a33 - a23 * a31;
|
|
429
|
+
const b11 = a22 * a33 - a23 * a32;
|
|
430
|
+
const det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;
|
|
431
|
+
if (Math.abs(det) <= 1e-12 || !Number.isFinite(det)) {
|
|
432
|
+
throw new RenderDeviceError("Instance transform fallback requires invertible model matrices", "INSTANCING_CONTRACT");
|
|
433
|
+
}
|
|
434
|
+
const invDet = 1 / det;
|
|
435
|
+
return [
|
|
436
|
+
(a11 * b11 - a12 * b10 + a13 * b09) * invDet,
|
|
437
|
+
(a02 * b10 - a01 * b11 - a03 * b09) * invDet,
|
|
438
|
+
(a31 * b05 - a32 * b04 + a33 * b03) * invDet,
|
|
439
|
+
(a22 * b04 - a21 * b05 - a23 * b03) * invDet,
|
|
440
|
+
(a12 * b08 - a10 * b11 - a13 * b07) * invDet,
|
|
441
|
+
(a00 * b11 - a02 * b08 + a03 * b07) * invDet,
|
|
442
|
+
(a32 * b02 - a30 * b05 - a33 * b01) * invDet,
|
|
443
|
+
(a20 * b05 - a22 * b02 + a23 * b01) * invDet,
|
|
444
|
+
(a10 * b10 - a11 * b08 + a13 * b06) * invDet,
|
|
445
|
+
(a01 * b08 - a00 * b10 - a03 * b06) * invDet,
|
|
446
|
+
(a30 * b04 - a31 * b02 + a33 * b00) * invDet,
|
|
447
|
+
(a21 * b02 - a20 * b04 - a23 * b00) * invDet,
|
|
448
|
+
(a11 * b07 - a10 * b09 - a12 * b06) * invDet,
|
|
449
|
+
(a00 * b09 - a01 * b07 + a02 * b06) * invDet,
|
|
450
|
+
(a31 * b01 - a30 * b03 - a32 * b00) * invDet,
|
|
451
|
+
(a20 * b03 - a21 * b01 + a22 * b00) * invDet
|
|
452
|
+
];
|
|
453
|
+
}
|
|
454
|
+
function applyForwardShadowMapUniforms(shadowMap, item, shader, uniforms) {
|
|
455
|
+
const requiredUniforms = [
|
|
456
|
+
"u_shadowMapTexture",
|
|
457
|
+
"u_shadowMapEnabled",
|
|
458
|
+
"u_shadowMapMatrix",
|
|
459
|
+
"u_shadowMapStrength",
|
|
460
|
+
"u_shadowMapBias",
|
|
461
|
+
"u_shadowMapSlopeBias",
|
|
462
|
+
"u_shadowMapTexelSize",
|
|
463
|
+
"u_shadowPcfSampleCount",
|
|
464
|
+
"u_shadowPcfSamples"
|
|
465
|
+
];
|
|
466
|
+
if (!requiredUniforms.every((uniform) => shader.reflection.uniforms.has(uniform))) {
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
applyForwardPointShadowMapUniforms(shadowMap?.pointLight, item, shader, uniforms);
|
|
470
|
+
if (!shadowMap) {
|
|
471
|
+
uniforms.set("u_shadowMapTexture", new TextureBinding({ name: "u_shadowMapTexture", required: false }));
|
|
472
|
+
uniforms.set("u_shadowMapEnabled", 0);
|
|
473
|
+
uniforms.set("u_shadowMapMatrix", new Float32Array(identityMatrix()));
|
|
474
|
+
uniforms.set("u_shadowMapStrength", 0);
|
|
475
|
+
uniforms.set("u_shadowMapBias", 0);
|
|
476
|
+
uniforms.set("u_shadowMapSlopeBias", 0);
|
|
477
|
+
uniforms.set("u_shadowMapTexelSize", [1, 1]);
|
|
478
|
+
uniforms.set("u_shadowPcfSampleCount", 1);
|
|
479
|
+
uniforms.set("u_shadowPcfSamples", new Float32Array(MAX_FORWARD_SHADOW_PCF_SAMPLES * 4));
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
const validation = shadowMap.texture.validate();
|
|
483
|
+
if (!validation.ok) {
|
|
484
|
+
throw new RenderDeviceError("Forward shadow-map texture binding validation failed", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
485
|
+
label: item.label,
|
|
486
|
+
diagnostics: validation.diagnostics
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
const strength = shadowMap.strength ?? 0.65;
|
|
490
|
+
const bias = shadowMap.bias ?? 0.001;
|
|
491
|
+
const slopeBias = shadowMap.slopeBias ?? 1;
|
|
492
|
+
const texelSize = shadowMap.texelSize ?? [
|
|
493
|
+
1 / Math.max(1, shadowMap.texture.texture?.width ?? 1),
|
|
494
|
+
1 / Math.max(1, shadowMap.texture.texture?.height ?? 1)
|
|
495
|
+
];
|
|
496
|
+
if (!Number.isFinite(strength) || strength < 0 || strength > 1) {
|
|
497
|
+
throw new RenderDeviceError("Forward shadow-map strength must be finite in [0, 1]", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
498
|
+
label: item.label,
|
|
499
|
+
strength
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
if (!Number.isFinite(bias) || bias < 0) {
|
|
503
|
+
throw new RenderDeviceError("Forward shadow-map bias must be finite and non-negative", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
504
|
+
label: item.label,
|
|
505
|
+
bias
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
if (!Number.isFinite(slopeBias) || slopeBias < 0) {
|
|
509
|
+
throw new RenderDeviceError("Forward shadow-map slopeBias must be finite and non-negative", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
510
|
+
label: item.label,
|
|
511
|
+
slopeBias
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
if (texelSize.length !== 2 || !texelSize.every((value) => Number.isFinite(value) && value > 0)) {
|
|
515
|
+
throw new RenderDeviceError("Forward shadow-map texelSize must contain two finite positive values", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
516
|
+
label: item.label,
|
|
517
|
+
texelSize: Array.from(texelSize)
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
const filterKernel = shadowMap.filterKernel ?? DEFAULT_FORWARD_SHADOW_FILTER_KERNEL;
|
|
521
|
+
const pcfSamples = packForwardShadowPcfSamples(filterKernel, item.label);
|
|
522
|
+
uniforms.set("u_shadowMapTexture", shadowMap.texture);
|
|
523
|
+
uniforms.set("u_shadowMapEnabled", 1);
|
|
524
|
+
uniforms.set("u_shadowMapMatrix", toMat4Uniform(shadowMap.lightMatrix, "shadowMap.lightMatrix", item.label));
|
|
525
|
+
uniforms.set("u_shadowMapStrength", strength);
|
|
526
|
+
uniforms.set("u_shadowMapBias", bias);
|
|
527
|
+
uniforms.set("u_shadowMapSlopeBias", slopeBias);
|
|
528
|
+
uniforms.set("u_shadowMapTexelSize", texelSize);
|
|
529
|
+
uniforms.set("u_shadowPcfSampleCount", filterKernel.samples.length);
|
|
530
|
+
uniforms.set("u_shadowPcfSamples", pcfSamples);
|
|
531
|
+
}
|
|
532
|
+
function applyForwardPointShadowMapUniforms(pointShadowMap, item, shader, uniforms) {
|
|
533
|
+
const requiredUniforms = [
|
|
534
|
+
"u_pointShadowMapTexture",
|
|
535
|
+
"u_pointShadowMapEnabled",
|
|
536
|
+
"u_pointShadowLightPosition",
|
|
537
|
+
"u_pointShadowRange",
|
|
538
|
+
"u_pointShadowFaceMatrices",
|
|
539
|
+
"u_pointShadowFaceRects",
|
|
540
|
+
"u_pointShadowStrength",
|
|
541
|
+
"u_pointShadowBias",
|
|
542
|
+
"u_pointShadowSlopeBias",
|
|
543
|
+
"u_pointShadowTexelSize",
|
|
544
|
+
"u_pointShadowPcfSampleCount",
|
|
545
|
+
"u_pointShadowPcfSamples"
|
|
546
|
+
];
|
|
547
|
+
if (!requiredUniforms.every((uniform) => shader.reflection.uniforms.has(uniform))) {
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
if (!pointShadowMap) {
|
|
551
|
+
uniforms.set("u_pointShadowMapTexture", new TextureBinding({ name: "u_pointShadowMapTexture", required: false }));
|
|
552
|
+
uniforms.set("u_pointShadowMapEnabled", 0);
|
|
553
|
+
uniforms.set("u_pointShadowLightPosition", [0, 0, 0]);
|
|
554
|
+
uniforms.set("u_pointShadowRange", 1);
|
|
555
|
+
uniforms.set("u_pointShadowFaceMatrices", new Float32Array(6 * 16));
|
|
556
|
+
uniforms.set("u_pointShadowFaceRects", new Float32Array(6 * 4));
|
|
557
|
+
uniforms.set("u_pointShadowStrength", 0);
|
|
558
|
+
uniforms.set("u_pointShadowBias", 0);
|
|
559
|
+
uniforms.set("u_pointShadowSlopeBias", 0);
|
|
560
|
+
uniforms.set("u_pointShadowTexelSize", [1, 1]);
|
|
561
|
+
uniforms.set("u_pointShadowPcfSampleCount", 1);
|
|
562
|
+
uniforms.set("u_pointShadowPcfSamples", new Float32Array(MAX_FORWARD_SHADOW_PCF_SAMPLES * 4));
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
const validation = pointShadowMap.texture.validate();
|
|
566
|
+
if (!validation.ok) {
|
|
567
|
+
throw new RenderDeviceError("Forward point-shadow atlas texture binding validation failed", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
568
|
+
label: item.label,
|
|
569
|
+
diagnostics: validation.diagnostics
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
if (pointShadowMap.lightPosition.length !== 3 || !isFiniteArrayLike(pointShadowMap.lightPosition)) {
|
|
573
|
+
throw new RenderDeviceError("Forward point-shadow lightPosition must contain three finite values", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
574
|
+
label: item.label,
|
|
575
|
+
lightPosition: pointShadowMap.lightPosition
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
if (!Number.isFinite(pointShadowMap.range) || pointShadowMap.range <= 0) {
|
|
579
|
+
throw new RenderDeviceError("Forward point-shadow range must be finite and positive", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
580
|
+
label: item.label,
|
|
581
|
+
range: pointShadowMap.range
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
const faceMatrices = toFloat32Array(pointShadowMap.faceMatrices, 6 * 16, "pointShadowMap.faceMatrices", item.label);
|
|
585
|
+
const faceRects = toFloat32Array(pointShadowMap.faceRects, 6 * 4, "pointShadowMap.faceRects", item.label);
|
|
586
|
+
validatePointShadowFaceRects(faceRects, item.label);
|
|
587
|
+
const strength = pointShadowMap.strength ?? 0.65;
|
|
588
|
+
const bias = pointShadowMap.bias ?? 0.001;
|
|
589
|
+
const slopeBias = pointShadowMap.slopeBias ?? 1;
|
|
590
|
+
const texelSize = pointShadowMap.texelSize ?? [
|
|
591
|
+
1 / Math.max(1, pointShadowMap.texture.texture?.width ?? 1),
|
|
592
|
+
1 / Math.max(1, pointShadowMap.texture.texture?.height ?? 1)
|
|
593
|
+
];
|
|
594
|
+
if (!Number.isFinite(strength) || strength < 0 || strength > 1) {
|
|
595
|
+
throw new RenderDeviceError("Forward point-shadow strength must be finite in [0, 1]", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
596
|
+
label: item.label,
|
|
597
|
+
strength
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
if (!Number.isFinite(bias) || bias < 0) {
|
|
601
|
+
throw new RenderDeviceError("Forward point-shadow bias must be finite and non-negative", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
602
|
+
label: item.label,
|
|
603
|
+
bias
|
|
604
|
+
});
|
|
605
|
+
}
|
|
606
|
+
if (!Number.isFinite(slopeBias) || slopeBias < 0) {
|
|
607
|
+
throw new RenderDeviceError("Forward point-shadow slopeBias must be finite and non-negative", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
608
|
+
label: item.label,
|
|
609
|
+
slopeBias
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
if (texelSize.length !== 2 || !texelSize.every((value) => Number.isFinite(value) && value > 0)) {
|
|
613
|
+
throw new RenderDeviceError("Forward point-shadow texelSize must contain two finite positive values", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
614
|
+
label: item.label,
|
|
615
|
+
texelSize: Array.from(texelSize)
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
const filterKernel = pointShadowMap.filterKernel ?? DEFAULT_FORWARD_SHADOW_FILTER_KERNEL;
|
|
619
|
+
uniforms.set("u_pointShadowMapTexture", pointShadowMap.texture);
|
|
620
|
+
uniforms.set("u_pointShadowMapEnabled", 1);
|
|
621
|
+
uniforms.set("u_pointShadowLightPosition", pointShadowMap.lightPosition);
|
|
622
|
+
uniforms.set("u_pointShadowRange", pointShadowMap.range);
|
|
623
|
+
uniforms.set("u_pointShadowFaceMatrices", faceMatrices);
|
|
624
|
+
uniforms.set("u_pointShadowFaceRects", faceRects);
|
|
625
|
+
uniforms.set("u_pointShadowStrength", strength);
|
|
626
|
+
uniforms.set("u_pointShadowBias", bias);
|
|
627
|
+
uniforms.set("u_pointShadowSlopeBias", slopeBias);
|
|
628
|
+
uniforms.set("u_pointShadowTexelSize", texelSize);
|
|
629
|
+
uniforms.set("u_pointShadowPcfSampleCount", filterKernel.samples.length);
|
|
630
|
+
uniforms.set("u_pointShadowPcfSamples", packForwardShadowPcfSamples(filterKernel, item.label));
|
|
631
|
+
}
|
|
632
|
+
function toFloat32Array(values, expectedLength, name, label) {
|
|
633
|
+
const source = values instanceof Float32Array ? values : new Float32Array(values);
|
|
634
|
+
if (source.length !== expectedLength || !isFiniteArrayLike(source)) {
|
|
635
|
+
throw new RenderDeviceError(`${name} must contain ${expectedLength} finite values`, "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
636
|
+
label,
|
|
637
|
+
length: source.length,
|
|
638
|
+
expectedLength
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
return source;
|
|
642
|
+
}
|
|
643
|
+
function validatePointShadowFaceRects(faceRects, label) {
|
|
644
|
+
for (let offset = 0; offset < faceRects.length; offset += 4) {
|
|
645
|
+
const rect = [faceRects[offset], faceRects[offset + 1], faceRects[offset + 2], faceRects[offset + 3]];
|
|
646
|
+
if (!rect.every((value) => Number.isFinite(value) && value >= 0 && value <= 1) || rect[2] <= 0 || rect[3] <= 0) {
|
|
647
|
+
throw new RenderDeviceError("Forward point-shadow face rects must be normalized atlas rectangles", "FORWARD_POINT_SHADOW_MAP_CONTRACT", {
|
|
648
|
+
label,
|
|
649
|
+
face: offset / 4,
|
|
650
|
+
rect
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
function packForwardShadowPcfSamples(filterKernel, label) {
|
|
656
|
+
if (filterKernel.samples.length < 1 || filterKernel.samples.length > MAX_FORWARD_SHADOW_PCF_SAMPLES) {
|
|
657
|
+
throw new RenderDeviceError("Forward shadow-map PCF kernel must contain 1 to 32 samples", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
658
|
+
label,
|
|
659
|
+
samples: filterKernel.samples.length
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
const packed = new Float32Array(MAX_FORWARD_SHADOW_PCF_SAMPLES * 4);
|
|
663
|
+
let weightSum = 0;
|
|
664
|
+
for (const [index, sample] of filterKernel.samples.entries()) {
|
|
665
|
+
if (![sample.x, sample.y, sample.weight].every(Number.isFinite) || sample.weight < 0) {
|
|
666
|
+
throw new RenderDeviceError("Forward shadow-map PCF samples must contain finite offsets and non-negative weights", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
667
|
+
label,
|
|
668
|
+
sample
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
const offset = index * 4;
|
|
672
|
+
packed[offset] = sample.x;
|
|
673
|
+
packed[offset + 1] = sample.y;
|
|
674
|
+
packed[offset + 2] = sample.weight;
|
|
675
|
+
weightSum += sample.weight;
|
|
676
|
+
}
|
|
677
|
+
if (weightSum <= 0) {
|
|
678
|
+
throw new RenderDeviceError("Forward shadow-map PCF sample weights must sum to a positive value", "FORWARD_SHADOW_MAP_CONTRACT", {
|
|
679
|
+
label,
|
|
680
|
+
weightSum
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
return packed;
|
|
684
|
+
}
|
|
685
|
+
function applyEnvironmentLightingUniforms(environment, item, shader, uniforms) {
|
|
686
|
+
if (!environment) {
|
|
687
|
+
clearProceduralEnvironmentMapUniforms(shader, uniforms);
|
|
688
|
+
clearSampledEnvironmentMapUniforms(shader, uniforms);
|
|
689
|
+
clearEnvironmentBrdfLutUniforms(shader, uniforms);
|
|
690
|
+
return;
|
|
691
|
+
}
|
|
692
|
+
if (!shader.reflection.uniforms.has("u_environmentColor") || !shader.reflection.uniforms.has("u_environmentIntensity")) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
const color = environment.color;
|
|
696
|
+
if (color.length !== 3 || !isFiniteColor(color)) {
|
|
697
|
+
throw new RenderDeviceError("Environment lighting color must contain three finite values in [0, 1]", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
698
|
+
label: item.label,
|
|
699
|
+
color
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
if (!Number.isFinite(environment.intensity) || environment.intensity < 0) {
|
|
703
|
+
throw new RenderDeviceError("Environment lighting intensity must be finite and non-negative", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
704
|
+
label: item.label,
|
|
705
|
+
intensity: environment.intensity
|
|
706
|
+
});
|
|
707
|
+
}
|
|
708
|
+
uniforms.set("u_environmentColor", color);
|
|
709
|
+
uniforms.set("u_environmentIntensity", environment.intensity);
|
|
710
|
+
applyProceduralEnvironmentMapUniforms(environment.proceduralMap, item, shader, uniforms);
|
|
711
|
+
applySampledEnvironmentMapUniforms(environment, item, shader, uniforms);
|
|
712
|
+
}
|
|
713
|
+
function applyProceduralEnvironmentMapUniforms(proceduralMap, item, shader, uniforms) {
|
|
714
|
+
if (!proceduralMap) {
|
|
715
|
+
clearProceduralEnvironmentMapUniforms(shader, uniforms);
|
|
716
|
+
return;
|
|
717
|
+
}
|
|
718
|
+
const requiredUniforms = [
|
|
719
|
+
"u_environmentSkyColor",
|
|
720
|
+
"u_environmentHorizonColor",
|
|
721
|
+
"u_environmentGroundColor",
|
|
722
|
+
"u_environmentSpecularColor",
|
|
723
|
+
"u_environmentMapIntensity",
|
|
724
|
+
"u_environmentSpecularIntensity"
|
|
725
|
+
];
|
|
726
|
+
if (!requiredUniforms.every((uniform) => shader.reflection.uniforms.has(uniform))) {
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
const skyColor = toEnvironmentColor(proceduralMap.skyColor, "proceduralMap.skyColor", item.label);
|
|
730
|
+
const horizonColor = toEnvironmentColor(proceduralMap.horizonColor, "proceduralMap.horizonColor", item.label);
|
|
731
|
+
const groundColor = toEnvironmentColor(proceduralMap.groundColor, "proceduralMap.groundColor", item.label);
|
|
732
|
+
const specularColor = toEnvironmentColor(proceduralMap.specularColor, "proceduralMap.specularColor", item.label);
|
|
733
|
+
if (!Number.isFinite(proceduralMap.intensity) || proceduralMap.intensity < 0) {
|
|
734
|
+
throw new RenderDeviceError("Procedural environment map intensity must be finite and non-negative", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
735
|
+
label: item.label,
|
|
736
|
+
intensity: proceduralMap.intensity
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
if (!Number.isFinite(proceduralMap.specularIntensity) || proceduralMap.specularIntensity < 0) {
|
|
740
|
+
throw new RenderDeviceError("Procedural environment map specularIntensity must be finite and non-negative", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
741
|
+
label: item.label,
|
|
742
|
+
specularIntensity: proceduralMap.specularIntensity
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
uniforms.set("u_environmentSkyColor", skyColor);
|
|
746
|
+
uniforms.set("u_environmentHorizonColor", horizonColor);
|
|
747
|
+
uniforms.set("u_environmentGroundColor", groundColor);
|
|
748
|
+
uniforms.set("u_environmentSpecularColor", specularColor);
|
|
749
|
+
uniforms.set("u_environmentMapIntensity", proceduralMap.intensity);
|
|
750
|
+
uniforms.set("u_environmentSpecularIntensity", proceduralMap.specularIntensity);
|
|
751
|
+
}
|
|
752
|
+
function clearProceduralEnvironmentMapUniforms(shader, uniforms) {
|
|
753
|
+
if (shader.reflection.uniforms.has("u_environmentMapIntensity")) {
|
|
754
|
+
uniforms.set("u_environmentMapIntensity", 0);
|
|
755
|
+
}
|
|
756
|
+
if (shader.reflection.uniforms.has("u_environmentSpecularIntensity")) {
|
|
757
|
+
uniforms.set("u_environmentSpecularIntensity", 0);
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
function applySampledEnvironmentMapUniforms(environment, item, shader, uniforms) {
|
|
761
|
+
const environmentMapTexture = environment.environmentMapTexture;
|
|
762
|
+
const environmentCubeMapTexture = environment.environmentCubeMapTexture;
|
|
763
|
+
if (!environmentMapTexture && !environmentCubeMapTexture) {
|
|
764
|
+
clearSampledEnvironmentMapUniforms(shader, uniforms);
|
|
765
|
+
clearEnvironmentBrdfLutUniforms(shader, uniforms);
|
|
766
|
+
return;
|
|
767
|
+
}
|
|
768
|
+
const requiredUniforms = [
|
|
769
|
+
"u_environmentMapTexture",
|
|
770
|
+
"u_environmentMapTextureEnabled",
|
|
771
|
+
"u_environmentMapTextureIntensity",
|
|
772
|
+
"u_environmentMapTextureSpecularIntensity",
|
|
773
|
+
"u_environmentMapTextureRotation",
|
|
774
|
+
"u_environmentMapTextureMipCount"
|
|
775
|
+
];
|
|
776
|
+
if (!requiredUniforms.every((uniform) => shader.reflection.uniforms.has(uniform))) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
if (environmentMapTexture) {
|
|
780
|
+
validateEnvironmentTextureBinding("Environment map texture", environmentMapTexture, "2d", item);
|
|
781
|
+
}
|
|
782
|
+
if (environmentCubeMapTexture) {
|
|
783
|
+
validateEnvironmentTextureBinding("Environment cube map texture", environmentCubeMapTexture, "cube", item);
|
|
784
|
+
}
|
|
785
|
+
const intensity = environment.environmentMapIntensity ?? 1;
|
|
786
|
+
const specularIntensity = environment.environmentMapSpecularIntensity ?? 0.5;
|
|
787
|
+
const rotation = environment.environmentMapRotation ?? 0;
|
|
788
|
+
const mipCount = environment.environmentMapMipCount ?? 1;
|
|
789
|
+
const encoding = environment.environmentMapEncoding ?? "srgb";
|
|
790
|
+
if (!Number.isFinite(intensity) || intensity < 0) {
|
|
791
|
+
throw new RenderDeviceError("Sampled environment map intensity must be finite and non-negative", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
792
|
+
label: item.label,
|
|
793
|
+
intensity
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
if (!Number.isFinite(specularIntensity) || specularIntensity < 0) {
|
|
797
|
+
throw new RenderDeviceError("Sampled environment map specular intensity must be finite and non-negative", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
798
|
+
label: item.label,
|
|
799
|
+
specularIntensity
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
if (!Number.isFinite(rotation)) {
|
|
803
|
+
throw new RenderDeviceError("Sampled environment map rotation must be finite", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
804
|
+
label: item.label,
|
|
805
|
+
rotation
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
if (!Number.isInteger(mipCount) || mipCount < 1) {
|
|
809
|
+
throw new RenderDeviceError("Sampled environment map mip count must be a positive integer", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
810
|
+
label: item.label,
|
|
811
|
+
mipCount
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
if (encoding !== "srgb" && encoding !== "rgbe" && encoding !== "linear") {
|
|
815
|
+
throw new RenderDeviceError("Sampled environment map encoding must be srgb, rgbe, or linear", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
816
|
+
label: item.label,
|
|
817
|
+
encoding
|
|
818
|
+
});
|
|
819
|
+
}
|
|
820
|
+
uniforms.set("u_environmentMapTexture", environmentMapTexture ?? new TextureBinding({ name: "u_environmentMapTexture", required: false, expectedDimension: "2d" }));
|
|
821
|
+
if (shader.reflection.uniforms.has("u_environmentCubeMapTexture")) {
|
|
822
|
+
uniforms.set("u_environmentCubeMapTexture", environmentCubeMapTexture ?? new TextureBinding({ name: "u_environmentCubeMapTexture", required: false, expectedDimension: "cube" }));
|
|
823
|
+
}
|
|
824
|
+
uniforms.set("u_environmentMapTextureEnabled", 1);
|
|
825
|
+
if (shader.reflection.uniforms.has("u_environmentCubeMapTextureEnabled")) {
|
|
826
|
+
uniforms.set("u_environmentCubeMapTextureEnabled", environmentCubeMapTexture ? 1 : 0);
|
|
827
|
+
}
|
|
828
|
+
uniforms.set("u_environmentMapTextureIntensity", intensity);
|
|
829
|
+
uniforms.set("u_environmentMapTextureSpecularIntensity", specularIntensity);
|
|
830
|
+
uniforms.set("u_environmentMapTextureRotation", rotation);
|
|
831
|
+
uniforms.set("u_environmentMapTextureMipCount", mipCount);
|
|
832
|
+
if (shader.reflection.uniforms.has("u_environmentMapTextureEncoding")) {
|
|
833
|
+
uniforms.set("u_environmentMapTextureEncoding", encoding === "rgbe" ? 1 : encoding === "linear" ? 2 : 0);
|
|
834
|
+
}
|
|
835
|
+
applyEnvironmentBrdfLutUniforms(environment, item, shader, uniforms);
|
|
836
|
+
}
|
|
837
|
+
function clearSampledEnvironmentMapUniforms(shader, uniforms) {
|
|
838
|
+
if (shader.reflection.uniforms.has("u_environmentMapTexture")) {
|
|
839
|
+
uniforms.set("u_environmentMapTexture", new TextureBinding({ name: "u_environmentMapTexture", required: false, expectedDimension: "2d" }));
|
|
840
|
+
}
|
|
841
|
+
if (shader.reflection.uniforms.has("u_environmentCubeMapTexture")) {
|
|
842
|
+
uniforms.set("u_environmentCubeMapTexture", new TextureBinding({ name: "u_environmentCubeMapTexture", required: false, expectedDimension: "cube" }));
|
|
843
|
+
}
|
|
844
|
+
if (shader.reflection.uniforms.has("u_environmentMapTextureEnabled")) {
|
|
845
|
+
uniforms.set("u_environmentMapTextureEnabled", 0);
|
|
846
|
+
}
|
|
847
|
+
if (shader.reflection.uniforms.has("u_environmentCubeMapTextureEnabled")) {
|
|
848
|
+
uniforms.set("u_environmentCubeMapTextureEnabled", 0);
|
|
849
|
+
}
|
|
850
|
+
if (shader.reflection.uniforms.has("u_environmentMapTextureIntensity")) {
|
|
851
|
+
uniforms.set("u_environmentMapTextureIntensity", 0);
|
|
852
|
+
}
|
|
853
|
+
if (shader.reflection.uniforms.has("u_environmentMapTextureSpecularIntensity")) {
|
|
854
|
+
uniforms.set("u_environmentMapTextureSpecularIntensity", 0);
|
|
855
|
+
}
|
|
856
|
+
if (shader.reflection.uniforms.has("u_environmentMapTextureEncoding")) {
|
|
857
|
+
uniforms.set("u_environmentMapTextureEncoding", 0);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
function validateEnvironmentTextureBinding(label, binding, expectedDimension, item) {
|
|
861
|
+
const validation = binding.validate();
|
|
862
|
+
if (!validation.ok) {
|
|
863
|
+
throw new RenderDeviceError(`${label} binding validation failed`, "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
864
|
+
label: item.label,
|
|
865
|
+
diagnostics: validation.diagnostics
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
if (binding.texture?.dimension !== expectedDimension) {
|
|
869
|
+
throw new RenderDeviceError(`${label} must bind a ${expectedDimension} texture`, "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
870
|
+
label: item.label,
|
|
871
|
+
texture: binding.name,
|
|
872
|
+
expectedDimension,
|
|
873
|
+
actualDimension: binding.texture?.dimension ?? null
|
|
874
|
+
});
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
function applyEnvironmentBrdfLutUniforms(environment, item, shader, uniforms) {
|
|
878
|
+
if (!environment.environmentBrdfLutTexture) {
|
|
879
|
+
clearEnvironmentBrdfLutUniforms(shader, uniforms);
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
if (!shader.reflection.uniforms.has("u_environmentBrdfLutTexture") || !shader.reflection.uniforms.has("u_environmentBrdfLutEnabled")) {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
const validation = environment.environmentBrdfLutTexture.validate();
|
|
886
|
+
if (!validation.ok) {
|
|
887
|
+
throw new RenderDeviceError("Environment BRDF LUT texture binding validation failed", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
888
|
+
label: item.label,
|
|
889
|
+
diagnostics: validation.diagnostics
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
uniforms.set("u_environmentBrdfLutTexture", environment.environmentBrdfLutTexture);
|
|
893
|
+
uniforms.set("u_environmentBrdfLutEnabled", 1);
|
|
894
|
+
}
|
|
895
|
+
function clearEnvironmentBrdfLutUniforms(shader, uniforms) {
|
|
896
|
+
if (shader.reflection.uniforms.has("u_environmentBrdfLutTexture")) {
|
|
897
|
+
uniforms.set("u_environmentBrdfLutTexture", new TextureBinding({ name: "u_environmentBrdfLutTexture", required: false }));
|
|
898
|
+
}
|
|
899
|
+
if (shader.reflection.uniforms.has("u_environmentBrdfLutEnabled")) {
|
|
900
|
+
uniforms.set("u_environmentBrdfLutEnabled", 0);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
function toEnvironmentColor(value, field, label) {
|
|
904
|
+
if (value.length !== 3 || !isFiniteColor(value)) {
|
|
905
|
+
throw new RenderDeviceError("Procedural environment map colors must contain three finite values in [0, 1]", "ENVIRONMENT_LIGHTING_CONTRACT", {
|
|
906
|
+
label,
|
|
907
|
+
field,
|
|
908
|
+
color: value
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
return value;
|
|
912
|
+
}
|
|
913
|
+
function applyCameraUniforms(cameraPosition, item, shader, uniforms) {
|
|
914
|
+
if (!shader.reflection.uniforms.has("u_cameraPosition"))
|
|
915
|
+
return;
|
|
916
|
+
const position = cameraPosition ?? [0, 0, 1];
|
|
917
|
+
if (position.length !== 3 || position.some((value) => !Number.isFinite(value))) {
|
|
918
|
+
throw new RenderDeviceError("Forward pass camera position must be a finite vec3", "FORWARD_CAMERA_CONTRACT", {
|
|
919
|
+
label: item.label,
|
|
920
|
+
cameraPosition: [...position]
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
uniforms.set("u_cameraPosition", [...position]);
|
|
924
|
+
}
|
|
925
|
+
function applyAlphaCutoffUniform(item, shader, uniforms) {
|
|
926
|
+
if (!shader.reflection.uniforms.has("u_alphaCutoff") || uniforms.has("u_alphaCutoff"))
|
|
927
|
+
return;
|
|
928
|
+
uniforms.set("u_alphaCutoff", 0);
|
|
929
|
+
}
|
|
930
|
+
function applyTransformUniforms(item, shader, uniforms) {
|
|
931
|
+
const modelMatrix = shader.reflection.uniforms.has("u_modelMatrix") || shader.reflection.uniforms.has("u_normalMatrix")
|
|
932
|
+
? toMat4Uniform(item.modelMatrix ?? identityMatrix(), "modelMatrix", item.label)
|
|
933
|
+
: undefined;
|
|
934
|
+
if (item.modelViewProjectionMatrix && shader.reflection.uniforms.has("u_modelViewProjection")) {
|
|
935
|
+
uniforms.set("u_modelViewProjection", toMat4Uniform(item.modelViewProjectionMatrix, "modelViewProjectionMatrix", item.label));
|
|
936
|
+
}
|
|
937
|
+
if (modelMatrix && shader.reflection.uniforms.has("u_modelMatrix")) {
|
|
938
|
+
uniforms.set("u_modelMatrix", modelMatrix);
|
|
939
|
+
}
|
|
940
|
+
if (shader.reflection.uniforms.has("u_normalMatrix")) {
|
|
941
|
+
uniforms.set("u_normalMatrix", item.normalMatrix
|
|
942
|
+
? toMat4Uniform(item.normalMatrix, "normalMatrix", item.label)
|
|
943
|
+
: new Float32Array(normalMatrixFromModel(toMat4Values(modelMatrix ?? identityMatrix(), "modelMatrix", item.label))));
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
function toMat4Uniform(value, field, label) {
|
|
947
|
+
if (value.length !== 16 || !isFiniteArrayLike(value)) {
|
|
948
|
+
throw new RenderDeviceError("Render item transform uniforms must be finite mat4 values", "RENDER_ITEM_TRANSFORM_CONTRACT", {
|
|
949
|
+
label,
|
|
950
|
+
field,
|
|
951
|
+
scalars: value.length
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
return value instanceof Float32Array ? value : new Float32Array(value);
|
|
955
|
+
}
|
|
956
|
+
function toMat4Values(value, field, label) {
|
|
957
|
+
if (value.length !== 16 || !isFiniteArrayLike(value)) {
|
|
958
|
+
throw new RenderDeviceError("Render item transform uniforms must be finite mat4 values", "RENDER_ITEM_TRANSFORM_CONTRACT", {
|
|
959
|
+
label,
|
|
960
|
+
field,
|
|
961
|
+
scalars: value.length
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
return mat4FromArrayLike(value, 0);
|
|
965
|
+
}
|
|
966
|
+
function identityMatrix() {
|
|
967
|
+
return [
|
|
968
|
+
1, 0, 0, 0,
|
|
969
|
+
0, 1, 0, 0,
|
|
970
|
+
0, 0, 1, 0,
|
|
971
|
+
0, 0, 0, 1
|
|
972
|
+
];
|
|
973
|
+
}
|
|
974
|
+
function getBaseMaterial(material) {
|
|
975
|
+
return material instanceof MaterialInstance ? material.baseMaterial : material;
|
|
976
|
+
}
|
|
977
|
+
function sortForwardRenderItems(items, cameraPosition) {
|
|
978
|
+
return sortRenderQueueItems(items.map((item) => ({
|
|
979
|
+
item,
|
|
980
|
+
bucket: isTransparentRenderItem(item) ? "transparent" : "opaque",
|
|
981
|
+
depth: cameraPosition ? distanceSquaredFromCamera(item, cameraPosition) : 0,
|
|
982
|
+
pipelineKey: renderItemPipelineKey(item),
|
|
983
|
+
batchKey: renderItemPipelineKey(item),
|
|
984
|
+
instanceCount: item.instanceTransforms ? instanceTransformCount(item) : 1
|
|
985
|
+
}))).items;
|
|
986
|
+
}
|
|
987
|
+
function isTransparentRenderItem(item) {
|
|
988
|
+
const material = item.material ?? new UnlitMaterial();
|
|
989
|
+
return getBaseMaterial(material).renderState.blend;
|
|
990
|
+
}
|
|
991
|
+
function distanceSquaredFromCamera(item, cameraPosition) {
|
|
992
|
+
const transform = item.modelMatrix ?? identityMatrix();
|
|
993
|
+
const x = (transform[12] ?? 0) - cameraPosition[0];
|
|
994
|
+
const y = (transform[13] ?? 0) - cameraPosition[1];
|
|
995
|
+
const z = (transform[14] ?? 0) - cameraPosition[2];
|
|
996
|
+
return x * x + y * y + z * z;
|
|
997
|
+
}
|
|
998
|
+
function renderItemPipelineKey(item) {
|
|
999
|
+
const material = item.material ?? new UnlitMaterial();
|
|
1000
|
+
const baseMaterial = getBaseMaterial(material);
|
|
1001
|
+
const state = baseMaterial.renderState;
|
|
1002
|
+
return `${baseMaterial.name}|${state.depthTest ? "dt" : "ndt"}|${state.depthWrite ? "dw" : "ndw"}|${state.cullMode}|${state.blend ? "blend" : "opaque"}`;
|
|
1003
|
+
}
|
|
1004
|
+
function instanceTransformCount(item) {
|
|
1005
|
+
return validateInstanceTransformSource(item).length / 16;
|
|
1006
|
+
}
|
|
1007
|
+
function splitInstanceTransforms(transforms) {
|
|
1008
|
+
const source = transforms instanceof Float32Array ? transforms : new Float32Array(transforms);
|
|
1009
|
+
const batches = [];
|
|
1010
|
+
for (let offset = 0; offset < source.length; offset += MAX_GPU_INSTANCES * 16) {
|
|
1011
|
+
batches.push(source.subarray(offset, Math.min(source.length, offset + MAX_GPU_INSTANCES * 16)));
|
|
1012
|
+
}
|
|
1013
|
+
return batches;
|
|
1014
|
+
}
|
|
1015
|
+
function applyInstanceUniforms(item, shader, uniforms) {
|
|
1016
|
+
if (!shader.reflection.uniforms.has("u_instanceMatrices") || !shader.reflection.uniforms.has("u_instanceCount")) {
|
|
1017
|
+
throw new RenderDeviceError("Instanced render items require a shader with instance matrix uniforms", "INSTANCING_SHADER_CONTRACT", {
|
|
1018
|
+
label: item.label
|
|
1019
|
+
});
|
|
1020
|
+
}
|
|
1021
|
+
const source = validateInstanceTransformSource(item);
|
|
1022
|
+
const instanceCount = source.length / 16;
|
|
1023
|
+
if (instanceCount > MAX_GPU_INSTANCES) {
|
|
1024
|
+
throw new RenderDeviceError("Instanced shader path exceeds the supported uniform instance count", "GPU_INSTANCE_LIMIT", {
|
|
1025
|
+
label: item.label,
|
|
1026
|
+
instanceCount,
|
|
1027
|
+
maxInstances: MAX_GPU_INSTANCES
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
const packed = new Float32Array(MAX_GPU_INSTANCES * 16);
|
|
1031
|
+
packed.set(source);
|
|
1032
|
+
uniforms.set("u_instanceMatrices", packed);
|
|
1033
|
+
uniforms.set("u_instanceCount", instanceCount);
|
|
1034
|
+
uniforms.set("u_instanceAttributeMode", 0);
|
|
1035
|
+
return instanceCount;
|
|
1036
|
+
}
|
|
1037
|
+
function applyInstanceBinding(device, item, shader, uniforms) {
|
|
1038
|
+
const source = validateInstanceTransformSource(item);
|
|
1039
|
+
const instanceCount = source.length / 16;
|
|
1040
|
+
const extraBindings = createExtraInstanceAttributeBindings(device, item, instanceCount);
|
|
1041
|
+
if (supportsInstanceAttributes(shader) && instanceCount > MAX_GPU_INSTANCES) {
|
|
1042
|
+
const data = source instanceof Float32Array ? source : new Float32Array(source);
|
|
1043
|
+
const buffer = device.createBuffer("vertex", data.byteLength, data);
|
|
1044
|
+
uniforms.set("u_instanceCount", instanceCount);
|
|
1045
|
+
uniforms.set("u_instanceAttributeMode", 1);
|
|
1046
|
+
return {
|
|
1047
|
+
count: instanceCount,
|
|
1048
|
+
buffers: [buffer, ...extraBindings.buffers],
|
|
1049
|
+
attributes: [
|
|
1050
|
+
...INSTANCE_MATRIX_ATTRIBUTE_NAMES.map((shaderName, column) => ({
|
|
1051
|
+
buffer,
|
|
1052
|
+
shaderName,
|
|
1053
|
+
components: 4,
|
|
1054
|
+
offset: column * 16,
|
|
1055
|
+
stride: 64,
|
|
1056
|
+
divisor: 1
|
|
1057
|
+
})),
|
|
1058
|
+
...extraBindings.attributes
|
|
1059
|
+
]
|
|
1060
|
+
};
|
|
1061
|
+
}
|
|
1062
|
+
return {
|
|
1063
|
+
count: applyInstanceUniforms(item, shader, uniforms),
|
|
1064
|
+
...(extraBindings.attributes.length > 0 ? { attributes: extraBindings.attributes } : {}),
|
|
1065
|
+
...(extraBindings.buffers.length > 0 ? { buffers: extraBindings.buffers } : {})
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
function createExtraInstanceAttributeBindings(device, item, instanceCount) {
|
|
1069
|
+
const descriptors = [];
|
|
1070
|
+
if (item.instanceColors) {
|
|
1071
|
+
descriptors.push({
|
|
1072
|
+
shaderName: "a_instanceColor",
|
|
1073
|
+
components: 4,
|
|
1074
|
+
data: item.instanceColors
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
if (item.instanceAttributes)
|
|
1078
|
+
descriptors.push(...item.instanceAttributes);
|
|
1079
|
+
if (descriptors.length === 0)
|
|
1080
|
+
return { attributes: [], buffers: [] };
|
|
1081
|
+
const attributes = [];
|
|
1082
|
+
const buffers = [];
|
|
1083
|
+
for (const descriptor of descriptors) {
|
|
1084
|
+
validateInstanceAttributeDescriptor(descriptor, instanceCount, item.label);
|
|
1085
|
+
const data = descriptor.data instanceof Float32Array ? descriptor.data : new Float32Array(descriptor.data);
|
|
1086
|
+
const stride = descriptor.components * 4;
|
|
1087
|
+
const buffer = device.createBuffer("vertex", data.byteLength, data);
|
|
1088
|
+
buffers.push(buffer);
|
|
1089
|
+
attributes.push({
|
|
1090
|
+
buffer,
|
|
1091
|
+
shaderName: descriptor.shaderName,
|
|
1092
|
+
components: descriptor.components,
|
|
1093
|
+
offset: 0,
|
|
1094
|
+
stride,
|
|
1095
|
+
normalized: descriptor.normalized ?? false,
|
|
1096
|
+
divisor: descriptor.divisor ?? 1
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
return { attributes, buffers };
|
|
1100
|
+
}
|
|
1101
|
+
function validateInstanceAttributeDescriptor(descriptor, instanceCount, label) {
|
|
1102
|
+
if (!descriptor.shaderName.trim()) {
|
|
1103
|
+
throw new RenderDeviceError("Instance attribute shaderName is required", "INSTANCE_ATTRIBUTE_CONTRACT", { label });
|
|
1104
|
+
}
|
|
1105
|
+
if (![1, 2, 3, 4].includes(descriptor.components)) {
|
|
1106
|
+
throw new RenderDeviceError("Instance attribute components must be 1, 2, 3, or 4", "INSTANCE_ATTRIBUTE_CONTRACT", {
|
|
1107
|
+
label,
|
|
1108
|
+
shaderName: descriptor.shaderName,
|
|
1109
|
+
components: descriptor.components
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
const data = descriptor.data instanceof Float32Array ? descriptor.data : new Float32Array(descriptor.data);
|
|
1113
|
+
if (data.length !== instanceCount * descriptor.components || !Array.from(data).every(Number.isFinite)) {
|
|
1114
|
+
throw new RenderDeviceError("Instance attribute data must contain finite values for every instance", "INSTANCE_ATTRIBUTE_CONTRACT", {
|
|
1115
|
+
label,
|
|
1116
|
+
shaderName: descriptor.shaderName,
|
|
1117
|
+
components: descriptor.components,
|
|
1118
|
+
dataLength: data.length,
|
|
1119
|
+
expectedLength: instanceCount * descriptor.components
|
|
1120
|
+
});
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
function resolveRenderGeometry(item) {
|
|
1124
|
+
if (item.morphTargets === undefined && item.morphWeights === undefined) {
|
|
1125
|
+
return item.geometry;
|
|
1126
|
+
}
|
|
1127
|
+
if (!item.morphTargets || !item.morphWeights) {
|
|
1128
|
+
throw new RenderDeviceError("Morph render items require both morphTargets and morphWeights", "MORPH_TARGET_CONTRACT", {
|
|
1129
|
+
label: item.label,
|
|
1130
|
+
targetCount: item.morphTargets?.length ?? 0,
|
|
1131
|
+
weightCount: item.morphWeights?.length ?? 0
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
return applyMorphTargets(item.geometry, item.morphTargets, item.morphWeights);
|
|
1135
|
+
}
|
|
1136
|
+
function applyGpuMorphUniforms(item, shader, uniforms) {
|
|
1137
|
+
if (!shader.reflection.uniforms.has("u_morphPositionDeltas") ||
|
|
1138
|
+
!shader.reflection.uniforms.has("u_morphWeights") ||
|
|
1139
|
+
!shader.reflection.uniforms.has("u_morphTargetCount")) {
|
|
1140
|
+
return false;
|
|
1141
|
+
}
|
|
1142
|
+
if (!item.morphTargets || !item.morphWeights) {
|
|
1143
|
+
throw new RenderDeviceError("Morph render items require both morphTargets and morphWeights", "MORPH_TARGET_CONTRACT", {
|
|
1144
|
+
label: item.label,
|
|
1145
|
+
targetCount: item.morphTargets?.length ?? 0,
|
|
1146
|
+
weightCount: item.morphWeights?.length ?? 0
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
if (item.morphTargets.length !== item.morphWeights.length) {
|
|
1150
|
+
throw new RenderDeviceError("Morph target count must match morph weight count", "MORPH_TARGET_CONTRACT", {
|
|
1151
|
+
label: item.label,
|
|
1152
|
+
targetCount: item.morphTargets.length,
|
|
1153
|
+
weightCount: item.morphWeights.length
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
if (item.morphTargets.length > MAX_GPU_MORPH_TARGETS) {
|
|
1157
|
+
throw new RenderDeviceError("GPU morph shader path exceeds the supported uniform morph target count", "GPU_MORPH_TARGET_LIMIT", {
|
|
1158
|
+
label: item.label,
|
|
1159
|
+
targetCount: item.morphTargets.length,
|
|
1160
|
+
maxTargets: MAX_GPU_MORPH_TARGETS
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
if (item.geometry.vertexBuffer.vertexCount > MAX_GPU_MORPH_VERTICES) {
|
|
1164
|
+
throw new RenderDeviceError("GPU morph shader path exceeds the supported uniform morph vertex count", "GPU_MORPH_VERTEX_LIMIT", {
|
|
1165
|
+
label: item.label,
|
|
1166
|
+
vertexCount: item.geometry.vertexBuffer.vertexCount,
|
|
1167
|
+
maxVertices: MAX_GPU_MORPH_VERTICES
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
const packed = new Float32Array(MAX_GPU_MORPH_TARGETS * MAX_GPU_MORPH_VERTICES * 4);
|
|
1171
|
+
const weights = new Float32Array(MAX_GPU_MORPH_TARGETS);
|
|
1172
|
+
for (let targetIndex = 0; targetIndex < item.morphTargets.length; targetIndex += 1) {
|
|
1173
|
+
const target = item.morphTargets[targetIndex];
|
|
1174
|
+
if (!target.positions || target.positions.length < item.geometry.vertexBuffer.vertexCount) {
|
|
1175
|
+
throw new RenderDeviceError("GPU morph shader path requires position deltas for every source vertex", "GPU_MORPH_TARGET_CONTRACT", {
|
|
1176
|
+
label: item.label,
|
|
1177
|
+
targetIndex,
|
|
1178
|
+
vertexCount: item.geometry.vertexBuffer.vertexCount,
|
|
1179
|
+
deltaCount: target.positions?.length ?? 0
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
const weight = item.morphWeights[targetIndex] ?? 0;
|
|
1183
|
+
if (!Number.isFinite(weight)) {
|
|
1184
|
+
throw new RenderDeviceError("GPU morph weights must be finite", "GPU_MORPH_TARGET_CONTRACT", {
|
|
1185
|
+
label: item.label,
|
|
1186
|
+
targetIndex,
|
|
1187
|
+
weight
|
|
1188
|
+
});
|
|
1189
|
+
}
|
|
1190
|
+
weights[targetIndex] = weight;
|
|
1191
|
+
for (let vertex = 0; vertex < item.geometry.vertexBuffer.vertexCount; vertex += 1) {
|
|
1192
|
+
const delta = target.positions[vertex];
|
|
1193
|
+
if (delta.length !== 3 || !Number.isFinite(delta[0]) || !Number.isFinite(delta[1]) || !Number.isFinite(delta[2])) {
|
|
1194
|
+
throw new RenderDeviceError("GPU morph position deltas must be finite vec3 values", "GPU_MORPH_TARGET_CONTRACT", {
|
|
1195
|
+
label: item.label,
|
|
1196
|
+
targetIndex,
|
|
1197
|
+
vertex
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1200
|
+
const offset = (targetIndex * MAX_GPU_MORPH_VERTICES + vertex) * 4;
|
|
1201
|
+
packed[offset] = delta[0];
|
|
1202
|
+
packed[offset + 1] = delta[1];
|
|
1203
|
+
packed[offset + 2] = delta[2];
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
uniforms.set("u_morphPositionDeltas", packed);
|
|
1207
|
+
uniforms.set("u_morphWeights", weights);
|
|
1208
|
+
uniforms.set("u_morphTargetCount", item.morphTargets.length);
|
|
1209
|
+
return true;
|
|
1210
|
+
}
|
|
1211
|
+
function applySkinningUniforms(skinning, material, shader, uniforms) {
|
|
1212
|
+
if (!shader.reflection.uniforms.has("u_jointMatrices") || !shader.reflection.uniforms.has("u_jointCount")) {
|
|
1213
|
+
throw new RenderDeviceError("Skinned render item requires a shader with joint palette uniforms", "SKINNING_SHADER_CONTRACT", {
|
|
1214
|
+
material: material.name
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
if (!Number.isInteger(skinning.jointCount) || skinning.jointCount <= 0 || skinning.jointCount > 64) {
|
|
1218
|
+
throw new RenderDeviceError("Skinning jointCount must be an integer in [1, 64]", "INVALID_SKINNING_PALETTE", {
|
|
1219
|
+
jointCount: skinning.jointCount
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
if (skinning.matrices.length !== skinning.jointCount * 16) {
|
|
1223
|
+
throw new RenderDeviceError("Skinning matrix palette length must equal jointCount * 16", "INVALID_SKINNING_PALETTE", {
|
|
1224
|
+
jointCount: skinning.jointCount,
|
|
1225
|
+
matrixScalars: skinning.matrices.length
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
if (!isFiniteArrayLike(skinning.matrices)) {
|
|
1229
|
+
throw new RenderDeviceError("Skinning matrix palette must contain finite values", "INVALID_SKINNING_PALETTE", {
|
|
1230
|
+
jointCount: skinning.jointCount
|
|
1231
|
+
});
|
|
1232
|
+
}
|
|
1233
|
+
uniforms.set("u_jointCount", skinning.jointCount);
|
|
1234
|
+
uniforms.set("u_jointMatrices", skinning.matrices);
|
|
1235
|
+
}
|
|
1236
|
+
function validateSkinningGeometryContract(item, skinning) {
|
|
1237
|
+
const format = item.geometry.vertexBuffer.format;
|
|
1238
|
+
if (!format.hasAttribute("joints") || !format.hasAttribute("weights")) {
|
|
1239
|
+
throw new RenderDeviceError("Skinned render item geometry must include joints and weights attributes", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1240
|
+
label: item.label,
|
|
1241
|
+
jointCount: skinning.jointCount,
|
|
1242
|
+
vertexFormat: format.attributes.map((attribute) => attribute.shaderName),
|
|
1243
|
+
missingAttributes: [
|
|
1244
|
+
...(format.hasAttribute("joints") ? [] : ["a_joints"]),
|
|
1245
|
+
...(format.hasAttribute("weights") ? [] : ["a_weights"])
|
|
1246
|
+
]
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
const jointsAttribute = format.getAttribute("joints");
|
|
1250
|
+
const weightsAttribute = format.getAttribute("weights");
|
|
1251
|
+
if (jointsAttribute.components !== 4 || weightsAttribute.components !== 4) {
|
|
1252
|
+
throw new RenderDeviceError("Skinned render item geometry must use four joint and four weight influences per vertex", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1253
|
+
label: item.label,
|
|
1254
|
+
jointCount: skinning.jointCount,
|
|
1255
|
+
jointComponents: jointsAttribute.components,
|
|
1256
|
+
weightComponents: weightsAttribute.components
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
for (let vertex = 0; vertex < item.geometry.vertexBuffer.vertexCount; vertex += 1) {
|
|
1260
|
+
const joints = item.geometry.vertexBuffer.getAttribute(vertex, "joints");
|
|
1261
|
+
const weights = item.geometry.vertexBuffer.getAttribute(vertex, "weights");
|
|
1262
|
+
let weightSum = 0;
|
|
1263
|
+
for (let influence = 0; influence < 4; influence += 1) {
|
|
1264
|
+
const joint = joints[influence] ?? 0;
|
|
1265
|
+
const weight = weights[influence] ?? 0;
|
|
1266
|
+
if (!Number.isFinite(weight) || weight < 0) {
|
|
1267
|
+
throw new RenderDeviceError("Skinned render item weights must be finite non-negative values", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1268
|
+
label: item.label,
|
|
1269
|
+
jointCount: skinning.jointCount,
|
|
1270
|
+
vertex,
|
|
1271
|
+
influence,
|
|
1272
|
+
weight
|
|
1273
|
+
});
|
|
1274
|
+
}
|
|
1275
|
+
if (!Number.isFinite(joint) || !Number.isInteger(joint) || joint < 0) {
|
|
1276
|
+
throw new RenderDeviceError("Skinned render item joints must be finite non-negative integer indices", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1277
|
+
label: item.label,
|
|
1278
|
+
jointCount: skinning.jointCount,
|
|
1279
|
+
vertex,
|
|
1280
|
+
influence,
|
|
1281
|
+
joint
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
if (weight > 0 && joint >= skinning.jointCount) {
|
|
1285
|
+
throw new RenderDeviceError("Skinned render item joint indices must be within the uploaded skinning palette", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1286
|
+
label: item.label,
|
|
1287
|
+
jointCount: skinning.jointCount,
|
|
1288
|
+
vertex,
|
|
1289
|
+
influence,
|
|
1290
|
+
joint,
|
|
1291
|
+
weight
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
weightSum += weight;
|
|
1295
|
+
}
|
|
1296
|
+
if (weightSum <= 0) {
|
|
1297
|
+
throw new RenderDeviceError("Skinned render item weights must sum to a positive value", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1298
|
+
label: item.label,
|
|
1299
|
+
jointCount: skinning.jointCount,
|
|
1300
|
+
vertex,
|
|
1301
|
+
weightSum
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
if (Math.abs(weightSum - 1) > 0.02) {
|
|
1305
|
+
throw new RenderDeviceError("Skinned render item weights must be normalized before GPU skinning", "SKINNING_GEOMETRY_CONTRACT", {
|
|
1306
|
+
label: item.label,
|
|
1307
|
+
jointCount: skinning.jointCount,
|
|
1308
|
+
vertex,
|
|
1309
|
+
weightSum
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
function validateInstanceTransformSource(item) {
|
|
1315
|
+
const source = item.instanceTransforms ?? [];
|
|
1316
|
+
if (source.length === 0 || source.length % 16 !== 0) {
|
|
1317
|
+
throw new RenderDeviceError("Instance transforms must contain one or more mat4 values", "INSTANCING_CONTRACT", {
|
|
1318
|
+
label: item.label,
|
|
1319
|
+
scalars: source.length
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
if (!isFiniteArrayLike(source)) {
|
|
1323
|
+
throw new RenderDeviceError("Instance transforms must contain finite mat4 values", "INSTANCING_CONTRACT", {
|
|
1324
|
+
label: item.label
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1327
|
+
return source;
|
|
1328
|
+
}
|
|
1329
|
+
function isFiniteArrayLike(values) {
|
|
1330
|
+
for (let index = 0; index < values.length; index += 1) {
|
|
1331
|
+
if (!Number.isFinite(values[index]))
|
|
1332
|
+
return false;
|
|
1333
|
+
}
|
|
1334
|
+
return true;
|
|
1335
|
+
}
|
|
1336
|
+
function isFiniteColor(values) {
|
|
1337
|
+
for (let index = 0; index < values.length; index += 1) {
|
|
1338
|
+
const channel = values[index];
|
|
1339
|
+
if (!Number.isFinite(channel) || channel < 0 || channel > 1)
|
|
1340
|
+
return false;
|
|
1341
|
+
}
|
|
1342
|
+
return true;
|
|
1343
|
+
}
|
|
1344
|
+
function mat4FromArrayLike(values, offset) {
|
|
1345
|
+
return [
|
|
1346
|
+
values[offset], values[offset + 1], values[offset + 2], values[offset + 3],
|
|
1347
|
+
values[offset + 4], values[offset + 5], values[offset + 6], values[offset + 7],
|
|
1348
|
+
values[offset + 8], values[offset + 9], values[offset + 10], values[offset + 11],
|
|
1349
|
+
values[offset + 12], values[offset + 13], values[offset + 14], values[offset + 15]
|
|
1350
|
+
];
|
|
1351
|
+
}
|
|
1352
|
+
//# sourceMappingURL=ForwardPass.js.map
|