@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
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Frame a finite ordered world-space box using its half-diagonal sphere, floored at 0.5 metres, and the narrower perspective field. Factor at least one is needed for the angular full-sphere fit; the near-clip floor can still crop its near edge with very wide lenses. Valid finite angles/lens/bounds and arithmetic range remain caller premises.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Sphere-fit distance r/sin(min half-fov) handles portrait/wide lenses, conventional radius flooring handles vertex-free boxes and radius-scaled clips avoid a fixed world depth range; scalar comparisons reject ordinary lens range violations only.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure framing owner converts bounds/direction/lens to a pose; it does not inspect geometry or promise fitted pixels for arbitrary camera state.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The 0.5-metre floor and clip margins are explicit inspection conventions, not hidden measured geometry; incomplete nonfinite/order/multiplier validation and overflow limits remain visible.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents sphere-fit rule, metre floor, finite input premises and scale invariance only above the floor.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed box arithmetic and trigonometry allocate one center/span/position/pose; deriving current bounds and rendering remain upstream/downstream costs.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each call uses its current bounds, direction and lens without caching; returned lens reference is borrowed and later mutation changes metadata.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Owns only small returned value records and retains no scene or native handle; the caller owns subsequent camera and image resources.
|
|
12
|
+
*/
|
|
13
|
+
export function frameAutoMovieViewerSubject(bounds, viewpoint, lens) {
|
|
14
|
+
if (lens.fovDeg <= 0 || lens.fovDeg >= 180)
|
|
15
|
+
throw new RangeError(`inspection lens field of view must be within (0, 180) degrees, not ${lens.fovDeg}`);
|
|
16
|
+
if (lens.aspect <= 0)
|
|
17
|
+
throw new RangeError(`inspection lens aspect must be positive, not ${lens.aspect}`);
|
|
18
|
+
const center = {
|
|
19
|
+
x: (bounds.min.x + bounds.max.x) / 2,
|
|
20
|
+
y: (bounds.min.y + bounds.max.y) / 2,
|
|
21
|
+
z: (bounds.min.z + bounds.max.z) / 2,
|
|
22
|
+
};
|
|
23
|
+
const span = {
|
|
24
|
+
x: bounds.max.x - bounds.min.x,
|
|
25
|
+
y: bounds.max.y - bounds.min.y,
|
|
26
|
+
z: bounds.max.z - bounds.min.z,
|
|
27
|
+
};
|
|
28
|
+
const radius = Math.max(Math.hypot(span.x, span.y, span.z) / 2, DEGENERATE_RADIUS);
|
|
29
|
+
const verticalHalf = THREE.MathUtils.degToRad(lens.fovDeg) / 2;
|
|
30
|
+
// The horizontal field follows the aspect; fit the narrower field so the other field cannot crop the bounding sphere.
|
|
31
|
+
const horizontalHalf = Math.atan(Math.tan(verticalHalf) * lens.aspect);
|
|
32
|
+
const distance = (radius / Math.sin(Math.min(verticalHalf, horizontalHalf))) *
|
|
33
|
+
viewpoint.distanceFactor;
|
|
34
|
+
const azimuth = THREE.MathUtils.degToRad(viewpoint.azimuthDeg);
|
|
35
|
+
const elevation = THREE.MathUtils.degToRad(viewpoint.elevationDeg);
|
|
36
|
+
const horizontal = Math.cos(elevation);
|
|
37
|
+
return {
|
|
38
|
+
position: {
|
|
39
|
+
x: center.x + Math.sin(azimuth) * horizontal * distance,
|
|
40
|
+
y: center.y + Math.sin(elevation) * distance,
|
|
41
|
+
z: center.z + Math.cos(azimuth) * horizontal * distance,
|
|
42
|
+
},
|
|
43
|
+
target: center,
|
|
44
|
+
lens,
|
|
45
|
+
// Half the gap to the subject's near side, floored off zero so a distance factor of exactly one still has a positive near plane.
|
|
46
|
+
near: Math.max((distance - radius) / 2, radius / 1000),
|
|
47
|
+
// Four radii past the subject's far side retain the requested neighborhood beyond the bounding sphere.
|
|
48
|
+
far: distance + radius * 5,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Minimum framing radius for every subject box, in metres.
|
|
53
|
+
*
|
|
54
|
+
* A box of zero size is an ordinary answer, not a fault: an element citing a runtime model reference reports its own origin, and a transform-only node has no vertices. There is still a place to aim at; the 0.5 metre radius, lens and distance factor determine the eye's distance and the neighbourhood shown.
|
|
55
|
+
*/
|
|
56
|
+
const DEGENERATE_RADIUS = 0.5;
|
|
57
|
+
//# sourceMappingURL=frameAutoMovieViewerSubject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frameAutoMovieViewerSubject.js","sourceRoot":"","sources":["../../src/subjectViewpoint/frameAutoMovieViewerSubject.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B;;;;;;;;;;GAUG;AACH,MAAM,UAAU,2BAA2B,CACzC,MAAqC,EACrC,SAAoC,EACpC,IAAiC;IAEjC,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,IAAI,CAAC,MAAM,IAAI,GAAG;QACxC,MAAM,IAAI,UAAU,CAClB,sEAAsE,IAAI,CAAC,MAAM,EAAE,CACpF,CAAC;IACJ,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC;QAClB,MAAM,IAAI,UAAU,CAClB,gDAAgD,IAAI,CAAC,MAAM,EAAE,CAC9D,CAAC;IACJ,MAAM,MAAM,GAAwC;QAClD,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACpC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QACpC,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;KACrC,CAAC;IACF,MAAM,IAAI,GAAwC;QAChD,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QAC9B,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;KAC/B,CAAC;IACF,MAAM,MAAM,GAAW,IAAI,CAAC,GAAG,CAC7B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,EACtC,iBAAiB,CAClB,CAAC;IACF,MAAM,YAAY,GAAW,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvE,sHAAsH;IACtH,MAAM,cAAc,GAAW,IAAI,CAAC,IAAI,CACtC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,MAAM,CACrC,CAAC;IACF,MAAM,QAAQ,GACZ,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;QAC3D,SAAS,CAAC,cAAc,CAAC;IAC3B,MAAM,OAAO,GAAW,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvE,MAAM,SAAS,GAAW,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAC3E,MAAM,UAAU,GAAW,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC/C,OAAO;QACL,QAAQ,EAAE;YACR,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,QAAQ;YACvD,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,GAAG,QAAQ;YAC5C,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,UAAU,GAAG,QAAQ;SACxD;QACD,MAAM,EAAE,MAAM;QACd,IAAI;QACJ,iIAAiI;QACjI,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACtD,uGAAuG;QACvG,GAAG,EAAE,QAAQ,GAAG,MAAM,GAAG,CAAC;KAC3B,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,iBAAiB,GAAW,GAAG,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./AutoMovieViewerSubjectKind.js";
|
|
2
|
+
export * from "./IAutoMovieViewerSubject.js";
|
|
3
|
+
export * from "./IAutoMovieViewerSubjectBounds.js";
|
|
4
|
+
export * from "./IAutoMovieViewerViewpoint.js";
|
|
5
|
+
export * from "./IAutoMovieViewerSubjectLens.js";
|
|
6
|
+
export * from "./IAutoMovieViewerSubjectPose.js";
|
|
7
|
+
export * from "./IAutoMovieViewerTurntableOptions.js";
|
|
8
|
+
export * from "./IAutoMovieViewerSubjectView.js";
|
|
9
|
+
export * from "./IAutoMovieViewerSubjectViewRequest.js";
|
|
10
|
+
export * from "./autoMovieViewerSubjectKey.js";
|
|
11
|
+
export * from "./parseAutoMovieViewerSubjectKey.js";
|
|
12
|
+
export * from "./autoMovieViewerTurntableViewpoints.js";
|
|
13
|
+
export * from "./frameAutoMovieViewerSubject.js";
|
|
14
|
+
export * from "./autoMovieViewerPoseFromHeading.js";
|
|
15
|
+
export * from "./applyAutoMovieViewerSubjectPose.js";
|
|
16
|
+
export * from "./captureAutoMovieViewerSubjectView.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "./AutoMovieViewerSubjectKind.js";
|
|
2
|
+
export * from "./IAutoMovieViewerSubject.js";
|
|
3
|
+
export * from "./IAutoMovieViewerSubjectBounds.js";
|
|
4
|
+
export * from "./IAutoMovieViewerViewpoint.js";
|
|
5
|
+
export * from "./IAutoMovieViewerSubjectLens.js";
|
|
6
|
+
export * from "./IAutoMovieViewerSubjectPose.js";
|
|
7
|
+
export * from "./IAutoMovieViewerTurntableOptions.js";
|
|
8
|
+
export * from "./IAutoMovieViewerSubjectView.js";
|
|
9
|
+
export * from "./IAutoMovieViewerSubjectViewRequest.js";
|
|
10
|
+
export * from "./autoMovieViewerSubjectKey.js";
|
|
11
|
+
export * from "./parseAutoMovieViewerSubjectKey.js";
|
|
12
|
+
export * from "./autoMovieViewerTurntableViewpoints.js";
|
|
13
|
+
export * from "./frameAutoMovieViewerSubject.js";
|
|
14
|
+
export * from "./autoMovieViewerPoseFromHeading.js";
|
|
15
|
+
export * from "./applyAutoMovieViewerSubjectPose.js";
|
|
16
|
+
export * from "./captureAutoMovieViewerSubjectView.js";
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/subjectViewpoint/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IAutoMovieViewerSubject } from "./IAutoMovieViewerSubject.js";
|
|
2
|
+
/**
|
|
3
|
+
* Parse the first colon as category boundary and last @ as revision boundary. Unknown category, missing id and empty explicit revision refuse; this grammar does not resolve source existence or unambiguously represent a revision containing @.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the maintained category Set and deterministic first/last delimiter splits, preserving preceding @ inside an id only when a final revision follows.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure textual boundary supplies a subject record; source lookup and provenance verification remain consumer responsibilities.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Rejects unrecognized syntax instead of guessing category; an unrevisioned id containing @ is interpreted as a revisioned key and whitespace/unverified revision text are not normalized.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation States syntax, refusal cases, delimiter ambiguity and lack of source resolution.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Scans/copies O(K) key characters with fixed category membership work and a small returned record.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The static category Set is reused; parsed subject records are fresh and no scene identity result is cached.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a fixed category Set is retained by the module; returned strings/record belong to the caller, with no native handles or registry growth.
|
|
12
|
+
*/
|
|
13
|
+
export declare function parseAutoMovieViewerSubjectKey(key: string): IAutoMovieViewerSubject;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Parse the first colon as category boundary and last @ as revision boundary. Unknown category, missing id and empty explicit revision refuse; this grammar does not resolve source existence or unambiguously represent a revision containing @.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the maintained category Set and deterministic first/last delimiter splits, preserving preceding @ inside an id only when a final revision follows.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure textual boundary supplies a subject record; source lookup and provenance verification remain consumer responsibilities.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Rejects unrecognized syntax instead of guessing category; an unrevisioned id containing @ is interpreted as a revisioned key and whitespace/unverified revision text are not normalized.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation States syntax, refusal cases, delimiter ambiguity and lack of source resolution.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Scans/copies O(K) key characters with fixed category membership work and a small returned record.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The static category Set is reused; parsed subject records are fresh and no scene identity result is cached.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only a fixed category Set is retained by the module; returned strings/record belong to the caller, with no native handles or registry growth.
|
|
11
|
+
*/
|
|
12
|
+
export function parseAutoMovieViewerSubjectKey(key) {
|
|
13
|
+
const separator = key.indexOf(":");
|
|
14
|
+
if (separator === -1)
|
|
15
|
+
throw new Error(`subject key "${key}" names no kind; write it as "<kind>:<id>"`);
|
|
16
|
+
const kind = key.slice(0, separator);
|
|
17
|
+
if (SUBJECT_KINDS.has(kind) === false)
|
|
18
|
+
throw new Error(`subject key "${key}" names unknown kind "${kind}"; known kinds are ${[
|
|
19
|
+
...SUBJECT_KINDS,
|
|
20
|
+
].join(", ")}`);
|
|
21
|
+
const rest = key.slice(separator + 1);
|
|
22
|
+
// Last `@` wins, so an id that legitimately contains one keeps it and only
|
|
23
|
+
// the trailing revision is split off.
|
|
24
|
+
const revisionAt = rest.lastIndexOf("@");
|
|
25
|
+
const id = revisionAt === -1 ? rest : rest.slice(0, revisionAt);
|
|
26
|
+
const revision = revisionAt === -1 ? null : rest.slice(revisionAt + 1);
|
|
27
|
+
if (id.length === 0)
|
|
28
|
+
throw new Error(`subject key "${key}" names no id after its kind`);
|
|
29
|
+
if (revision !== null && revision.length === 0)
|
|
30
|
+
throw new Error(`subject key "${key}" ends in an empty revision`);
|
|
31
|
+
return { kind: kind, id, revision };
|
|
32
|
+
}
|
|
33
|
+
const SUBJECT_KINDS = new Set([
|
|
34
|
+
"built-environment",
|
|
35
|
+
"building",
|
|
36
|
+
"storey",
|
|
37
|
+
"space",
|
|
38
|
+
"element",
|
|
39
|
+
"part",
|
|
40
|
+
"model",
|
|
41
|
+
"prototype",
|
|
42
|
+
"mesh",
|
|
43
|
+
"primitive",
|
|
44
|
+
"formation",
|
|
45
|
+
"slot",
|
|
46
|
+
"instance-set",
|
|
47
|
+
"instance",
|
|
48
|
+
]);
|
|
49
|
+
//# sourceMappingURL=parseAutoMovieViewerSubjectKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseAutoMovieViewerSubjectKey.js","sourceRoot":"","sources":["../../src/subjectViewpoint/parseAutoMovieViewerSubjectKey.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,8BAA8B,CAC5C,GAAW;IAEX,MAAM,SAAS,GAAW,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,SAAS,KAAK,CAAC,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,gBAAgB,GAAG,4CAA4C,CAChE,CAAC;IACJ,MAAM,IAAI,GAAW,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;IAC7C,IAAI,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK;QACnC,MAAM,IAAI,KAAK,CACb,gBAAgB,GAAG,yBAAyB,IAAI,sBAAsB;YACpE,GAAG,aAAa;SACjB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACf,CAAC;IACJ,MAAM,IAAI,GAAW,GAAG,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IAC9C,2EAA2E;IAC3E,sCAAsC;IACtC,MAAM,UAAU,GAAW,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACjD,MAAM,EAAE,GAAW,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;IACxE,MAAM,QAAQ,GACZ,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC;IACxD,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC;QACjB,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,8BAA8B,CAAC,CAAC;IACrE,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;QAC5C,MAAM,IAAI,KAAK,CAAC,gBAAgB,GAAG,6BAA6B,CAAC,CAAC;IACpE,OAAO,EAAE,IAAI,EAAE,IAAkC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC;AACpE,CAAC;AAED,MAAM,aAAa,GAAwB,IAAI,GAAG,CAA6B;IAC7E,mBAAmB;IACnB,UAAU;IACV,QAAQ;IACR,OAAO;IACP,SAAS;IACT,MAAM;IACN,OAAO;IACP,WAAW;IACX,MAAM;IACN,WAAW;IACX,WAAW;IACX,MAAM;IACN,cAAc;IACd,UAAU;CACX,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SUBSURFACE_TARGET.js","sourceRoot":"","sources":["../../src/subsurfaceShading/SUBSURFACE_TARGET.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,CAAC,MAAM,iBAAiB,GAC5B,0GAA0G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SUBSURFACE_TEXTURE_SIZE.js","sourceRoot":"","sources":["../../src/subsurfaceShading/SUBSURFACE_TEXTURE_SIZE.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Register the existing direct-diffuse subsurface shader approximation on a new physical material, borrowing one shared lookup texture. Radius channels are admitted nonnegative finite distances in metres by Engine validation; this helper does not independently validate them or prove measured tissue response.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Captures per-material RGB radius uniforms and registers the table lookup/curvature source patch through public Three compile hooks; the supported physical chunk and Engine-admitted material are required premises.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Uniform setup, shared table production and shader rewriting retain separate existing owners; the material keeps the subsurface texture role visible in userData.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No anatomical fitted output, foreign-method replacement or runtime shader-registry patch is used; screen-space curvature and tabulated Gaussian response remain a rendering approximation requiring actual beauty observation.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation States radius units/admission owner, shared texture borrowing, direct-diffuse scope and visual/scientific limits.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed uniform setup delegates first-use table quadrature and O(shader length) compile rewriting; normal material construction registers only its current small feature set.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All materials borrow the same immutable lookup wrapper while each radius uniform stays independent; Three program reuse depends on the structural patch key, not equality of captured radius values.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Material hooks/userData retain radius and the borrowed texture until material references disappear; lookup storage has module lifetime with no explicit retirement API, and this helper acquires no program itself.
|
|
12
|
+
*/
|
|
13
|
+
export declare function applySubsurfaceShading(material: THREE.MeshPhysicalMaterial, radius: {
|
|
14
|
+
r: number;
|
|
15
|
+
g: number;
|
|
16
|
+
b: number;
|
|
17
|
+
}): void;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { addMaterialShaderPatch } from "../addMaterialShaderPatch.js";
|
|
3
|
+
import { getSubsurfaceTexture } from "./getSubsurfaceTexture.js";
|
|
4
|
+
import { subsurfaceFragment } from "./subsurfaceFragment.js";
|
|
5
|
+
/**
|
|
6
|
+
* Register the existing direct-diffuse subsurface shader approximation on a new physical material, borrowing one shared lookup texture. Radius channels are admitted nonnegative finite distances in metres by Engine validation; this helper does not independently validate them or prove measured tissue response.
|
|
7
|
+
*
|
|
8
|
+
* @evidence contracts/development/implementation.md#principled-implementation Captures per-material RGB radius uniforms and registers the table lookup/curvature source patch through public Three compile hooks; the supported physical chunk and Engine-admitted material are required premises.
|
|
9
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure Uniform setup, shared table production and shader rewriting retain separate existing owners; the material keeps the subsurface texture role visible in userData.
|
|
10
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No anatomical fitted output, foreign-method replacement or runtime shader-registry patch is used; screen-space curvature and tabulated Gaussian response remain a rendering approximation requiring actual beauty observation.
|
|
11
|
+
* @evidence contracts/development/common.md#meaningful-documentation States radius units/admission owner, shared texture borrowing, direct-diffuse scope and visual/scientific limits.
|
|
12
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed uniform setup delegates first-use table quadrature and O(shader length) compile rewriting; normal material construction registers only its current small feature set.
|
|
13
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work All materials borrow the same immutable lookup wrapper while each radius uniform stays independent; Three program reuse depends on the structural patch key, not equality of captured radius values.
|
|
14
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Material hooks/userData retain radius and the borrowed texture until material references disappear; lookup storage has module lifetime with no explicit retirement API, and this helper acquires no program itself.
|
|
15
|
+
*/
|
|
16
|
+
export function applySubsurfaceShading(material, radius) {
|
|
17
|
+
const radiusUniform = {
|
|
18
|
+
value: new THREE.Vector3(radius.r, radius.g, radius.b),
|
|
19
|
+
};
|
|
20
|
+
const tableUniform = {
|
|
21
|
+
value: getSubsurfaceTexture(),
|
|
22
|
+
};
|
|
23
|
+
material.userData.autoMovieSubsurfaceTexture = tableUniform.value;
|
|
24
|
+
material.userData.subsurfaceRadius = { ...radius };
|
|
25
|
+
addMaterialShaderPatch(material, {
|
|
26
|
+
key: "automovie-subsurface",
|
|
27
|
+
apply: (shader) => {
|
|
28
|
+
shader.uniforms.subsurfaceRadius = radiusUniform;
|
|
29
|
+
shader.uniforms.subsurfaceTable = tableUniform;
|
|
30
|
+
shader.fragmentShader = subsurfaceFragment(shader.fragmentShader);
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=applySubsurfaceShading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applySubsurfaceShading.js","sourceRoot":"","sources":["../../src/subsurfaceShading/applySubsurfaceShading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,sBAAsB,CACpC,QAAoC,EACpC,MAA2C;IAE3C,MAAM,aAAa,GAA6B;QAC9C,KAAK,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;KACvD,CAAC;IACF,MAAM,YAAY,GAAiC;QACjD,KAAK,EAAE,oBAAoB,EAAE;KAC9B,CAAC;IACF,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,GAAG,YAAY,CAAC,KAAK,CAAC;IAClE,QAAQ,CAAC,QAAQ,CAAC,gBAAgB,GAAG,EAAE,GAAG,MAAM,EAAE,CAAC;IACnD,sBAAsB,CAAC,QAAQ,EAAE;QAC/B,GAAG,EAAE,sBAAsB;QAC3B,KAAK,EAAE,CAAC,MAAgD,EAAQ,EAAE;YAChE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,GAAG,aAAa,CAAC;YACjD,MAAM,CAAC,QAAQ,CAAC,eAAe,GAAG,YAAY,CAAC;YAC/C,MAAM,CAAC,cAAc,GAAG,kBAAkB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QACpE,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
/**
|
|
3
|
+
* Return the module-shared 64-by-32 red half-float subsurface lookup wrapper. Consumers borrow its immutable sampling/content state; module retention has no explicit final disposal boundary.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation Builds numerical quadrature once, packs each entry through Three toHalfFloat and configures linear/clamped red sampling; material ownership registration prevents reuse as an exclusive environment wrapper.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One lazy texture owner publishes the lookup consumed by material uniforms without a per-material table allocation.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the supported DataTexture interface and real role registration; half-float packing is approximate and sharing does not prove renderer upload or physical native lifetime.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents dimensions, storage representation, immutable borrowing and missing module-retirement protocol.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms First call incurs table quadrature and O(C*B) half packing; later calls return the same wrapper in constant work, retaining C*B half components.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Fixed cosine/blur grid and shader sampling make completed lookup data equivalent across materials; mutating the shared wrapper violates this premise and there is no invalidation/rebuild owner.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The module strongly retains one wrapper and its 4096-byte Uint16 data array; renderer-specific native uploads may be multiple and are not bounded or retired by this accessor.
|
|
12
|
+
*/
|
|
13
|
+
export declare function getSubsurfaceTexture(): THREE.DataTexture;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { AutoMovieEnvironmentTextureOwnership } from "../AutoMovieEnvironmentTextureOwnership.js";
|
|
3
|
+
import { SUBSURFACE_TEXTURE_SIZE } from "./SUBSURFACE_TEXTURE_SIZE.js";
|
|
4
|
+
import { subsurfaceTable } from "./subsurfaceTable.js";
|
|
5
|
+
const { cosines: COSINES, blurs: BLURS } = SUBSURFACE_TEXTURE_SIZE;
|
|
6
|
+
let shared = null;
|
|
7
|
+
/**
|
|
8
|
+
* Return the module-shared 64-by-32 red half-float subsurface lookup wrapper. Consumers borrow its immutable sampling/content state; module retention has no explicit final disposal boundary.
|
|
9
|
+
*
|
|
10
|
+
* @evidence contracts/development/implementation.md#principled-implementation Builds numerical quadrature once, packs each entry through Three toHalfFloat and configures linear/clamped red sampling; material ownership registration prevents reuse as an exclusive environment wrapper.
|
|
11
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One lazy texture owner publishes the lookup consumed by material uniforms without a per-material table allocation.
|
|
12
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Uses the supported DataTexture interface and real role registration; half-float packing is approximate and sharing does not prove renderer upload or physical native lifetime.
|
|
13
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents dimensions, storage representation, immutable borrowing and missing module-retirement protocol.
|
|
14
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms First call incurs table quadrature and O(C*B) half packing; later calls return the same wrapper in constant work, retaining C*B half components.
|
|
15
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Fixed cosine/blur grid and shader sampling make completed lookup data equivalent across materials; mutating the shared wrapper violates this premise and there is no invalidation/rebuild owner.
|
|
16
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The module strongly retains one wrapper and its 4096-byte Uint16 data array; renderer-specific native uploads may be multiple and are not bounded or retired by this accessor.
|
|
17
|
+
*/
|
|
18
|
+
export function getSubsurfaceTexture() {
|
|
19
|
+
if (shared !== null)
|
|
20
|
+
return shared;
|
|
21
|
+
const table = subsurfaceTable();
|
|
22
|
+
const data = new Uint16Array(COSINES * BLURS);
|
|
23
|
+
table.forEach((row, j) => row.forEach((value, i) => {
|
|
24
|
+
data[j * COSINES + i] = THREE.DataUtils.toHalfFloat(value);
|
|
25
|
+
}));
|
|
26
|
+
const texture = new THREE.DataTexture(data, COSINES, BLURS, THREE.RedFormat, THREE.HalfFloatType);
|
|
27
|
+
texture.minFilter = THREE.LinearFilter;
|
|
28
|
+
texture.magFilter = THREE.LinearFilter;
|
|
29
|
+
texture.wrapS = THREE.ClampToEdgeWrapping;
|
|
30
|
+
texture.wrapT = THREE.ClampToEdgeWrapping;
|
|
31
|
+
texture.needsUpdate = true;
|
|
32
|
+
AutoMovieEnvironmentTextureOwnership.material(texture);
|
|
33
|
+
shared = texture;
|
|
34
|
+
return texture;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=getSubsurfaceTexture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSubsurfaceTexture.js","sourceRoot":"","sources":["../../src/subsurfaceShading/getSubsurfaceTexture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GACtC,uBAAuB,CAAC;AAE1B,IAAI,MAAM,GAA6B,IAAI,CAAC;AAC5C;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB;IAClC,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,MAAM,CAAC;IACnC,MAAM,KAAK,GAAe,eAAe,EAAE,CAAC;IAC5C,MAAM,IAAI,GAAgB,IAAI,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;IAC3D,KAAK,CAAC,OAAO,CAAC,CAAC,GAAa,EAAE,CAAS,EAAQ,EAAE,CAC/C,GAAG,CAAC,OAAO,CAAC,CAAC,KAAa,EAAE,CAAS,EAAQ,EAAE;QAC7C,IAAI,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC,CAAC,CACH,CAAC;IACF,MAAM,OAAO,GAAsB,IAAI,KAAK,CAAC,WAAW,CACtD,IAAI,EACJ,OAAO,EACP,KAAK,EACL,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,aAAa,CACpB,CAAC;IACF,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC;IACvC,OAAO,CAAC,SAAS,GAAG,KAAK,CAAC,YAAY,CAAC;IACvC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,mBAAmB,CAAC;IAC1C,OAAO,CAAC,KAAK,GAAG,KAAK,CAAC,mBAAmB,CAAC;IAC1C,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;IAC3B,oCAAoC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,GAAG,OAAO,CAAC;IACjB,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Subsurface shader and numerical table public owners. */
|
|
2
|
+
export { SUBSURFACE_TARGET } from "./SUBSURFACE_TARGET.js";
|
|
3
|
+
export { applySubsurfaceShading } from "./applySubsurfaceShading.js";
|
|
4
|
+
export { subsurfaceTable } from "./subsurfaceTable.js";
|
|
5
|
+
export { subsurfaceFragment } from "./subsurfaceFragment.js";
|
|
6
|
+
export { subsurfacePhysicalChunk } from "./subsurfacePhysicalChunk.js";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Subsurface shader and numerical table public owners. */
|
|
2
|
+
export { SUBSURFACE_TARGET } from "./SUBSURFACE_TARGET.js";
|
|
3
|
+
export { applySubsurfaceShading } from "./applySubsurfaceShading.js";
|
|
4
|
+
export { subsurfaceTable } from "./subsurfaceTable.js";
|
|
5
|
+
export { subsurfaceFragment } from "./subsurfaceFragment.js";
|
|
6
|
+
export { subsurfacePhysicalChunk } from "./subsurfacePhysicalChunk.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/subsurfaceShading/index.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Expand the supported physical lighting include and add the existing screen-space curvature assignment. Missing outer include markers are not rejected; compatibility therefore requires the actual supported physical shader template.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the installed Three physical chunk, whose direct diffuse target is checked by subsurfacePhysicalChunk, and replaces the two expected outer include markers; flat shading keeps zero curvature.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure source edit composes the checked lighting rewrite and curvature insertion without changing the global ShaderChunk registry.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not inspect native shader handles or special-case fixture outputs; absent outer markers can silently leave an incomplete patch and actual compilation/appearance is not proved by source rewriting.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation States supported-template dependency, missing-marker limitation and unchanged flat/other lighting responsibilities.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Reads and rewrites chunk/template strings in O(chunk+fragment length), creating proportional output source; later native compilation remains outside this function.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared SDK chunk is read for each invocation; no source cache claims equivalence across changed SDK or other material patches.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns caller-owned source text and retains no shader, texture, program or render task.
|
|
11
|
+
*/
|
|
12
|
+
export declare function subsurfaceFragment(fragmentShader: string): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
import { subsurfacePhysicalChunk } from "./subsurfacePhysicalChunk.js";
|
|
3
|
+
/**
|
|
4
|
+
* Expand the supported physical lighting include and add the existing screen-space curvature assignment. Missing outer include markers are not rejected; compatibility therefore requires the actual supported physical shader template.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Uses the installed Three physical chunk, whose direct diffuse target is checked by subsurfacePhysicalChunk, and replaces the two expected outer include markers; flat shading keeps zero curvature.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure source edit composes the checked lighting rewrite and curvature insertion without changing the global ShaderChunk registry.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Does not inspect native shader handles or special-case fixture outputs; absent outer markers can silently leave an incomplete patch and actual compilation/appearance is not proved by source rewriting.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation States supported-template dependency, missing-marker limitation and unchanged flat/other lighting responsibilities.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms Reads and rewrites chunk/template strings in O(chunk+fragment length), creating proportional output source; later native compilation remains outside this function.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared SDK chunk is read for each invocation; no source cache claims equivalence across changed SDK or other material patches.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returns caller-owned source text and retains no shader, texture, program or render task.
|
|
13
|
+
*/
|
|
14
|
+
export function subsurfaceFragment(fragmentShader) {
|
|
15
|
+
const pars = THREE.ShaderChunk.lights_physical_pars_fragment;
|
|
16
|
+
const patched = subsurfacePhysicalChunk(pars);
|
|
17
|
+
return fragmentShader
|
|
18
|
+
.replace("#include <lights_physical_pars_fragment>", patched)
|
|
19
|
+
.replace("#include <lights_fragment_begin>", `#ifndef FLAT_SHADED
|
|
20
|
+
subsurfaceCurvature = length( fwidth( normalize( vNormal ) ) ) / max( length( fwidth( vViewPosition ) ), 1e-6 );
|
|
21
|
+
#else
|
|
22
|
+
subsurfaceCurvature = 0.0;
|
|
23
|
+
#endif
|
|
24
|
+
#include <lights_fragment_begin>`);
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=subsurfaceFragment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subsurfaceFragment.js","sourceRoot":"","sources":["../../src/subsurfaceShading/subsurfaceFragment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;;;;;;;;GAUG;AACH,MAAM,UAAU,kBAAkB,CAAC,cAAsB;IACvD,MAAM,IAAI,GAAW,KAAK,CAAC,WAAW,CAAC,6BAA6B,CAAC;IACrE,MAAM,OAAO,GAAW,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACtD,OAAO,cAAc;SAClB,OAAO,CAAC,0CAA0C,EAAE,OAAO,CAAC;SAC5D,OAAO,CACN,kCAAkC,EAClC;;;;;iCAK2B,CAC5B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replace the supported physical direct-diffuse line with the current RGB table lookup while preserving all other supplied chunk text. An absent target refuses before returning source; only the first exact occurrence is replaced.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact supported-chunk recognition precedes insertion of radius/table uniforms and texel-centered coordinates from the shared grid; shader radius*curvature/pi is clamped to the tabulated blur domain.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure compatibility boundary keeps SDK source input separate from the material registration and shared numerical lookup.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The declared native target line is a compatibility contract, not an expected image answer; duplicate targets and semantic changes elsewhere in a supplied chunk are not exhaustively validated.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents exact-target refusal, preserved surrounding source and single-occurrence compatibility limit.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One target scan and replacement plus fixed prefix are O(chunk length); no GPU allocation or shader compilation occurs here.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Grid dimensions and target text are shared constants; each supplied chunk produces fresh output without caching mutable shader edits.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns returned source; this function retains no program, texture, renderer or background task.
|
|
11
|
+
*/
|
|
12
|
+
export declare function subsurfacePhysicalChunk(pars: string): string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SUBSURFACE_TARGET } from "./SUBSURFACE_TARGET.js";
|
|
2
|
+
import { SUBSURFACE_TEXTURE_SIZE } from "./SUBSURFACE_TEXTURE_SIZE.js";
|
|
3
|
+
const { cosines: COSINES, blurs: BLURS } = SUBSURFACE_TEXTURE_SIZE;
|
|
4
|
+
/**
|
|
5
|
+
* Replace the supported physical direct-diffuse line with the current RGB table lookup while preserving all other supplied chunk text. An absent target refuses before returning source; only the first exact occurrence is replaced.
|
|
6
|
+
*
|
|
7
|
+
* @evidence contracts/development/implementation.md#principled-implementation Exact supported-chunk recognition precedes insertion of radius/table uniforms and texel-centered coordinates from the shared grid; shader radius*curvature/pi is clamped to the tabulated blur domain.
|
|
8
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure One pure compatibility boundary keeps SDK source input separate from the material registration and shared numerical lookup.
|
|
9
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The declared native target line is a compatibility contract, not an expected image answer; duplicate targets and semantic changes elsewhere in a supplied chunk are not exhaustively validated.
|
|
10
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents exact-target refusal, preserved surrounding source and single-occurrence compatibility limit.
|
|
11
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One target scan and replacement plus fixed prefix are O(chunk length); no GPU allocation or shader compilation occurs here.
|
|
12
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Grid dimensions and target text are shared constants; each supplied chunk produces fresh output without caching mutable shader edits.
|
|
13
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The caller owns returned source; this function retains no program, texture, renderer or background task.
|
|
14
|
+
*/
|
|
15
|
+
export function subsurfacePhysicalChunk(pars) {
|
|
16
|
+
if (!pars.includes(SUBSURFACE_TARGET))
|
|
17
|
+
throw new Error("The physical lighting chunk no longer has the direct diffuse line subsurface shading replaces.");
|
|
18
|
+
return (`uniform vec3 subsurfaceRadius;
|
|
19
|
+
uniform sampler2D subsurfaceTable;
|
|
20
|
+
float subsurfaceCurvature;
|
|
21
|
+
vec3 subsurfaceDiffuse( const in float dotNL ) {
|
|
22
|
+
// texel centres of the ${COSINES} x ${BLURS} table
|
|
23
|
+
vec3 s = ( clamp( subsurfaceRadius * subsurfaceCurvature / PI, 0.0, 1.0 ) * ${BLURS - 1}.0 + 0.5 ) / ${BLURS}.0;
|
|
24
|
+
float u = ( ( dotNL * 0.5 + 0.5 ) * ${COSINES - 1}.0 + 0.5 ) / ${COSINES}.0;
|
|
25
|
+
return vec3(
|
|
26
|
+
texture2D( subsurfaceTable, vec2( u, s.r ) ).r,
|
|
27
|
+
texture2D( subsurfaceTable, vec2( u, s.g ) ).r,
|
|
28
|
+
texture2D( subsurfaceTable, vec2( u, s.b ) ).r
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
` +
|
|
32
|
+
pars.replace(SUBSURFACE_TARGET, "reflectedLight.directDiffuse += directLight.color * subsurfaceDiffuse( dot( geometryNormal, directLight.direction ) ) * BRDF_Lambert( material.diffuseContribution ) * ( 1.0 - F );"));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=subsurfacePhysicalChunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subsurfacePhysicalChunk.js","sourceRoot":"","sources":["../../src/subsurfaceShading/subsurfacePhysicalChunk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GACtC,uBAAuB,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACnC,MAAM,IAAI,KAAK,CACb,gGAAgG,CACjG,CAAC;IACJ,OAAO,CACL;;;;2BAIuB,OAAO,MAAM,KAAK;+EACkC,KAAK,GAAG,CAAC,gBAAgB,KAAK;uCACtE,OAAO,GAAG,CAAC,gBAAgB,OAAO;;;;;;;CAOxE;QACG,IAAI,CAAC,OAAO,CACV,iBAAiB,EACjB,qLAAqL,CACtL,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compute a 32-by-64 diffuse lookup: the zero-blur row is a clamped cosine, and other rows use 720 midpoint samples with five Gaussian wrap images. This conventional approximation is not a measured tissue diffusion profile or an exact infinite-wrap integral.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation Weighted circular clamped-cosine quadrature samples blur over [0,pi] and cosine over [-1,1]; normalized discrete weights preserve a bounded response, with finite-grid/quadrature/wrap truncation error.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A pure numerical producer returns a fresh table; getSubsurfaceTexture alone owns first-use caching and half-float packing.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The grid and integration steps are declared sampling conventions, not fixture-fitted values; no source citation is asserted as read, and exact continuous mean or anatomical response is not certified.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents grid axes, zero-blur branch, midpoint/wrap approximation and separation from cached texture lifetime.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For B blur rows, C cosine samples, S=720 angular samples and W=5 wraps, work is O(B*C*S*W) and returned storage O(B*C); each finite sum is needed for this selected quadrature.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every direct call recomputes fresh rows; material consumers share completed packed data only through getSubsurfaceTexture, so this function itself is not cached.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only returned numeric arrays survive the call; it acquires no native handle and the texture owner controls any later retained CPU/GPU population.
|
|
11
|
+
*/
|
|
12
|
+
export declare function subsurfaceTable(): number[][];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SUBSURFACE_TEXTURE_SIZE } from "./SUBSURFACE_TEXTURE_SIZE.js";
|
|
2
|
+
const { cosines: COSINES, blurs: BLURS } = SUBSURFACE_TEXTURE_SIZE;
|
|
3
|
+
/**
|
|
4
|
+
* Compute a 32-by-64 diffuse lookup: the zero-blur row is a clamped cosine, and other rows use 720 midpoint samples with five Gaussian wrap images. This conventional approximation is not a measured tissue diffusion profile or an exact infinite-wrap integral.
|
|
5
|
+
*
|
|
6
|
+
* @evidence contracts/development/implementation.md#principled-implementation Weighted circular clamped-cosine quadrature samples blur over [0,pi] and cosine over [-1,1]; normalized discrete weights preserve a bounded response, with finite-grid/quadrature/wrap truncation error.
|
|
7
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A pure numerical producer returns a fresh table; getSubsurfaceTexture alone owns first-use caching and half-float packing.
|
|
8
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The grid and integration steps are declared sampling conventions, not fixture-fitted values; no source citation is asserted as read, and exact continuous mean or anatomical response is not certified.
|
|
9
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents grid axes, zero-blur branch, midpoint/wrap approximation and separation from cached texture lifetime.
|
|
10
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms For B blur rows, C cosine samples, S=720 angular samples and W=5 wraps, work is O(B*C*S*W) and returned storage O(B*C); each finite sum is needed for this selected quadrature.
|
|
11
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Every direct call recomputes fresh rows; material consumers share completed packed data only through getSubsurfaceTexture, so this function itself is not cached.
|
|
12
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only returned numeric arrays survive the call; it acquires no native handle and the texture owner controls any later retained CPU/GPU population.
|
|
13
|
+
*/
|
|
14
|
+
export function subsurfaceTable() {
|
|
15
|
+
const table = [];
|
|
16
|
+
const steps = 720;
|
|
17
|
+
for (let j = 0; j < BLURS; j++) {
|
|
18
|
+
const s = (j / (BLURS - 1)) * Math.PI;
|
|
19
|
+
const row = [];
|
|
20
|
+
for (let i = 0; i < COSINES; i++) {
|
|
21
|
+
const theta = Math.acos((i / (COSINES - 1)) * 2 - 1);
|
|
22
|
+
if (s === 0) {
|
|
23
|
+
row.push(Math.max(0, Math.cos(theta)));
|
|
24
|
+
continue;
|
|
25
|
+
}
|
|
26
|
+
let sum = 0;
|
|
27
|
+
let weight = 0;
|
|
28
|
+
for (let k = 0; k < steps; k++) {
|
|
29
|
+
const x = -Math.PI + ((k + 0.5) / steps) * 2 * Math.PI;
|
|
30
|
+
// the Gaussian wrapped around the circle
|
|
31
|
+
let w = 0;
|
|
32
|
+
for (let wrap = -2; wrap <= 2; wrap++) {
|
|
33
|
+
const d = x + wrap * 2 * Math.PI;
|
|
34
|
+
w += Math.exp(-0.5 * (d / s) ** 2);
|
|
35
|
+
}
|
|
36
|
+
sum += w * Math.max(0, Math.cos(theta + x));
|
|
37
|
+
weight += w;
|
|
38
|
+
}
|
|
39
|
+
row.push(sum / weight);
|
|
40
|
+
}
|
|
41
|
+
table.push(row);
|
|
42
|
+
}
|
|
43
|
+
return table;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=subsurfaceTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subsurfaceTable.js","sourceRoot":"","sources":["../../src/subsurfaceShading/subsurfaceTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GACtC,uBAAuB,CAAC;AAE1B;;;;;;;;;;GAUG;AACH,MAAM,UAAU,eAAe;IAC7B,MAAM,KAAK,GAAe,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAW,GAAG,CAAC;IAC1B,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QACvC,MAAM,CAAC,GAAW,CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;QAC9C,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,KAAK,GAAW,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YAC7D,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACZ,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBACvC,SAAS;YACX,CAAC;YACD,IAAI,GAAG,GAAW,CAAC,CAAC;YACpB,IAAI,MAAM,GAAW,CAAC,CAAC;YACvB,KAAK,IAAI,CAAC,GAAW,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;gBACvC,MAAM,CAAC,GAAW,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;gBAC/D,yCAAyC;gBACzC,IAAI,CAAC,GAAW,CAAC,CAAC;gBAClB,KAAK,IAAI,IAAI,GAAW,CAAC,CAAC,EAAE,IAAI,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC;oBAC9C,MAAM,CAAC,GAAW,CAAC,GAAG,IAAI,GAAG,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;oBACzC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBACrC,CAAC;gBACD,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC5C,MAAM,IAAI,CAAC,CAAC;YACd,CAAC;YACD,GAAG,CAAC,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,CAAC;QACzB,CAAC;QACD,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AutoMovieTextureBinding } from "@automovie/interface";
|
|
2
|
+
/**
|
|
3
|
+
* Read the asset id from an admitted legacy string or structured texture binding. Sampling configuration belongs to the resolver and cache rather than this selector.
|
|
4
|
+
*
|
|
5
|
+
* @evidence contracts/development/implementation.md#principled-implementation The interface's string-versus-record representation supplies the exact asset text; callers must admit the binding shape and asset validity before resolution.
|
|
6
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A fixed representation selector is shared by cache priming and binding lookup, keeping asset identity separate from sampler equivalence.
|
|
7
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No texture fallback or normalization is invented and no malformed record is runtime-validated here.
|
|
8
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents representation, returned asset identity and separate sampling/admission responsibility.
|
|
9
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One typeof branch/property read is fixed work without a scan or allocation strategy.
|
|
10
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns the existing text; cache/resolver owners decide equivalent decoding and sampler wrappers, not this selector.
|
|
11
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows its binding and acquires or retains no decoded image, texture wrapper or task.
|
|
12
|
+
*/
|
|
13
|
+
export declare function textureBindingAsset(binding: AutoMovieTextureBinding): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Read the asset id from an admitted legacy string or structured texture binding. Sampling configuration belongs to the resolver and cache rather than this selector.
|
|
3
|
+
*
|
|
4
|
+
* @evidence contracts/development/implementation.md#principled-implementation The interface's string-versus-record representation supplies the exact asset text; callers must admit the binding shape and asset validity before resolution.
|
|
5
|
+
* @evidence contracts/development/implementation.md#clear-and-simple-structure A fixed representation selector is shared by cache priming and binding lookup, keeping asset identity separate from sampler equivalence.
|
|
6
|
+
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No texture fallback or normalization is invented and no malformed record is runtime-validated here.
|
|
7
|
+
* @evidence contracts/development/common.md#meaningful-documentation Documents representation, returned asset identity and separate sampling/admission responsibility.
|
|
8
|
+
* @evidence contracts/development/implementation.md#efficient-algorithms One typeof branch/property read is fixed work without a scan or allocation strategy.
|
|
9
|
+
* @evidence contracts/development/implementation.md#reuse-equivalent-work Returns the existing text; cache/resolver owners decide equivalent decoding and sampler wrappers, not this selector.
|
|
10
|
+
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrows its binding and acquires or retains no decoded image, texture wrapper or task.
|
|
11
|
+
*/
|
|
12
|
+
export function textureBindingAsset(binding) {
|
|
13
|
+
return typeof binding === "string" ? binding : binding.asset;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=textureBindingAsset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textureBindingAsset.js","sourceRoot":"","sources":["../src/textureBindingAsset.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAgC;IAClE,OAAO,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;AAC/D,CAAC"}
|