@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,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Map loaded glTF/VRM nodes onto the normalized bones a compiled proxy owns.
|
|
3
|
+
*
|
|
4
|
+
* Exact VRM names work for the whole humanoid set. Common Blender, Mixamo and Unreal names for the major body chains are normalized through the same aliases accepted by the ingest package. The first loaded node wins for each slot so separate clothing skins cannot replace the body rig accidentally.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Matches normalized requested slots before the existing importer aliases and keeps the first traversed node for each requested bone.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Name normalization and the fixed alias table remain local to imported-rig mapping, separate from proxy construction and animation retargeting.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The normalized-slot Map preserves Array.find's first requested slot and original node traversal precedence; no expected rig or consumer receives a special mapping.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies accepted VRM/Blender/Mixamo/Unreal naming, requested-slot restriction and first-node precedence without claiming observed rig appearance.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms S slot names normalize once and N node names normalize once, yielding expected O(S+N) lookups plus name bytes and O(S) maps instead of repeating normalization for each node.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Normalized requested-slot equivalence is shared within one traversal; the current loaded object tree is reread each call and no map survives across a changed rig.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only matched node references escape in the result, keeping those borrowed nodes reachable; temporary name/slot maps leave the call and no skeleton or GPU resource is acquired.
|
|
13
|
+
*/
|
|
14
|
+
export const mapImportedHumanoidBones = (object, slots) => {
|
|
15
|
+
const requested = new Set(slots);
|
|
16
|
+
const directSlots = new Map();
|
|
17
|
+
for (const slot of slots) {
|
|
18
|
+
const name = normalizeImportedBoneName(slot);
|
|
19
|
+
// Preserve Array.find's first requested slot for a normalized name.
|
|
20
|
+
if (!directSlots.has(name))
|
|
21
|
+
directSlots.set(name, slot);
|
|
22
|
+
}
|
|
23
|
+
const bones = new Map();
|
|
24
|
+
object.traverse((node) => {
|
|
25
|
+
const normalized = normalizeImportedBoneName(node.name);
|
|
26
|
+
const direct = directSlots.get(normalized);
|
|
27
|
+
const slot = direct ?? IMPORTED_HUMANOID_ALIASES[normalized];
|
|
28
|
+
if (slot !== undefined && requested.has(slot) && bones.has(slot) === false)
|
|
29
|
+
bones.set(slot, node);
|
|
30
|
+
});
|
|
31
|
+
return bones;
|
|
32
|
+
};
|
|
33
|
+
const normalizeImportedBoneName = (name) => name
|
|
34
|
+
.toLowerCase()
|
|
35
|
+
.replace(/^mixamorig:?/u, "")
|
|
36
|
+
.replace(/[\s_.:|-]/gu, "");
|
|
37
|
+
const IMPORTED_HUMANOID_ALIASES = {
|
|
38
|
+
pelvis: "hips",
|
|
39
|
+
spine01: "spine",
|
|
40
|
+
spine1: "chest",
|
|
41
|
+
spine02: "chest",
|
|
42
|
+
spine2: "upperChest",
|
|
43
|
+
spine03: "upperChest",
|
|
44
|
+
leftclavicle: "leftShoulder",
|
|
45
|
+
leftarm: "leftUpperArm",
|
|
46
|
+
leftforearm: "leftLowerArm",
|
|
47
|
+
leftupleg: "leftUpperLeg",
|
|
48
|
+
leftleg: "leftLowerLeg",
|
|
49
|
+
lefttoebase: "leftToes",
|
|
50
|
+
rightclavicle: "rightShoulder",
|
|
51
|
+
rightarm: "rightUpperArm",
|
|
52
|
+
rightforearm: "rightLowerArm",
|
|
53
|
+
rightupleg: "rightUpperLeg",
|
|
54
|
+
rightleg: "rightLowerLeg",
|
|
55
|
+
righttoebase: "rightToes",
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=mapImportedHumanoidBones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapImportedHumanoidBones.js","sourceRoot":"","sources":["../src/mapImportedHumanoidBones.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAGa,CAChD,MAAsB,EACtB,KAAuC,EACK,EAAE;IAC9C,MAAM,SAAS,GAA+B,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC7D,MAAM,WAAW,GAAuC,IAAI,GAAG,EAAE,CAAC;IAClE,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,GAAW,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACrD,oEAAoE;QACpE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;IACD,MAAM,KAAK,GAA+C,IAAI,GAAG,EAAE,CAAC;IACpE,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAoB,EAAQ,EAAE;QAC7C,MAAM,UAAU,GAAW,yBAAyB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChE,MAAM,MAAM,GACV,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;QAC9B,MAAM,IAAI,GACR,MAAM,IAAI,yBAAyB,CAAC,UAAU,CAAC,CAAC;QAClD,IAAI,IAAI,KAAK,SAAS,IAAI,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK;YACxE,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF,MAAM,yBAAyB,GAA6B,CAC1D,IAAY,EACJ,EAAE,CACV,IAAI;KACD,WAAW,EAAE;KACb,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC;KAC5B,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;AAEhC,MAAM,yBAAyB,GAE3B;IACF,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,OAAO;IACf,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;IACrB,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,cAAc;IAC3B,SAAS,EAAE,cAAc;IACzB,OAAO,EAAE,cAAc;IACvB,WAAW,EAAE,UAAU;IACvB,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,eAAe;IACzB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,eAAe;IAC3B,QAAQ,EAAE,eAAe;IACzB,YAAY,EAAE,WAAW;CAC1B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* The deterministic flat color of mask index `i`: golden-angle hue stepping, full saturation, mid lightness. Adjacent nodes land far apart on the hue wheel, and the same scene always gets the same colors.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the existing conventional golden-angle hue step with full saturation and mid lightness to deterministically distinguish traversal mask indices.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The colour helper owns index-to-colour conversion while scene traversal and semantic identity remain with mask consumers.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The 137.508-degree constant is a conventional visual palette choice, not anatomical data, and nearby hue separation does not certify unique 24-bit colour codes for unbounded indices.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation states deterministic hue stepping and palette purpose rather than interpreting the colour as a physical material measurement.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One modular hue calculation and Three colour conversion require fixed work and one Color allocation per supported index.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Equal indices compute equal colours but mutable Color instances are fresh, so one caller cannot mutate a shared palette result.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned Color is caller-owned, contains no GPU texture/program and this helper retains no palette cache.
|
|
12
|
+
*/
|
|
13
|
+
export declare const maskColor: (index: number) => THREE.Color;
|
package/lib/maskColor.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* The deterministic flat color of mask index `i`: golden-angle hue stepping, full saturation, mid lightness. Adjacent nodes land far apart on the hue wheel, and the same scene always gets the same colors.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the existing conventional golden-angle hue step with full saturation and mid lightness to deterministically distinguish traversal mask indices.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure The colour helper owns index-to-colour conversion while scene traversal and semantic identity remain with mask consumers.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The 137.508-degree constant is a conventional visual palette choice, not anatomical data, and nearby hue separation does not certify unique 24-bit colour codes for unbounded indices.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation states deterministic hue stepping and palette purpose rather than interpreting the colour as a physical material measurement.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One modular hue calculation and Three colour conversion require fixed work and one Color allocation per supported index.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Equal indices compute equal colours but mutable Color instances are fresh, so one caller cannot mutate a shared palette result.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned Color is caller-owned, contains no GPU texture/program and this helper retains no palette cache.
|
|
12
|
+
*/
|
|
13
|
+
export const maskColor = (index) => new THREE.Color().setHSL(((index * 137.508) % 360) / 360, 1, 0.5);
|
|
14
|
+
//# sourceMappingURL=maskColor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maskColor.js","sourceRoot":"","sources":["../src/maskColor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,SAAS,GAAmC,CACvD,KAAa,EACA,EAAE,CACf,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAutoMovieRenderTextureTarget } from "@automovie/engine";
|
|
2
|
+
/**
|
|
3
|
+
* Compare allocation facts while leaving scope, phase and owner labels aside. An identical retained native product already bounds the upcoming factory; a changed representation, extent or attachment requires a separate planned row. No storage is measured and no caller-owned target is changed here.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Compares the retained native target's allocation facts against an explicit planned profile, treating an omitted actual face count as one and preserving ordered format equality.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Representation comparison stays separate from light scope labels, profile planning, byte estimates and actual texture allocation.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Matching current facts do not measure physical native storage, and the supported planner supplies an explicit planned face count rather than relying on omitted planned metadata.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies allocation-only comparison, excluded owner labels and no target mutation or native measurement.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed scalar checks precede an F-format scan, giving O(F) time and no array copy or retained comparison state.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Only matching representation, extent, attachments and formats permit the retained row to cover the planned factory; equal owner text alone is ignored.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Both metadata rows are borrowed and this read creates no target, attachment, texture or ownership record.
|
|
12
|
+
*/
|
|
13
|
+
export declare const matchesAutoMovieShadowTextureProfile: (actual: IAutoMovieRenderTextureTarget, planned: IAutoMovieRenderTextureTarget) => boolean;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compare allocation facts while leaving scope, phase and owner labels aside. An identical retained native product already bounds the upcoming factory; a changed representation, extent or attachment requires a separate planned row. No storage is measured and no caller-owned target is changed here.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Compares the retained native target's allocation facts against an explicit planned profile, treating an omitted actual face count as one and preserving ordered format equality.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Representation comparison stays separate from light scope labels, profile planning, byte estimates and actual texture allocation.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Matching current facts do not measure physical native storage, and the supported planner supplies an explicit planned face count rather than relying on omitted planned metadata.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies allocation-only comparison, excluded owner labels and no target mutation or native measurement.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed scalar checks precede an F-format scan, giving O(F) time and no array copy or retained comparison state.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Only matching representation, extent, attachments and formats permit the retained row to cover the planned factory; equal owner text alone is ignored.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Both metadata rows are borrowed and this read creates no target, attachment, texture or ownership record.
|
|
11
|
+
*/
|
|
12
|
+
export const matchesAutoMovieShadowTextureProfile = (actual, planned) => actual.width === planned.width &&
|
|
13
|
+
actual.height === planned.height &&
|
|
14
|
+
(actual.faces ?? 1) === planned.faces &&
|
|
15
|
+
actual.samples === planned.samples &&
|
|
16
|
+
actual.mipmapped === planned.mipmapped &&
|
|
17
|
+
actual.depthBytesPerTexel === planned.depthBytesPerTexel &&
|
|
18
|
+
actual.depthTexture === planned.depthTexture &&
|
|
19
|
+
actual.formats.length === planned.formats.length &&
|
|
20
|
+
actual.formats.every((format, index) => format === planned.formats[index]);
|
|
21
|
+
//# sourceMappingURL=matchesAutoMovieShadowTextureProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matchesAutoMovieShadowTextureProfile.js","sourceRoot":"","sources":["../src/matchesAutoMovieShadowTextureProfile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oCAAoC,GAGlC,CACb,MAAqC,EACrC,OAAsC,EAC7B,EAAE,CACX,MAAM,CAAC,KAAK,KAAK,OAAO,CAAC,KAAK;IAC9B,MAAM,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM;IAChC,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,CAAC,KAAK,OAAO,CAAC,KAAK;IACrC,MAAM,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO;IAClC,MAAM,CAAC,SAAS,KAAK,OAAO,CAAC,SAAS;IACtC,MAAM,CAAC,kBAAkB,KAAK,OAAO,CAAC,kBAAkB;IACxD,MAAM,CAAC,YAAY,KAAK,OAAO,CAAC,YAAY;IAC5C,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,MAAM;IAChD,MAAM,CAAC,OAAO,CAAC,KAAK,CAClB,CACE,MAAwD,EACxD,KAAa,EACJ,EAAE,CAAC,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAChD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* One overlay with its images decoded.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/design.md#principled-representation Represents decoded overlay textures separately from blend, linear colour factors, optional roughness/normal and their dimensionless scales.
|
|
6
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface The interface supplies exactly material composition inputs while texture decoding/cache ownership and shader source generation retain their own owners.
|
|
7
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts Strength and scales preserve application-admitted parameters; the type itself is not runtime range validation or a physical tissue acceptance verdict.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Members document sRGB/alpha versus linear factors, multiply/replace meaning and null keeping existing roughness/normal behavior.
|
|
9
|
+
*/
|
|
10
|
+
export interface IMaterialOverlayShading {
|
|
11
|
+
/** sRGB colour, coverage in alpha. */
|
|
12
|
+
color: THREE.Texture;
|
|
13
|
+
/** Whether the colour tints the base colour or replaces it. */
|
|
14
|
+
blend: "multiply" | "replace";
|
|
15
|
+
/** Linear factors on the image's colour. */
|
|
16
|
+
colorFactor: {
|
|
17
|
+
r: number;
|
|
18
|
+
g: number;
|
|
19
|
+
b: number;
|
|
20
|
+
};
|
|
21
|
+
/** Roughness where it covers, or `null` to keep the material's. */
|
|
22
|
+
roughness: number | null;
|
|
23
|
+
/** Tangent-space normal map, or `null`. */
|
|
24
|
+
normal: THREE.Texture | null;
|
|
25
|
+
/** Factor on the normal map's slopes. */
|
|
26
|
+
normalScale: number;
|
|
27
|
+
/** Factor on the coverage and the slopes, `[0, 1]`. */
|
|
28
|
+
strength: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMaterialOverlayShading.js","sourceRoot":"","sources":["../../src/materialOverlayShading/IMaterialOverlayShading.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What decides an overlay's shader code: its blend and which of its parts it carries.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/design.md#principled-representation Projects only blend and presence of roughness/normal because those select shader structure; actual scalar values and images remain uniforms.
|
|
5
|
+
* @evidence contracts/development/design.md#minimal-and-owned-surface Three structural fields separate program-source identity from per-material shading values without duplicating the full overlay transport.
|
|
6
|
+
* @evidence contracts/development/design.md#prohibited-design-shortcuts A structural match does not mean equal appearance or permission to share mutable texture/uniform ownership.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies which optional overlay components alter generated shader code.
|
|
8
|
+
*/
|
|
9
|
+
export interface IMaterialOverlayShape {
|
|
10
|
+
/** Whether the colour tints the base colour or replaces it. */
|
|
11
|
+
blend: "multiply" | "replace";
|
|
12
|
+
/** Whether the overlay sets its own roughness. */
|
|
13
|
+
roughness: boolean;
|
|
14
|
+
/** Whether the overlay carries a normal map. */
|
|
15
|
+
normal: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMaterialOverlayShape.js","sourceRoot":"","sources":["../../src/materialOverlayShading/IMaterialOverlayShape.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import type { IMaterialOverlayShading } from "./IMaterialOverlayShading.js";
|
|
3
|
+
/**
|
|
4
|
+
* Compose overlays in order, with coverage equal to image alpha times strength. Linear colour factors modify each image before multiply tint or replacement of the base colour; optional roughness mixes by the same coverage.
|
|
5
|
+
*
|
|
6
|
+
* A tint normal's xy slopes scale by normalScale times strength and combine with the existing tangent normal by whiteout blending; this branch does not use color alpha and retains the sampled z factor even at zero strength. Replacement normals mix by alpha-times-strength coverage. A supplied normal on a material without one adds the shared conventional flat map to provide a tangent frame. These formulas do not establish measured tissue response or observed appearance.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Registers ordered color/roughness and replacement-normal coverage by alpha times strength. Multiply normals instead use strength-scaled xy and the sampled z in whiteout, ignoring alpha and potentially changing an existing normal at zero strength. Public compile hooks add the shared conventional flat normal when a tangent frame is required.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Uniform values stay material-local while structural overlay shapes select shared vertex/fragment generators and their program key.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Texture transforms and order are preserved, no SDK prototype/internal is replaced and registration assumes the existing buildMaterial precompile phase rather than patching a compiled material silently.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation describes blend/coverage/normal semantics, optional roughness and the flat-normal prerequisite without claiming an observed material appearance.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For L layers, uniform/shapes/key construction is O(L); shader expansion and actual per-pixel texture samples grow with enabled layer components.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordered blend/roughness/normal shapes identify program-source equivalence while colour/normal texture transforms and scalar uniforms remain distinct per material.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The material and its patch closure retain O(L) overlay/uniform references until material release; textures are borrowed, the flat normal is one module singleton and this helper has no layer-count cap or unregister API.
|
|
15
|
+
*/
|
|
16
|
+
export declare const applyMaterialOverlays: (material: THREE.MeshPhysicalMaterial, overlays: readonly IMaterialOverlayShading[]) => void;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { addMaterialShaderPatch } from "../addMaterialShaderPatch.js";
|
|
3
|
+
import { getOverlayFlatNormal } from "./getOverlayFlatNormal.js";
|
|
4
|
+
import { materialOverlayFragment } from "./materialOverlayFragment.js";
|
|
5
|
+
import { materialOverlayVertex } from "./materialOverlayVertex.js";
|
|
6
|
+
/**
|
|
7
|
+
* Compose overlays in order, with coverage equal to image alpha times strength. Linear colour factors modify each image before multiply tint or replacement of the base colour; optional roughness mixes by the same coverage.
|
|
8
|
+
*
|
|
9
|
+
* A tint normal's xy slopes scale by normalScale times strength and combine with the existing tangent normal by whiteout blending; this branch does not use color alpha and retains the sampled z factor even at zero strength. Replacement normals mix by alpha-times-strength coverage. A supplied normal on a material without one adds the shared conventional flat map to provide a tangent frame. These formulas do not establish measured tissue response or observed appearance.
|
|
10
|
+
*
|
|
11
|
+
* @evidence contracts/development/implementation.md#principled-implementation Registers ordered color/roughness and replacement-normal coverage by alpha times strength. Multiply normals instead use strength-scaled xy and the sampled z in whiteout, ignoring alpha and potentially changing an existing normal at zero strength. Public compile hooks add the shared conventional flat normal when a tangent frame is required.
|
|
12
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Uniform values stay material-local while structural overlay shapes select shared vertex/fragment generators and their program key.
|
|
13
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Texture transforms and order are preserved, no SDK prototype/internal is replaced and registration assumes the existing buildMaterial precompile phase rather than patching a compiled material silently.
|
|
14
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation describes blend/coverage/normal semantics, optional roughness and the flat-normal prerequisite without claiming an observed material appearance.
|
|
15
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For L layers, uniform/shapes/key construction is O(L); shader expansion and actual per-pixel texture samples grow with enabled layer components.
|
|
16
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordered blend/roughness/normal shapes identify program-source equivalence while colour/normal texture transforms and scalar uniforms remain distinct per material.
|
|
17
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The material and its patch closure retain O(L) overlay/uniform references until material release; textures are borrowed, the flat normal is one module singleton and this helper has no layer-count cap or unregister API.
|
|
18
|
+
*/
|
|
19
|
+
export const applyMaterialOverlays = (material, overlays) => {
|
|
20
|
+
if (overlays.length === 0)
|
|
21
|
+
return;
|
|
22
|
+
if (material.normalMap === null &&
|
|
23
|
+
overlays.some((o) => o.normal !== null)) {
|
|
24
|
+
material.normalMap = getOverlayFlatNormal();
|
|
25
|
+
material.userData.autoMovieOverlayFlatNormal = material.normalMap;
|
|
26
|
+
}
|
|
27
|
+
const uniforms = {};
|
|
28
|
+
overlays.forEach((overlay, i) => {
|
|
29
|
+
overlay.color.updateMatrix();
|
|
30
|
+
uniforms[`overlayColorMap${i}`] = { value: overlay.color };
|
|
31
|
+
uniforms[`overlayColorTransform${i}`] = {
|
|
32
|
+
value: overlay.color.matrix.clone(),
|
|
33
|
+
};
|
|
34
|
+
uniforms[`overlayStrength${i}`] = { value: overlay.strength };
|
|
35
|
+
uniforms[`overlayColorFactor${i}`] = {
|
|
36
|
+
value: new THREE.Vector3(overlay.colorFactor.r, overlay.colorFactor.g, overlay.colorFactor.b),
|
|
37
|
+
};
|
|
38
|
+
if (overlay.roughness !== null)
|
|
39
|
+
uniforms[`overlayRoughness${i}`] = { value: overlay.roughness };
|
|
40
|
+
if (overlay.normal !== null) {
|
|
41
|
+
overlay.normal.updateMatrix();
|
|
42
|
+
uniforms[`overlayNormalMap${i}`] = { value: overlay.normal };
|
|
43
|
+
uniforms[`overlayNormalTransform${i}`] = {
|
|
44
|
+
value: overlay.normal.matrix.clone(),
|
|
45
|
+
};
|
|
46
|
+
uniforms[`overlayNormalScale${i}`] = { value: overlay.normalScale };
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
material.userData.overlays = overlays;
|
|
50
|
+
const shapes = overlays.map((overlay) => ({
|
|
51
|
+
blend: overlay.blend,
|
|
52
|
+
roughness: overlay.roughness !== null,
|
|
53
|
+
normal: overlay.normal !== null,
|
|
54
|
+
}));
|
|
55
|
+
addMaterialShaderPatch(material, {
|
|
56
|
+
key: `automovie-overlays-${shapes
|
|
57
|
+
.map((shape) => `${shape.blend[0]}${shape.roughness ? "r" : ""}${shape.normal ? "n" : ""}`)
|
|
58
|
+
.join(".")}`,
|
|
59
|
+
apply: (shader) => {
|
|
60
|
+
Object.assign(shader.uniforms, uniforms);
|
|
61
|
+
shader.vertexShader = materialOverlayVertex(shader.vertexShader, shapes);
|
|
62
|
+
shader.fragmentShader = materialOverlayFragment(shader.fragmentShader, shapes);
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=applyMaterialOverlays.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applyMaterialOverlays.js","sourceRoot":"","sources":["../../src/materialOverlayShading/applyMaterialOverlays.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAGtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAGtB,CACV,QAAoC,EACpC,QAA4C,EACtC,EAAE;IACR,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAClC,IACE,QAAQ,CAAC,SAAS,KAAK,IAAI;QAC3B,QAAQ,CAAC,IAAI,CAAC,CAAC,CAA0B,EAAW,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,IAAI,CAAC,EACzE,CAAC;QACD,QAAQ,CAAC,SAAS,GAAG,oBAAoB,EAAE,CAAC;QAC5C,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,GAAG,QAAQ,CAAC,SAAS,CAAC;IACpE,CAAC;IACD,MAAM,QAAQ,GAAmC,EAAE,CAAC;IACpD,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAgC,EAAE,CAAS,EAAQ,EAAE;QACrE,OAAO,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;QAC7B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC3D,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC,GAAG;YACtC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE;SACpC,CAAC;QACF,QAAQ,CAAC,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC;QAC9D,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG;YACnC,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CACtB,OAAO,CAAC,WAAW,CAAC,CAAC,EACrB,OAAO,CAAC,WAAW,CAAC,CAAC,EACrB,OAAO,CAAC,WAAW,CAAC,CAAC,CACtB;SACF,CAAC;QACF,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI;YAC5B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;QAClE,IAAI,OAAO,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;YAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;YAC9B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,MAAM,EAAE,CAAC;YAC7D,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC,GAAG;gBACvC,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;aACrC,CAAC;YACF,QAAQ,CAAC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;QACtE,CAAC;IACH,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACtC,MAAM,MAAM,GAA4B,QAAQ,CAAC,GAAG,CAClD,CAAC,OAAgC,EAAyB,EAAE,CAAC,CAAC;QAC5D,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,SAAS,EAAE,OAAO,CAAC,SAAS,KAAK,IAAI;QACrC,MAAM,EAAE,OAAO,CAAC,MAAM,KAAK,IAAI;KAChC,CAAC,CACH,CAAC;IACF,sBAAsB,CAAC,QAAQ,EAAE;QAC/B,GAAG,EAAE,sBAAsB,MAAM;aAC9B,GAAG,CACF,CAAC,KAA4B,EAAU,EAAE,CACvC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAC7E;aACA,IAAI,CAAC,GAAG,CAAC,EAAE;QACd,KAAK,EAAE,CAAC,MAAgD,EAAQ,EAAE;YAChE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YACzC,MAAM,CAAC,YAAY,GAAG,qBAAqB,CAAC,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;YACzE,MAAM,CAAC,cAAc,GAAG,uBAAuB,CAC7C,MAAM,CAAC,cAAc,EACrB,MAAM,CACP,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Cache one flat normal texel so normal overlays have a tangent frame to bend.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Creates one linear 1x1 RGBA normal texture using the conventional nearest eight-bit neutral coordinates and registers it as a material wrapper before returning it.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One module singleton supplies the tangent-frame prerequisite to overlay materials without per-material identical texel construction.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The 128/128/255 bytes are a conventional quantized normal, not a measurement or exactly representable zero tangent slope; no scene-specific fallback is selected.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies nominal neutral texel, shared material use and module versus renderer disposal ownership.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms First acquisition allocates four texel bytes and one wrapper; subsequent calls are fixed-time lookup, while each renderer owns its native upload.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All overlay users share the same fixed immutable texel wrapper; they must not mutate it as if it were a private normal map.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The module strongly retains exactly one DataTexture until module/application lifetime ends, with no explicit reset API; material/native renderer disposal belongs to borrowers and ownership registration is weak metadata rather than cleanup.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getOverlayFlatNormal: () => THREE.DataTexture;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { AutoMovieEnvironmentTextureOwnership } from "../AutoMovieEnvironmentTextureOwnership.js";
|
|
3
|
+
let flat = null;
|
|
4
|
+
/**
|
|
5
|
+
* Cache one flat normal texel so normal overlays have a tangent frame to bend.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Creates one linear 1x1 RGBA normal texture using the conventional nearest eight-bit neutral coordinates and registers it as a material wrapper before returning it.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One module singleton supplies the tangent-frame prerequisite to overlay materials without per-material identical texel construction.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The 128/128/255 bytes are a conventional quantized normal, not a measurement or exactly representable zero tangent slope; no scene-specific fallback is selected.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies nominal neutral texel, shared material use and module versus renderer disposal ownership.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms First acquisition allocates four texel bytes and one wrapper; subsequent calls are fixed-time lookup, while each renderer owns its native upload.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All overlay users share the same fixed immutable texel wrapper; they must not mutate it as if it were a private normal map.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The module strongly retains exactly one DataTexture until module/application lifetime ends, with no explicit reset API; material/native renderer disposal belongs to borrowers and ownership registration is weak metadata rather than cleanup.
|
|
14
|
+
*/
|
|
15
|
+
export const getOverlayFlatNormal = () => {
|
|
16
|
+
if (flat !== null)
|
|
17
|
+
return flat;
|
|
18
|
+
flat = new THREE.DataTexture(new Uint8Array([128, 128, 255, 255]), 1, 1);
|
|
19
|
+
flat.colorSpace = THREE.NoColorSpace;
|
|
20
|
+
flat.needsUpdate = true;
|
|
21
|
+
AutoMovieEnvironmentTextureOwnership.material(flat);
|
|
22
|
+
return flat;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=getOverlayFlatNormal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOverlayFlatNormal.js","sourceRoot":"","sources":["../../src/materialOverlayShading/getOverlayFlatNormal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAElG,IAAI,IAAI,GAA6B,IAAI,CAAC;AAC1C;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAC/B,GAAsB,EAAE;IACtB,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC/B,IAAI,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,UAAU,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACzE,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC,YAAY,CAAC;IACrC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IACxB,oCAAoC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Overlay shader code and actual runtime material owners. */
|
|
2
|
+
export type { IMaterialOverlayShading } from "./IMaterialOverlayShading.js";
|
|
3
|
+
export type { IMaterialOverlayShape } from "./IMaterialOverlayShape.js";
|
|
4
|
+
export { applyMaterialOverlays } from "./applyMaterialOverlays.js";
|
|
5
|
+
export { materialOverlayVertex } from "./materialOverlayVertex.js";
|
|
6
|
+
export { materialOverlayFragment } from "./materialOverlayFragment.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/materialOverlayShading/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMaterialOverlayShape } from "./IMaterialOverlayShape.js";
|
|
2
|
+
/**
|
|
3
|
+
* The fragment shader compositing each overlay's colour, roughness and slopes.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Expands ordered layer uniforms and color/roughness alpha-times-strength coverage at the installed Three shader markers, delegating tangent-normal insertion to the shared splice owner. Replacement normal uses coverage; multiply normal scales xy by strength without alpha and retains sampled z, so zero strength is not a guaranteed identity over an existing tilted normal.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One fragment-source generator consumes structural shapes while actual images, transforms and scalar values remain material uniforms.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Existing blend/coverage/whiteout expressions are unchanged; supported shader markers and tangent-normal representation are premises, and generated strings alone do not prove compiled or observed shading.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies colour, optional roughness and normal composition, required SDK markers and source-versus-appearance limits.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For L layers and S shader bytes, source arrays/joins grow with enabled components and a fixed set of replacements/splices scans shader text; ordered full expansion is necessary for every enabled layer.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Equal ordered shapes generate equivalent fragment structure and the material patch key permits native program reuse; image/scalar uniforms are not baked into a shared source cache here.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary declarations/statements and the returned shader string contain no program or texture handle; compilation and native shader lifetime belong to Three/material ownership.
|
|
12
|
+
*/
|
|
13
|
+
export declare const materialOverlayFragment: (fragmentShader: string, shapes: readonly IMaterialOverlayShape[]) => string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { spliceTangentNormal } from "../detailNormalShading/index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The fragment shader compositing each overlay's colour, roughness and slopes.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Expands ordered layer uniforms and color/roughness alpha-times-strength coverage at the installed Three shader markers, delegating tangent-normal insertion to the shared splice owner. Replacement normal uses coverage; multiply normal scales xy by strength without alpha and retains sampled z, so zero strength is not a guaranteed identity over an existing tilted normal.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One fragment-source generator consumes structural shapes while actual images, transforms and scalar values remain material uniforms.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Existing blend/coverage/whiteout expressions are unchanged; supported shader markers and tangent-normal representation are premises, and generated strings alone do not prove compiled or observed shading.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies colour, optional roughness and normal composition, required SDK markers and source-versus-appearance limits.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For L layers and S shader bytes, source arrays/joins grow with enabled components and a fixed set of replacements/splices scans shader text; ordered full expansion is necessary for every enabled layer.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Equal ordered shapes generate equivalent fragment structure and the material patch key permits native program reuse; image/scalar uniforms are not baked into a shared source cache here.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary declarations/statements and the returned shader string contain no program or texture handle; compilation and native shader lifetime belong to Three/material ownership.
|
|
12
|
+
*/
|
|
13
|
+
export const materialOverlayFragment = (fragmentShader, shapes) => {
|
|
14
|
+
const declarations = [];
|
|
15
|
+
const colours = [];
|
|
16
|
+
const roughnesses = [];
|
|
17
|
+
const normals = [];
|
|
18
|
+
shapes.forEach((shape, i) => {
|
|
19
|
+
declarations.push(`uniform sampler2D overlayColorMap${i};`, `uniform float overlayStrength${i};`, `uniform vec3 overlayColorFactor${i};`, `varying vec2 vOverlayColorUv${i};`);
|
|
20
|
+
colours.push(`vec4 overlayColor${i} = texture2D( overlayColorMap${i}, vOverlayColorUv${i} );`, `overlayColor${i}.rgb *= overlayColorFactor${i};`, `float overlayCover${i} = overlayColor${i}.a * overlayStrength${i};`, shape.blend === "multiply"
|
|
21
|
+
? `diffuseColor.rgb = mix( diffuseColor.rgb, diffuseColor.rgb * overlayColor${i}.rgb, overlayCover${i} );`
|
|
22
|
+
: `diffuseColor.rgb = mix( diffuseColor.rgb, overlayColor${i}.rgb, overlayCover${i} );`);
|
|
23
|
+
if (shape.roughness) {
|
|
24
|
+
declarations.push(`uniform float overlayRoughness${i};`);
|
|
25
|
+
roughnesses.push(`roughnessFactor = mix( roughnessFactor, overlayRoughness${i}, overlayCover${i} );`);
|
|
26
|
+
}
|
|
27
|
+
if (shape.normal) {
|
|
28
|
+
declarations.push(`uniform sampler2D overlayNormalMap${i};`, `uniform float overlayNormalScale${i};`, `varying vec2 vOverlayNormalUv${i};`);
|
|
29
|
+
normals.push(`vec3 overlayN${i} = texture2D( overlayNormalMap${i}, vOverlayNormalUv${i} ).xyz * 2.0 - 1.0;`, ...(shape.blend === "multiply"
|
|
30
|
+
? [
|
|
31
|
+
`overlayN${i}.xy *= overlayNormalScale${i} * overlayStrength${i};`,
|
|
32
|
+
`mapN = normalize( vec3( mapN.xy + overlayN${i}.xy, mapN.z * overlayN${i}.z ) );`,
|
|
33
|
+
]
|
|
34
|
+
: [
|
|
35
|
+
// another tissue: its own surface replaces the material's
|
|
36
|
+
`overlayN${i}.xy *= overlayNormalScale${i};`,
|
|
37
|
+
`mapN = normalize( mix( mapN, normalize( overlayN${i} ), overlayCover${i} ) );`,
|
|
38
|
+
]));
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
let shader = fragmentShader
|
|
42
|
+
.replace("#include <common>", ["#include <common>", ...declarations].join("\n"))
|
|
43
|
+
.replace("#include <color_fragment>", ["#include <color_fragment>", ...colours].join("\n\t"));
|
|
44
|
+
if (roughnesses.length > 0)
|
|
45
|
+
shader = shader.replace("#include <roughnessmap_fragment>", ["#include <roughnessmap_fragment>", ...roughnesses].join("\n\t"));
|
|
46
|
+
if (normals.length > 0)
|
|
47
|
+
shader = spliceTangentNormal(shader, normals.join("\n\t"));
|
|
48
|
+
return shader;
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=materialOverlayFragment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materialOverlayFragment.js","sourceRoot":"","sources":["../../src/materialOverlayShading/materialOverlayFragment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAGtB,CACZ,cAAsB,EACtB,MAAwC,EAChC,EAAE;IACV,MAAM,YAAY,GAAa,EAAE,CAAC;IAClC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,MAAM,CAAC,OAAO,CAAC,CAAC,KAA4B,EAAE,CAAS,EAAQ,EAAE;QAC/D,YAAY,CAAC,IAAI,CACf,oCAAoC,CAAC,GAAG,EACxC,gCAAgC,CAAC,GAAG,EACpC,kCAAkC,CAAC,GAAG,EACtC,+BAA+B,CAAC,GAAG,CACpC,CAAC;QACF,OAAO,CAAC,IAAI,CACV,oBAAoB,CAAC,gCAAgC,CAAC,oBAAoB,CAAC,KAAK,EAChF,eAAe,CAAC,6BAA6B,CAAC,GAAG,EACjD,qBAAqB,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,GAAG,EACpE,KAAK,CAAC,KAAK,KAAK,UAAU;YACxB,CAAC,CAAC,4EAA4E,CAAC,qBAAqB,CAAC,KAAK;YAC1G,CAAC,CAAC,yDAAyD,CAAC,qBAAqB,CAAC,KAAK,CAC1F,CAAC;QACF,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACpB,YAAY,CAAC,IAAI,CAAC,iCAAiC,CAAC,GAAG,CAAC,CAAC;YACzD,WAAW,CAAC,IAAI,CACd,2DAA2D,CAAC,iBAAiB,CAAC,KAAK,CACpF,CAAC;QACJ,CAAC;QACD,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,YAAY,CAAC,IAAI,CACf,qCAAqC,CAAC,GAAG,EACzC,mCAAmC,CAAC,GAAG,EACvC,gCAAgC,CAAC,GAAG,CACrC,CAAC;YACF,OAAO,CAAC,IAAI,CACV,gBAAgB,CAAC,iCAAiC,CAAC,qBAAqB,CAAC,qBAAqB,EAC9F,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,UAAU;gBAC5B,CAAC,CAAC;oBACE,WAAW,CAAC,4BAA4B,CAAC,qBAAqB,CAAC,GAAG;oBAClE,6CAA6C,CAAC,yBAAyB,CAAC,SAAS;iBAClF;gBACH,CAAC,CAAC;oBACE,0DAA0D;oBAC1D,WAAW,CAAC,4BAA4B,CAAC,GAAG;oBAC5C,mDAAmD,CAAC,mBAAmB,CAAC,OAAO;iBAChF,CAAC,CACP,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IACH,IAAI,MAAM,GAAW,cAAc;SAChC,OAAO,CACN,mBAAmB,EACnB,CAAC,mBAAmB,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAClD;SACA,OAAO,CACN,2BAA2B,EAC3B,CAAC,2BAA2B,EAAE,GAAG,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CACvD,CAAC;IACJ,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC;QACxB,MAAM,GAAG,MAAM,CAAC,OAAO,CACrB,kCAAkC,EAClC,CAAC,kCAAkC,EAAE,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAClE,CAAC;IACJ,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC;QACpB,MAAM,GAAG,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IMaterialOverlayShape } from "./IMaterialOverlayShape.js";
|
|
2
|
+
/**
|
|
3
|
+
* The vertex shader passing each overlay image's transformed UV.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Adds one transformed colour UV per layer and optional transformed normal UV at the installed Three common/uv markers.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Vertex varying generation is separate from fragment composition and actual texture matrix uniforms, retaining the original source around supported markers.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The original uv coordinate and layer ordering remain unchanged; missing SDK markers are not detected as a successful native shader build by this string helper.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation names transformed per-image UVs, marker premises and lack of an independent compile/render verdict.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Layer statement construction is O(L) plus a fixed number of S-byte replacements, with generated string storage proportional to input source and enabled layer fields.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordered structural shapes govern program-source equivalence while actual texture transforms remain per-material uniforms; this function maintains no mutable source cache.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary source arrays and the returned string are retained by their consumer; the function acquires no geometry, attribute buffer or shader program.
|
|
12
|
+
*/
|
|
13
|
+
export declare const materialOverlayVertex: (vertexShader: string, shapes: readonly IMaterialOverlayShape[]) => string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The vertex shader passing each overlay image's transformed UV.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Adds one transformed colour UV per layer and optional transformed normal UV at the installed Three common/uv markers.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Vertex varying generation is separate from fragment composition and actual texture matrix uniforms, retaining the original source around supported markers.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The original uv coordinate and layer ordering remain unchanged; missing SDK markers are not detected as a successful native shader build by this string helper.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation names transformed per-image UVs, marker premises and lack of an independent compile/render verdict.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Layer statement construction is O(L) plus a fixed number of S-byte replacements, with generated string storage proportional to input source and enabled layer fields.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Ordered structural shapes govern program-source equivalence while actual texture transforms remain per-material uniforms; this function maintains no mutable source cache.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary source arrays and the returned string are retained by their consumer; the function acquires no geometry, attribute buffer or shader program.
|
|
11
|
+
*/
|
|
12
|
+
export const materialOverlayVertex = (vertexShader, shapes) => {
|
|
13
|
+
const declarations = [];
|
|
14
|
+
const assignments = [];
|
|
15
|
+
shapes.forEach((shape, i) => {
|
|
16
|
+
declarations.push(`uniform mat3 overlayColorTransform${i};`, `varying vec2 vOverlayColorUv${i};`);
|
|
17
|
+
assignments.push(`vOverlayColorUv${i} = ( overlayColorTransform${i} * vec3( uv, 1.0 ) ).xy;`);
|
|
18
|
+
if (shape.normal) {
|
|
19
|
+
declarations.push(`uniform mat3 overlayNormalTransform${i};`, `varying vec2 vOverlayNormalUv${i};`);
|
|
20
|
+
assignments.push(`vOverlayNormalUv${i} = ( overlayNormalTransform${i} * vec3( uv, 1.0 ) ).xy;`);
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return vertexShader
|
|
24
|
+
.replace("#include <common>", ["#include <common>", ...declarations].join("\n"))
|
|
25
|
+
.replace("#include <uv_vertex>", ["#include <uv_vertex>", ...assignments].join("\n\t"));
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=materialOverlayVertex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materialOverlayVertex.js","sourceRoot":"","sources":["../../src/materialOverlayShading/materialOverlayVertex.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAGpB,CACZ,YAAoB,EACpB,MAAwC,EAChC,EAAE;IACV,MAAM,YAAY,GAAa,EAAE,CAAC;IAClC,MAAM,WAAW,GAAa,EAAE,CAAC;IACjC,MAAM,CAAC,OAAO,CAAC,CAAC,KAA4B,EAAE,CAAS,EAAQ,EAAE;QAC/D,YAAY,CAAC,IAAI,CACf,qCAAqC,CAAC,GAAG,EACzC,+BAA+B,CAAC,GAAG,CACpC,CAAC;QACF,WAAW,CAAC,IAAI,CACd,kBAAkB,CAAC,6BAA6B,CAAC,0BAA0B,CAC5E,CAAC;QACF,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YACjB,YAAY,CAAC,IAAI,CACf,sCAAsC,CAAC,GAAG,EAC1C,gCAAgC,CAAC,GAAG,CACrC,CAAC;YACF,WAAW,CAAC,IAAI,CACd,mBAAmB,CAAC,8BAA8B,CAAC,0BAA0B,CAC9E,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,YAAY;SAChB,OAAO,CACN,mBAAmB,EACnB,CAAC,mBAAmB,EAAE,GAAG,YAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAClD;SACA,OAAO,CACN,sBAAsB,EACtB,CAAC,sBAAsB,EAAE,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CACtD,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AutoMovieTextureBinding, IAutoMovieMaterial } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Every texture binding one material declares, in slot order, then the thickness and anisotropy maps, then each overlay's colour and normal map, nulls dropped.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Projects existing material slots, the thickness and anisotropy maps, then ordered overlay colour/normal bindings and drops only null/undefined absent bindings.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One enumeration serves texture admission/loading without duplicating full material building or changing sampler/colour-space references.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate actual bindings preserve their positions and are not silently merged by asset text; a binding list does not certify texture bytes or decoded appearance.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies ordinary slot order, overlay order and absence filtering.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Eight ordinary slots plus two slots per L overlays are scanned once, costing O(L) time and result references without decoding images.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Loading/cache owners decide equivalent assets and variants; this pure ordered projection does not reuse or coalesce texture effects itself.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned binding references borrow the material document and retain no decoded image or GPU wrapper; loaders/cache owners acquire and retire those resources.
|
|
12
|
+
*/
|
|
13
|
+
export declare const materialTextureBindings: (material: IAutoMovieMaterial) => AutoMovieTextureBinding[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every texture binding one material declares, in slot order, then the thickness and anisotropy maps, then each overlay's colour and normal map, nulls dropped.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Projects existing material slots, the thickness and anisotropy maps, then ordered overlay colour/normal bindings and drops only null/undefined absent bindings.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One enumeration serves texture admission/loading without duplicating full material building or changing sampler/colour-space references.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Duplicate actual bindings preserve their positions and are not silently merged by asset text; a binding list does not certify texture bytes or decoded appearance.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documentation identifies ordinary slot order, overlay order and absence filtering.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Eight ordinary slots plus two slots per L overlays are scanned once, costing O(L) time and result references without decoding images.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Loading/cache owners decide equivalent assets and variants; this pure ordered projection does not reuse or coalesce texture effects itself.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned binding references borrow the material document and retain no decoded image or GPU wrapper; loaders/cache owners acquire and retire those resources.
|
|
11
|
+
*/
|
|
12
|
+
export const materialTextureBindings = (material) => [
|
|
13
|
+
material.baseColorTexture,
|
|
14
|
+
material.metallicRoughnessTexture,
|
|
15
|
+
material.normalTexture,
|
|
16
|
+
material.detailNormalTexture,
|
|
17
|
+
material.occlusionTexture,
|
|
18
|
+
material.emissiveTexture,
|
|
19
|
+
material.thicknessTexture,
|
|
20
|
+
material.anisotropy?.texture,
|
|
21
|
+
...(material.overlays ?? []).flatMap((overlay) => [
|
|
22
|
+
overlay.baseColorTexture,
|
|
23
|
+
overlay.normalTexture,
|
|
24
|
+
]),
|
|
25
|
+
].filter((value) => value !== null && value !== undefined);
|
|
26
|
+
//# sourceMappingURL=materialTextureBindings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"materialTextureBindings.js","sourceRoot":"","sources":["../src/materialTextureBindings.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAEH,CAC/B,QAA4B,EACD,EAAE,CAC7B;IACE,QAAQ,CAAC,gBAAgB;IACzB,QAAQ,CAAC,wBAAwB;IACjC,QAAQ,CAAC,aAAa;IACtB,QAAQ,CAAC,mBAAmB;IAC5B,QAAQ,CAAC,gBAAgB;IACzB,QAAQ,CAAC,eAAe;IACxB,QAAQ,CAAC,gBAAgB;IACzB,QAAQ,CAAC,UAAU,EAAE,OAAO;IAC5B,GAAG,CAAC,QAAQ,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,OAAO,CAClC,CACE,OAA4D,EACZ,EAAE,CAAC;QACnD,OAAO,CAAC,gBAAgB;QACxB,OAAO,CAAC,aAAa;KACtB,CACF;CACF,CAAC,MAAM,CACN,CACE,KAAiD,EACf,EAAE,CACpC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CACxC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IAutoMovieMeshMorphTarget } from "@automovie/interface";
|
|
2
|
+
import type * as THREE from "three";
|
|
3
|
+
/**
|
|
4
|
+
* Read the names and drivers of the pose-driven morph targets `buildModel`
|
|
5
|
+
* recorded on a mesh, or null when it has none. The record is an internal typed handoff from the builder to
|
|
6
|
+
* `applyPose`; arbitrary foreign userData values are not admitted by this
|
|
7
|
+
* lookup.
|
|
8
|
+
*
|
|
9
|
+
* @evidence contracts/development/implementation.md#principled-implementation Reads the exact automovieMorphTargetDrivers array buildModel installs, holding the name and driver of each driven target without its delta buffers, and maps absence to null; a foreign malformed value is not runtime-validated by the cast.
|
|
10
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One metadata lookup lets applyPose find driven targets on the built mesh itself, the same pattern formationCycleOf uses, without widening the built-model handle.
|
|
11
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the builder's structural key and actual target records, with no mesh-name matching or synthesized driver.
|
|
12
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the writer, the reader, the null meaning and the trusted-handoff premise.
|
|
13
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One property read in constant time with no allocation.
|
|
14
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns the builder's array by reference rather than copying it per pose.
|
|
15
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the mesh and array and retains neither; the mesh's owner releases both with the mesh.
|
|
16
|
+
*/
|
|
17
|
+
export declare const morphTargetDriversOf: (object: THREE.Object3D) => readonly Pick<IAutoMovieMeshMorphTarget, "name" | "driver">[] | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the names and drivers of the pose-driven morph targets `buildModel`
|
|
3
|
+
* recorded on a mesh, or null when it has none. The record is an internal typed handoff from the builder to
|
|
4
|
+
* `applyPose`; arbitrary foreign userData values are not admitted by this
|
|
5
|
+
* lookup.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Reads the exact automovieMorphTargetDrivers array buildModel installs, holding the name and driver of each driven target without its delta buffers, and maps absence to null; a foreign malformed value is not runtime-validated by the cast.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One metadata lookup lets applyPose find driven targets on the built mesh itself, the same pattern formationCycleOf uses, without widening the built-model handle.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the builder's structural key and actual target records, with no mesh-name matching or synthesized driver.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation States the writer, the reader, the null meaning and the trusted-handoff premise.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One property read in constant time with no allocation.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns the builder's array by reference rather than copying it per pose.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows the mesh and array and retains neither; the mesh's owner releases both with the mesh.
|
|
14
|
+
*/
|
|
15
|
+
export const morphTargetDriversOf = (object) => object.userData.automovieMorphTargetDrivers ?? null;
|
|
16
|
+
//# sourceMappingURL=morphTargetDriversOf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"morphTargetDriversOf.js","sourceRoot":"","sources":["../src/morphTargetDriversOf.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAE2C,CAC1E,MAAsB,EACgD,EAAE,CACvE,MAAM,CAAC,QAAQ,CAAC,2BAEH,IAAI,IAAI,CAAC"}
|