@automovie/viewer 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +54 -2
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.d.ts +4 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js +5 -0
- package/lib/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.js.map +1 -0
- package/lib/AutoMovieDisplayCompositor.d.ts +105 -0
- package/lib/AutoMovieDisplayCompositor.js +342 -0
- package/lib/AutoMovieDisplayCompositor.js.map +1 -0
- package/lib/AutoMovieDissolveCompositorState.d.ts +4 -0
- package/lib/AutoMovieDissolveCompositorState.js +3 -0
- package/lib/AutoMovieDissolveCompositorState.js.map +1 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.d.ts +52 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js +187 -0
- package/lib/AutoMovieEnvironmentTextureOwnership.js.map +1 -0
- package/lib/AutoMovieFadeCompositorState.d.ts +4 -0
- package/lib/AutoMovieFadeCompositorState.js +3 -0
- package/lib/AutoMovieFadeCompositorState.js.map +1 -0
- package/lib/AutoMovieFilmBeautyComposition.d.ts +25 -0
- package/lib/AutoMovieFilmBeautyComposition.js +2 -0
- package/lib/AutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/AutoMovieGeometryPhysicalVertices.d.ts +48 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js +134 -0
- package/lib/AutoMovieGeometryPhysicalVertices.js.map +1 -0
- package/lib/AutoMoviePlayer.d.ts +99 -0
- package/lib/AutoMoviePlayer.js +192 -0
- package/lib/AutoMoviePlayer.js.map +1 -0
- package/lib/AutoMovieRenderModeMesh.d.ts +13 -0
- package/lib/AutoMovieRenderModeMesh.js +2 -0
- package/lib/AutoMovieRenderModeMesh.js.map +1 -0
- package/lib/AutoMovieResourceRetirementScope.d.ts +108 -0
- package/lib/AutoMovieResourceRetirementScope.js +169 -0
- package/lib/AutoMovieResourceRetirementScope.js.map +1 -0
- package/lib/AutoMovieSkinBlend.d.ts +83 -0
- package/lib/AutoMovieSkinBlend.js +195 -0
- package/lib/AutoMovieSkinBlend.js.map +1 -0
- package/lib/AutoMovieSkinPose.d.ts +119 -0
- package/lib/AutoMovieSkinPose.js +365 -0
- package/lib/AutoMovieSkinPose.js.map +1 -0
- package/lib/AutoMovieSkinnedMesh.d.ts +182 -0
- package/lib/AutoMovieSkinnedMesh.js +246 -0
- package/lib/AutoMovieSkinnedMesh.js.map +1 -0
- package/lib/AutoMovieTextureCache.d.ts +178 -0
- package/lib/AutoMovieTextureCache.js +321 -0
- package/lib/AutoMovieTextureCache.js.map +1 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.d.ts +217 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js +417 -0
- package/lib/AutoMovieTextureCacheAllocationAuthority.js.map +1 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.d.ts +4 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js +5 -0
- package/lib/DEPTH_NORMALIZATION_RANGE.js.map +1 -0
- package/lib/EDGE_SHELL_NAME.d.ts +2 -0
- package/lib/EDGE_SHELL_NAME.js +3 -0
- package/lib/EDGE_SHELL_NAME.js.map +1 -0
- package/lib/EDGE_WIDTH.d.ts +4 -0
- package/lib/EDGE_WIDTH.js +5 -0
- package/lib/EDGE_WIDTH.js.map +1 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.d.ts +28 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js +2 -0
- package/lib/IApplyAutoMovieSectionPlanesProps.js.map +1 -0
- package/lib/IAutoMovieAnalysisOverlayObject.d.ts +52 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js +2 -0
- package/lib/IAutoMovieAnalysisOverlayObject.js.map +1 -0
- package/lib/IAutoMovieBuiltPropArticulation.d.ts +34 -0
- package/lib/IAutoMovieBuiltPropArticulation.js +2 -0
- package/lib/IAutoMovieBuiltPropArticulation.js.map +1 -0
- package/lib/IAutoMovieEffectViewerObject.d.ts +28 -0
- package/lib/IAutoMovieEffectViewerObject.js +2 -0
- package/lib/IAutoMovieEffectViewerObject.js.map +1 -0
- package/lib/IAutoMovieEffectViewerStats.d.ts +18 -0
- package/lib/IAutoMovieEffectViewerStats.js +2 -0
- package/lib/IAutoMovieEffectViewerStats.js.map +1 -0
- package/lib/IAutoMovieExpressionTarget.d.ts +22 -0
- package/lib/IAutoMovieExpressionTarget.js +2 -0
- package/lib/IAutoMovieExpressionTarget.js.map +1 -0
- package/lib/IAutoMovieFilmBeautyLayer.d.ts +12 -0
- package/lib/IAutoMovieFilmBeautyLayer.js +2 -0
- package/lib/IAutoMovieFilmBeautyLayer.js.map +1 -0
- package/lib/IAutoMovieFluidSprayObject.d.ts +50 -0
- package/lib/IAutoMovieFluidSprayObject.js +2 -0
- package/lib/IAutoMovieFluidSprayObject.js.map +1 -0
- package/lib/IAutoMovieFluidSurfaceObject.d.ts +38 -0
- package/lib/IAutoMovieFluidSurfaceObject.js +2 -0
- package/lib/IAutoMovieFluidSurfaceObject.js.map +1 -0
- package/lib/IAutoMovieFormationCadence.d.ts +17 -0
- package/lib/IAutoMovieFormationCadence.js +2 -0
- package/lib/IAutoMovieFormationCadence.js.map +1 -0
- package/lib/IAutoMovieFormationCycle.d.ts +38 -0
- package/lib/IAutoMovieFormationCycle.js +2 -0
- package/lib/IAutoMovieFormationCycle.js.map +1 -0
- package/lib/IAutoMovieFormationCycleTake.d.ts +47 -0
- package/lib/IAutoMovieFormationCycleTake.js +2 -0
- package/lib/IAutoMovieFormationCycleTake.js.map +1 -0
- package/lib/IAutoMovieFormationCycleUniforms.d.ts +21 -0
- package/lib/IAutoMovieFormationCycleUniforms.js +2 -0
- package/lib/IAutoMovieFormationCycleUniforms.js.map +1 -0
- package/lib/IAutoMovieFormationViewerObject.d.ts +62 -0
- package/lib/IAutoMovieFormationViewerObject.js +2 -0
- package/lib/IAutoMovieFormationViewerObject.js.map +1 -0
- package/lib/IAutoMovieFormationViewerStats.d.ts +34 -0
- package/lib/IAutoMovieFormationViewerStats.js +2 -0
- package/lib/IAutoMovieFormationViewerStats.js.map +1 -0
- package/lib/IAutoMovieImportedModelOptions.d.ts +44 -0
- package/lib/IAutoMovieImportedModelOptions.js +2 -0
- package/lib/IAutoMovieImportedModelOptions.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerObject.d.ts +42 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerObject.js.map +1 -0
- package/lib/IAutoMovieInstanceSetViewerStats.d.ts +17 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js +2 -0
- package/lib/IAutoMovieInstanceSetViewerStats.js.map +1 -0
- package/lib/IAutoMovieInstancedGeometry.d.ts +24 -0
- package/lib/IAutoMovieInstancedGeometry.js +2 -0
- package/lib/IAutoMovieInstancedGeometry.js.map +1 -0
- package/lib/IAutoMovieInstancedModelRepresentation.d.ts +16 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js +2 -0
- package/lib/IAutoMovieInstancedModelRepresentation.js.map +1 -0
- package/lib/IAutoMovieMaterialLibrary.d.ts +42 -0
- package/lib/IAutoMovieMaterialLibrary.js +2 -0
- package/lib/IAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/IAutoMovieModelObject.d.ts +51 -0
- package/lib/IAutoMovieModelObject.js +2 -0
- package/lib/IAutoMovieModelObject.js.map +1 -0
- package/lib/IAutoMoviePlantingObject.d.ts +33 -0
- package/lib/IAutoMoviePlantingObject.js +2 -0
- package/lib/IAutoMoviePlantingObject.js.map +1 -0
- package/lib/IAutoMovieRenderModeHandle.d.ts +44 -0
- package/lib/IAutoMovieRenderModeHandle.js +2 -0
- package/lib/IAutoMovieRenderModeHandle.js.map +1 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.d.ts +22 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js +2 -0
- package/lib/IAutoMovieRendererEnvironmentHandle.js.map +1 -0
- package/lib/IAutoMovieRigLocalTransform.d.ts +15 -0
- package/lib/IAutoMovieRigLocalTransform.js +2 -0
- package/lib/IAutoMovieRigLocalTransform.js.map +1 -0
- package/lib/IAutoMovieSceneObject.d.ts +26 -0
- package/lib/IAutoMovieSceneObject.js +2 -0
- package/lib/IAutoMovieSceneObject.js.map +1 -0
- package/lib/IAutoMovieSectionRenderer.d.ts +17 -0
- package/lib/IAutoMovieSectionRenderer.js +2 -0
- package/lib/IAutoMovieSectionRenderer.js.map +1 -0
- package/lib/IAutoMovieShadowTextureHost.d.ts +17 -0
- package/lib/IAutoMovieShadowTextureHost.js +2 -0
- package/lib/IAutoMovieShadowTextureHost.js.map +1 -0
- package/lib/IAutoMovieSoftBodyObject.d.ts +43 -0
- package/lib/IAutoMovieSoftBodyObject.js +2 -0
- package/lib/IAutoMovieSoftBodyObject.js.map +1 -0
- package/lib/IAutoMovieSpringAxisSettlement.d.ts +19 -0
- package/lib/IAutoMovieSpringAxisSettlement.js +2 -0
- package/lib/IAutoMovieSpringAxisSettlement.js.map +1 -0
- package/lib/IAutoMovieSpringConfig.d.ts +22 -0
- package/lib/IAutoMovieSpringConfig.js +2 -0
- package/lib/IAutoMovieSpringConfig.js.map +1 -0
- package/lib/IAutoMovieTextureLoader.d.ts +13 -0
- package/lib/IAutoMovieTextureLoader.js +2 -0
- package/lib/IAutoMovieTextureLoader.js.map +1 -0
- package/lib/IAutoMovieTextureResolver.d.ts +16 -0
- package/lib/IAutoMovieTextureResolver.js +2 -0
- package/lib/IAutoMovieTextureResolver.js.map +1 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.d.ts +30 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js +2 -0
- package/lib/IAutoMovieViewerCameraDepthPrecisionReport.js.map +1 -0
- package/lib/IAutoMovieViewerCompletedFrame.d.ts +51 -0
- package/lib/IAutoMovieViewerCompletedFrame.js +2 -0
- package/lib/IAutoMovieViewerCompletedFrame.js.map +1 -0
- package/lib/IAutoMovieViewerDisplayMetadata.d.ts +22 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js +2 -0
- package/lib/IAutoMovieViewerDisplayMetadata.js.map +1 -0
- package/lib/IAutoMovieViewerFrame.d.ts +19 -0
- package/lib/IAutoMovieViewerFrame.js +2 -0
- package/lib/IAutoMovieViewerFrame.js.map +1 -0
- package/lib/IAutoMovieViewerHandle.d.ts +42 -0
- package/lib/IAutoMovieViewerHandle.js +2 -0
- package/lib/IAutoMovieViewerHandle.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshot.d.ts +18 -0
- package/lib/IAutoMovieViewerSnapshot.js +2 -0
- package/lib/IAutoMovieViewerSnapshot.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotOptions.d.ts +14 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js +2 -0
- package/lib/IAutoMovieViewerSnapshotOptions.js.map +1 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.d.ts +32 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js +2 -0
- package/lib/IAutoMovieViewerSnapshotRenderer.js.map +1 -0
- package/lib/IBakeFormationCycleProps.d.ts +31 -0
- package/lib/IBakeFormationCycleProps.js +2 -0
- package/lib/IBakeFormationCycleProps.js.map +1 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.d.ts +30 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js +2 -0
- package/lib/IBuildAutoMovieMaterialLibraryProps.js.map +1 -0
- package/lib/IBuildInstancedFormationProps.d.ts +34 -0
- package/lib/IBuildInstancedFormationProps.js +2 -0
- package/lib/IBuildInstancedFormationProps.js.map +1 -0
- package/lib/IBuildInstancedInstanceSetProps.d.ts +29 -0
- package/lib/IBuildInstancedInstanceSetProps.js +2 -0
- package/lib/IBuildInstancedInstanceSetProps.js.map +1 -0
- package/lib/IBuildPlantingObjectProps.d.ts +22 -0
- package/lib/IBuildPlantingObjectProps.js +2 -0
- package/lib/IBuildPlantingObjectProps.js.map +1 -0
- package/lib/IBuildPropArticulationProps.d.ts +30 -0
- package/lib/IBuildPropArticulationProps.js +2 -0
- package/lib/IBuildPropArticulationProps.js.map +1 -0
- package/lib/IBuildSoftBodyObjectProps.d.ts +18 -0
- package/lib/IBuildSoftBodyObjectProps.js +2 -0
- package/lib/IBuildSoftBodyObjectProps.js.map +1 -0
- package/lib/IChunkObject.d.ts +32 -0
- package/lib/IChunkObject.js +2 -0
- package/lib/IChunkObject.js.map +1 -0
- package/lib/IFormationTierRepresentation.d.ts +17 -0
- package/lib/IFormationTierRepresentation.js +2 -0
- package/lib/IFormationTierRepresentation.js.map +1 -0
- package/lib/IMaterialShaderPatch.d.ts +28 -0
- package/lib/IMaterialShaderPatch.js +2 -0
- package/lib/IMaterialShaderPatch.js.map +1 -0
- package/lib/IMountViewerOptions.d.ts +61 -0
- package/lib/IMountViewerOptions.js +2 -0
- package/lib/IMountViewerOptions.js.map +1 -0
- package/lib/ISlotException.d.ts +26 -0
- package/lib/ISlotException.js +2 -0
- package/lib/ISlotException.js.map +1 -0
- package/lib/IViewerCameraStateSnapshot.d.ts +49 -0
- package/lib/IViewerCameraStateSnapshot.js +2 -0
- package/lib/IViewerCameraStateSnapshot.js.map +1 -0
- package/lib/POSE_OVERLAY_NAME.d.ts +2 -0
- package/lib/POSE_OVERLAY_NAME.js +3 -0
- package/lib/POSE_OVERLAY_NAME.js.map +1 -0
- package/lib/SPACE_GROUP_NAME.d.ts +12 -0
- package/lib/SPACE_GROUP_NAME.js +13 -0
- package/lib/SPACE_GROUP_NAME.js.map +1 -0
- package/lib/addMaterialShaderPatch.d.ts +21 -0
- package/lib/addMaterialShaderPatch.js +31 -0
- package/lib/addMaterialShaderPatch.js.map +1 -0
- package/lib/analysisOverlay.d.ts +3 -0
- package/lib/analysisOverlay.js +3 -0
- package/lib/analysisOverlay.js.map +1 -0
- package/lib/applyAutoMovieDeliveryCrop.d.ts +22 -0
- package/lib/applyAutoMovieDeliveryCrop.js +34 -0
- package/lib/applyAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/applyAutoMovieRigLocals.d.ts +27 -0
- package/lib/applyAutoMovieRigLocals.js +89 -0
- package/lib/applyAutoMovieRigLocals.js.map +1 -0
- package/lib/applyAutoMovieSectionPlanes.d.ts +24 -0
- package/lib/applyAutoMovieSectionPlanes.js +42 -0
- package/lib/applyAutoMovieSectionPlanes.js.map +1 -0
- package/lib/applyAutoMovieShadowParticipation.d.ts +42 -0
- package/lib/applyAutoMovieShadowParticipation.js +62 -0
- package/lib/applyAutoMovieShadowParticipation.js.map +1 -0
- package/lib/applyCaptureCanvasSize.d.ts +12 -0
- package/lib/applyCaptureCanvasSize.js +21 -0
- package/lib/applyCaptureCanvasSize.js.map +1 -0
- package/lib/applyDepthMode.d.ts +20 -0
- package/lib/applyDepthMode.js +81 -0
- package/lib/applyDepthMode.js.map +1 -0
- package/lib/applyEdgeMode.d.ts +20 -0
- package/lib/applyEdgeMode.js +114 -0
- package/lib/applyEdgeMode.js.map +1 -0
- package/lib/applyExpression.d.ts +20 -0
- package/lib/applyExpression.js +138 -0
- package/lib/applyExpression.js.map +1 -0
- package/lib/applyFormationCycleCadence.d.ts +20 -0
- package/lib/applyFormationCycleCadence.js +26 -0
- package/lib/applyFormationCycleCadence.js.map +1 -0
- package/lib/applyFormationCycleMaterial.d.ts +31 -0
- package/lib/applyFormationCycleMaterial.js +100 -0
- package/lib/applyFormationCycleMaterial.js.map +1 -0
- package/lib/applyLightMotion.d.ts +38 -0
- package/lib/applyLightMotion.js +46 -0
- package/lib/applyLightMotion.js.map +1 -0
- package/lib/applyLightState.d.ts +38 -0
- package/lib/applyLightState.js +57 -0
- package/lib/applyLightState.js.map +1 -0
- package/lib/applyMaskMode.d.ts +20 -0
- package/lib/applyMaskMode.js +90 -0
- package/lib/applyMaskMode.js.map +1 -0
- package/lib/applyMaterialShaderPatches.d.ts +22 -0
- package/lib/applyMaterialShaderPatches.js +24 -0
- package/lib/applyMaterialShaderPatches.js.map +1 -0
- package/lib/applyObjectMotion.d.ts +30 -0
- package/lib/applyObjectMotion.js +33 -0
- package/lib/applyObjectMotion.js.map +1 -0
- package/lib/applyObjectMotions.d.ts +14 -0
- package/lib/applyObjectMotions.js +17 -0
- package/lib/applyObjectMotions.js.map +1 -0
- package/lib/applyPose.d.ts +40 -0
- package/lib/applyPose.js +85 -0
- package/lib/applyPose.js.map +1 -0
- package/lib/applyPoseMode.d.ts +20 -0
- package/lib/applyPoseMode.js +80 -0
- package/lib/applyPoseMode.js.map +1 -0
- package/lib/applyRenderMode.d.ts +48 -0
- package/lib/applyRenderMode.js +191 -0
- package/lib/applyRenderMode.js.map +1 -0
- package/lib/applyRendererEnvironment.d.ts +25 -0
- package/lib/applyRendererEnvironment.js +107 -0
- package/lib/applyRendererEnvironment.js.map +1 -0
- package/lib/applySampledObjectMotion.d.ts +16 -0
- package/lib/applySampledObjectMotion.js +71 -0
- package/lib/applySampledObjectMotion.js.map +1 -0
- package/lib/applySceneEnvironment.d.ts +16 -0
- package/lib/applySceneEnvironment.js +47 -0
- package/lib/applySceneEnvironment.js.map +1 -0
- package/lib/applySceneFog.d.ts +34 -0
- package/lib/applySceneFog.js +42 -0
- package/lib/applySceneFog.js.map +1 -0
- package/lib/applySemanticMaskMode.d.ts +22 -0
- package/lib/applySemanticMaskMode.js +37 -0
- package/lib/applySemanticMaskMode.js.map +1 -0
- package/lib/applyTransform.d.ts +16 -0
- package/lib/applyTransform.js +19 -0
- package/lib/applyTransform.js.map +1 -0
- package/lib/assertAutoMovieSceneShadowProfile.d.ts +19 -0
- package/lib/assertAutoMovieSceneShadowProfile.js +30 -0
- package/lib/assertAutoMovieSceneShadowProfile.js.map +1 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.d.ts +18 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js +27 -0
- package/lib/assertAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/audio/IAutoMovieAudioCue.d.ts +26 -0
- package/lib/audio/IAutoMovieAudioCue.js +2 -0
- package/lib/audio/IAutoMovieAudioCue.js.map +1 -0
- package/lib/audio/index.d.ts +3 -0
- package/lib/audio/index.js +3 -0
- package/lib/audio/index.js.map +1 -0
- package/lib/audio/planAutoMovieAudioPlayback.d.ts +51 -0
- package/lib/audio/planAutoMovieAudioPlayback.js +49 -0
- package/lib/audio/planAutoMovieAudioPlayback.js.map +1 -0
- package/lib/audio/playAutoMovieAudioCues.d.ts +23 -0
- package/lib/audio/playAutoMovieAudioCues.js +58 -0
- package/lib/audio/playAutoMovieAudioCues.js.map +1 -0
- package/lib/autoMovieAnalysisRampColor.d.ts +22 -0
- package/lib/autoMovieAnalysisRampColor.js +27 -0
- package/lib/autoMovieAnalysisRampColor.js.map +1 -0
- package/lib/bakeFormationCycle.d.ts +31 -0
- package/lib/bakeFormationCycle.js +101 -0
- package/lib/bakeFormationCycle.js.map +1 -0
- package/lib/bindFormationTierCycle.d.ts +18 -0
- package/lib/bindFormationTierCycle.js +32 -0
- package/lib/bindFormationTierCycle.js.map +1 -0
- package/lib/buildAnalysisOverlayObject.d.ts +38 -0
- package/lib/buildAnalysisOverlayObject.js +97 -0
- package/lib/buildAnalysisOverlayObject.js.map +1 -0
- package/lib/buildAutoMovieConstruction.d.ts +27 -0
- package/lib/buildAutoMovieConstruction.js +74 -0
- package/lib/buildAutoMovieConstruction.js.map +1 -0
- package/lib/buildAutoMovieMaterialLibrary.d.ts +30 -0
- package/lib/buildAutoMovieMaterialLibrary.js +92 -0
- package/lib/buildAutoMovieMaterialLibrary.js.map +1 -0
- package/lib/buildFluidSprayObject.d.ts +22 -0
- package/lib/buildFluidSprayObject.js +67 -0
- package/lib/buildFluidSprayObject.js.map +1 -0
- package/lib/buildFluidSurfaceObject.d.ts +23 -0
- package/lib/buildFluidSurfaceObject.js +74 -0
- package/lib/buildFluidSurfaceObject.js.map +1 -0
- package/lib/buildGeometry.d.ts +20 -0
- package/lib/buildGeometry.js +89 -0
- package/lib/buildGeometry.js.map +1 -0
- package/lib/buildInstancedEffect.d.ts +18 -0
- package/lib/buildInstancedEffect.js +103 -0
- package/lib/buildInstancedEffect.js.map +1 -0
- package/lib/buildInstancedFormation.d.ts +23 -0
- package/lib/buildInstancedFormation.js +340 -0
- package/lib/buildInstancedFormation.js.map +1 -0
- package/lib/buildInstancedInstanceSet.d.ts +29 -0
- package/lib/buildInstancedInstanceSet.js +321 -0
- package/lib/buildInstancedInstanceSet.js.map +1 -0
- package/lib/buildLight.d.ts +31 -0
- package/lib/buildLight.js +105 -0
- package/lib/buildLight.js.map +1 -0
- package/lib/buildMaterial.d.ts +22 -0
- package/lib/buildMaterial.js +98 -0
- package/lib/buildMaterial.js.map +1 -0
- package/lib/buildModel.d.ts +63 -0
- package/lib/buildModel.js +243 -0
- package/lib/buildModel.js.map +1 -0
- package/lib/buildPlantingObject.d.ts +22 -0
- package/lib/buildPlantingObject.js +155 -0
- package/lib/buildPlantingObject.js.map +1 -0
- package/lib/buildPropArticulation.d.ts +55 -0
- package/lib/buildPropArticulation.js +130 -0
- package/lib/buildPropArticulation.js.map +1 -0
- package/lib/buildScene.d.ts +44 -0
- package/lib/buildScene.js +102 -0
- package/lib/buildScene.js.map +1 -0
- package/lib/buildSoftBodyObject.d.ts +14 -0
- package/lib/buildSoftBodyObject.js +148 -0
- package/lib/buildSoftBodyObject.js.map +1 -0
- package/lib/buildSpace.d.ts +2 -0
- package/lib/buildSpace.js +3 -0
- package/lib/buildSpace.js.map +1 -0
- package/lib/buildSpaceObject.d.ts +43 -0
- package/lib/buildSpaceObject.js +71 -0
- package/lib/buildSpaceObject.js.map +1 -0
- package/lib/cameraDepthPrecision.d.ts +3 -0
- package/lib/cameraDepthPrecision.js +3 -0
- package/lib/cameraDepthPrecision.js.map +1 -0
- package/lib/captureAutoMovieFramebufferRestore.d.ts +18 -0
- package/lib/captureAutoMovieFramebufferRestore.js +70 -0
- package/lib/captureAutoMovieFramebufferRestore.js.map +1 -0
- package/lib/captureAutoMovieMetricFrame.d.ts +27 -0
- package/lib/captureAutoMovieMetricFrame.js +93 -0
- package/lib/captureAutoMovieMetricFrame.js.map +1 -0
- package/lib/captureSize.d.ts +1 -0
- package/lib/captureSize.js +2 -0
- package/lib/captureSize.js.map +1 -0
- package/lib/captureViewerSnapshot.d.ts +16 -0
- package/lib/captureViewerSnapshot.js +22 -0
- package/lib/captureViewerSnapshot.js.map +1 -0
- package/lib/collectAutoMovieOwnedResources.d.ts +29 -0
- package/lib/collectAutoMovieOwnedResources.js +56 -0
- package/lib/collectAutoMovieOwnedResources.js.map +1 -0
- package/lib/collectAutoMovieRenderModeMeshes.d.ts +14 -0
- package/lib/collectAutoMovieRenderModeMeshes.js +21 -0
- package/lib/collectAutoMovieRenderModeMeshes.js.map +1 -0
- package/lib/constructAutoMovieOwnedResources.d.ts +24 -0
- package/lib/constructAutoMovieOwnedResources.js +35 -0
- package/lib/constructAutoMovieOwnedResources.js.map +1 -0
- package/lib/createAutoMovieClosedSphereGeometry.d.ts +25 -0
- package/lib/createAutoMovieClosedSphereGeometry.js +80 -0
- package/lib/createAutoMovieClosedSphereGeometry.js.map +1 -0
- package/lib/createAutoMovieMetricOrthographicCamera.d.ts +28 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js +61 -0
- package/lib/createAutoMovieMetricOrthographicCamera.js.map +1 -0
- package/lib/createAutoMoviePerformanceOverlay.d.ts +36 -0
- package/lib/createAutoMoviePerformanceOverlay.js +132 -0
- package/lib/createAutoMoviePerformanceOverlay.js.map +1 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.d.ts +14 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js +89 -0
- package/lib/createAutoMoviePhysicalPoseAdapter.js.map +1 -0
- package/lib/createAutoMovieResourceRetirement.d.ts +25 -0
- package/lib/createAutoMovieResourceRetirement.js +16 -0
- package/lib/createAutoMovieResourceRetirement.js.map +1 -0
- package/lib/createAutoMovieSurfaceAppearance.d.ts +30 -0
- package/lib/createAutoMovieSurfaceAppearance.js +180 -0
- package/lib/createAutoMovieSurfaceAppearance.js.map +1 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.d.ts +17 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js +49 -0
- package/lib/createAutoMovieSurfaceVertexAdapter.js.map +1 -0
- package/lib/createFormationCycleShadowMaterials.d.ts +29 -0
- package/lib/createFormationCycleShadowMaterials.js +56 -0
- package/lib/createFormationCycleShadowMaterials.js.map +1 -0
- package/lib/createFormationRepresentations.d.ts +17 -0
- package/lib/createFormationRepresentations.js +53 -0
- package/lib/createFormationRepresentations.js.map +1 -0
- package/lib/createImportedModelObject.d.ts +14 -0
- package/lib/createImportedModelObject.js +50 -0
- package/lib/createImportedModelObject.js.map +1 -0
- package/lib/createViewerCameraState.d.ts +21 -0
- package/lib/createViewerCameraState.js +213 -0
- package/lib/createViewerCameraState.js.map +1 -0
- package/lib/createViewerDisplayClock.d.ts +20 -0
- package/lib/createViewerDisplayClock.js +44 -0
- package/lib/createViewerDisplayClock.js.map +1 -0
- package/lib/createViewerDisplayPublication.d.ts +28 -0
- package/lib/createViewerDisplayPublication.js +56 -0
- package/lib/createViewerDisplayPublication.js.map +1 -0
- package/lib/createViewerDisplaySave.d.ts +33 -0
- package/lib/createViewerDisplaySave.js +150 -0
- package/lib/createViewerDisplaySave.js.map +1 -0
- package/lib/createViewerFrameControl.d.ts +36 -0
- package/lib/createViewerFrameControl.js +109 -0
- package/lib/createViewerFrameControl.js.map +1 -0
- package/lib/createViewerViewportResize.d.ts +16 -0
- package/lib/createViewerViewportResize.js +42 -0
- package/lib/createViewerViewportResize.js.map +1 -0
- package/lib/decodeAutoMovieImage.d.ts +16 -0
- package/lib/decodeAutoMovieImage.js +119 -0
- package/lib/decodeAutoMovieImage.js.map +1 -0
- package/lib/defaultMaterial.d.ts +14 -0
- package/lib/defaultMaterial.js +19 -0
- package/lib/defaultMaterial.js.map +1 -0
- package/lib/deliveryCrop.d.ts +2 -0
- package/lib/deliveryCrop.js +3 -0
- package/lib/deliveryCrop.js.map +1 -0
- package/lib/describeFormationTextureSources.d.ts +20 -0
- package/lib/describeFormationTextureSources.js +31 -0
- package/lib/describeFormationTextureSources.js.map +1 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.d.ts +5 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js +6 -0
- package/lib/detailNormalShading/DETAIL_NORMAL_TARGET.js.map +1 -0
- package/lib/detailNormalShading/applyDetailNormal.d.ts +18 -0
- package/lib/detailNormalShading/applyDetailNormal.js +24 -0
- package/lib/detailNormalShading/applyDetailNormal.js.map +1 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.d.ts +21 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js +35 -0
- package/lib/detailNormalShading/createDetailNormalShaderPatch.js.map +1 -0
- package/lib/detailNormalShading/detailNormalFragment.d.ts +14 -0
- package/lib/detailNormalShading/detailNormalFragment.js +18 -0
- package/lib/detailNormalShading/detailNormalFragment.js.map +1 -0
- package/lib/detailNormalShading/detailNormalVertex.d.ts +13 -0
- package/lib/detailNormalShading/detailNormalVertex.js +16 -0
- package/lib/detailNormalShading/detailNormalVertex.js.map +1 -0
- package/lib/detailNormalShading/index.d.ts +6 -0
- package/lib/detailNormalShading/index.js +7 -0
- package/lib/detailNormalShading/index.js.map +1 -0
- package/lib/detailNormalShading/spliceTangentNormal.d.ts +15 -0
- package/lib/detailNormalShading/spliceTangentNormal.js +25 -0
- package/lib/detailNormalShading/spliceTangentNormal.js.map +1 -0
- package/lib/disposeCrossDissolve.d.ts +15 -0
- package/lib/disposeCrossDissolve.js +22 -0
- package/lib/disposeCrossDissolve.js.map +1 -0
- package/lib/disposeFadeToBlack.d.ts +15 -0
- package/lib/disposeFadeToBlack.js +22 -0
- package/lib/disposeFadeToBlack.js.map +1 -0
- package/lib/disposeFormationRepresentations.d.ts +15 -0
- package/lib/disposeFormationRepresentations.js +37 -0
- package/lib/disposeFormationRepresentations.js.map +1 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.d.ts +16 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js +20 -0
- package/lib/dualQuaternionSkinning/applyDualQuaternionSkinning.js.map +1 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.d.ts +15 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js +21 -0
- package/lib/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.d.ts +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js +16 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningOf.js.map +1 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.d.ts +30 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js +132 -0
- package/lib/dualQuaternionSkinning/dualQuaternionSkinningVertex.js.map +1 -0
- package/lib/dualQuaternionSkinning/index.d.ts +4 -0
- package/lib/dualQuaternionSkinning/index.js +5 -0
- package/lib/dualQuaternionSkinning/index.js.map +1 -0
- package/lib/effect.d.ts +4 -0
- package/lib/effect.js +3 -0
- package/lib/effect.js.map +1 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.d.ts +29 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js +71 -0
- package/lib/evaluateAutoMovieViewerCameraDepthPrecision.js.map +1 -0
- package/lib/flattenInstancedModel.d.ts +29 -0
- package/lib/flattenInstancedModel.js +91 -0
- package/lib/flattenInstancedModel.js.map +1 -0
- package/lib/flattenInstancedObject.d.ts +18 -0
- package/lib/flattenInstancedObject.js +25 -0
- package/lib/flattenInstancedObject.js.map +1 -0
- package/lib/flattenRigidParts.d.ts +19 -0
- package/lib/flattenRigidParts.js +91 -0
- package/lib/flattenRigidParts.js.map +1 -0
- package/lib/fluidSurface.d.ts +4 -0
- package/lib/fluidSurface.js +3 -0
- package/lib/fluidSurface.js.map +1 -0
- package/lib/formation/index.d.ts +12 -0
- package/lib/formation/index.js +10 -0
- package/lib/formation/index.js.map +1 -0
- package/lib/formationCycle/index.d.ts +17 -0
- package/lib/formationCycle/index.js +18 -0
- package/lib/formationCycle/index.js.map +1 -0
- package/lib/formationCycleCadence.d.ts +32 -0
- package/lib/formationCycleCadence.js +46 -0
- package/lib/formationCycleCadence.js.map +1 -0
- package/lib/formationCycleGait.d.ts +22 -0
- package/lib/formationCycleGait.js +23 -0
- package/lib/formationCycleGait.js.map +1 -0
- package/lib/formationCycleOf.d.ts +16 -0
- package/lib/formationCycleOf.js +15 -0
- package/lib/formationCycleOf.js.map +1 -0
- package/lib/formationCyclePosition.d.ts +21 -0
- package/lib/formationCyclePosition.js +26 -0
- package/lib/formationCyclePosition.js.map +1 -0
- package/lib/formationCycleStride.d.ts +26 -0
- package/lib/formationCycleStride.js +49 -0
- package/lib/formationCycleStride.js.map +1 -0
- package/lib/formationGeometry/index.d.ts +5 -0
- package/lib/formationGeometry/index.js +6 -0
- package/lib/formationGeometry/index.js.map +1 -0
- package/lib/formationSpacingOffset.d.ts +32 -0
- package/lib/formationSpacingOffset.js +45 -0
- package/lib/formationSpacingOffset.js.map +1 -0
- package/lib/guardAutoMovieRenderModeRetirement.d.ts +18 -0
- package/lib/guardAutoMovieRenderModeRetirement.js +60 -0
- package/lib/guardAutoMovieRenderModeRetirement.js.map +1 -0
- package/lib/guardAutoMovieSceneShadowRetirement.d.ts +17 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js +35 -0
- package/lib/guardAutoMovieSceneShadowRetirement.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.d.ts +78 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanCartoon.js.map +1 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.d.ts +137 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js +2 -0
- package/lib/human-polygon/AutoMovieHumanPolygon.js.map +1 -0
- package/lib/human-polygon/applyHumanPolygonPose.d.ts +16 -0
- package/lib/human-polygon/applyHumanPolygonPose.js +46 -0
- package/lib/human-polygon/applyHumanPolygonPose.js.map +1 -0
- package/lib/human-polygon/buildHumanCartoonFace.d.ts +43 -0
- package/lib/human-polygon/buildHumanCartoonFace.js +319 -0
- package/lib/human-polygon/buildHumanCartoonFace.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygon.d.ts +38 -0
- package/lib/human-polygon/buildHumanPolygon.js +265 -0
- package/lib/human-polygon/buildHumanPolygon.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonModule.d.ts +71 -0
- package/lib/human-polygon/buildHumanPolygonModule.js +206 -0
- package/lib/human-polygon/buildHumanPolygonModule.js.map +1 -0
- package/lib/human-polygon/buildHumanPolygonParts.d.ts +21 -0
- package/lib/human-polygon/buildHumanPolygonParts.js +140 -0
- package/lib/human-polygon/buildHumanPolygonParts.js.map +1 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.d.ts +60 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js +67 -0
- package/lib/human-polygon/createAutoMovieHumanPolygonFigure.js.map +1 -0
- package/lib/human-polygon/createHumanPolygonPalette.d.ts +62 -0
- package/lib/human-polygon/createHumanPolygonPalette.js +131 -0
- package/lib/human-polygon/createHumanPolygonPalette.js.map +1 -0
- package/lib/human-polygon/humanPolygonSections.d.ts +49 -0
- package/lib/human-polygon/humanPolygonSections.js +63 -0
- package/lib/human-polygon/humanPolygonSections.js.map +1 -0
- package/lib/human-polygon/humanPolygonTopology.d.ts +62 -0
- package/lib/human-polygon/humanPolygonTopology.js +111 -0
- package/lib/human-polygon/humanPolygonTopology.js.map +1 -0
- package/lib/human-polygon/index.d.ts +5 -0
- package/lib/human-polygon/index.js +4 -0
- package/lib/human-polygon/index.js.map +1 -0
- package/lib/human-polygon/mountHumanCartoonFace.d.ts +14 -0
- package/lib/human-polygon/mountHumanCartoonFace.js +70 -0
- package/lib/human-polygon/mountHumanCartoonFace.js.map +1 -0
- package/lib/importedModel/index.d.ts +4 -0
- package/lib/importedModel/index.js +5 -0
- package/lib/importedModel/index.js.map +1 -0
- package/lib/index.d.ts +140 -0
- package/lib/index.js +141 -0
- package/lib/index.js.map +1 -0
- package/lib/instanceSet/index.d.ts +6 -0
- package/lib/instanceSet/index.js +7 -0
- package/lib/instanceSet/index.js.map +1 -0
- package/lib/instancedModelParts.d.ts +15 -0
- package/lib/instancedModelParts.js +22 -0
- package/lib/instancedModelParts.js.map +1 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.d.ts +13 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js +27 -0
- package/lib/invalidateAutoMovieSceneShadowPrograms.js.map +1 -0
- package/lib/invalidateAutoMovieSkinnedPose.d.ts +22 -0
- package/lib/invalidateAutoMovieSkinnedPose.js +31 -0
- package/lib/invalidateAutoMovieSkinnedPose.js.map +1 -0
- package/lib/mapImportedHumanoidBones.d.ts +16 -0
- package/lib/mapImportedHumanoidBones.js +57 -0
- package/lib/mapImportedHumanoidBones.js.map +1 -0
- package/lib/maskColor.d.ts +13 -0
- package/lib/maskColor.js +14 -0
- package/lib/maskColor.js.map +1 -0
- package/lib/matchesAutoMovieShadowTextureProfile.d.ts +13 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js +21 -0
- package/lib/matchesAutoMovieShadowTextureProfile.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.d.ts +29 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShading.js.map +1 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.d.ts +16 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js +2 -0
- package/lib/materialOverlayShading/IMaterialOverlayShape.js.map +1 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.d.ts +16 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js +66 -0
- package/lib/materialOverlayShading/applyMaterialOverlays.js.map +1 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.d.ts +13 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js +24 -0
- package/lib/materialOverlayShading/getOverlayFlatNormal.js.map +1 -0
- package/lib/materialOverlayShading/index.d.ts +6 -0
- package/lib/materialOverlayShading/index.js +4 -0
- package/lib/materialOverlayShading/index.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayFragment.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js +50 -0
- package/lib/materialOverlayShading/materialOverlayFragment.js.map +1 -0
- package/lib/materialOverlayShading/materialOverlayVertex.d.ts +13 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js +27 -0
- package/lib/materialOverlayShading/materialOverlayVertex.js.map +1 -0
- package/lib/materialTextureBindings.d.ts +13 -0
- package/lib/materialTextureBindings.js +26 -0
- package/lib/materialTextureBindings.js.map +1 -0
- package/lib/morphTargetDriversOf.d.ts +17 -0
- package/lib/morphTargetDriversOf.js +16 -0
- package/lib/morphTargetDriversOf.js.map +1 -0
- package/lib/motion-overlay/applyAutoMovieGhost.d.ts +25 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js +42 -0
- package/lib/motion-overlay/applyAutoMovieGhost.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.d.ts +27 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js +47 -0
- package/lib/motion-overlay/createAutoMovieDriftMarkers.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.d.ts +24 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js +51 -0
- package/lib/motion-overlay/createAutoMovieTargetMarker.js.map +1 -0
- package/lib/motion-overlay/createAutoMovieTrail.d.ts +23 -0
- package/lib/motion-overlay/createAutoMovieTrail.js +35 -0
- package/lib/motion-overlay/createAutoMovieTrail.js.map +1 -0
- package/lib/motion-overlay/index.d.ts +4 -0
- package/lib/motion-overlay/index.js +5 -0
- package/lib/motion-overlay/index.js.map +1 -0
- package/lib/mountViewer.d.ts +20 -0
- package/lib/mountViewer.js +179 -0
- package/lib/mountViewer.js.map +1 -0
- package/lib/objectTransform.d.ts +14 -0
- package/lib/objectTransform.js +28 -0
- package/lib/objectTransform.js.map +1 -0
- package/lib/observeAutoMovieRendererFrame.d.ts +21 -0
- package/lib/observeAutoMovieRendererFrame.js +40 -0
- package/lib/observeAutoMovieRendererFrame.js.map +1 -0
- package/lib/overrideAutoMovieRenderModeMaterials.d.ts +17 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js +61 -0
- package/lib/overrideAutoMovieRenderModeMaterials.js.map +1 -0
- package/lib/planAutoMovieShadowTextureTarget.d.ts +14 -0
- package/lib/planAutoMovieShadowTextureTarget.js +33 -0
- package/lib/planAutoMovieShadowTextureTarget.js.map +1 -0
- package/lib/propArticulation/index.d.ts +4 -0
- package/lib/propArticulation/index.js +5 -0
- package/lib/propArticulation/index.js.map +1 -0
- package/lib/publishViewerCompletedFrame.d.ts +18 -0
- package/lib/publishViewerCompletedFrame.js +19 -0
- package/lib/publishViewerCompletedFrame.js.map +1 -0
- package/lib/raster/AutoMovieRasterLighting.d.ts +43 -0
- package/lib/raster/AutoMovieRasterLighting.js +179 -0
- package/lib/raster/AutoMovieRasterLighting.js.map +1 -0
- package/lib/raster/AutoMovieRasterSheet.d.ts +68 -0
- package/lib/raster/AutoMovieRasterSheet.js +141 -0
- package/lib/raster/AutoMovieRasterSheet.js.map +1 -0
- package/lib/raster/AutoMovieRasterTarget.d.ts +87 -0
- package/lib/raster/AutoMovieRasterTarget.js +227 -0
- package/lib/raster/AutoMovieRasterTarget.js.map +1 -0
- package/lib/raster/IAutoMovieSceneRaster.d.ts +52 -0
- package/lib/raster/IAutoMovieSceneRaster.js +2 -0
- package/lib/raster/IAutoMovieSceneRaster.js.map +1 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.d.ts +28 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js +2 -0
- package/lib/raster/IRasterizeAutoMovieSceneProps.js.map +1 -0
- package/lib/raster/encodeAutoMovieRasterPng.d.ts +17 -0
- package/lib/raster/encodeAutoMovieRasterPng.js +71 -0
- package/lib/raster/encodeAutoMovieRasterPng.js.map +1 -0
- package/lib/raster/index.d.ts +8 -0
- package/lib/raster/index.js +9 -0
- package/lib/raster/index.js.map +1 -0
- package/lib/raster/rasterizeAutoMovieScene.d.ts +33 -0
- package/lib/raster/rasterizeAutoMovieScene.js +409 -0
- package/lib/raster/rasterizeAutoMovieScene.js.map +1 -0
- package/lib/raster/stampAutoMovieRasterLabel.d.ts +19 -0
- package/lib/raster/stampAutoMovieRasterLabel.js +88 -0
- package/lib/raster/stampAutoMovieRasterLabel.js.map +1 -0
- package/lib/readAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/readAutoMovieCubeShadowDepth.js +37 -0
- package/lib/readAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/readAutoMovieDeliveryCrop.d.ts +20 -0
- package/lib/readAutoMovieDeliveryCrop.js +36 -0
- package/lib/readAutoMovieDeliveryCrop.js.map +1 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.d.ts +13 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js +52 -0
- package/lib/readAutoMovieDisplayDestinationEncoding.js.map +1 -0
- package/lib/readAutoMovieEnvironmentColorSpace.d.ts +13 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js +18 -0
- package/lib/readAutoMovieEnvironmentColorSpace.js.map +1 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.d.ts +20 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js +29 -0
- package/lib/readAutoMovieFilmDisplayTextureResidency.js.map +1 -0
- package/lib/readAutoMovieMaterialTextureSources.d.ts +23 -0
- package/lib/readAutoMovieMaterialTextureSources.js +94 -0
- package/lib/readAutoMovieMaterialTextureSources.js.map +1 -0
- package/lib/readAutoMovieRenderTextureTarget.d.ts +14 -0
- package/lib/readAutoMovieRenderTextureTarget.js +52 -0
- package/lib/readAutoMovieRenderTextureTarget.js.map +1 -0
- package/lib/readAutoMovieShadowLightSource.d.ts +14 -0
- package/lib/readAutoMovieShadowLightSource.js +23 -0
- package/lib/readAutoMovieShadowLightSource.js.map +1 -0
- package/lib/readAutoMovieShadowTextureTargets.d.ts +16 -0
- package/lib/readAutoMovieShadowTextureTargets.js +65 -0
- package/lib/readAutoMovieShadowTextureTargets.js.map +1 -0
- package/lib/readAutoMovieTextureSource.d.ts +20 -0
- package/lib/readAutoMovieTextureSource.js +214 -0
- package/lib/readAutoMovieTextureSource.js.map +1 -0
- package/lib/readAutoMovieTextureUploadFormat.d.ts +13 -0
- package/lib/readAutoMovieTextureUploadFormat.js +43 -0
- package/lib/readAutoMovieTextureUploadFormat.js.map +1 -0
- package/lib/readAutoMovieTransmissionTextureTarget.d.ts +19 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js +42 -0
- package/lib/readAutoMovieTransmissionTextureTarget.js.map +1 -0
- package/lib/redrawViewerCompletedFrame.d.ts +28 -0
- package/lib/redrawViewerCompletedFrame.js +35 -0
- package/lib/redrawViewerCompletedFrame.js.map +1 -0
- package/lib/regenerateFormationSlot.d.ts +15 -0
- package/lib/regenerateFormationSlot.js +16 -0
- package/lib/regenerateFormationSlot.js.map +1 -0
- package/lib/regenerateInstanceSlot.d.ts +17 -0
- package/lib/regenerateInstanceSlot.js +18 -0
- package/lib/regenerateInstanceSlot.js.map +1 -0
- package/lib/releaseMountedViewer.d.ts +13 -0
- package/lib/releaseMountedViewer.js +24 -0
- package/lib/releaseMountedViewer.js.map +1 -0
- package/lib/releaseViewerRenderer.d.ts +13 -0
- package/lib/releaseViewerRenderer.js +26 -0
- package/lib/releaseViewerRenderer.js.map +1 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.d.ts +5 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js +6 -0
- package/lib/reliefWeightShading/RELIEF_WEIGHT_TARGET.js.map +1 -0
- package/lib/reliefWeightShading/applyReliefWeights.d.ts +13 -0
- package/lib/reliefWeightShading/applyReliefWeights.js +17 -0
- package/lib/reliefWeightShading/applyReliefWeights.js.map +1 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.d.ts +18 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js +21 -0
- package/lib/reliefWeightShading/createReliefWeightShaderPatch.js.map +1 -0
- package/lib/reliefWeightShading/index.d.ts +5 -0
- package/lib/reliefWeightShading/index.js +6 -0
- package/lib/reliefWeightShading/index.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightFragment.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js +24 -0
- package/lib/reliefWeightShading/reliefWeightFragment.js.map +1 -0
- package/lib/reliefWeightShading/reliefWeightVertex.d.ts +12 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js +15 -0
- package/lib/reliefWeightShading/reliefWeightVertex.js.map +1 -0
- package/lib/renderAutoMovieFilmFrame.d.ts +22 -0
- package/lib/renderAutoMovieFilmFrame.js +33 -0
- package/lib/renderAutoMovieFilmFrame.js.map +1 -0
- package/lib/renderAutoMovieScenePass.d.ts +14 -0
- package/lib/renderAutoMovieScenePass.js +103 -0
- package/lib/renderAutoMovieScenePass.js.map +1 -0
- package/lib/renderCrossDissolve.d.ts +13 -0
- package/lib/renderCrossDissolve.js +26 -0
- package/lib/renderCrossDissolve.js.map +1 -0
- package/lib/renderCrossDissolveFrames.d.ts +15 -0
- package/lib/renderCrossDissolveFrames.js +30 -0
- package/lib/renderCrossDissolveFrames.js.map +1 -0
- package/lib/renderFadeToBlackFrame.d.ts +13 -0
- package/lib/renderFadeToBlackFrame.js +28 -0
- package/lib/renderFadeToBlackFrame.js.map +1 -0
- package/lib/reportAutoMovieResourceRetirement.d.ts +14 -0
- package/lib/reportAutoMovieResourceRetirement.js +47 -0
- package/lib/reportAutoMovieResourceRetirement.js.map +1 -0
- package/lib/resetAutoMovieSceneShadowTargets.d.ts +15 -0
- package/lib/resetAutoMovieSceneShadowTargets.js +83 -0
- package/lib/resetAutoMovieSceneShadowTargets.js.map +1 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.d.ts +16 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js +31 -0
- package/lib/resolveAutoMovieFilmBeautyComposition.js.map +1 -0
- package/lib/resolveAutoMovieMaterialTexture.d.ts +17 -0
- package/lib/resolveAutoMovieMaterialTexture.js +77 -0
- package/lib/resolveAutoMovieMaterialTexture.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeOnce.d.ts +12 -0
- package/lib/restoreAutoMovieRenderModeOnce.js +31 -0
- package/lib/restoreAutoMovieRenderModeOnce.js.map +1 -0
- package/lib/restoreAutoMovieRenderModeState.d.ts +15 -0
- package/lib/restoreAutoMovieRenderModeState.js +49 -0
- package/lib/restoreAutoMovieRenderModeState.js.map +1 -0
- package/lib/retireAutoMovieCubeShadowDepth.d.ts +13 -0
- package/lib/retireAutoMovieCubeShadowDepth.js +28 -0
- package/lib/retireAutoMovieCubeShadowDepth.js.map +1 -0
- package/lib/sampleFormationCycleMatrix.d.ts +15 -0
- package/lib/sampleFormationCycleMatrix.js +27 -0
- package/lib/sampleFormationCycleMatrix.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.d.ts +19 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskBinding.js.map +1 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.d.ts +42 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js +2 -0
- package/lib/semanticMask/IAutoMovieSemanticMaskHandle.js.map +1 -0
- package/lib/semanticMask/SCENE_MASK_KEY.d.ts +6 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js +7 -0
- package/lib/semanticMask/SCENE_MASK_KEY.js.map +1 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.d.ts +34 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js +177 -0
- package/lib/semanticMask/applyAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.d.ts +16 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js +18 -0
- package/lib/semanticMask/attachAutoMovieSemanticMask.js.map +1 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.d.ts +21 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js +27 -0
- package/lib/semanticMask/auditAutoMovieSemanticMaskScene.js.map +1 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.d.ts +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js +14 -0
- package/lib/semanticMask/autoMovieSemanticMaskOf.js.map +1 -0
- package/lib/semanticMask/index.d.ts +7 -0
- package/lib/semanticMask/index.js +7 -0
- package/lib/semanticMask/index.js.map +1 -0
- package/lib/semanticMask/maskRoots.d.ts +23 -0
- package/lib/semanticMask/maskRoots.js +33 -0
- package/lib/semanticMask/maskRoots.js.map +1 -0
- package/lib/semanticMask/nearest.d.ts +14 -0
- package/lib/semanticMask/nearest.js +22 -0
- package/lib/semanticMask/nearest.js.map +1 -0
- package/lib/semanticMask/unresolvedOf.d.ts +14 -0
- package/lib/semanticMask/unresolvedOf.js +21 -0
- package/lib/semanticMask/unresolvedOf.js.map +1 -0
- package/lib/slotMatrix.d.ts +17 -0
- package/lib/slotMatrix.js +15 -0
- package/lib/slotMatrix.js.map +1 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.d.ts +9 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js +2 -0
- package/lib/subjectViewpoint/AutoMovieViewerSubjectKind.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.d.ts +25 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.d.ts +26 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectBounds.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.d.ts +20 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectLens.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.d.ts +39 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.d.ts +37 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.d.ts +55 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.d.ts +22 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerTurntableOptions.js.map +1 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.d.ts +28 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js +2 -0
- package/lib/subjectViewpoint/IAutoMovieViewerViewpoint.js.map +1 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.d.ts +14 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js +25 -0
- package/lib/subjectViewpoint/applyAutoMovieViewerSubjectPose.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.d.ts +24 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js +33 -0
- package/lib/subjectViewpoint/autoMovieViewerPoseFromHeading.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js +17 -0
- package/lib/subjectViewpoint/autoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.d.ts +14 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js +41 -0
- package/lib/subjectViewpoint/autoMovieViewerTurntableViewpoints.js.map +1 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.d.ts +14 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js +25 -0
- package/lib/subjectViewpoint/captureAutoMovieViewerSubjectView.js.map +1 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.d.ts +16 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js +57 -0
- package/lib/subjectViewpoint/frameAutoMovieViewerSubject.js.map +1 -0
- package/lib/subjectViewpoint/index.d.ts +16 -0
- package/lib/subjectViewpoint/index.js +17 -0
- package/lib/subjectViewpoint/index.js.map +1 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.d.ts +13 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js +49 -0
- package/lib/subjectViewpoint/parseAutoMovieViewerSubjectKey.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.d.ts +2 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TARGET.js.map +1 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.d.ts +5 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js +3 -0
- package/lib/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.js.map +1 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.d.ts +17 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js +34 -0
- package/lib/subsurfaceShading/applySubsurfaceShading.js.map +1 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.d.ts +13 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js +36 -0
- package/lib/subsurfaceShading/getSubsurfaceTexture.js.map +1 -0
- package/lib/subsurfaceShading/index.d.ts +6 -0
- package/lib/subsurfaceShading/index.js +7 -0
- package/lib/subsurfaceShading/index.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceFragment.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js +26 -0
- package/lib/subsurfaceShading/subsurfaceFragment.js.map +1 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js +34 -0
- package/lib/subsurfaceShading/subsurfacePhysicalChunk.js.map +1 -0
- package/lib/subsurfaceShading/subsurfaceTable.d.ts +12 -0
- package/lib/subsurfaceShading/subsurfaceTable.js +45 -0
- package/lib/subsurfaceShading/subsurfaceTable.js.map +1 -0
- package/lib/textureBindingAsset.d.ts +13 -0
- package/lib/textureBindingAsset.js +15 -0
- package/lib/textureBindingAsset.js.map +1 -0
- package/lib/transport/AutoMovieViewerTransport.d.ts +216 -0
- package/lib/transport/AutoMovieViewerTransport.js +243 -0
- package/lib/transport/AutoMovieViewerTransport.js.map +1 -0
- package/lib/transport/configureAutoMovieReviewControls.d.ts +27 -0
- package/lib/transport/configureAutoMovieReviewControls.js +35 -0
- package/lib/transport/configureAutoMovieReviewControls.js.map +1 -0
- package/lib/transport/index.d.ts +5 -0
- package/lib/transport/index.js +6 -0
- package/lib/transport/index.js.map +1 -0
- package/lib/transport/mountAutoMovieTransportControls.d.ts +64 -0
- package/lib/transport/mountAutoMovieTransportControls.js +124 -0
- package/lib/transport/mountAutoMovieTransportControls.js.map +1 -0
- package/lib/transport/parseAutoMovieInspectionView.d.ts +20 -0
- package/lib/transport/parseAutoMovieInspectionView.js +29 -0
- package/lib/transport/parseAutoMovieInspectionView.js.map +1 -0
- package/lib/transport/readAutoMovieReviewInterval.d.ts +23 -0
- package/lib/transport/readAutoMovieReviewInterval.js +39 -0
- package/lib/transport/readAutoMovieReviewInterval.js.map +1 -0
- package/lib/updateAutoMovieComparisonCamera.d.ts +27 -0
- package/lib/updateAutoMovieComparisonCamera.js +79 -0
- package/lib/updateAutoMovieComparisonCamera.js.map +1 -0
- package/lib/vector.d.ts +17 -0
- package/lib/vector.js +16 -0
- package/lib/vector.js.map +1 -0
- package/package.json +51 -3
- package/src/AUTOMOVIE_FORMATION_CYCLE_SAMPLES.ts +4 -0
- package/src/AutoMovieDisplayCompositor.ts +379 -0
- package/src/AutoMovieDissolveCompositorState.ts +9 -0
- package/src/AutoMovieEnvironmentTextureOwnership.ts +262 -0
- package/src/AutoMovieFadeCompositorState.ts +9 -0
- package/src/AutoMovieFilmBeautyComposition.ts +24 -0
- package/src/AutoMovieGeometryPhysicalVertices.ts +187 -0
- package/src/AutoMoviePlayer.ts +281 -0
- package/src/AutoMovieRenderModeMesh.ts +14 -0
- package/src/AutoMovieResourceRetirementScope.ts +203 -0
- package/src/AutoMovieSkinBlend.ts +251 -0
- package/src/AutoMovieSkinPose.ts +453 -0
- package/src/AutoMovieSkinnedMesh.ts +333 -0
- package/src/AutoMovieTextureCache.ts +389 -0
- package/src/AutoMovieTextureCacheAllocationAuthority.ts +516 -0
- package/src/DEPTH_NORMALIZATION_RANGE.ts +4 -0
- package/src/EDGE_SHELL_NAME.ts +2 -0
- package/src/EDGE_WIDTH.ts +4 -0
- package/src/IApplyAutoMovieSectionPlanesProps.ts +32 -0
- package/src/IAutoMovieAnalysisOverlayObject.ts +53 -0
- package/src/IAutoMovieBuiltPropArticulation.ts +36 -0
- package/src/IAutoMovieEffectViewerObject.ts +32 -0
- package/src/IAutoMovieEffectViewerStats.ts +21 -0
- package/src/IAutoMovieExpressionTarget.ts +22 -0
- package/src/IAutoMovieFilmBeautyLayer.ts +12 -0
- package/src/IAutoMovieFluidSprayObject.ts +54 -0
- package/src/IAutoMovieFluidSurfaceObject.ts +41 -0
- package/src/IAutoMovieFormationCadence.ts +20 -0
- package/src/IAutoMovieFormationCycle.ts +44 -0
- package/src/IAutoMovieFormationCycleTake.ts +52 -0
- package/src/IAutoMovieFormationCycleUniforms.ts +26 -0
- package/src/IAutoMovieFormationViewerObject.ts +74 -0
- package/src/IAutoMovieFormationViewerStats.ts +38 -0
- package/src/IAutoMovieImportedModelOptions.ts +51 -0
- package/src/IAutoMovieInstanceSetViewerObject.ts +47 -0
- package/src/IAutoMovieInstanceSetViewerStats.ts +20 -0
- package/src/IAutoMovieInstancedGeometry.ts +26 -0
- package/src/IAutoMovieInstancedModelRepresentation.ts +20 -0
- package/src/IAutoMovieMaterialLibrary.ts +44 -0
- package/src/IAutoMovieModelObject.ts +61 -0
- package/src/IAutoMoviePlantingObject.ts +39 -0
- package/src/IAutoMovieRenderModeHandle.ts +47 -0
- package/src/IAutoMovieRendererEnvironmentHandle.ts +22 -0
- package/src/IAutoMovieRigLocalTransform.ts +16 -0
- package/src/IAutoMovieSceneObject.ts +29 -0
- package/src/IAutoMovieSectionRenderer.ts +17 -0
- package/src/IAutoMovieShadowTextureHost.ts +19 -0
- package/src/IAutoMovieSoftBodyObject.ts +49 -0
- package/src/IAutoMovieSpringAxisSettlement.ts +21 -0
- package/src/IAutoMovieSpringConfig.ts +25 -0
- package/src/IAutoMovieTextureLoader.ts +14 -0
- package/src/IAutoMovieTextureResolver.ts +19 -0
- package/src/IAutoMovieViewerCameraDepthPrecisionReport.ts +45 -0
- package/src/IAutoMovieViewerCompletedFrame.ts +62 -0
- package/src/IAutoMovieViewerDisplayMetadata.ts +26 -0
- package/src/IAutoMovieViewerFrame.ts +26 -0
- package/src/IAutoMovieViewerHandle.ts +45 -0
- package/src/IAutoMovieViewerSnapshot.ts +21 -0
- package/src/IAutoMovieViewerSnapshotOptions.ts +15 -0
- package/src/IAutoMovieViewerSnapshotRenderer.ts +36 -0
- package/src/IBakeFormationCycleProps.ts +36 -0
- package/src/IBuildAutoMovieMaterialLibraryProps.ts +34 -0
- package/src/IBuildInstancedFormationProps.ts +45 -0
- package/src/IBuildInstancedInstanceSetProps.ts +36 -0
- package/src/IBuildPlantingObjectProps.ts +30 -0
- package/src/IBuildPropArticulationProps.ts +35 -0
- package/src/IBuildSoftBodyObjectProps.ts +24 -0
- package/src/IChunkObject.ts +42 -0
- package/src/IFormationTierRepresentation.ts +18 -0
- package/src/IMaterialShaderPatch.ts +30 -0
- package/src/IMountViewerOptions.ts +69 -0
- package/src/ISlotException.ts +31 -0
- package/src/IViewerCameraStateSnapshot.ts +60 -0
- package/src/POSE_OVERLAY_NAME.ts +2 -0
- package/src/SPACE_GROUP_NAME.ts +12 -0
- package/src/addMaterialShaderPatch.ts +42 -0
- package/src/analysisOverlay.ts +3 -0
- package/src/applyAutoMovieDeliveryCrop.ts +51 -0
- package/src/applyAutoMovieRigLocals.ts +111 -0
- package/src/applyAutoMovieSectionPlanes.ts +73 -0
- package/src/applyAutoMovieShadowParticipation.ts +69 -0
- package/src/applyCaptureCanvasSize.ts +30 -0
- package/src/applyDepthMode.ts +101 -0
- package/src/applyEdgeMode.ts +153 -0
- package/src/applyExpression.ts +203 -0
- package/src/applyFormationCycleCadence.ts +39 -0
- package/src/applyFormationCycleMaterial.ts +121 -0
- package/src/applyLightMotion.ts +58 -0
- package/src/applyLightState.ts +61 -0
- package/src/applyMaskMode.ts +130 -0
- package/src/applyMaterialShaderPatches.ts +28 -0
- package/src/applyObjectMotion.ts +44 -0
- package/src/applyObjectMotions.ts +28 -0
- package/src/applyPose.ts +127 -0
- package/src/applyPoseMode.ts +115 -0
- package/src/applyRenderMode.ts +248 -0
- package/src/applyRendererEnvironment.ts +141 -0
- package/src/applySampledObjectMotion.ts +79 -0
- package/src/applySceneEnvironment.ts +72 -0
- package/src/applySceneFog.ts +49 -0
- package/src/applySemanticMaskMode.ts +50 -0
- package/src/applyTransform.ts +24 -0
- package/src/assertAutoMovieSceneShadowProfile.ts +45 -0
- package/src/assertAutoMovieViewerCameraDepthPrecision.ts +35 -0
- package/src/audio/IAutoMovieAudioCue.ts +32 -0
- package/src/audio/index.ts +3 -0
- package/src/audio/planAutoMovieAudioPlayback.ts +87 -0
- package/src/audio/playAutoMovieAudioCues.ts +76 -0
- package/src/autoMovieAnalysisRampColor.ts +30 -0
- package/src/bakeFormationCycle.ts +221 -0
- package/src/bindFormationTierCycle.ts +62 -0
- package/src/buildAnalysisOverlayObject.ts +163 -0
- package/src/buildAutoMovieConstruction.ts +114 -0
- package/src/buildAutoMovieMaterialLibrary.ts +150 -0
- package/src/buildFluidSprayObject.ts +96 -0
- package/src/buildFluidSurfaceObject.ts +127 -0
- package/src/buildGeometry.ts +149 -0
- package/src/buildInstancedEffect.ts +152 -0
- package/src/buildInstancedFormation.ts +599 -0
- package/src/buildInstancedInstanceSet.ts +637 -0
- package/src/buildLight.ts +129 -0
- package/src/buildMaterial.ts +215 -0
- package/src/buildModel.ts +333 -0
- package/src/buildPlantingObject.ts +234 -0
- package/src/buildPropArticulation.ts +181 -0
- package/src/buildScene.ts +136 -0
- package/src/buildSoftBodyObject.ts +191 -0
- package/src/buildSpace.ts +2 -0
- package/src/buildSpaceObject.ts +100 -0
- package/src/cameraDepthPrecision.ts +3 -0
- package/src/captureAutoMovieFramebufferRestore.ts +84 -0
- package/src/captureAutoMovieMetricFrame.ts +111 -0
- package/src/captureSize.ts +1 -0
- package/src/captureViewerSnapshot.ts +37 -0
- package/src/collectAutoMovieOwnedResources.ts +73 -0
- package/src/collectAutoMovieRenderModeMeshes.ts +32 -0
- package/src/constructAutoMovieOwnedResources.ts +47 -0
- package/src/createAutoMovieClosedSphereGeometry.ts +113 -0
- package/src/createAutoMovieMetricOrthographicCamera.ts +95 -0
- package/src/createAutoMoviePerformanceOverlay.ts +239 -0
- package/src/createAutoMoviePhysicalPoseAdapter.ts +125 -0
- package/src/createAutoMovieResourceRetirement.ts +59 -0
- package/src/createAutoMovieSurfaceAppearance.ts +260 -0
- package/src/createAutoMovieSurfaceVertexAdapter.ts +66 -0
- package/src/createFormationCycleShadowMaterials.ts +111 -0
- package/src/createFormationRepresentations.ts +101 -0
- package/src/createImportedModelObject.ts +67 -0
- package/src/createViewerCameraState.ts +291 -0
- package/src/createViewerDisplayClock.ts +48 -0
- package/src/createViewerDisplayPublication.ts +59 -0
- package/src/createViewerDisplaySave.ts +224 -0
- package/src/createViewerFrameControl.ts +130 -0
- package/src/createViewerViewportResize.ts +58 -0
- package/src/decodeAutoMovieImage.ts +152 -0
- package/src/defaultMaterial.ts +21 -0
- package/src/deliveryCrop.ts +2 -0
- package/src/describeFormationTextureSources.ts +54 -0
- package/src/detailNormalShading/DETAIL_NORMAL_TARGET.ts +5 -0
- package/src/detailNormalShading/applyDetailNormal.ts +42 -0
- package/src/detailNormalShading/createDetailNormalShaderPatch.ts +71 -0
- package/src/detailNormalShading/detailNormalFragment.ts +27 -0
- package/src/detailNormalShading/detailNormalVertex.ts +24 -0
- package/src/detailNormalShading/index.ts +6 -0
- package/src/detailNormalShading/spliceTangentNormal.ts +39 -0
- package/src/disposeCrossDissolve.ts +25 -0
- package/src/disposeFadeToBlack.ts +25 -0
- package/src/disposeFormationRepresentations.ts +59 -0
- package/src/dualQuaternionSkinning/applyDualQuaternionSkinning.ts +24 -0
- package/src/dualQuaternionSkinning/createDualQuaternionSkinningShaderPatch.ts +23 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningOf.ts +19 -0
- package/src/dualQuaternionSkinning/dualQuaternionSkinningVertex.ts +146 -0
- package/src/dualQuaternionSkinning/index.ts +4 -0
- package/src/effect.ts +4 -0
- package/src/evaluateAutoMovieViewerCameraDepthPrecision.ts +114 -0
- package/src/flattenInstancedModel.ts +127 -0
- package/src/flattenInstancedObject.ts +33 -0
- package/src/flattenRigidParts.ts +174 -0
- package/src/fluidSurface.ts +4 -0
- package/src/formation/index.ts +22 -0
- package/src/formationCycle/index.ts +17 -0
- package/src/formationCycleCadence.ts +55 -0
- package/src/formationCycleGait.ts +27 -0
- package/src/formationCycleOf.ts +25 -0
- package/src/formationCyclePosition.ts +34 -0
- package/src/formationCycleStride.ts +57 -0
- package/src/formationGeometry/index.ts +5 -0
- package/src/formationSpacingOffset.ts +65 -0
- package/src/guardAutoMovieRenderModeRetirement.ts +66 -0
- package/src/guardAutoMovieSceneShadowRetirement.ts +50 -0
- package/src/human-polygon/AutoMovieHumanCartoon.ts +109 -0
- package/src/human-polygon/AutoMovieHumanPolygon.ts +160 -0
- package/src/human-polygon/applyHumanPolygonPose.ts +59 -0
- package/src/human-polygon/buildHumanCartoonFace.ts +466 -0
- package/src/human-polygon/buildHumanPolygon.ts +347 -0
- package/src/human-polygon/buildHumanPolygonModule.ts +300 -0
- package/src/human-polygon/buildHumanPolygonParts.ts +254 -0
- package/src/human-polygon/createAutoMovieHumanPolygonFigure.ts +120 -0
- package/src/human-polygon/createHumanPolygonPalette.ts +169 -0
- package/src/human-polygon/humanPolygonSections.ts +70 -0
- package/src/human-polygon/humanPolygonTopology.ts +147 -0
- package/src/human-polygon/index.ts +5 -0
- package/src/human-polygon/mountHumanCartoonFace.ts +92 -0
- package/src/importedModel/index.ts +4 -0
- package/src/index.ts +140 -0
- package/src/instanceSet/index.ts +6 -0
- package/src/instancedModelParts.ts +25 -0
- package/src/invalidateAutoMovieSceneShadowPrograms.ts +28 -0
- package/src/invalidateAutoMovieSkinnedPose.ts +31 -0
- package/src/mapImportedHumanoidBones.ts +73 -0
- package/src/maskColor.ts +17 -0
- package/src/matchesAutoMovieShadowTextureProfile.ts +34 -0
- package/src/materialOverlayShading/IMaterialOverlayShading.ts +32 -0
- package/src/materialOverlayShading/IMaterialOverlayShape.ts +18 -0
- package/src/materialOverlayShading/applyMaterialOverlays.ts +88 -0
- package/src/materialOverlayShading/getOverlayFlatNormal.ts +25 -0
- package/src/materialOverlayShading/index.ts +6 -0
- package/src/materialOverlayShading/materialOverlayFragment.ts +85 -0
- package/src/materialOverlayShading/materialOverlayVertex.ts +50 -0
- package/src/materialTextureBindings.ts +44 -0
- package/src/morphTargetDriversOf.ts +25 -0
- package/src/motion-overlay/applyAutoMovieGhost.ts +46 -0
- package/src/motion-overlay/createAutoMovieDriftMarkers.ts +59 -0
- package/src/motion-overlay/createAutoMovieTargetMarker.ts +62 -0
- package/src/motion-overlay/createAutoMovieTrail.ts +44 -0
- package/src/motion-overlay/index.ts +4 -0
- package/src/mountViewer.ts +248 -0
- package/src/objectTransform.ts +42 -0
- package/src/observeAutoMovieRendererFrame.ts +47 -0
- package/src/overrideAutoMovieRenderModeMaterials.ts +87 -0
- package/src/planAutoMovieShadowTextureTarget.ts +55 -0
- package/src/propArticulation/index.ts +4 -0
- package/src/publishViewerCompletedFrame.ts +31 -0
- package/src/raster/AutoMovieRasterLighting.ts +221 -0
- package/src/raster/AutoMovieRasterSheet.ts +175 -0
- package/src/raster/AutoMovieRasterTarget.ts +282 -0
- package/src/raster/IAutoMovieSceneRaster.ts +62 -0
- package/src/raster/IRasterizeAutoMovieSceneProps.ts +34 -0
- package/src/raster/encodeAutoMovieRasterPng.ts +77 -0
- package/src/raster/index.ts +8 -0
- package/src/raster/rasterizeAutoMovieScene.ts +594 -0
- package/src/raster/stampAutoMovieRasterLabel.ts +120 -0
- package/src/readAutoMovieCubeShadowDepth.ts +57 -0
- package/src/readAutoMovieDeliveryCrop.ts +41 -0
- package/src/readAutoMovieDisplayDestinationEncoding.ts +98 -0
- package/src/readAutoMovieEnvironmentColorSpace.ts +20 -0
- package/src/readAutoMovieFilmDisplayTextureResidency.ts +52 -0
- package/src/readAutoMovieMaterialTextureSources.ts +154 -0
- package/src/readAutoMovieRenderTextureTarget.ts +70 -0
- package/src/readAutoMovieShadowLightSource.ts +40 -0
- package/src/readAutoMovieShadowTextureTargets.ts +123 -0
- package/src/readAutoMovieTextureSource.ts +262 -0
- package/src/readAutoMovieTextureUploadFormat.ts +45 -0
- package/src/readAutoMovieTransmissionTextureTarget.ts +57 -0
- package/src/redrawViewerCompletedFrame.ts +67 -0
- package/src/regenerateFormationSlot.ts +26 -0
- package/src/regenerateInstanceSlot.ts +28 -0
- package/src/releaseMountedViewer.ts +35 -0
- package/src/releaseViewerRenderer.ts +31 -0
- package/src/reliefWeightShading/RELIEF_WEIGHT_TARGET.ts +5 -0
- package/src/reliefWeightShading/applyReliefWeights.ts +21 -0
- package/src/reliefWeightShading/createReliefWeightShaderPatch.ts +50 -0
- package/src/reliefWeightShading/index.ts +5 -0
- package/src/reliefWeightShading/reliefWeightFragment.ts +40 -0
- package/src/reliefWeightShading/reliefWeightVertex.ts +23 -0
- package/src/renderAutoMovieFilmFrame.ts +63 -0
- package/src/renderAutoMovieScenePass.ts +121 -0
- package/src/renderCrossDissolve.ts +50 -0
- package/src/renderCrossDissolveFrames.ts +41 -0
- package/src/renderFadeToBlackFrame.ts +37 -0
- package/src/reportAutoMovieResourceRetirement.ts +48 -0
- package/src/resetAutoMovieSceneShadowTargets.ts +106 -0
- package/src/resolveAutoMovieFilmBeautyComposition.ts +52 -0
- package/src/resolveAutoMovieMaterialTexture.ts +113 -0
- package/src/restoreAutoMovieRenderModeOnce.ts +30 -0
- package/src/restoreAutoMovieRenderModeState.ts +71 -0
- package/src/retireAutoMovieCubeShadowDepth.ts +33 -0
- package/src/sampleFormationCycleMatrix.ts +70 -0
- package/src/semanticMask/IAutoMovieSemanticMaskBinding.ts +24 -0
- package/src/semanticMask/IAutoMovieSemanticMaskHandle.ts +45 -0
- package/src/semanticMask/SCENE_MASK_KEY.ts +6 -0
- package/src/semanticMask/applyAutoMovieSemanticMask.ts +262 -0
- package/src/semanticMask/attachAutoMovieSemanticMask.ts +27 -0
- package/src/semanticMask/auditAutoMovieSemanticMaskScene.ts +50 -0
- package/src/semanticMask/autoMovieSemanticMaskOf.ts +24 -0
- package/src/semanticMask/index.ts +7 -0
- package/src/semanticMask/maskRoots.ts +67 -0
- package/src/semanticMask/nearest.ts +29 -0
- package/src/semanticMask/unresolvedOf.ts +34 -0
- package/src/slotMatrix.ts +38 -0
- package/src/subjectViewpoint/AutoMovieViewerSubjectKind.ts +23 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubject.ts +28 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectBounds.ts +19 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectLens.ts +21 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectPose.ts +36 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectView.ts +42 -0
- package/src/subjectViewpoint/IAutoMovieViewerSubjectViewRequest.ts +67 -0
- package/src/subjectViewpoint/IAutoMovieViewerTurntableOptions.ts +24 -0
- package/src/subjectViewpoint/IAutoMovieViewerViewpoint.ts +31 -0
- package/src/subjectViewpoint/applyAutoMovieViewerSubjectPose.ts +31 -0
- package/src/subjectViewpoint/autoMovieViewerPoseFromHeading.ts +43 -0
- package/src/subjectViewpoint/autoMovieViewerSubjectKey.ts +20 -0
- package/src/subjectViewpoint/autoMovieViewerTurntableViewpoints.ts +54 -0
- package/src/subjectViewpoint/captureAutoMovieViewerSubjectView.ts +34 -0
- package/src/subjectViewpoint/frameAutoMovieViewerSubject.ts +77 -0
- package/src/subjectViewpoint/index.ts +16 -0
- package/src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts +59 -0
- package/src/subsurfaceShading/SUBSURFACE_TARGET.ts +3 -0
- package/src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts +2 -0
- package/src/subsurfaceShading/applySubsurfaceShading.ts +38 -0
- package/src/subsurfaceShading/getSubsurfaceTexture.ts +46 -0
- package/src/subsurfaceShading/index.ts +6 -0
- package/src/subsurfaceShading/subsurfaceFragment.ts +30 -0
- package/src/subsurfaceShading/subsurfacePhysicalChunk.ts +43 -0
- package/src/subsurfaceShading/subsurfaceTable.ts +47 -0
- package/src/textureBindingAsset.ts +16 -0
- package/src/transport/AutoMovieViewerTransport.ts +356 -0
- package/src/transport/configureAutoMovieReviewControls.ts +44 -0
- package/src/transport/index.ts +5 -0
- package/src/transport/mountAutoMovieTransportControls.ts +254 -0
- package/src/transport/parseAutoMovieInspectionView.ts +35 -0
- package/src/transport/readAutoMovieReviewInterval.ts +45 -0
- package/src/updateAutoMovieComparisonCamera.ts +92 -0
- package/src/vector.ts +20 -0
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { DEPTH_NORMALIZATION_RANGE } from "./DEPTH_NORMALIZATION_RANGE.js";
|
|
3
|
+
import { EDGE_WIDTH } from "./EDGE_WIDTH.js";
|
|
4
|
+
import { applyDepthMode } from "./applyDepthMode.js";
|
|
5
|
+
import { applyEdgeMode } from "./applyEdgeMode.js";
|
|
6
|
+
import { applyMaskMode } from "./applyMaskMode.js";
|
|
7
|
+
import { applyPoseMode } from "./applyPoseMode.js";
|
|
8
|
+
import { applySemanticMaskMode } from "./applySemanticMaskMode.js";
|
|
9
|
+
import { guardAutoMovieRenderModeRetirement } from "./guardAutoMovieRenderModeRetirement.js";
|
|
10
|
+
import { overrideAutoMovieRenderModeMaterials } from "./overrideAutoMovieRenderModeMaterials.js";
|
|
11
|
+
import { restoreAutoMovieRenderModeOnce } from "./restoreAutoMovieRenderModeOnce.js";
|
|
12
|
+
import { restoreAutoMovieRenderModeState } from "./restoreAutoMovieRenderModeState.js";
|
|
13
|
+
import { autoMovieSemanticMaskOf, } from "./semanticMask/index.js";
|
|
14
|
+
/** A renderable that is NOT a mesh: a line/grid/helper, points, or a sprite. */
|
|
15
|
+
const isNonMeshRenderable = (object) => object.isLine === true ||
|
|
16
|
+
object.isPoints === true ||
|
|
17
|
+
object.isSprite === true;
|
|
18
|
+
/**
|
|
19
|
+
* Hide every currently-visible non-mesh renderable in the scene (grids and
|
|
20
|
+
* other `LineSegments`/`Line` helpers, `Points`, `Sprite`s) and return a
|
|
21
|
+
* restore that makes them visible again. A structural guide pass segments only
|
|
22
|
+
* the subject MESH geometry, so any non-mesh renderable left visible would draw
|
|
23
|
+
* its live beauty material over the pass's black background: a grid reading as
|
|
24
|
+
* "very close" in the depth pass, a non-palette color in the mask, a stray line
|
|
25
|
+
* beside the skeleton in the pose pass (#1226). Hidden BEFORE a pass builds its
|
|
26
|
+
* own overlay (the pose skeleton is itself `LineSegments`), so that overlay,
|
|
27
|
+
* added afterward, stays visible.
|
|
28
|
+
*/
|
|
29
|
+
const hideNonMeshRenderables = (scene) => {
|
|
30
|
+
const hidden = [];
|
|
31
|
+
scene.traverse((object) => {
|
|
32
|
+
if (isNonMeshRenderable(object) && object.visible) {
|
|
33
|
+
object.visible = false;
|
|
34
|
+
hidden.push(object);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return () => {
|
|
38
|
+
for (const object of hidden)
|
|
39
|
+
object.visible = true;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Apply one diffusion-guide render mode to a built scene, returning the restore
|
|
44
|
+
* handle. The override is applied at snapshot time and reversed right after, so
|
|
45
|
+
* the viewer stays a thin projection of the engine result:
|
|
46
|
+
*
|
|
47
|
+
* - `beauty`: no override (the ordinary shaded render).
|
|
48
|
+
* - `depth`: meshes use clamp(1-viewZ/range,0,1) with camera-space depth and a shared {@link DEPTH_NORMALIZATION_RANGE}, independent of near/far normalization. Camera changes can change a world point's viewZ; black is the far-range/background convention.
|
|
49
|
+
* - `mask`: the segmentation pass. A scene handed its palette by
|
|
50
|
+
* {@link attachAutoMovieSemanticMask} is painted by
|
|
51
|
+
* {@link applyAutoMovieSemanticMask}, so every colour is the one that entity's
|
|
52
|
+
* own semantic id earned and survives a rebuild in a different order. A scene
|
|
53
|
+
* handed none keeps the legacy ramp, where each top-level child gets a flat
|
|
54
|
+
* unlit colour by its index: readable as coverage and silhouette, never as
|
|
55
|
+
* identity, because inserting one node repaints everything after it.
|
|
56
|
+
* - `normal`: every mesh swapped to `MeshNormalMaterial`: the unlit
|
|
57
|
+
* surface-normal conditioning pass (#1166).
|
|
58
|
+
* - `outline`: black fills plus inverted-hull back-face shells extruded by {@link EDGE_WIDTH} in model space, leaving white contours on black. Object/instance scaling and camera projection affect world thickness and screen line weight.
|
|
59
|
+
* - `pose`: meshes hidden, and a line-segment overlay of every bone→child bone
|
|
60
|
+
* connection drawn over a black background: the skeleton pose pass.
|
|
61
|
+
*
|
|
62
|
+
* Every pass that swaps a material carries a formation's baked cycle onto the
|
|
63
|
+
* replacement, so a marching crowd marches in `depth`, `normal`, `mask` and
|
|
64
|
+
* `outline` exactly as it does in `beauty`. `pose` is the standing exception:
|
|
65
|
+
* an anonymous member has no bones in the scene for the overlay to draw, which
|
|
66
|
+
* is the same gap it had before the crowd could move at all.
|
|
67
|
+
*
|
|
68
|
+
* An unknown mode is a caller bug and throws.
|
|
69
|
+
* Active or failed scene retirement refuses every mode before setup, including
|
|
70
|
+
* beauty. Failed restoration retains its complete owner callback and cause;
|
|
71
|
+
* nested owned cleanup still runs independently beneath the active boundary.
|
|
72
|
+
*
|
|
73
|
+
* Direct embedders can override depthRange and edgeWidth. The bundled __afPass capture path uses the defaults, keeping the camera-space depth normalization consistent while preserving differences caused by camera pose. Depth beyond the default range clamps to black; changing that range requires a direct call.
|
|
74
|
+
*
|
|
75
|
+
* @evidence contracts/development/implementation.md#principled-implementation Selects the requested supported guide projection, excludes existing nonmesh beauty renderables, suspends fog/image lighting and returns a reversible handle; uses attached semantic masks when present and documented positional fallback otherwise. Depth/edge numeric options remain caller premises and anonymous instanced members have no bone graph for the pose overlay.
|
|
76
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure This boundary owns temporary scene atmosphere/helper suspension and mode dispatch; each builder owns its pass resources and the shared restore coordinator attempts independent release without hiding failure.
|
|
77
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Resolves an unknown mode before mutation and restores boundary suspensions if its builder throws; default range/width and legacy mask are explicit supported conventions, not fixture branches or substitute foreign methods. Builder-internal partial mutations are not automatically undone by boundary suspension cleanup.
|
|
78
|
+
* @evidence contracts/development/common.md#meaningful-documentation Explains all six modes, semantic/legacy mask distinction, frame-independent depth default, outline extrusion, pose population gap, caller options and the returned restoration obligation.
|
|
79
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Structural installation traverses scene helpers plus builder mesh/bone populations; the generic override allocates per mesh, legacy masks/shells share by their declared child/cycle keys, and pose/outline overlays scale with the subject graph. Healthy beauty returns a constant no-op handle.
|
|
80
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Uses the same mode builders for embedded/capture paths and builder-local equivalent materials; independent installs require separate original-state snapshots, so no scene/mode-only cached restoration is shared.
|
|
81
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Three boundary callbacks retain helper visibility, fog and environment/background snapshots; builders nest their own background transitions and own pass resources. Failed returned-handle restoration retains the complete boundary callback and cause under the scene guard. Builder throw still independently restores boundary snapshots with its primary error, while partial acquisition depends on that builder's rollback capability.
|
|
82
|
+
*/
|
|
83
|
+
export const applyRenderMode = (scene, mode, options) => {
|
|
84
|
+
guardAutoMovieRenderModeRetirement(scene);
|
|
85
|
+
if (mode === "beauty")
|
|
86
|
+
return { mode, semantic: null, restore: () => { } };
|
|
87
|
+
// Resolve (and validate) the structural pass builder BEFORE touching the
|
|
88
|
+
// scene, so an unknown mode throws without leaving anything hidden.
|
|
89
|
+
const build = (() => {
|
|
90
|
+
switch (mode) {
|
|
91
|
+
case "depth":
|
|
92
|
+
return () => applyDepthMode(scene, options?.depthRange ?? DEPTH_NORMALIZATION_RANGE);
|
|
93
|
+
case "normal":
|
|
94
|
+
return () => overrideAutoMovieRenderModeMaterials(scene, mode, () => new THREE.MeshNormalMaterial());
|
|
95
|
+
case "outline":
|
|
96
|
+
return () => applyEdgeMode(scene, options?.edgeWidth ?? EDGE_WIDTH);
|
|
97
|
+
case "mask": {
|
|
98
|
+
const semantic = autoMovieSemanticMaskOf(scene);
|
|
99
|
+
return semantic === null
|
|
100
|
+
? () => applyMaskMode(scene)
|
|
101
|
+
: () => applySemanticMaskMode(scene, semantic);
|
|
102
|
+
}
|
|
103
|
+
case "pose":
|
|
104
|
+
return () => applyPoseMode(scene);
|
|
105
|
+
default:
|
|
106
|
+
throw new Error(`unknown render mode "${String(mode)}"`);
|
|
107
|
+
}
|
|
108
|
+
})();
|
|
109
|
+
// A structural pass renders only the subject mesh geometry: hide every
|
|
110
|
+
// non-mesh renderable first (#1226), suspend the scene's atmosphere and
|
|
111
|
+
// image lighting, then build the pass (whose own overlay, if any, is added
|
|
112
|
+
// afterward and stays visible). Restore reverses these three suspensions and
|
|
113
|
+
// the pass builder's own resources and background transition.
|
|
114
|
+
const restoreRenderables = hideNonMeshRenderables(scene);
|
|
115
|
+
const restoreFog = suspendFog(scene);
|
|
116
|
+
const restoreEnvironment = suspendEnvironment(scene);
|
|
117
|
+
// A builder that throws returns no handle, so the three suspensions above
|
|
118
|
+
// would have no way back and the scene would keep drawing on black with its
|
|
119
|
+
// atmosphere off for the rest of the session. The semantic mask pass is the
|
|
120
|
+
// first builder that CAN throw (a palette whose design names more staged
|
|
121
|
+
// nodes than the scene holds refuses rather than resolving positionally
|
|
122
|
+
// against the wrong objects), and undoing them here keeps that a refusal
|
|
123
|
+
// instead of a refusal plus a broken scene.
|
|
124
|
+
let handle;
|
|
125
|
+
try {
|
|
126
|
+
handle = build();
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
restoreAutoMovieRenderModeState([restoreEnvironment, restoreFog, restoreRenderables], { error });
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
mode,
|
|
133
|
+
semantic: handle.semantic,
|
|
134
|
+
restore: restoreAutoMovieRenderModeOnce(() => {
|
|
135
|
+
guardAutoMovieRenderModeRetirement(scene, {
|
|
136
|
+
run: () => {
|
|
137
|
+
restoreAutoMovieRenderModeState([
|
|
138
|
+
handle.restore,
|
|
139
|
+
restoreEnvironment,
|
|
140
|
+
restoreFog,
|
|
141
|
+
restoreRenderables,
|
|
142
|
+
]);
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
}),
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Take the scene's fog off for the duration of a structural pass, and put it
|
|
150
|
+
* back exactly as it was.
|
|
151
|
+
*
|
|
152
|
+
* A guide pass states a geometric fact, and fog is not one: `three.js` fogs any
|
|
153
|
+
* material whose shader carries the chunks, which is every `MeshBasicMaterial`
|
|
154
|
+
* the mask and outline passes install. Left on, an atmosphere would mix the
|
|
155
|
+
* mask's flat palette color toward the fog color with distance, so a
|
|
156
|
+
* segmentation consumer would read a far node as a different node than the same
|
|
157
|
+
* node near, and the outline pass's black fill would lighten until the white
|
|
158
|
+
* contour stopped being a contour. The depth and edge passes escape only by
|
|
159
|
+
* accident, their `ShaderMaterial`s never include the fog chunks; relying on
|
|
160
|
+
* that accident is how the next pass written in `MeshBasicMaterial` inherits
|
|
161
|
+
* the bug.
|
|
162
|
+
*
|
|
163
|
+
* The beauty pass is deliberately NOT covered: that one IS the film, and it
|
|
164
|
+
* must carry the atmosphere the scene declares.
|
|
165
|
+
*/
|
|
166
|
+
const suspendFog = (scene) => {
|
|
167
|
+
const fog = scene.fog;
|
|
168
|
+
scene.fog = null;
|
|
169
|
+
return () => {
|
|
170
|
+
scene.fog = fog;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Remove image lighting and its background while a structural pass renders.
|
|
175
|
+
*
|
|
176
|
+
* Normal materials ignore the environment as a light source but would still
|
|
177
|
+
* render its background. The other structural builders currently install a
|
|
178
|
+
* black background themselves; central suspension makes that invariant belong
|
|
179
|
+
* to the pass boundary instead of to each material implementation.
|
|
180
|
+
*/
|
|
181
|
+
const suspendEnvironment = (scene) => {
|
|
182
|
+
const environment = scene.environment;
|
|
183
|
+
const background = scene.background;
|
|
184
|
+
scene.environment = null;
|
|
185
|
+
scene.background = new THREE.Color(0x000000);
|
|
186
|
+
return () => {
|
|
187
|
+
scene.environment = environment;
|
|
188
|
+
scene.background = background;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
//# sourceMappingURL=applyRenderMode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyRenderMode.js","sourceRoot":"","sources":["../src/applyRenderMode.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AutoMovieGuidePass, IAutoMovieSceneEnvironment } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
import type { IAutoMovieRendererEnvironmentHandle } from "./IAutoMovieRendererEnvironmentHandle.js";
|
|
4
|
+
/**
|
|
5
|
+
* Configure exposure, tone mapping and shadow policy for one pass. Structural
|
|
6
|
+
* passes bypass all three so their values remain geometric facts.
|
|
7
|
+
*
|
|
8
|
+
* Precedence, settled once here so no caller has to decide it: a scene that
|
|
9
|
+
* declares an `environment` owns the renderer's curve, exposure and shadow
|
|
10
|
+
* policy for its own beauty pass. `delivery` is the render spec's
|
|
11
|
+
* `toneMapping`, the value a whole sequence carries, and it applies only to a
|
|
12
|
+
* scene that declared no environment. Omitting it leaves the host renderer's
|
|
13
|
+
* own curve, exposure and shadow policy exactly as it found them: a caller that
|
|
14
|
+
* knows no delivery curve states none rather than imposing `none`, which is how
|
|
15
|
+
* a pre-environment production keeps rendering what it always rendered.
|
|
16
|
+
*
|
|
17
|
+
* @evidence contracts/development/implementation.md#principled-implementation Resolves supported shadow policy before assignment and realizes beauty scene policy before delivery fallback; structural passes select no tone mapping, unit exposure and disabled shadows. Admitted scene exposure/curve/filter are premises, while unsupported delivery curve values currently map to no tone mapping through the closed-union helper.
|
|
18
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns reversible renderer fields only; scene image/fog state and texture acquisition are separate owners, and one local prior snapshot supplies independent restore operations.
|
|
19
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Policy precedence and structural neutralization are explicit pass contracts, not host-brand exceptions; no renderer method/global is replaced, and setup/rollback failures retain both causes rather than pretending success.
|
|
20
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents scene/delivery/host precedence and structural bypass; restoration captures curve, exposure and shadow enabled/type exactly rather than restoring a presumed default.
|
|
21
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Reads/writes four fixed renderer fields and at most four independent restore operations, constant CPU/storage irrespective of scene or shadow-map dimensions; subsequent native shader/map costs belong to rendering.
|
|
22
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Captures one prior snapshot per install and successful repeated restore is a no-op; failed restore is retried on a later request, so it is not a memoized failed completion or proof of physical GPU retirement.
|
|
23
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows renderer and retains four prior scalar values in the returned closure until the handle is released; no GPU handle is acquired, all restoration fields are attempted independently and setup failure invokes restore before propagating causes.
|
|
24
|
+
*/
|
|
25
|
+
export declare const applyRendererEnvironment: (renderer: THREE.WebGLRenderer, environment: IAutoMovieSceneEnvironment | null | undefined, pass: AutoMovieGuidePass, delivery?: IAutoMovieSceneEnvironment["toneMapping"]) => IAutoMovieRendererEnvironmentHandle;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { normalizeAutoMovieShadowFilter } from "@automovie/engine";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Configure exposure, tone mapping and shadow policy for one pass. Structural
|
|
5
|
+
* passes bypass all three so their values remain geometric facts.
|
|
6
|
+
*
|
|
7
|
+
* Precedence, settled once here so no caller has to decide it: a scene that
|
|
8
|
+
* declares an `environment` owns the renderer's curve, exposure and shadow
|
|
9
|
+
* policy for its own beauty pass. `delivery` is the render spec's
|
|
10
|
+
* `toneMapping`, the value a whole sequence carries, and it applies only to a
|
|
11
|
+
* scene that declared no environment. Omitting it leaves the host renderer's
|
|
12
|
+
* own curve, exposure and shadow policy exactly as it found them: a caller that
|
|
13
|
+
* knows no delivery curve states none rather than imposing `none`, which is how
|
|
14
|
+
* a pre-environment production keeps rendering what it always rendered.
|
|
15
|
+
*
|
|
16
|
+
* @evidence contracts/development/implementation.md#principled-implementation Resolves supported shadow policy before assignment and realizes beauty scene policy before delivery fallback; structural passes select no tone mapping, unit exposure and disabled shadows. Admitted scene exposure/curve/filter are premises, while unsupported delivery curve values currently map to no tone mapping through the closed-union helper.
|
|
17
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns reversible renderer fields only; scene image/fog state and texture acquisition are separate owners, and one local prior snapshot supplies independent restore operations.
|
|
18
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Policy precedence and structural neutralization are explicit pass contracts, not host-brand exceptions; no renderer method/global is replaced, and setup/rollback failures retain both causes rather than pretending success.
|
|
19
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents scene/delivery/host precedence and structural bypass; restoration captures curve, exposure and shadow enabled/type exactly rather than restoring a presumed default.
|
|
20
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Reads/writes four fixed renderer fields and at most four independent restore operations, constant CPU/storage irrespective of scene or shadow-map dimensions; subsequent native shader/map costs belong to rendering.
|
|
21
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Captures one prior snapshot per install and successful repeated restore is a no-op; failed restore is retried on a later request, so it is not a memoized failed completion or proof of physical GPU retirement.
|
|
22
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows renderer and retains four prior scalar values in the returned closure until the handle is released; no GPU handle is acquired, all restoration fields are attempted independently and setup failure invokes restore before propagating causes.
|
|
23
|
+
*/
|
|
24
|
+
export const applyRendererEnvironment = (renderer, environment, pass, delivery) => {
|
|
25
|
+
const prior = {
|
|
26
|
+
toneMapping: renderer.toneMapping,
|
|
27
|
+
exposure: renderer.toneMappingExposure,
|
|
28
|
+
shadows: renderer.shadowMap.enabled,
|
|
29
|
+
shadowType: renderer.shadowMap.type,
|
|
30
|
+
};
|
|
31
|
+
const beauty = pass === "beauty";
|
|
32
|
+
// Resolve every potentially refusing policy before mutating renderer state.
|
|
33
|
+
const curve = beauty && environment !== null && environment !== undefined
|
|
34
|
+
? toneMapping(environment.toneMapping)
|
|
35
|
+
: undefined;
|
|
36
|
+
const filter = beauty && environment !== null && environment !== undefined
|
|
37
|
+
? shadowType(environment.shadows.type)
|
|
38
|
+
: undefined;
|
|
39
|
+
let restored = false;
|
|
40
|
+
const restore = () => {
|
|
41
|
+
if (restored)
|
|
42
|
+
return;
|
|
43
|
+
const failures = [];
|
|
44
|
+
for (const operation of [
|
|
45
|
+
() => {
|
|
46
|
+
renderer.toneMapping = prior.toneMapping;
|
|
47
|
+
},
|
|
48
|
+
() => {
|
|
49
|
+
renderer.toneMappingExposure = prior.exposure;
|
|
50
|
+
},
|
|
51
|
+
() => {
|
|
52
|
+
renderer.shadowMap.enabled = prior.shadows;
|
|
53
|
+
},
|
|
54
|
+
() => {
|
|
55
|
+
renderer.shadowMap.type = prior.shadowType;
|
|
56
|
+
},
|
|
57
|
+
]) {
|
|
58
|
+
try {
|
|
59
|
+
operation();
|
|
60
|
+
}
|
|
61
|
+
catch (error) {
|
|
62
|
+
failures.push(error);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (failures.length === 1)
|
|
66
|
+
throw failures[0];
|
|
67
|
+
if (failures.length > 1)
|
|
68
|
+
throw new AggregateError(failures, "Renderer environment restoration failed.");
|
|
69
|
+
restored = true;
|
|
70
|
+
};
|
|
71
|
+
try {
|
|
72
|
+
if (!beauty) {
|
|
73
|
+
renderer.toneMapping = THREE.NoToneMapping;
|
|
74
|
+
renderer.toneMappingExposure = 1;
|
|
75
|
+
renderer.shadowMap.enabled = false;
|
|
76
|
+
}
|
|
77
|
+
else if (environment !== null && environment !== undefined) {
|
|
78
|
+
renderer.toneMapping = curve;
|
|
79
|
+
renderer.toneMappingExposure = environment.exposure;
|
|
80
|
+
renderer.shadowMap.enabled = environment.shadows.enabled;
|
|
81
|
+
renderer.shadowMap.type = filter;
|
|
82
|
+
}
|
|
83
|
+
else if (delivery !== undefined)
|
|
84
|
+
renderer.toneMapping = toneMapping(delivery);
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
try {
|
|
88
|
+
restore();
|
|
89
|
+
}
|
|
90
|
+
catch (restorationError) {
|
|
91
|
+
throw new AggregateError([
|
|
92
|
+
error,
|
|
93
|
+
...(restorationError instanceof AggregateError &&
|
|
94
|
+
restorationError.errors.length !== 0
|
|
95
|
+
? restorationError.errors
|
|
96
|
+
: [restorationError]),
|
|
97
|
+
], "Renderer environment configuration and restoration failed.");
|
|
98
|
+
}
|
|
99
|
+
throw error;
|
|
100
|
+
}
|
|
101
|
+
return { restore };
|
|
102
|
+
};
|
|
103
|
+
const toneMapping = (curve) => curve === "acesFilmic" ? THREE.ACESFilmicToneMapping : THREE.NoToneMapping;
|
|
104
|
+
const shadowType = (type) => normalizeAutoMovieShadowFilter(type) === "pcf"
|
|
105
|
+
? THREE.PCFShadowMap
|
|
106
|
+
: THREE.VSMShadowMap;
|
|
107
|
+
//# sourceMappingURL=applyRendererEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyRendererEnvironment.js","sourceRoot":"","sources":["../src/applyRendererEnvironment.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IAutoMovieSampledChannel } from "@automovie/engine";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Write an already-authoritative sample table to borrowed Three scene objects.
|
|
5
|
+
*
|
|
6
|
+
* Transforms use engine vector/quaternion order and write parent-local fields; the caller supplies samples in that frame, with no world-to-local conversion here. Morph weights address each descendant mesh's glTF index order, stop at its influence count and preserve omitted entries. Missing objects and non-node channels are skipped. The current four-path switch does not assert exhaustiveness for future unions.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Writes engine-admitted translation/scale triples and quaternion quadruples directly into parent-local transform fields, and indexed weights to existing mesh influences; input coordinate frame, vector widths and rotation validity are caller/sampler premises, while unresolved nodes and unmatched trailing morph indices are tolerated.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the scene mutation for both clip entry points; a private morph traversal handles the one path whose target is a descendant collection instead of an Object3D transform.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses channel kind/path and the supplied resolver rather than fixture names or patched Three methods; it neither invents absent values nor repairs malformed numeric samples.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives coordinate/vector conventions, indexed morph behavior, skipped inputs, partial writes and the lack of a future-path exhaustive assertion.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits S sampled channels once; transform writes are constant cost and each weights channel visits its target subtree plus the influences actually written, with only traversal callback allocation.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Both single and sequence sampling reuse this writer; no scene lookup or morph result is memoized because objects, hierarchy and influences may change between calls.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the sample map and scene targets, owns no geometries/materials/workers and retains nothing after traversal; scene writes intentionally remain with the host.
|
|
15
|
+
*/
|
|
16
|
+
export declare const applySampledObjectMotion: (sampled: ReadonlyMap<string, IAutoMovieSampledChannel>, resolve: (node: string) => THREE.Object3D | undefined) => void;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Write an already-authoritative sample table to borrowed Three scene objects.
|
|
3
|
+
*
|
|
4
|
+
* Transforms use engine vector/quaternion order and write parent-local fields; the caller supplies samples in that frame, with no world-to-local conversion here. Morph weights address each descendant mesh's glTF index order, stop at its influence count and preserve omitted entries. Missing objects and non-node channels are skipped. The current four-path switch does not assert exhaustiveness for future unions.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Writes engine-admitted translation/scale triples and quaternion quadruples directly into parent-local transform fields, and indexed weights to existing mesh influences; input coordinate frame, vector widths and rotation validity are caller/sampler premises, while unresolved nodes and unmatched trailing morph indices are tolerated.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns the scene mutation for both clip entry points; a private morph traversal handles the one path whose target is a descendant collection instead of an Object3D transform.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses channel kind/path and the supplied resolver rather than fixture names or patched Three methods; it neither invents absent values nor repairs malformed numeric samples.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives coordinate/vector conventions, indexed morph behavior, skipped inputs, partial writes and the lack of a future-path exhaustive assertion.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Visits S sampled channels once; transform writes are constant cost and each weights channel visits its target subtree plus the influences actually written, with only traversal callback allocation.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Both single and sequence sampling reuse this writer; no scene lookup or morph result is memoized because objects, hierarchy and influences may change between calls.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the sample map and scene targets, owns no geometries/materials/workers and retains nothing after traversal; scene writes intentionally remain with the host.
|
|
13
|
+
*/
|
|
14
|
+
export const applySampledObjectMotion = (sampled, resolve) => {
|
|
15
|
+
for (const { channel, value } of sampled.values()) {
|
|
16
|
+
if (channel.kind !== "node")
|
|
17
|
+
continue;
|
|
18
|
+
const object = resolve(channel.node);
|
|
19
|
+
if (object === undefined)
|
|
20
|
+
continue;
|
|
21
|
+
switch (channel.path) {
|
|
22
|
+
case "translation":
|
|
23
|
+
object.position.set(value[0], value[1], value[2]);
|
|
24
|
+
break;
|
|
25
|
+
case "rotation":
|
|
26
|
+
object.quaternion.set(value[0], value[1], value[2], value[3]);
|
|
27
|
+
break;
|
|
28
|
+
// scale is a first-class engine channel (sampleClip validates width 3,
|
|
29
|
+
// resolveFrame composes it into node matrices). Dropping it rendered
|
|
30
|
+
// scaling props rigid while every engine consumer saw them grow (#1049)
|
|
31
|
+
case "scale":
|
|
32
|
+
object.scale.set(value[0], value[1], value[2]);
|
|
33
|
+
break;
|
|
34
|
+
case "weights":
|
|
35
|
+
applyMorphWeights(object, value);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Write a sampled `weights` vector onto every morphable mesh under `object`.
|
|
42
|
+
*
|
|
43
|
+
* The fourth node path was the last one this helper dropped in silence (#1357):
|
|
44
|
+
* the artifact gate accepts a `weights` track, `resolveFrame` interpolates it
|
|
45
|
+
* into its `weights` output, and the render left the mesh at whatever it
|
|
46
|
+
* already had, so a committed clip that morphs a prop validated clean and
|
|
47
|
+
* changed nothing on screen. Same class as `scale` before #1049.
|
|
48
|
+
*
|
|
49
|
+
* The vector is INDEXED, not named: entry `i` drives morph target `i`, the glTF
|
|
50
|
+
* order the mesh was built or imported with. That is the only convention
|
|
51
|
+
* available here, because a track addresses a node rather than a channel name,
|
|
52
|
+
* and it is deliberately different from {@link applyExpression}, which drives
|
|
53
|
+
* semantic ARKit/preset channels BY NAME on an expression sink.
|
|
54
|
+
*
|
|
55
|
+
* A mesh with no morph targets is skipped, and a vector longer than a mesh's
|
|
56
|
+
* influence array writes the entries that exist: a clip authored against one
|
|
57
|
+
* model must not throw when a host swaps in another, the same tolerance the
|
|
58
|
+
* unresolved-node case above already has.
|
|
59
|
+
*/
|
|
60
|
+
const applyMorphWeights = (object, value) => {
|
|
61
|
+
object.traverse((child) => {
|
|
62
|
+
const influences = child
|
|
63
|
+
.morphTargetInfluences;
|
|
64
|
+
if (influences === undefined)
|
|
65
|
+
return;
|
|
66
|
+
const count = Math.min(influences.length, value.length);
|
|
67
|
+
for (let i = 0; i < count; ++i)
|
|
68
|
+
influences[i] = value[i];
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=applySampledObjectMotion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applySampledObjectMotion.js","sourceRoot":"","sources":["../src/applySampledObjectMotion.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGzB,CACV,OAAsD,EACtD,OAAqD,EAC/C,EAAE;IACR,KAAK,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;QAClD,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM;YAAE,SAAS;QACtC,MAAM,MAAM,GAA+B,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,MAAM,KAAK,SAAS;YAAE,SAAS;QACnC,QAAQ,OAAO,CAAC,IAAI,EAAE,CAAC;YACrB,KAAK,aAAa;gBAChB,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;gBACrD,MAAM;YACR,KAAK,UAAU;gBACb,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;gBAClE,MAAM;YACR,uEAAuE;YACvE,qEAAqE;YACrE,wEAAwE;YACxE,KAAK,OAAO;gBACV,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,EAAE,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC;gBAClD,MAAM;YACR,KAAK,SAAS;gBACZ,iBAAiB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;gBACjC,MAAM;QACV,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,iBAAiB,GAAsD,CAC3E,MAAsB,EACtB,KAAe,EACT,EAAE;IACR,MAAM,CAAC,QAAQ,CAAC,CAAC,KAAqB,EAAQ,EAAE;QAC9C,MAAM,UAAU,GAA0B,KAAoB;aAC3D,qBAAqB,CAAC;QACzB,IAAI,UAAU,KAAK,SAAS;YAAE,OAAO;QACrC,MAAM,KAAK,GAAW,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAChE,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC;YAAE,UAAU,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;IACpE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { IAutoMovieSceneEnvironment } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Apply image lighting and background without adding scene-graph children.
|
|
5
|
+
*
|
|
6
|
+
* A declared image reaches the scene only when the host resolved it; an image the host could not decode leaves image lighting unset and uses the declared solid background, or transparency when that background is null. The resolved texture is configured here (equirectangular mapping and the color-space convention selected from its storage type), so the caller hands over a texture object this scene owns, never one a material is also writing sampling state onto. The exclusive handoff retires earlier cube/PMREM conversions once. Stable inputs keep their cache and version; legal content, sampling or generation changes retire the old conversion before a replacement tuple is accepted. Immutable capacity changes require a new Texture and decoded Source. Shared ownership and failed retirement refuse before scene state changes.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Applies admitted image lighting/background, intensity and degree-to-radian yaw through native scene fields; unsigned-byte texture storage selects the sRGB convention and other storage selects linear, relying on decoder agreement rather than proving image radiometry. The exclusive texture ownership helper validates/retire-converts before image assignment. Unresolved image uses the declared solid/null background and no image lighting.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns scene-field realization and delegates texture compatibility/conversion retirement to AutoMovieEnvironmentTextureOwnership; renderer tone/shadow policy stays with applyRendererEnvironment.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses decoded texel representation rather than guessed file extension or fixture sky; null/unresolved image behavior is explicit, and no missing image is silently replaced with a successful stock environment.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives no-child scene attachment, image handoff exclusivity, actual decoding role, stable-input conversion reuse and resolved versus solid/transparent fallback semantics.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs fixed-size scene/color/rotation assignment plus ownership helper validation/tuple comparison and any required conversion retirement; no scene-population or image-pixel scan is performed by this adapter.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Stable texture/source/content-generation/sampling tuples reuse native conversion state; changed valid tuple is retired through the ownership helper, while scene scalar changes do not manufacture new decoded image data.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Scene holds the supplied environment/background texture and the exclusive ownership registry tracks it; clearing scene fields does not retire that texture or remove its ownership record, so the host must invoke its supported release boundary. The adapter owns no worker or render loop.
|
|
15
|
+
*/
|
|
16
|
+
export declare const applySceneEnvironment: (scene: THREE.Scene, environment: IAutoMovieSceneEnvironment | null | undefined, texture?: THREE.Texture) => void;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { AutoMovieEnvironmentTextureOwnership } from "./AutoMovieEnvironmentTextureOwnership.js";
|
|
3
|
+
import { readAutoMovieEnvironmentColorSpace } from "./readAutoMovieEnvironmentColorSpace.js";
|
|
4
|
+
/**
|
|
5
|
+
* Apply image lighting and background without adding scene-graph children.
|
|
6
|
+
*
|
|
7
|
+
* A declared image reaches the scene only when the host resolved it; an image the host could not decode leaves image lighting unset and uses the declared solid background, or transparency when that background is null. The resolved texture is configured here (equirectangular mapping and the color-space convention selected from its storage type), so the caller hands over a texture object this scene owns, never one a material is also writing sampling state onto. The exclusive handoff retires earlier cube/PMREM conversions once. Stable inputs keep their cache and version; legal content, sampling or generation changes retire the old conversion before a replacement tuple is accepted. Immutable capacity changes require a new Texture and decoded Source. Shared ownership and failed retirement refuse before scene state changes.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Applies admitted image lighting/background, intensity and degree-to-radian yaw through native scene fields; unsigned-byte texture storage selects the sRGB convention and other storage selects linear, relying on decoder agreement rather than proving image radiometry. The exclusive texture ownership helper validates/retire-converts before image assignment. Unresolved image uses the declared solid/null background and no image lighting.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Owns scene-field realization and delegates texture compatibility/conversion retirement to AutoMovieEnvironmentTextureOwnership; renderer tone/shadow policy stays with applyRendererEnvironment.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses decoded texel representation rather than guessed file extension or fixture sky; null/unresolved image behavior is explicit, and no missing image is silently replaced with a successful stock environment.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation Gives no-child scene attachment, image handoff exclusivity, actual decoding role, stable-input conversion reuse and resolved versus solid/transparent fallback semantics.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Performs fixed-size scene/color/rotation assignment plus ownership helper validation/tuple comparison and any required conversion retirement; no scene-population or image-pixel scan is performed by this adapter.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Stable texture/source/content-generation/sampling tuples reuse native conversion state; changed valid tuple is retired through the ownership helper, while scene scalar changes do not manufacture new decoded image data.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Scene holds the supplied environment/background texture and the exclusive ownership registry tracks it; clearing scene fields does not retire that texture or remove its ownership record, so the host must invoke its supported release boundary. The adapter owns no worker or render loop.
|
|
16
|
+
*/
|
|
17
|
+
export const applySceneEnvironment = (scene, environment, texture) => {
|
|
18
|
+
if (environment === null || environment === undefined) {
|
|
19
|
+
scene.environment = null;
|
|
20
|
+
scene.background = null;
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (environment.image !== null && texture !== undefined) {
|
|
24
|
+
AutoMovieEnvironmentTextureOwnership.prepare(scene, texture, environmentColorSpace(texture));
|
|
25
|
+
scene.environment = texture;
|
|
26
|
+
scene.background = texture;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
scene.environment = null;
|
|
30
|
+
scene.background =
|
|
31
|
+
environment.background === null
|
|
32
|
+
? null
|
|
33
|
+
: new THREE.Color(environment.background.r, environment.background.g, environment.background.b);
|
|
34
|
+
}
|
|
35
|
+
scene.environmentIntensity = environment.intensity;
|
|
36
|
+
scene.environmentRotation.set(0, (environment.rotationDeg * Math.PI) / 180, 0);
|
|
37
|
+
scene.backgroundRotation.copy(scene.environmentRotation);
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Choose the environment color-space convention from decoded texture storage.
|
|
41
|
+
*
|
|
42
|
+
* Unsigned-byte textures are treated as sRGB; all other component types are treated as linear. The decoder must supply data consistent with that convention. Storage type alone does not establish an image's color profile, transfer function or physical radiance, and this helper inspects none of those properties. Material bindings have their own color-space role.
|
|
43
|
+
*/
|
|
44
|
+
const environmentColorSpace = (texture) => readAutoMovieEnvironmentColorSpace(texture) === "srgb"
|
|
45
|
+
? THREE.SRGBColorSpace
|
|
46
|
+
: THREE.LinearSRGBColorSpace;
|
|
47
|
+
//# sourceMappingURL=applySceneEnvironment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applySceneEnvironment.js","sourceRoot":"","sources":["../src/applySceneEnvironment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oCAAoC,EAAE,MAAM,2CAA2C,CAAC;AACjG,OAAO,EAAE,kCAAkC,EAAE,MAAM,yCAAyC,CAAC;AAE7F;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAItB,CACV,KAAkB,EAClB,WAA0D,EAC1D,OAAuB,EACjB,EAAE;IACR,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;QACtD,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;QACzB,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC;QACxB,OAAO;IACT,CAAC;IACD,IAAI,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;QACxD,oCAAoC,CAAC,OAAO,CAC1C,KAAK,EACL,OAAO,EACP,qBAAqB,CAAC,OAAO,CAAC,CAC/B,CAAC;QACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;QAC5B,KAAK,CAAC,UAAU,GAAG,OAAO,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,WAAW,GAAG,IAAI,CAAC;QACzB,KAAK,CAAC,UAAU;YACd,WAAW,CAAC,UAAU,KAAK,IAAI;gBAC7B,CAAC,CAAC,IAAI;gBACN,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CACb,WAAW,CAAC,UAAU,CAAC,CAAC,EACxB,WAAW,CAAC,UAAU,CAAC,CAAC,EACxB,WAAW,CAAC,UAAU,CAAC,CAAC,CACzB,CAAC;IACV,CAAC;IACD,KAAK,CAAC,oBAAoB,GAAG,WAAW,CAAC,SAAS,CAAC;IACnD,KAAK,CAAC,mBAAmB,CAAC,GAAG,CAC3B,CAAC,EACD,CAAC,WAAW,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,EACzC,CAAC,CACF,CAAC;IACF,KAAK,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAC;AAC3D,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,qBAAqB,GAAiD,CAC1E,OAAsB,EACJ,EAAE,CACpB,kCAAkC,CAAC,OAAO,CAAC,KAAK,MAAM;IACpD,CAAC,CAAC,KAAK,CAAC,cAAc;IACtB,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { IAutoMovieFog } from "@automovie/interface";
|
|
2
|
+
import * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Put the scene's declared atmosphere on a `three.js` scene, or clear it when
|
|
5
|
+
* nothing is declared.
|
|
6
|
+
*
|
|
7
|
+
* `FogExp2` is the exact law {@link IAutoMovieFog} documents and
|
|
8
|
+
* {@link sceneFogTransmittance} reproduces on the CPU: the shader's `1 -
|
|
9
|
+
* exp(-(density * depth)^2)` mix toward `color`. Nothing is converted on the
|
|
10
|
+
* way in. `density` is handed over verbatim, and the color is written with
|
|
11
|
+
* `setRGB` on the working (linear) color space, the same call
|
|
12
|
+
* {@link applyLightState} makes for a light, because `IAutoMovieColor` is linear
|
|
13
|
+
* by contract and a second convention here would make the fog and the key light
|
|
14
|
+
* disagree about what `0.5` means.
|
|
15
|
+
*
|
|
16
|
+
* Exported, and separate from {@link buildScene}, for the reason `buildLight`
|
|
17
|
+
* is: a host that assembles its own scene graph (a production's film page,
|
|
18
|
+
* which is what the offline renderer captures) must apply the FILM's atmosphere
|
|
19
|
+
* through this one call rather than decorating its page with fog of its own. A
|
|
20
|
+
* page that fogs itself proves nothing about the production.
|
|
21
|
+
*
|
|
22
|
+
* Absent or `null` clears `scene.fog`, which is `three.js`'s own "no fog":
|
|
23
|
+
* fog-capable materials stop receiving the fog term. That omission says nothing
|
|
24
|
+
* about other render state or byte-for-byte frame equality.
|
|
25
|
+
*
|
|
26
|
+
* @evidence contracts/development/implementation.md#principled-implementation Realizes the declared exp(-(density*viewDepth)^2) transmittance with Three FogExp2 and linear RGB, relying on finite admitted density/color and the material's native fog chunks; null/omission clears atmosphere rather than creating a default fog.
|
|
27
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scene-field adapter is shared by buildScene and hosts that assemble their own graph; portable fog law/admission stay in the engine/interface and guide suspension stays at applyRenderMode.
|
|
28
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the authored linear color/density without fixture distances, image-space compensation or replacement material/global methods.
|
|
29
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the exponential law, linear color convention, shared producer entry and null/omission meaning without claiming unrelated frame equality.
|
|
30
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Allocates one fixed-size FogExp2 value and writes three color channels, constant installation cost; native fragment fog work belongs to rendering rather than a CPU scene scan.
|
|
31
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses Three's native fog implementation and the shared adapter; changed fog can replace the scalar object cheaply, with no geometry/cache rebuild or cross-scene state sharing.
|
|
32
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Transfers one scalar/color fog object to the scene and releases its previous reference on assignment/clear; no GPU handle, observer or task is owned here.
|
|
33
|
+
*/
|
|
34
|
+
export declare const applySceneFog: (scene: THREE.Scene, fog: IAutoMovieFog | null | undefined) => void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Put the scene's declared atmosphere on a `three.js` scene, or clear it when
|
|
4
|
+
* nothing is declared.
|
|
5
|
+
*
|
|
6
|
+
* `FogExp2` is the exact law {@link IAutoMovieFog} documents and
|
|
7
|
+
* {@link sceneFogTransmittance} reproduces on the CPU: the shader's `1 -
|
|
8
|
+
* exp(-(density * depth)^2)` mix toward `color`. Nothing is converted on the
|
|
9
|
+
* way in. `density` is handed over verbatim, and the color is written with
|
|
10
|
+
* `setRGB` on the working (linear) color space, the same call
|
|
11
|
+
* {@link applyLightState} makes for a light, because `IAutoMovieColor` is linear
|
|
12
|
+
* by contract and a second convention here would make the fog and the key light
|
|
13
|
+
* disagree about what `0.5` means.
|
|
14
|
+
*
|
|
15
|
+
* Exported, and separate from {@link buildScene}, for the reason `buildLight`
|
|
16
|
+
* is: a host that assembles its own scene graph (a production's film page,
|
|
17
|
+
* which is what the offline renderer captures) must apply the FILM's atmosphere
|
|
18
|
+
* through this one call rather than decorating its page with fog of its own. A
|
|
19
|
+
* page that fogs itself proves nothing about the production.
|
|
20
|
+
*
|
|
21
|
+
* Absent or `null` clears `scene.fog`, which is `three.js`'s own "no fog":
|
|
22
|
+
* fog-capable materials stop receiving the fog term. That omission says nothing
|
|
23
|
+
* about other render state or byte-for-byte frame equality.
|
|
24
|
+
*
|
|
25
|
+
* @evidence contracts/development/implementation.md#principled-implementation Realizes the declared exp(-(density*viewDepth)^2) transmittance with Three FogExp2 and linear RGB, relying on finite admitted density/color and the material's native fog chunks; null/omission clears atmosphere rather than creating a default fog.
|
|
26
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One scene-field adapter is shared by buildScene and hosts that assemble their own graph; portable fog law/admission stay in the engine/interface and guide suspension stays at applyRenderMode.
|
|
27
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the authored linear color/density without fixture distances, image-space compensation or replacement material/global methods.
|
|
28
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the exponential law, linear color convention, shared producer entry and null/omission meaning without claiming unrelated frame equality.
|
|
29
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Allocates one fixed-size FogExp2 value and writes three color channels, constant installation cost; native fragment fog work belongs to rendering rather than a CPU scene scan.
|
|
30
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Reuses Three's native fog implementation and the shared adapter; changed fog can replace the scalar object cheaply, with no geometry/cache rebuild or cross-scene state sharing.
|
|
31
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Transfers one scalar/color fog object to the scene and releases its previous reference on assignment/clear; no GPU handle, observer or task is owned here.
|
|
32
|
+
*/
|
|
33
|
+
export const applySceneFog = (scene, fog) => {
|
|
34
|
+
if (fog === null || fog === undefined) {
|
|
35
|
+
scene.fog = null;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const built = new THREE.FogExp2(0x000000, fog.density);
|
|
39
|
+
built.color.setRGB(fog.color.r, fog.color.g, fog.color.b);
|
|
40
|
+
scene.fog = built;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=applySceneFog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applySceneFog.js","sourceRoot":"","sources":["../src/applySceneFog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,aAAa,GAGd,CACV,KAAkB,EAClB,GAAqC,EAC/B,EAAE;IACR,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACtC,KAAK,CAAC,GAAG,GAAG,IAAI,CAAC;QACjB,OAAO;IACT,CAAC;IACD,MAAM,KAAK,GAAkB,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IACtE,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC;AACpB,CAAC,CAAC"}
|