@vista3d/mcp 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 +12 -0
- package/README.md +73 -2
- package/README.zh-CN.md +74 -0
- package/data/.gitkeep +0 -0
- package/data/api-index.json +16116 -0
- package/data/search-index.json +71479 -0
- package/data/typedoc-md/core/README.md +359 -0
- package/data/typedoc-md/core/classes/AmbientLight.md +755 -0
- package/data/typedoc-md/core/classes/Animation.md +681 -0
- package/data/typedoc-md/core/classes/AnimationController.md +195 -0
- package/data/typedoc-md/core/classes/AnimationCurve.md +287 -0
- package/data/typedoc-md/core/classes/AnimationCurveKeyframe.md +148 -0
- package/data/typedoc-md/core/classes/Annotation.md +1466 -0
- package/data/typedoc-md/core/classes/AutoExposureNode.md +269 -0
- package/data/typedoc-md/core/classes/Background.md +77 -0
- package/data/typedoc-md/core/classes/BoolUpdateFlag.md +145 -0
- package/data/typedoc-md/core/classes/Camera.md +1264 -0
- package/data/typedoc-md/core/classes/ClipAnimationController.md +1192 -0
- package/data/typedoc-md/core/classes/ClipPlaneUpdater.md +1075 -0
- package/data/typedoc-md/core/classes/Color4.md +499 -0
- package/data/typedoc-md/core/classes/ColorGradingNode.md +157 -0
- package/data/typedoc-md/core/classes/Command.md +69 -0
- package/data/typedoc-md/core/classes/CommandGroup.md +122 -0
- package/data/typedoc-md/core/classes/CommandHistory.md +445 -0
- package/data/typedoc-md/core/classes/Component.md +592 -0
- package/data/typedoc-md/core/classes/ComponentsDependencies.md +174 -0
- package/data/typedoc-md/core/classes/ComponentsManager.md +820 -0
- package/data/typedoc-md/core/classes/Controls.md +1308 -0
- package/data/typedoc-md/core/classes/DirectionalLight.md +1073 -0
- package/data/typedoc-md/core/classes/DisorderedArray.md +394 -0
- package/data/typedoc-md/core/classes/DitherNode.md +141 -0
- package/data/typedoc-md/core/classes/Engine.md +997 -0
- package/data/typedoc-md/core/classes/EngineObject.md +264 -0
- package/data/typedoc-md/core/classes/Entity.md +1014 -0
- package/data/typedoc-md/core/classes/Environment.md +159 -0
- package/data/typedoc-md/core/classes/EventDispatcher.md +215 -0
- package/data/typedoc-md/core/classes/GLTFParser.md +278 -0
- package/data/typedoc-md/core/classes/GLTFResource.md +465 -0
- package/data/typedoc-md/core/classes/GeometryResource.md +355 -0
- package/data/typedoc-md/core/classes/GlyphAtlas.md +180 -0
- package/data/typedoc-md/core/classes/Gradient.md +702 -0
- package/data/typedoc-md/core/classes/GradientAlphaKey.md +70 -0
- package/data/typedoc-md/core/classes/GradientColorKey.md +74 -0
- package/data/typedoc-md/core/classes/GrainNode.md +155 -0
- package/data/typedoc-md/core/classes/HemisphereLight.md +795 -0
- package/data/typedoc-md/core/classes/InstancedModelRenderer.md +2720 -0
- package/data/typedoc-md/core/classes/KarisBloomNode.md +171 -0
- package/data/typedoc-md/core/classes/LUTResource.md +356 -0
- package/data/typedoc-md/core/classes/Label.md +3086 -0
- package/data/typedoc-md/core/classes/LensFlareNode.md +257 -0
- package/data/typedoc-md/core/classes/LightProbe.md +179 -0
- package/data/typedoc-md/core/classes/LightProbeGroup.md +271 -0
- package/data/typedoc-md/core/classes/LinearPicker.md +263 -0
- package/data/typedoc-md/core/classes/Logger.md +151 -0
- package/data/typedoc-md/core/classes/MaterialResource.md +397 -0
- package/data/typedoc-md/core/classes/MemoryEstimator.md +290 -0
- package/data/typedoc-md/core/classes/MeshRenderer.md +2581 -0
- package/data/typedoc-md/core/classes/MinMaxCurve.md +392 -0
- package/data/typedoc-md/core/classes/MinMaxGradient.md +385 -0
- package/data/typedoc-md/core/classes/ModelRenderer.md +2715 -0
- package/data/typedoc-md/core/classes/Module.md +269 -0
- package/data/typedoc-md/core/classes/OrbitControls.md +2015 -0
- package/data/typedoc-md/core/classes/OrthographicCamera.md +1505 -0
- package/data/typedoc-md/core/classes/ParallelLight.md +941 -0
- package/data/typedoc-md/core/classes/PerspectiveCamera.md +1525 -0
- package/data/typedoc-md/core/classes/Picker.md +209 -0
- package/data/typedoc-md/core/classes/PointLight.md +1108 -0
- package/data/typedoc-md/core/classes/Queue.md +159 -0
- package/data/typedoc-md/core/classes/Random.md +140 -0
- package/data/typedoc-md/core/classes/RectAreaLight.md +1048 -0
- package/data/typedoc-md/core/classes/RectangleCulling.md +310 -0
- package/data/typedoc-md/core/classes/RenderDebugInfo.md +144 -0
- package/data/typedoc-md/core/classes/Renderer.md +2324 -0
- package/data/typedoc-md/core/classes/Resource.md +313 -0
- package/data/typedoc-md/core/classes/ResourceManager.md +1214 -0
- package/data/typedoc-md/core/classes/ResourceRef.md +124 -0
- package/data/typedoc-md/core/classes/SDFGlyphGenerator.md +183 -0
- package/data/typedoc-md/core/classes/SSFNode.md +377 -0
- package/data/typedoc-md/core/classes/Scene.md +1089 -0
- package/data/typedoc-md/core/classes/SceneCoordinateSystem.md +442 -0
- package/data/typedoc-md/core/classes/SceneRenderer.md +409 -0
- package/data/typedoc-md/core/classes/Script.md +934 -0
- package/data/typedoc-md/core/classes/ScriptableSceneRenderer.md +540 -0
- package/data/typedoc-md/core/classes/ShaderChunk.md +93 -0
- package/data/typedoc-md/core/classes/SkyBackground.md +157 -0
- package/data/typedoc-md/core/classes/SolidColorBackground.md +117 -0
- package/data/typedoc-md/core/classes/SpotLight.md +1324 -0
- package/data/typedoc-md/core/classes/TaskController.md +249 -0
- package/data/typedoc-md/core/classes/TextureAtlas.md +173 -0
- package/data/typedoc-md/core/classes/TextureBackground.md +174 -0
- package/data/typedoc-md/core/classes/TextureResource.md +358 -0
- package/data/typedoc-md/core/classes/TiltedViewClipPlaneEstimator.md +591 -0
- package/data/typedoc-md/core/classes/TopDownClipPlaneEstimator.md +512 -0
- package/data/typedoc-md/core/classes/Transform.md +1893 -0
- package/data/typedoc-md/core/classes/UniformsLib.md +189 -0
- package/data/typedoc-md/core/classes/UpdateFlag.md +111 -0
- package/data/typedoc-md/core/classes/UpdateFlagManager.md +223 -0
- package/data/typedoc-md/core/classes/ValueNoise.md +164 -0
- package/data/typedoc-md/core/classes/WebGLEngine.md +1166 -0
- package/data/typedoc-md/core/classes/WebGPUEngine.md +1154 -0
- package/data/typedoc-md/core/classes/WorkerCrashedError.md +93 -0
- package/data/typedoc-md/core/classes/WorkerDefinitionNotFoundError.md +49 -0
- package/data/typedoc-md/core/classes/WorkerManager.md +266 -0
- package/data/typedoc-md/core/classes/WorkerPool.md +93 -0
- package/data/typedoc-md/core/classes/WorkerPoolDisposedError.md +49 -0
- package/data/typedoc-md/core/classes/WorkerRegistry.md +162 -0
- package/data/typedoc-md/core/classes/WorkerTaskAbortedError.md +55 -0
- package/data/typedoc-md/core/classes/WorkerTaskExecutionError.md +114 -0
- package/data/typedoc-md/core/classes/WorkerTaskTimeoutError.md +61 -0
- package/data/typedoc-md/core/enumerations/BackgroundType.md +45 -0
- package/data/typedoc-md/core/enumerations/CommandHistoryEventType.md +63 -0
- package/data/typedoc-md/core/enumerations/DependentMode.md +29 -0
- package/data/typedoc-md/core/enumerations/EasingName.md +632 -0
- package/data/typedoc-md/core/enumerations/EventType.md +153 -0
- package/data/typedoc-md/core/enumerations/GradientMode.md +48 -0
- package/data/typedoc-md/core/enumerations/HorizontalOrigin.md +39 -0
- package/data/typedoc-md/core/enumerations/InterpolationMode.md +67 -0
- package/data/typedoc-md/core/enumerations/LogLevel.md +63 -0
- package/data/typedoc-md/core/enumerations/MinMaxCurveMode.md +67 -0
- package/data/typedoc-md/core/enumerations/MinMaxGradientMode.md +101 -0
- package/data/typedoc-md/core/enumerations/Priority.md +45 -0
- package/data/typedoc-md/core/enumerations/QueryMask.md +360 -0
- package/data/typedoc-md/core/enumerations/RenderOrder.md +43 -0
- package/data/typedoc-md/core/enumerations/TextAlign.md +45 -0
- package/data/typedoc-md/core/enumerations/VerticalOrigin.md +39 -0
- package/data/typedoc-md/core/enumerations/WeightedMode.md +81 -0
- package/data/typedoc-md/core/enumerations/WrapMode.md +100 -0
- package/data/typedoc-md/core/functions/assert.md +37 -0
- package/data/typedoc-md/core/functions/autoExposure.md +40 -0
- package/data/typedoc-md/core/functions/backIn.md +33 -0
- package/data/typedoc-md/core/functions/backInOut.md +34 -0
- package/data/typedoc-md/core/functions/backOut.md +33 -0
- package/data/typedoc-md/core/functions/bounceIn.md +33 -0
- package/data/typedoc-md/core/functions/bounceInOut.md +33 -0
- package/data/typedoc-md/core/functions/bounceOut.md +32 -0
- package/data/typedoc-md/core/functions/circIn.md +33 -0
- package/data/typedoc-md/core/functions/circInOut.md +34 -0
- package/data/typedoc-md/core/functions/circOut.md +33 -0
- package/data/typedoc-md/core/functions/collectMaterialTextureBindings.md +40 -0
- package/data/typedoc-md/core/functions/collectTransferables.md +37 -0
- package/data/typedoc-md/core/functions/colorGrading.md +31 -0
- package/data/typedoc-md/core/functions/constant.md +24 -0
- package/data/typedoc-md/core/functions/createErrorEnvelope.md +41 -0
- package/data/typedoc-md/core/functions/createEventEnvelope.md +50 -0
- package/data/typedoc-md/core/functions/createRequestEnvelope.md +47 -0
- package/data/typedoc-md/core/functions/createResultEnvelope.md +47 -0
- package/data/typedoc-md/core/functions/createTextureLoader.md +29 -0
- package/data/typedoc-md/core/functions/createWorkerEndpoint.md +54 -0
- package/data/typedoc-md/core/functions/createWorkerTransferResult.md +41 -0
- package/data/typedoc-md/core/functions/cubicIn.md +32 -0
- package/data/typedoc-md/core/functions/cubicInOut.md +32 -0
- package/data/typedoc-md/core/functions/cubicOut.md +32 -0
- package/data/typedoc-md/core/functions/curlNoise2D.md +38 -0
- package/data/typedoc-md/core/functions/curlNoise3D.md +39 -0
- package/data/typedoc-md/core/functions/defaultValue.md +35 -0
- package/data/typedoc-md/core/functions/defined.md +35 -0
- package/data/typedoc-md/core/functions/dependentComponents.md +79 -0
- package/data/typedoc-md/core/functions/deserializeError.md +41 -0
- package/data/typedoc-md/core/functions/dither.md +34 -0
- package/data/typedoc-md/core/functions/elasticIn.md +34 -0
- package/data/typedoc-md/core/functions/elasticInOut.md +34 -0
- package/data/typedoc-md/core/functions/elasticOut.md +34 -0
- package/data/typedoc-md/core/functions/expoIn.md +32 -0
- package/data/typedoc-md/core/functions/expoInOut.md +33 -0
- package/data/typedoc-md/core/functions/expoOut.md +32 -0
- package/data/typedoc-md/core/functions/fade.md +33 -0
- package/data/typedoc-md/core/functions/fbm.md +39 -0
- package/data/typedoc-md/core/functions/getEasingFunction.md +39 -0
- package/data/typedoc-md/core/functions/grain.md +34 -0
- package/data/typedoc-md/core/functions/isWorkerMessageEnvelope.md +29 -0
- package/data/typedoc-md/core/functions/isWorkerTransferResult.md +35 -0
- package/data/typedoc-md/core/functions/karisBloom.md +33 -0
- package/data/typedoc-md/core/functions/lensFlare.md +52 -0
- package/data/typedoc-md/core/functions/linear.md +32 -0
- package/data/typedoc-md/core/functions/normalizePositiveNumber.md +33 -0
- package/data/typedoc-md/core/functions/packUnorm16.md +32 -0
- package/data/typedoc-md/core/functions/packUnorm8.md +32 -0
- package/data/typedoc-md/core/functions/pingPong.md +38 -0
- package/data/typedoc-md/core/functions/pixelHash.md +50 -0
- package/data/typedoc-md/core/functions/propertyChanged.md +29 -0
- package/data/typedoc-md/core/functions/pseudoRandom.md +29 -0
- package/data/typedoc-md/core/functions/pseudoRandomRange.md +41 -0
- package/data/typedoc-md/core/functions/pseudoRandomRangeInt.md +41 -0
- package/data/typedoc-md/core/functions/quadIn.md +32 -0
- package/data/typedoc-md/core/functions/quadInOut.md +32 -0
- package/data/typedoc-md/core/functions/quadOut.md +32 -0
- package/data/typedoc-md/core/functions/quartIn.md +32 -0
- package/data/typedoc-md/core/functions/quartInOut.md +32 -0
- package/data/typedoc-md/core/functions/quartOut.md +32 -0
- package/data/typedoc-md/core/functions/quickSort.md +51 -0
- package/data/typedoc-md/core/functions/quintIn.md +32 -0
- package/data/typedoc-md/core/functions/quintInOut.md +32 -0
- package/data/typedoc-md/core/functions/quintOut.md +32 -0
- package/data/typedoc-md/core/functions/random.md +21 -0
- package/data/typedoc-md/core/functions/randomRange.md +35 -0
- package/data/typedoc-md/core/functions/randomRangeInt.md +35 -0
- package/data/typedoc-md/core/functions/removeFromArray.md +35 -0
- package/data/typedoc-md/core/functions/repeat.md +38 -0
- package/data/typedoc-md/core/functions/ridgedNoise.md +38 -0
- package/data/typedoc-md/core/functions/serializeError.md +31 -0
- package/data/typedoc-md/core/functions/setRandomFunc.md +35 -0
- package/data/typedoc-md/core/functions/sineIn.md +32 -0
- package/data/typedoc-md/core/functions/sineInOut.md +32 -0
- package/data/typedoc-md/core/functions/sineOut.md +32 -0
- package/data/typedoc-md/core/functions/smooth.md +33 -0
- package/data/typedoc-md/core/functions/ssf.md +39 -0
- package/data/typedoc-md/core/interfaces/AmbientLightParams.md +79 -0
- package/data/typedoc-md/core/interfaces/AnimationParams.md +67 -0
- package/data/typedoc-md/core/interfaces/AnnotationParams.md +242 -0
- package/data/typedoc-md/core/interfaces/BackgroundParams.md +53 -0
- package/data/typedoc-md/core/interfaces/CameraParams.md +238 -0
- package/data/typedoc-md/core/interfaces/ClipPlaneRange.md +86 -0
- package/data/typedoc-md/core/interfaces/ClipPlaneUpdaterParams.md +95 -0
- package/data/typedoc-md/core/interfaces/CloudSample.md +94 -0
- package/data/typedoc-md/core/interfaces/CommandHistoryEvent.md +43 -0
- package/data/typedoc-md/core/interfaces/CommandHistoryParams.md +29 -0
- package/data/typedoc-md/core/interfaces/ComponentParams.md +60 -0
- package/data/typedoc-md/core/interfaces/ComputeInfo.md +43 -0
- package/data/typedoc-md/core/interfaces/ControlsParams.md +80 -0
- package/data/typedoc-md/core/interfaces/CreateTaskOptions.md +105 -0
- package/data/typedoc-md/core/interfaces/DebugInfo.md +71 -0
- package/data/typedoc-md/core/interfaces/DirectionalLightParams.md +135 -0
- package/data/typedoc-md/core/interfaces/EngineParams.md +71 -0
- package/data/typedoc-md/core/interfaces/EntityParams.md +75 -0
- package/data/typedoc-md/core/interfaces/EnvironmentParams.md +81 -0
- package/data/typedoc-md/core/interfaces/FogParams.md +118 -0
- package/data/typedoc-md/core/interfaces/FramebufferCaptureParams.md +73 -0
- package/data/typedoc-md/core/interfaces/GLTFParserParams.md +188 -0
- package/data/typedoc-md/core/interfaces/GlyphAtlasBlock.md +87 -0
- package/data/typedoc-md/core/interfaces/GlyphAtlasParams.md +89 -0
- package/data/typedoc-md/core/interfaces/HemisphereLightParams.md +93 -0
- package/data/typedoc-md/core/interfaces/IClipPlaneEstimator.md +93 -0
- package/data/typedoc-md/core/interfaces/InstancedGLTFParserParams.md +177 -0
- package/data/typedoc-md/core/interfaces/InstancedModelRendererParams.md +203 -0
- package/data/typedoc-md/core/interfaces/LabelImageParams.md +119 -0
- package/data/typedoc-md/core/interfaces/LabelParams.md +374 -0
- package/data/typedoc-md/core/interfaces/LabelTextOutlineParams.md +49 -0
- package/data/typedoc-md/core/interfaces/LabelTextParams.md +153 -0
- package/data/typedoc-md/core/interfaces/LightProbeGroupParams.md +200 -0
- package/data/typedoc-md/core/interfaces/LightProbeParams.md +72 -0
- package/data/typedoc-md/core/interfaces/LightShadowParams.md +137 -0
- package/data/typedoc-md/core/interfaces/MaterialTextureBinding.md +86 -0
- package/data/typedoc-md/core/interfaces/MemoryEstimateOptions.md +46 -0
- package/data/typedoc-md/core/interfaces/MemoryInfo.md +155 -0
- package/data/typedoc-md/core/interfaces/MemoryUsage.md +94 -0
- package/data/typedoc-md/core/interfaces/MemoryUsageBreakdown.md +59 -0
- package/data/typedoc-md/core/interfaces/MeshRendererParams.md +157 -0
- package/data/typedoc-md/core/interfaces/ModelRendererParams.md +188 -0
- package/data/typedoc-md/core/interfaces/ModuleParams.md +21 -0
- package/data/typedoc-md/core/interfaces/OrbitControlsParams.md +549 -0
- package/data/typedoc-md/core/interfaces/OrthographicCameraParams.md +299 -0
- package/data/typedoc-md/core/interfaces/ParallelLightParams.md +122 -0
- package/data/typedoc-md/core/interfaces/PendingWorkerTask.md +49 -0
- package/data/typedoc-md/core/interfaces/PerspectiveCameraParams.md +299 -0
- package/data/typedoc-md/core/interfaces/PickResult.md +53 -0
- package/data/typedoc-md/core/interfaces/PickerParams.md +27 -0
- package/data/typedoc-md/core/interfaces/PointLightParams.md +177 -0
- package/data/typedoc-md/core/interfaces/RectAreaLightParams.md +177 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingItem.md +123 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingParticipant.md +59 -0
- package/data/typedoc-md/core/interfaces/RectangleCullingRect.md +92 -0
- package/data/typedoc-md/core/interfaces/RenderInfo.md +99 -0
- package/data/typedoc-md/core/interfaces/RenderParams.md +117 -0
- package/data/typedoc-md/core/interfaces/RendererParams.md +120 -0
- package/data/typedoc-md/core/interfaces/ResourceManagerMemoryStats.md +141 -0
- package/data/typedoc-md/core/interfaces/ResourceManagerParams.md +85 -0
- package/data/typedoc-md/core/interfaces/SDFFont.md +85 -0
- package/data/typedoc-md/core/interfaces/SDFGlyph.md +130 -0
- package/data/typedoc-md/core/interfaces/SDFGlyphGeneratorParams.md +55 -0
- package/data/typedoc-md/core/interfaces/SRSDescriptor.md +50 -0
- package/data/typedoc-md/core/interfaces/SceneParams.md +145 -0
- package/data/typedoc-md/core/interfaces/ScriptableSceneRendererParams.md +105 -0
- package/data/typedoc-md/core/interfaces/SerializedWorkerError.md +74 -0
- package/data/typedoc-md/core/interfaces/SpotLightParams.md +219 -0
- package/data/typedoc-md/core/interfaces/TextureAtlasBlock.md +59 -0
- package/data/typedoc-md/core/interfaces/TextureAtlasParams.md +75 -0
- package/data/typedoc-md/core/interfaces/TextureBackgroundParams.md +81 -0
- package/data/typedoc-md/core/interfaces/TiltedViewClipPlaneEstimatorParams.md +231 -0
- package/data/typedoc-md/core/interfaces/TopDownClipPlaneEstimatorParams.md +180 -0
- package/data/typedoc-md/core/interfaces/TransformParams.md +135 -0
- package/data/typedoc-md/core/interfaces/Transformation.md +85 -0
- package/data/typedoc-md/core/interfaces/WebGLParams.md +161 -0
- package/data/typedoc-md/core/interfaces/WebGPUParams.md +181 -0
- package/data/typedoc-md/core/interfaces/WorkerDefinition.md +134 -0
- package/data/typedoc-md/core/interfaces/WorkerEndpointContext.md +88 -0
- package/data/typedoc-md/core/interfaces/WorkerLease.md +71 -0
- package/data/typedoc-md/core/interfaces/WorkerManagerLike.md +167 -0
- package/data/typedoc-md/core/interfaces/WorkerManagerOptions.md +73 -0
- package/data/typedoc-md/core/interfaces/WorkerMessageEnvelope.md +109 -0
- package/data/typedoc-md/core/interfaces/WorkerRunOptions.md +43 -0
- package/data/typedoc-md/core/interfaces/WorkerTaskRequest.md +80 -0
- package/data/typedoc-md/core/interfaces/WorkerTransferResult.md +69 -0
- package/data/typedoc-md/core/type-aliases/ComponentConstructor.md +37 -0
- package/data/typedoc-md/core/type-aliases/ComponentCtor.md +43 -0
- package/data/typedoc-md/core/type-aliases/IsOptional.md +25 -0
- package/data/typedoc-md/core/type-aliases/MaterialTextureBindingKind.md +15 -0
- package/data/typedoc-md/core/type-aliases/ModuleConstructor.md +40 -0
- package/data/typedoc-md/core/type-aliases/ModuleCtor.md +46 -0
- package/data/typedoc-md/core/type-aliases/PickerConstructor.md +37 -0
- package/data/typedoc-md/core/type-aliases/PickerCtor.md +45 -0
- package/data/typedoc-md/core/type-aliases/ScriptableRenderCallback.md +31 -0
- package/data/typedoc-md/core/type-aliases/SkyBackgroundParams.md +15 -0
- package/data/typedoc-md/core/type-aliases/SubscriberCallbackFn.md +28 -0
- package/data/typedoc-md/core/type-aliases/WorkerEndpointHandler.md +43 -0
- package/data/typedoc-md/core/type-aliases/WorkerFactory.md +23 -0
- package/data/typedoc-md/core/type-aliases/WorkerMessageKind.md +17 -0
- package/data/typedoc-md/core/type-aliases/WorkerStrategy.md +22 -0
- package/data/typedoc-md/core/variables/CORE_VERSION.md +11 -0
- package/data/typedoc-md/core/variables/DEV.md +13 -0
- package/data/typedoc-md/core/variables/EARTH_MAX_BUILDING_HEIGHT.md +17 -0
- package/data/typedoc-md/core/variables/EARTH_PERIMETER.md +19 -0
- package/data/typedoc-md/core/variables/EARTH_RADIUS.md +17 -0
- package/data/typedoc-md/core/variables/EPSILON.md +21 -0
- package/data/typedoc-md/core/variables/WORKER_TRANSFER_RESULT.md +18 -0
- package/data/typedoc-md/core/variables/backOutIn.md +34 -0
- package/data/typedoc-md/core/variables/bounceOutIn.md +34 -0
- package/data/typedoc-md/core/variables/circOutIn.md +34 -0
- package/data/typedoc-md/core/variables/cubicOutIn.md +34 -0
- package/data/typedoc-md/core/variables/elasticOutIn.md +34 -0
- package/data/typedoc-md/core/variables/expoOutIn.md +34 -0
- package/data/typedoc-md/core/variables/fbmValueNoise.md +27 -0
- package/data/typedoc-md/core/variables/hash2d.md +28 -0
- package/data/typedoc-md/core/variables/perlinNoise2D.md +28 -0
- package/data/typedoc-md/core/variables/perlinNoise3D.md +28 -0
- package/data/typedoc-md/core/variables/permute.md +27 -0
- package/data/typedoc-md/core/variables/quadOutIn.md +34 -0
- package/data/typedoc-md/core/variables/quartOutIn.md +34 -0
- package/data/typedoc-md/core/variables/quintOutIn.md +34 -0
- package/data/typedoc-md/core/variables/random01.md +25 -0
- package/data/typedoc-md/core/variables/randomGradient.md +25 -0
- package/data/typedoc-md/core/variables/randomGradient3D.md +27 -0
- package/data/typedoc-md/core/variables/randomRangeFn.md +37 -0
- package/data/typedoc-md/core/variables/randomVec2.md +25 -0
- package/data/typedoc-md/core/variables/randomVec3.md +25 -0
- package/data/typedoc-md/core/variables/simplexNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/simplexNoise3D.md +27 -0
- package/data/typedoc-md/core/variables/sineOutIn.md +34 -0
- package/data/typedoc-md/core/variables/valueNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/valueNoise3D.md +28 -0
- package/data/typedoc-md/core/variables/whiteNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/whiteNoise3D.md +27 -0
- package/data/typedoc-md/core/variables/worleyNoise2D.md +27 -0
- package/data/typedoc-md/core/variables/worleyNoise3D.md +28 -0
- package/data/typedoc-md/particlesystem/README.md +271 -0
- package/data/typedoc-md/particlesystem/classes/BillboardParticleRenderer.md +1242 -0
- package/data/typedoc-md/particlesystem/classes/BuoyancyBlock.md +527 -0
- package/data/typedoc-md/particlesystem/classes/CollisionBoxBlock.md +824 -0
- package/data/typedoc-md/particlesystem/classes/CollisionCylinderBlock.md +908 -0
- package/data/typedoc-md/particlesystem/classes/CollisionModule.md +661 -0
- package/data/typedoc-md/particlesystem/classes/CollisionPlaneBlock.md +825 -0
- package/data/typedoc-md/particlesystem/classes/CollisionSphereBlock.md +825 -0
- package/data/typedoc-md/particlesystem/classes/ColorBySpeedModule.md +303 -0
- package/data/typedoc-md/particlesystem/classes/ColorOverLifetimeModule.md +288 -0
- package/data/typedoc-md/particlesystem/classes/ConformSphereBlock.md +652 -0
- package/data/typedoc-md/particlesystem/classes/EmissionModule.md +393 -0
- package/data/typedoc-md/particlesystem/classes/EmitContext.md +725 -0
- package/data/typedoc-md/particlesystem/classes/EventSpawnContext.md +367 -0
- package/data/typedoc-md/particlesystem/classes/FlipbookPlayerBlock.md +924 -0
- package/data/typedoc-md/particlesystem/classes/ForceBlock.md +568 -0
- package/data/typedoc-md/particlesystem/classes/ForceOverLifetimeModule.md +457 -0
- package/data/typedoc-md/particlesystem/classes/GravityBlock.md +414 -0
- package/data/typedoc-md/particlesystem/classes/InheritVelocityModule.md +348 -0
- package/data/typedoc-md/particlesystem/classes/KillByAgeBlock.md +402 -0
- package/data/typedoc-md/particlesystem/classes/KillByBoxBlock.md +526 -0
- package/data/typedoc-md/particlesystem/classes/KillByCylinderBlock.md +610 -0
- package/data/typedoc-md/particlesystem/classes/KillByPlaneBlock.md +526 -0
- package/data/typedoc-md/particlesystem/classes/KillBySphereBlock.md +525 -0
- package/data/typedoc-md/particlesystem/classes/LifetimeByEmitterSpeedModule.md +358 -0
- package/data/typedoc-md/particlesystem/classes/LightsModule.md +570 -0
- package/data/typedoc-md/particlesystem/classes/LimitVelocityOverLifetimeModule.md +657 -0
- package/data/typedoc-md/particlesystem/classes/LinearDragBlock.md +486 -0
- package/data/typedoc-md/particlesystem/classes/MainModule.md +1216 -0
- package/data/typedoc-md/particlesystem/classes/MeshOutputContext.md +691 -0
- package/data/typedoc-md/particlesystem/classes/MeshParticleRenderer.md +552 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngle3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngleOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngularVelocity3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyAngularVelocityOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyColorOverLifeBlock.md +456 -0
- package/data/typedoc-md/particlesystem/classes/MultiplyScaleOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/MultiplySizeOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/NoiseModule.md +766 -0
- package/data/typedoc-md/particlesystem/classes/NoneParticleRenderer.md +501 -0
- package/data/typedoc-md/particlesystem/classes/OrientAlongVelocityBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/OrientFaceCameraPlaneBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/OrientFaceCameraPositionBlock.md +402 -0
- package/data/typedoc-md/particlesystem/classes/OrientFixedAxisBlock.md +442 -0
- package/data/typedoc-md/particlesystem/classes/OrientLookAtPositionBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/OutputContext.md +489 -0
- package/data/typedoc-md/particlesystem/classes/ParticleModule.md +256 -0
- package/data/typedoc-md/particlesystem/classes/ParticleModuleRegistry.md +95 -0
- package/data/typedoc-md/particlesystem/classes/ParticleRenderer.md +415 -0
- package/data/typedoc-md/particlesystem/classes/ParticleRendererRegistry.md +103 -0
- package/data/typedoc-md/particlesystem/classes/ParticleSystem.md +1056 -0
- package/data/typedoc-md/particlesystem/classes/ParticleSystemFactory.md +98 -0
- package/data/typedoc-md/particlesystem/classes/PointAttractRepelBlock.md +568 -0
- package/data/typedoc-md/particlesystem/classes/QuadOutputContext.md +1524 -0
- package/data/typedoc-md/particlesystem/classes/RotationBySpeedModule.md +516 -0
- package/data/typedoc-md/particlesystem/classes/RotationOverLifetimeModule.md +460 -0
- package/data/typedoc-md/particlesystem/classes/SetAngle3DBlock.md +434 -0
- package/data/typedoc-md/particlesystem/classes/SetAngle3DOverLifeBlock.md +440 -0
- package/data/typedoc-md/particlesystem/classes/SetAngleBlock.md +449 -0
- package/data/typedoc-md/particlesystem/classes/SetAngleOverLifeBlock.md +412 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocity3DBlock.md +439 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocity3DOverLifeBlock.md +441 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocityBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetAngularVelocityOverLifeBlock.md +413 -0
- package/data/typedoc-md/particlesystem/classes/SetColorBlock.md +404 -0
- package/data/typedoc-md/particlesystem/classes/SetColorBySpeedBlock.md +497 -0
- package/data/typedoc-md/particlesystem/classes/SetColorOverLifeBlock.md +454 -0
- package/data/typedoc-md/particlesystem/classes/SetLifetimeBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetMassBlock.md +408 -0
- package/data/typedoc-md/particlesystem/classes/SetPositionBlock.md +435 -0
- package/data/typedoc-md/particlesystem/classes/SetSize3DBlock.md +434 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeBlock.md +407 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeBySpeedBlock.md +454 -0
- package/data/typedoc-md/particlesystem/classes/SetSizeOverLifeBlock.md +412 -0
- package/data/typedoc-md/particlesystem/classes/SetVelocityBlock.md +626 -0
- package/data/typedoc-md/particlesystem/classes/SetVelocityTangentBlock.md +628 -0
- package/data/typedoc-md/particlesystem/classes/ShapeModule.md +663 -0
- package/data/typedoc-md/particlesystem/classes/SizeBySpeedModule.md +556 -0
- package/data/typedoc-md/particlesystem/classes/SizeOverLifetimeModule.md +542 -0
- package/data/typedoc-md/particlesystem/classes/SoftBoundaryForceBlock.md +652 -0
- package/data/typedoc-md/particlesystem/classes/SpawnContext.md +355 -0
- package/data/typedoc-md/particlesystem/classes/StripQuadOutputContext.md +1309 -0
- package/data/typedoc-md/particlesystem/classes/SubEmitterBirthInstance.md +104 -0
- package/data/typedoc-md/particlesystem/classes/SubEmittersModule.md +661 -0
- package/data/typedoc-md/particlesystem/classes/TextureSheetAnimationModule.md +641 -0
- package/data/typedoc-md/particlesystem/classes/TrailsModule.md +842 -0
- package/data/typedoc-md/particlesystem/classes/TriggerEventOnCollideBlock.md +448 -0
- package/data/typedoc-md/particlesystem/classes/TriggerEventOnDieBlock.md +447 -0
- package/data/typedoc-md/particlesystem/classes/TurbulenceBlock.md +764 -0
- package/data/typedoc-md/particlesystem/classes/UpdateAngleBlock.md +400 -0
- package/data/typedoc-md/particlesystem/classes/UpdateContext.md +379 -0
- package/data/typedoc-md/particlesystem/classes/UpdatePositionBlock.md +401 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlock.md +357 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlockRegistry.md +177 -0
- package/data/typedoc-md/particlesystem/classes/VFXBlockTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXBoxShape.md +686 -0
- package/data/typedoc-md/particlesystem/classes/VFXCircleShape.md +853 -0
- package/data/typedoc-md/particlesystem/classes/VFXConeShape.md +1026 -0
- package/data/typedoc-md/particlesystem/classes/VFXContext.md +317 -0
- package/data/typedoc-md/particlesystem/classes/VFXCurveAtlas.md +142 -0
- package/data/typedoc-md/particlesystem/classes/VFXDynamicBlock.md +449 -0
- package/data/typedoc-md/particlesystem/classes/VFXEdgeShape.md +725 -0
- package/data/typedoc-md/particlesystem/classes/VFXOutputContextRegistry.md +177 -0
- package/data/typedoc-md/particlesystem/classes/VFXOutputContextTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXShape.md +551 -0
- package/data/typedoc-md/particlesystem/classes/VFXShapeFactory.md +126 -0
- package/data/typedoc-md/particlesystem/classes/VFXShapeTypeNotFoundError.md +47 -0
- package/data/typedoc-md/particlesystem/classes/VFXSphereShape.md +896 -0
- package/data/typedoc-md/particlesystem/classes/VFXStaticBlock.md +411 -0
- package/data/typedoc-md/particlesystem/classes/VFXSystem.md +793 -0
- package/data/typedoc-md/particlesystem/classes/VFXSystemFactory.md +139 -0
- package/data/typedoc-md/particlesystem/classes/VFXTorusShape.md +941 -0
- package/data/typedoc-md/particlesystem/classes/VectorFieldForceBlock.md +596 -0
- package/data/typedoc-md/particlesystem/classes/VelocityOverLifetimeModule.md +910 -0
- package/data/typedoc-md/particlesystem/classes/VortexForceBlock.md +654 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleBlendingMode.md +83 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleColorCombineMode.md +97 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationRowMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationTimeMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemAnimationType.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemBillboardMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemBoxShapeEmitFrom.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemConeShapeEmitFrom.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemInheritVelocityMode.md +43 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemMeshShapeType.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemNoiseQuality.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemRandomSeeds.md +392 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemRenderMode.md +56 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemScalingMode.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemShapeMultiModeValue.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemShapeType.md +139 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSimulationSpace.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSortMode.md +86 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSubEmitterInheritFlags.md +114 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemSubEmitterType.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemTrailMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/ParticleSystemTrailTextureMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadBlendingMode.md +83 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadColorCombineMode.md +97 -0
- package/data/typedoc-md/particlesystem/enumerations/QuadUvMode.md +89 -0
- package/data/typedoc-md/particlesystem/enumerations/StripQuadUvMode.md +58 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXBlockMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXCollisionMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXCollisionRadiusMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXColorMode.md +57 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXConeShapeHeightMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXContextType.md +115 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXDataType.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookAnimationRange.md +74 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookCyclesMode.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookFrameRateMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXFlipbookPlayMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXForceFalloff.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXForceMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXKillBoundsMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXNoiseType.md +55 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXShapePositionMode.md +69 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXShapeSpawnMode.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSimulationSpace.md +44 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSoftBoundaryShape.md +41 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXSortMode.md +87 -0
- package/data/typedoc-md/particlesystem/enumerations/VFXVelocityCompositionMode.md +69 -0
- package/data/typedoc-md/particlesystem/interfaces/Angle3DOverLifeBlockParams.md +88 -0
- package/data/typedoc-md/particlesystem/interfaces/AngleOverLifeBlockParams.md +60 -0
- package/data/typedoc-md/particlesystem/interfaces/AngularVelocity3DOverLifeBlockParams.md +88 -0
- package/data/typedoc-md/particlesystem/interfaces/AngularVelocityOverLifeBlockParams.md +60 -0
- package/data/typedoc-md/particlesystem/interfaces/BillboardParticleRendererParams.md +511 -0
- package/data/typedoc-md/particlesystem/interfaces/BuoyancyBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionBoxBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionCylinderBlockParams.md +318 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionPlaneBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/CollisionSphereBlockParams.md +278 -0
- package/data/typedoc-md/particlesystem/interfaces/ColorOverLifeBlockParams.md +86 -0
- package/data/typedoc-md/particlesystem/interfaces/ConformSphereBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/CustomParticleRendererParams.md +93 -0
- package/data/typedoc-md/particlesystem/interfaces/EmissionEmitContext.md +156 -0
- package/data/typedoc-md/particlesystem/interfaces/FlipbookPlayerBlockParams.md +307 -0
- package/data/typedoc-md/particlesystem/interfaces/ForceBlockParams.md +124 -0
- package/data/typedoc-md/particlesystem/interfaces/GravityBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByBoxBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByCylinderBlockParams.md +144 -0
- package/data/typedoc-md/particlesystem/interfaces/KillByPlaneBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/KillBySphereBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/LinearDragBlockParams.md +84 -0
- package/data/typedoc-md/particlesystem/interfaces/MeshOutputContextParams.md +129 -0
- package/data/typedoc-md/particlesystem/interfaces/MeshParticleRendererParams.md +139 -0
- package/data/typedoc-md/particlesystem/interfaces/MultiplyScaleOverLifeBlockParams.md +106 -0
- package/data/typedoc-md/particlesystem/interfaces/NoneParticleRendererParams.md +82 -0
- package/data/typedoc-md/particlesystem/interfaces/OrientFixedAxisBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/OrientLookAtPositionBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleBlendingOptions.md +127 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleLightParams.md +59 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleRendererParams.md +63 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleSystemModuleParams.md +375 -0
- package/data/typedoc-md/particlesystem/interfaces/ParticleSystemParams.md +137 -0
- package/data/typedoc-md/particlesystem/interfaces/PointAttractRepelBlockParams.md +124 -0
- package/data/typedoc-md/particlesystem/interfaces/QuadBlendingOptions.md +127 -0
- package/data/typedoc-md/particlesystem/interfaces/QuadOutputContextParams.md +496 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngle3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngleBlockParams.md +84 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngularVelocity3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetAngularVelocityBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetColorBlockParams.md +58 -0
- package/data/typedoc-md/particlesystem/interfaces/SetColorBySpeedBlockParams.md +106 -0
- package/data/typedoc-md/particlesystem/interfaces/SetLifetimeBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetMassBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetPositionBlockParams.md +58 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSize3DBlockParams.md +104 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSizeBlockParams.md +64 -0
- package/data/typedoc-md/particlesystem/interfaces/SetSizeBySpeedBlockParams.md +86 -0
- package/data/typedoc-md/particlesystem/interfaces/SetVelocityBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/SetVelocityTangentBlockParams.md +165 -0
- package/data/typedoc-md/particlesystem/interfaces/SizeOverLifeBlockParams.md +66 -0
- package/data/typedoc-md/particlesystem/interfaces/SoftBoundaryForceBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/interfaces/StripQuadOutputContextParams.md +395 -0
- package/data/typedoc-md/particlesystem/interfaces/SubEmitter.md +73 -0
- package/data/typedoc-md/particlesystem/interfaces/SubEmitterInheritProperties.md +167 -0
- package/data/typedoc-md/particlesystem/interfaces/TrailsModuleParams.md +313 -0
- package/data/typedoc-md/particlesystem/interfaces/TriggerEventOnCollideBlockParams.md +67 -0
- package/data/typedoc-md/particlesystem/interfaces/TriggerEventOnDieBlockParams.md +67 -0
- package/data/typedoc-md/particlesystem/interfaces/TurbulenceBlockParams.md +224 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBlockParams.md +79 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBoxShapeParams.md +214 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXBurstRule.md +87 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCPUEvent.md +77 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCircleShapeParams.md +306 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXConeShapeParams.md +387 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCurveSlot.md +59 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXCurveSlots.md +37 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXEdgeShapeParams.md +223 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXOutputShade.md +145 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeArcParams.md +82 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeParams.md +140 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXShapeVolumeParams.md +213 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXSphereShapeParams.md +327 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXSystemParams.md +335 -0
- package/data/typedoc-md/particlesystem/interfaces/VFXTorusShapeParams.md +346 -0
- package/data/typedoc-md/particlesystem/interfaces/VectorFieldForceBlockParams.md +147 -0
- package/data/typedoc-md/particlesystem/interfaces/VortexForceBlockParams.md +164 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleModuleConstructor.md +33 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleRendererConstructor.md +43 -0
- package/data/typedoc-md/particlesystem/type-aliases/ParticleRendererOptions.md +15 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXBlockCtor.md +53 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXOutputContextCtor.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXOutputContextFactory.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXShapeCtor.md +35 -0
- package/data/typedoc-md/particlesystem/type-aliases/VFXSystemTemplate.md +19 -0
- package/data/typedoc-md/particlesystem/variables/DEFAULT_PARTICLE_PER_STRIP_COUNT.md +20 -0
- package/data/typedoc-md/particlesystem/variables/DEFAULT_STRIP_MAX_PARTICLES.md +22 -0
- package/data/typedoc-md/particlesystem/variables/MAX_BURSTS.md +13 -0
- package/data/typedoc-md/particlesystem/variables/MAX_EVENTS.md +13 -0
- package/data/typedoc-md/particlesystem/variables/PARTICLESYSTEM_VERSION.md +13 -0
- package/data/typedoc-md/postprocessing/README.md +20 -0
- package/data/typedoc-md/postprocessing/classes/OffscreenPass.md +184 -0
- package/data/typedoc-md/postprocessing/classes/PostprocessingSceneRenderer.md +330 -0
- package/data/typedoc-md/postprocessing/classes/SSFEffect.md +584 -0
- package/data/typedoc-md/postprocessing/interfaces/PostprocessingSceneRendererParams.md +115 -0
- package/data/typedoc-md/postprocessing/interfaces/ScreenSpaceFogEffectParams.md +420 -0
- package/data/typedoc-md/postprocessing/variables/POSTPROCESSING_VERSION.md +11 -0
- package/dist/server.js +1301 -0
- package/package.json +46 -4
- package/resources/examples/.gitkeep +0 -0
- package/resources/examples/ambient-light.md +47 -0
- package/resources/examples/animation-curve.md +62 -0
- package/resources/examples/animation.md +56 -0
- package/resources/examples/annotation.md +68 -0
- package/resources/examples/auto-exposure-node.md +67 -0
- package/resources/examples/billboard-particle-renderer.md +85 -0
- package/resources/examples/bool-update-flag.md +61 -0
- package/resources/examples/clip-animation-controller.md +76 -0
- package/resources/examples/clip-plane-updater.md +63 -0
- package/resources/examples/color-grading-node.md +59 -0
- package/resources/examples/command-group.md +48 -0
- package/resources/examples/command-history.md +59 -0
- package/resources/examples/command.md +55 -0
- package/resources/examples/components-manager.md +43 -0
- package/resources/examples/controls.md +52 -0
- package/resources/examples/directional-light.md +49 -0
- package/resources/examples/dither-node.md +55 -0
- package/resources/examples/emit-context.md +71 -0
- package/resources/examples/entity.md +47 -0
- package/resources/examples/environment.md +51 -0
- package/resources/examples/event-dispatcher.md +62 -0
- package/resources/examples/event-spawn-context.md +67 -0
- package/resources/examples/geometry-resource.md +50 -0
- package/resources/examples/gltf-parser.md +78 -0
- package/resources/examples/gltf-resource.md +61 -0
- package/resources/examples/glyph-atlas.md +74 -0
- package/resources/examples/gradient.md +70 -0
- package/resources/examples/grain-node.md +57 -0
- package/resources/examples/hemisphere-light.md +49 -0
- package/resources/examples/instanced-model-renderer.md +99 -0
- package/resources/examples/karis-bloom-node.md +56 -0
- package/resources/examples/label.md +77 -0
- package/resources/examples/lens-flare-node.md +65 -0
- package/resources/examples/light-probe-group.md +53 -0
- package/resources/examples/light-probe.md +52 -0
- package/resources/examples/linear-picker.md +50 -0
- package/resources/examples/lut-resource.md +52 -0
- package/resources/examples/material-resource.md +63 -0
- package/resources/examples/memory-estimator.md +81 -0
- package/resources/examples/mesh-output-context.md +69 -0
- package/resources/examples/mesh-particle-renderer.md +71 -0
- package/resources/examples/mesh-renderer.md +49 -0
- package/resources/examples/min-max-curve.md +57 -0
- package/resources/examples/min-max-gradient.md +58 -0
- package/resources/examples/model-renderer.md +83 -0
- package/resources/examples/none-particle-renderer.md +59 -0
- package/resources/examples/offscreen-pass.md +46 -0
- package/resources/examples/orbit-controls.md +51 -0
- package/resources/examples/orthographic-camera.md +49 -0
- package/resources/examples/parallel-light.md +49 -0
- package/resources/examples/particle-module-registry.md +65 -0
- package/resources/examples/particle-renderer-registry.md +72 -0
- package/resources/examples/particle-system-factory.md +60 -0
- package/resources/examples/particle-system.md +85 -0
- package/resources/examples/perspective-camera.md +49 -0
- package/resources/examples/picker.md +58 -0
- package/resources/examples/point-light.md +50 -0
- package/resources/examples/postprocessing-scene-renderer.md +56 -0
- package/resources/examples/quad-output-context.md +75 -0
- package/resources/examples/random.md +57 -0
- package/resources/examples/rect-area-light.md +50 -0
- package/resources/examples/rectangle-culling.md +72 -0
- package/resources/examples/render-debug-info.md +67 -0
- package/resources/examples/renderer.md +53 -0
- package/resources/examples/resource-manager.md +61 -0
- package/resources/examples/resource-ref.md +55 -0
- package/resources/examples/scene-coordinate-system.md +66 -0
- package/resources/examples/scene-renderer.md +48 -0
- package/resources/examples/scene.md +49 -0
- package/resources/examples/script.md +54 -0
- package/resources/examples/scriptable-scene-renderer.md +58 -0
- package/resources/examples/sdf-glyph-generator.md +77 -0
- package/resources/examples/solid-color-background.md +45 -0
- package/resources/examples/spawn-context.md +58 -0
- package/resources/examples/spot-light.md +50 -0
- package/resources/examples/ssf-effect.md +66 -0
- package/resources/examples/ssf-node.md +78 -0
- package/resources/examples/strip-quad-output-context.md +69 -0
- package/resources/examples/sub-emitter-birth-instance.md +73 -0
- package/resources/examples/task-controller.md +66 -0
- package/resources/examples/texture-atlas.md +67 -0
- package/resources/examples/texture-background.md +53 -0
- package/resources/examples/texture-resource.md +53 -0
- package/resources/examples/tilted-view-clip-plane-estimator.md +66 -0
- package/resources/examples/top-down-clip-plane-estimator.md +67 -0
- package/resources/examples/transform.md +52 -0
- package/resources/examples/uniforms-lib.md +75 -0
- package/resources/examples/update-context.md +57 -0
- package/resources/examples/update-flag-manager.md +68 -0
- package/resources/examples/value-noise.md +60 -0
- package/resources/examples/vfx-block-registry.md +76 -0
- package/resources/examples/vfx-box-shape.md +60 -0
- package/resources/examples/vfx-circle-shape.md +62 -0
- package/resources/examples/vfx-cone-shape.md +67 -0
- package/resources/examples/vfx-curve-atlas.md +65 -0
- package/resources/examples/vfx-edge-shape.md +60 -0
- package/resources/examples/vfx-output-context-registry.md +84 -0
- package/resources/examples/vfx-shape-factory.md +63 -0
- package/resources/examples/vfx-sphere-shape.md +61 -0
- package/resources/examples/vfx-system-factory.md +67 -0
- package/resources/examples/vfx-system.md +88 -0
- package/resources/examples/vfx-torus-shape.md +61 -0
- package/resources/examples/webgl-engine.md +52 -0
- package/resources/examples/webgpu-engine.md +53 -0
- package/resources/examples/worker-manager.md +77 -0
- package/resources/examples/worker-pool.md +78 -0
- package/resources/examples/worker-registry.md +70 -0
- package/resources/guides/.gitkeep +0 -0
- package/resources/guides/animation.md +65 -0
- package/resources/guides/annotation.md +63 -0
- package/resources/guides/atlas.md +93 -0
- package/resources/guides/background.md +62 -0
- package/resources/guides/blocks.md +91 -0
- package/resources/guides/camera.md +67 -0
- package/resources/guides/clip-plane.md +60 -0
- package/resources/guides/command.md +81 -0
- package/resources/guides/component-renderer.md +64 -0
- package/resources/guides/component.md +64 -0
- package/resources/guides/contexts.md +100 -0
- package/resources/guides/controls.md +61 -0
- package/resources/guides/coordinate-systems.md +68 -0
- package/resources/guides/culling.md +82 -0
- package/resources/guides/data-structures.md +85 -0
- package/resources/guides/debug.md +76 -0
- package/resources/guides/effect-node.md +84 -0
- package/resources/guides/effect.md +69 -0
- package/resources/guides/engine.md +69 -0
- package/resources/guides/entity.md +57 -0
- package/resources/guides/environment.md +49 -0
- package/resources/guides/estimator.md +74 -0
- package/resources/guides/event.md +60 -0
- package/resources/guides/gltf.md +93 -0
- package/resources/guides/gradient.md +97 -0
- package/resources/guides/instanced-model-renderer.md +92 -0
- package/resources/guides/label.md +79 -0
- package/resources/guides/light-probe.md +81 -0
- package/resources/guides/light.md +82 -0
- package/resources/guides/logger.md +50 -0
- package/resources/guides/material.md +61 -0
- package/resources/guides/math.md +88 -0
- package/resources/guides/memory.md +84 -0
- package/resources/guides/mesh-renderer.md +59 -0
- package/resources/guides/model-renderer.md +78 -0
- package/resources/guides/module.md +97 -0
- package/resources/guides/pass.md +49 -0
- package/resources/guides/pick.md +65 -0
- package/resources/guides/postprocessing.md +56 -0
- package/resources/guides/registry.md +64 -0
- package/resources/guides/resource.md +83 -0
- package/resources/guides/scene.md +90 -0
- package/resources/guides/script.md +63 -0
- package/resources/guides/sdf.md +80 -0
- package/resources/guides/shapes.md +99 -0
- package/resources/guides/shuriken-factory.md +51 -0
- package/resources/guides/shuriken-renderer.md +82 -0
- package/resources/guides/shuriken.md +76 -0
- package/resources/guides/transform.md +60 -0
- package/resources/guides/update-flag.md +80 -0
- package/resources/guides/utils-curve.md +88 -0
- package/resources/guides/value.md +66 -0
- package/resources/guides/vfx-curve.md +74 -0
- package/resources/guides/vfx-factory.md +77 -0
- package/resources/guides/vfx.md +102 -0
- package/resources/guides/worker.md +127 -0
package/package.json
CHANGED
|
@@ -1,6 +1,48 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vista3d/mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
5
|
+
"description": "MCP server for vista3d SDK — API/examples/tools for AI Agents",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"vista3d-mcp": "./dist/server.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"data",
|
|
13
|
+
"resources"
|
|
14
|
+
],
|
|
15
|
+
"publishConfig": {
|
|
16
|
+
"access": "public"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build:docs": "tsx scripts/build-docs.ts",
|
|
20
|
+
"build": "pnpm run typecheck && pnpm run lint:fix && pnpm run build:docs && tsx scripts/verify-static-refs.ts && vite build",
|
|
21
|
+
"typecheck": "tsc --noEmit",
|
|
22
|
+
"lint": "eslint --no-error-on-unmatched-pattern src scripts smoke",
|
|
23
|
+
"lint:fix": "eslint --fix --no-error-on-unmatched-pattern src scripts smoke",
|
|
24
|
+
"dev": "tsx src/server.ts",
|
|
25
|
+
"smoke": "tsx smoke/mcp-stdio.ts"
|
|
26
|
+
},
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=18"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
32
|
+
"minisearch": "^7.2.0",
|
|
33
|
+
"yaml": "^2.9.1",
|
|
34
|
+
"zod": "^4.6.7"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@eslint/js": "^10.0.1",
|
|
38
|
+
"@stylistic/eslint-plugin": "^6.0.1",
|
|
39
|
+
"@types/node": "^26.6.6",
|
|
40
|
+
"eslint": "^10.15.0",
|
|
41
|
+
"tsx": "^4.23.15",
|
|
42
|
+
"typedoc": "^0.28.20",
|
|
43
|
+
"typedoc-plugin-markdown": "^4.14.1",
|
|
44
|
+
"typescript": "~6.0.3",
|
|
45
|
+
"typescript-eslint": "^8.72.2",
|
|
46
|
+
"vite": "^8.3.8"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: ambient-light
|
|
3
|
+
title: 创建 AmbientLight
|
|
4
|
+
aliases:
|
|
5
|
+
- AmbientLight
|
|
6
|
+
- 环境光
|
|
7
|
+
- ambient light
|
|
8
|
+
- 均匀底光
|
|
9
|
+
keywords:
|
|
10
|
+
- 环境光强度
|
|
11
|
+
- addComponent AmbientLight
|
|
12
|
+
tags:
|
|
13
|
+
- scene
|
|
14
|
+
- core
|
|
15
|
+
summary: 在子实体上 addComponent AmbientLight,得到均匀、无方向的底光。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- light
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- core:class:AmbientLight
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 创建 AmbientLight
|
|
23
|
+
|
|
24
|
+
## 适用场景
|
|
25
|
+
|
|
26
|
+
已经有场景,要加一层均匀、无方向的底光。
|
|
27
|
+
|
|
28
|
+
## 前置条件
|
|
29
|
+
|
|
30
|
+
- 已安装 `@vista3d/core`
|
|
31
|
+
- 外层已有已激活的 `scene`
|
|
32
|
+
|
|
33
|
+
## 主示例
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
const entity = scene.rootEntity.createChild();
|
|
37
|
+
entity.addComponent(AmbientLight, {
|
|
38
|
+
color: '#ffffff',
|
|
39
|
+
intensity: 1
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 备注
|
|
44
|
+
|
|
45
|
+
- 默认颜色 `'#ffffff'`,强度 `1`
|
|
46
|
+
- 启用时挂到该实体的 `Transform` 下,禁用时移除
|
|
47
|
+
- 移除走 `entity.removeComponent(AmbientLight)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: animation-curve
|
|
3
|
+
title: 创建 AnimationCurve
|
|
4
|
+
aliases:
|
|
5
|
+
- AnimationCurve
|
|
6
|
+
- animation curve
|
|
7
|
+
- 关键帧动画曲线
|
|
8
|
+
- 创建动画曲线
|
|
9
|
+
keywords:
|
|
10
|
+
- addKey
|
|
11
|
+
- evaluate
|
|
12
|
+
- interpolationMode
|
|
13
|
+
- preWrapMode
|
|
14
|
+
- postWrapMode
|
|
15
|
+
- WrapMode
|
|
16
|
+
- InterpolationMode
|
|
17
|
+
tags:
|
|
18
|
+
- animation
|
|
19
|
+
- core
|
|
20
|
+
summary: 用 AnimationCurve.addKey 写入关键帧,evaluate 按时间取样。
|
|
21
|
+
relatedGuides:
|
|
22
|
+
- utils-curve
|
|
23
|
+
relatedApiIds:
|
|
24
|
+
- core:class:AnimationCurve
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 创建 AnimationCurve
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
要自己建一条按时间采样的数值曲线时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/core`
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const curve = new AnimationCurve();
|
|
41
|
+
curve.addKey({ time: 0, value: 0 });
|
|
42
|
+
curve.addKey({ time: 1, value: 1 });
|
|
43
|
+
const value = curve.evaluate(0.5);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 备注
|
|
47
|
+
|
|
48
|
+
- 构造:`const curve = new AnimationCurve();`
|
|
49
|
+
- 加关键帧:`curve.addKey({ time: 0, value: 0 });` 省略字段默认 `time` / `value` / 切线 / 权重为 `0`,`weightedMode` 为 `WeightedMode.NONE`,`easing` 为 `EasingName.LINEAR`;按 `time` 插入排序
|
|
50
|
+
- 写入走 `addKey`,不要自己 `new AnimationCurveKeyframe()` 再塞进 `keys`
|
|
51
|
+
- 完整关键帧:`curve.addKey({ time: 0, value: 0, inTangent: 0, inWeight: 0, outTangent: 0, outWeight: 0, weightedMode: WeightedMode.NONE, easing: EasingName.LINEAR });`
|
|
52
|
+
- 切线 / 权重只在 `curve.interpolationMode = InterpolationMode.CUBIC;` 时生效;`easing` 只在 `InterpolationMode.LINEAR` 时生效
|
|
53
|
+
- `weightedMode` 是位掩码:`WeightedMode.NONE`、`WeightedMode.IN`、`WeightedMode.OUT`、`WeightedMode.BOTH`,可用 `WeightedMode.IN | WeightedMode.OUT`
|
|
54
|
+
- 删帧:`curve.removeKey(0);`
|
|
55
|
+
- 清空:`curve.clearKeys();`
|
|
56
|
+
- 求值:`curve.evaluate(0.5);` 没有关键帧返回 `0`
|
|
57
|
+
- `curve.interpolationMode = InterpolationMode.CONSTANT;` 时 `evaluate` 返回第一帧的 `value`,不是当前区间左帧;默认 `InterpolationMode.LINEAR`;还可 `InterpolationMode.CUBIC`
|
|
58
|
+
- 范围外:`curve.preWrapMode = WrapMode.LOOP;` 默认 `WrapMode.CLAMP`。`WrapMode.ONCE` / `WrapMode.DEFAULT` 不重映射 time
|
|
59
|
+
- 范围外:`curve.postWrapMode = WrapMode.PING_PONG;` 默认 `WrapMode.CLAMP`。`WrapMode.ONCE` / `WrapMode.DEFAULT` 不重映射 time
|
|
60
|
+
- 查询:`const keys = curve.keys;` 只读,用于查询和遍历;不要改数组或关键帧的 `time`(会打乱排序,`evaluate` 会错);改曲线用 `addKey` / `removeKey` / `clearKeys`
|
|
61
|
+
- 序列化:`const json = curve.toJSON();`
|
|
62
|
+
- 反序列化:`const restored = AnimationCurve.fromJSON(json);` `json.keys` 必须是数组,缺了会抛错
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: animation
|
|
3
|
+
title: 创建 Animation
|
|
4
|
+
aliases:
|
|
5
|
+
- Animation
|
|
6
|
+
- 动画组件
|
|
7
|
+
- 剪辑动画
|
|
8
|
+
- animation component
|
|
9
|
+
keywords:
|
|
10
|
+
- controller
|
|
11
|
+
- ClipAnimationController
|
|
12
|
+
- play
|
|
13
|
+
- update
|
|
14
|
+
tags:
|
|
15
|
+
- animation
|
|
16
|
+
- core
|
|
17
|
+
summary: 在实体上 addComponent Animation,绑定 ClipAnimationController,play 剪辑。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- animation
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:Animation
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 创建 Animation
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `scene` 和 `clips`,要驱动实体动画时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 外层已有 `scene`
|
|
34
|
+
- `clips`(`THREE.AnimationClip[]`)已经加载好,能驱动该实体下的 Object3D,且里面有名为 `'idle'` 的剪辑
|
|
35
|
+
- 已安装 `three`(`THREE.AnimationClip` / `THREE.Object3D`)
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const entity = scene.rootEntity.createChild();
|
|
41
|
+
const controller = new ClipAnimationController(entity.transform.object3D, clips);
|
|
42
|
+
const animation = entity.addComponent(Animation, { controller });
|
|
43
|
+
|
|
44
|
+
controller.play('idle');
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 备注
|
|
48
|
+
|
|
49
|
+
- `AnimationParams.controller` 必填;用 `entity.addComponent(Animation, { controller });`
|
|
50
|
+
- 换绑:`animation.controller = controller;`;取当前:`const current = animation.controller;`;setter 会先清掉旧 controller 的绑定,但不 destroy 旧 controller,旧的要自己 `destroy`
|
|
51
|
+
- 启用时注册到 `ComponentsManager` 的 animation 更新桶;`update` 由引擎每帧调,不用手动调;禁用取消注册
|
|
52
|
+
- `animation.worldMatrixNeedsUpdate();` 标记实体 Transform 世界矩阵脏;`ClipAnimationController.update` 会自己调
|
|
53
|
+
- `AnimationController` 是抽象类,不要 `new AnimationController`;用 `ClipAnimationController` 或子类
|
|
54
|
+
- 控制器操作:`controller.play('idle'); controller.pause('idle', true); controller.stop('idle'); controller.reset('idle'); controller.update(0.016); controller.destroy();`;`update` 只在直接持有 controller 时手动调,绑定到 `Animation` 后由组件每帧调
|
|
55
|
+
- 绑定到 `Animation` 后,销毁走 `entity.removeComponent(Animation)`,组件会调 controller 的 `destroy`;不要再手动调一次。`destroy` 会清空构造时传入的 `clips` 数组,destroy 后不要复用该数组
|
|
56
|
+
- `ClipAnimationController` 构造:`new ClipAnimationController(root, clips);`;`root` 是 mixer 驱动的 Object3D,`clips` 是 `THREE.AnimationClip[]`;`play` / `pause` 等方法用 `clip.name`,找不到同名 clip 时静默 no-op,getter 返回 `0` / `false`
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: annotation
|
|
3
|
+
title: 创建 Annotation
|
|
4
|
+
aliases:
|
|
5
|
+
- Annotation
|
|
6
|
+
- HTML 标注
|
|
7
|
+
- 屏幕空间标注
|
|
8
|
+
- html annotation
|
|
9
|
+
keywords:
|
|
10
|
+
- 3d 标注
|
|
11
|
+
- dom 标注
|
|
12
|
+
- 标注跟随实体
|
|
13
|
+
- screen-space annotation
|
|
14
|
+
tags:
|
|
15
|
+
- scene
|
|
16
|
+
- core
|
|
17
|
+
summary: 给实体挂屏幕空间 HTML 标注:传 domElement,按需调位置、像素偏移、显隐与裁剪。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- annotation
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:Annotation
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 创建 Annotation
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `scene`、`entity` 和接好 DOM 的 `engine`,要把 HTML 元素钉在实体上时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 已安装 `three`(Vector2 / Vector3 从 `three` 引入)
|
|
34
|
+
- 外层已有挂在场景里的 `entity`
|
|
35
|
+
- `engine.viewport` 已接好页面 DOM;要自己挂载 `domElement` 时,元素已有父节点
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import { Vector2, Vector3 } from 'three';
|
|
41
|
+
|
|
42
|
+
const el = document.createElement('div');
|
|
43
|
+
el.textContent = 'Hello';
|
|
44
|
+
|
|
45
|
+
const annotation = entity.addComponent(Annotation, {
|
|
46
|
+
domElement: el,
|
|
47
|
+
position: new Vector3(0, 1, 0),
|
|
48
|
+
offset: new Vector2(0, 20)
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
annotation.autoCulling = true;
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 备注
|
|
55
|
+
|
|
56
|
+
- `domElement` 必填,缺少时构造抛错(`domElement parameter undefined.`);一个实体配一个调用方提供的 HTML 元素(HTMLElement):`entity.addComponent(Annotation, { domElement: el });`
|
|
57
|
+
- 挂载:元素没有父节点时组件把它挂到 `engine.viewport`;`engine.viewport` 是 canvas 时挂到 canvas 的父元素,canvas 必须已有父元素,否则构造抛错。定位父元素的左上角必须和 canvas 左上角重合
|
|
58
|
+
- 样式:组件会改写元素的 `position`、`left`、`top`、`transform`、`display`、`zIndex`、`opacity`,不要在这些属性上依赖自己的值;移除时恢复构造时的样式,并且只移除组件自己挂上去的节点
|
|
59
|
+
- 跟随相机:不传 `camera` 时跟随 `scene.mainCamera`;多相机不支持;跟随的相机必须在 `scene.activeCameras` 里且没有 `renderTarget`(不是离屏相机),否则 DOM 保持隐藏;`annotation.camera = camera;` 切换跟随的相机,`annotation.camera = undefined;` 回到 `scene.mainCamera`
|
|
60
|
+
- 实体局部偏移:`annotation.position = new Vector3(0, 1, 0);` 走 setter,写入时会拷贝;不传时锚在实体 AABB 顶部中心;`annotation.position` getter 返回内部向量,原地 `set` 不会刷新,要整体赋值;Vector3 从 `three` 引入
|
|
61
|
+
- 屏幕像素偏移:`annotation.offset = new Vector2(0, 20);` 走 setter,写入时会拷贝(默认 `(0, 0)`);`annotation.offset` getter 返回内部向量,原地 `set` 不会刷新,要整体赋值;Vector2 从 `three` 引入
|
|
62
|
+
- 水平/垂直原点:`annotation.horizontalOrigin = HorizontalOrigin.LEFT;`(默认 `HorizontalOrigin.CENTER`);`annotation.verticalOrigin = VerticalOrigin.TOP;`(默认 `VerticalOrigin.CENTER`)
|
|
63
|
+
- 显隐:`annotation.visible = false;` 隐藏 DOM(默认 `true`);`visible` 只表示调用方意图,不反映重叠剔除或视锥裁剪,被剔除或裁剪隐藏时不会回写 `visible`
|
|
64
|
+
- 初始/视口隐藏:构造后 DOM 先隐藏,等目标相机第一次渲染才显示;锚点在相机背后或相机 `pixelViewport` 之外时也会隐藏
|
|
65
|
+
- 距离淡出:`annotation.visibleRange = new Vector2(10, 500);`(`x` 是近、`y` 是远,世界单位;默认 `(0, Infinity)` 不限制);区间内不透明,区间外按 `min((far - near) * 0.5, 500)` 世界单位线性淡出,透明度到 0 时隐藏;`annotation.visibleRange` getter 返回内部向量,原地 `set` 不会刷新,要整体赋值
|
|
66
|
+
- 重叠剔除:`annotation.autoCulling = true;`(默认 `false`);按 CSS 屏幕矩形剔除,重叠时只隐藏 DOM,不写 `visible`
|
|
67
|
+
- 剔除权重:`annotation.weight = 10;`(默认 `0`),值越大越优先保留
|
|
68
|
+
- 移除:`entity.removeComponent(Annotation);`,不要自己调 `destroy` / `onDestroy`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: auto-exposure-node
|
|
3
|
+
title: 使用 AutoExposureNode
|
|
4
|
+
aliases:
|
|
5
|
+
- AutoExposureNode
|
|
6
|
+
- auto exposure node
|
|
7
|
+
- 自动曝光节点
|
|
8
|
+
- 自动曝光
|
|
9
|
+
keywords:
|
|
10
|
+
- targetLuminance
|
|
11
|
+
- minExposure
|
|
12
|
+
- maxExposure
|
|
13
|
+
- brightenSpeed
|
|
14
|
+
- darkenSpeed
|
|
15
|
+
- computeAdapt
|
|
16
|
+
- meter
|
|
17
|
+
tags:
|
|
18
|
+
- core
|
|
19
|
+
summary: 用 AutoExposureNode 按 meter 亮度自动调曝光;渲染后调用 computeAdapt。
|
|
20
|
+
relatedGuides:
|
|
21
|
+
- effect-node
|
|
22
|
+
relatedApiIds:
|
|
23
|
+
- core:class:AutoExposureNode
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 使用 AutoExposureNode
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
已经有 WebGPU 场景颜色和 metering 纹理,要按画面平均亮度自动曝光时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/core` 和 `three`
|
|
35
|
+
- 外层已有 `WebGPUEngine`、`scene` 和 `engine`
|
|
36
|
+
- `colorNode` 是线性 HDR 的场景颜色 node
|
|
37
|
+
- `meter` 是 `THREE.Texture`,优先用 `KarisBloomNode.meter`
|
|
38
|
+
- `ScriptableSceneRenderer` 可用(WebGPU)
|
|
39
|
+
|
|
40
|
+
## 主示例
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
const node = new AutoExposureNode(colorNode, meter);
|
|
44
|
+
|
|
45
|
+
node.targetLuminance.value = 0.25;
|
|
46
|
+
node.minExposure.value = 0.6;
|
|
47
|
+
node.maxExposure.value = 6;
|
|
48
|
+
node.brightenSpeed.value = 1.6;
|
|
49
|
+
node.darkenSpeed.value = 1.1;
|
|
50
|
+
node.sunDirection.value.set(0, 1, 0);
|
|
51
|
+
|
|
52
|
+
scene.sceneRenderer = new ScriptableSceneRenderer(engine, {
|
|
53
|
+
output: node,
|
|
54
|
+
afterRender: () => node.computeAdapt(engine.renderer as WebGPURenderer)
|
|
55
|
+
});
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 备注
|
|
59
|
+
|
|
60
|
+
- `colorNode` 是外层已有的线性 HDR 颜色 node;`meter` 是外层已有的测光纹理,优先用 `KarisBloomNode.meter`
|
|
61
|
+
- 曝光因子晚一帧生效:本帧 `setup` 用上一帧的 factor;`updateBefore` 只写时间步
|
|
62
|
+
- 渲染完必须调 `node.computeAdapt(renderer);`;用 `ScriptableSceneRenderer` 的 `afterRender` 最方便;不调 factor 一直是初始 `1`
|
|
63
|
+
- `enabled` 默认 `1`;大于 `0.5` 才自适应,否则 factor 保持 `1`:`node.enabled.value = 0;`
|
|
64
|
+
- `targetLuminance` 默认 `0.25`;`minExposure` 默认 `0.6`;`maxExposure` 默认 `6`,太阳低于地平线时上限会再压到 `2`
|
|
65
|
+
- `brightenSpeed` 默认 `1.6`,`darkenSpeed` 默认 `1.1`(1/秒);`sunDirection` 默认 `(0, 1, 0)`,用来判断夜间
|
|
66
|
+
- `setup` / `updateBefore` 由 TSL node system 调,不要手动调
|
|
67
|
+
- 也可以直接 `new AutoExposureNode(...)`;`autoExposure(...)` 只是构造辅助
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: billboard-particle-renderer
|
|
3
|
+
title: 使用 BillboardParticleRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- BillboardParticleRenderer
|
|
6
|
+
- billboard particle renderer
|
|
7
|
+
- 粒子公告板
|
|
8
|
+
- 广告牌粒子
|
|
9
|
+
keywords:
|
|
10
|
+
- 粒子贴图
|
|
11
|
+
- 粒子发光
|
|
12
|
+
- soft particle
|
|
13
|
+
- 拉伸公告板
|
|
14
|
+
- 粒子混合模式
|
|
15
|
+
tags:
|
|
16
|
+
- particle
|
|
17
|
+
summary: 用工厂形式把 BillboardParticleRenderer 交给 ParticleSystem,再改贴图、tint、发光、软粒子和拉伸模式。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- shuriken-renderer
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- particlesystem:class:BillboardParticleRenderer
|
|
22
|
+
- particlesystem:interface:BillboardParticleRendererParams
|
|
23
|
+
- particlesystem:enum:ParticleSystemBillboardMode
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 使用 BillboardParticleRenderer
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
已经有挂在场景里的 `entity`,要用面向相机的四边形画粒子、并拿到渲染器调贴图和材质时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/particlesystem`
|
|
35
|
+
- 已安装 `three`(Vector2 / Vector3 从 `three` 引入)
|
|
36
|
+
- 外层已有挂在场景里的 `entity`
|
|
37
|
+
- `map` / `emissiveMap` / `normalMap` 传 URL 时,资源要能访问到
|
|
38
|
+
|
|
39
|
+
## 主示例
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { Vector2 } from 'three';
|
|
43
|
+
|
|
44
|
+
let renderer: BillboardParticleRenderer | undefined;
|
|
45
|
+
|
|
46
|
+
entity.addComponent(ParticleSystem, {
|
|
47
|
+
renderer: (system) => {
|
|
48
|
+
renderer = new BillboardParticleRenderer(system, {
|
|
49
|
+
billboardMode: ParticleSystemBillboardMode.DEFAULT,
|
|
50
|
+
map: '/textures/spark.png',
|
|
51
|
+
tint: '#ffcc88',
|
|
52
|
+
soft: true
|
|
53
|
+
});
|
|
54
|
+
return renderer;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
// 系统不提供取回渲染器的入口,用工厂里留下的引用
|
|
59
|
+
if (renderer) {
|
|
60
|
+
renderer.tintIntensity = 1.0;
|
|
61
|
+
renderer.pivot = new Vector2(0.5, 0.5);
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 备注
|
|
66
|
+
|
|
67
|
+
- 构造:`new BillboardParticleRenderer(system, params);`;`system` 是 `ParticleSystem` 实例,不要在它之外自己 `new`
|
|
68
|
+
- 常用接法是把工厂交给系统:`entity.addComponent(ParticleSystem, { renderer: (system) => new BillboardParticleRenderer(system, params) });`
|
|
69
|
+
- `ParticleSystem` 没有公开的 renderer 属性;要留运行期引用,就在工厂里存到一个外层变量:`renderer = new BillboardParticleRenderer(system, params);`
|
|
70
|
+
- `BillboardParticleRendererParams.renderMode` 省略即可,这个类是 Billboard;写了必须是 `ParticleSystemRenderMode.BILLBOARD`
|
|
71
|
+
- 朝向:`renderer.mode = ParticleSystemBillboardMode.HORIZONTAL;`;`ParticleSystemBillboardMode` 的值是 `DEFAULT` / `HORIZONTAL` / `VERTICAL` / `STRETCHED`,默认 `DEFAULT`;构造时字段名是 `billboardMode`,不是 `mode`
|
|
72
|
+
- 基色与强度:`renderer.tint = '#ffcc88';`(默认 `'#ffffff'`);`renderer.tintIntensity = 1.0;`(默认 `0.0`,按 2 的幂)
|
|
73
|
+
- 自发光:`renderer.emissive = '#ff8800';`(默认 `'#000000'`);`renderer.emissiveIntensity = 2.0;`(默认 `0.0`,按 2 的幂)
|
|
74
|
+
- 贴图:`renderer.map = '/textures/spark.png';` 也接受 `Texture`,传 `null` 清除;`renderer.emissiveMap = '/textures/spark_glow.png';` 同样接受 `Texture` / `null`
|
|
75
|
+
- 传 URL 时异步加载,赋值当下贴图还没到位,也没有完成回调;`map` / `emissiveMap` 按 sRGB 处理
|
|
76
|
+
- 光照材质:构造时 `lights: true` 换成受光材质(默认 `false`);`lights` 没有运行期访问器
|
|
77
|
+
- 法线相关只在 `lights: true` 时生效:`renderer.normalDirection = 0.5;`(`0` 面向相机、`1` 用粒子中心,默认 `0.0`)、`renderer.normalMap = '/textures/spark_n.png';`、`renderer.normalMapType = TangentSpaceNormalMap;`、`renderer.normalScale = new Vector2(1, 1);`
|
|
78
|
+
- 软粒子:`soft` 只有 getter,只能构造时传 `soft: true`;`renderer.softNearFade = 0.5;`(默认 `0.0`)、`renderer.softFarFade = 2.0;`(默认 `1.0`);开软粒子期间引擎采集深度时会临时隐藏粒子网格
|
|
79
|
+
- 拉伸公告板(`STRETCHED`):`renderer.lengthScale = 2.0;`(默认 `2.0`)、`renderer.velocityScale = 1.0;`(默认 `0.0`)
|
|
80
|
+
- 轴心:`renderer.pivot = new Vector2(0.5, 0.5);` 归一化 `[0, 1]`,默认 `(0.5, 0.5)` 是中心;拉伸模式下 `y` 沿拖尾,`1` 在头部、`0` 在尾部
|
|
81
|
+
- 混合与颜色合成只能在构造时给:`blendingMode`(默认 `ParticleBlendingMode.NORMAL`)、`blendingOptions`(`CUSTOM` 时用)、`colorCombineMode`(默认 `ParticleColorCombineMode.MULTIPLY`)
|
|
82
|
+
- 构造时传的 `sortMode` / `flipProbability` 走基类字段,`flipProbability` 每轴 `[0, 1]`,默认 `(0, 0, 0)`
|
|
83
|
+
- 材质被释放后,上面这些 accessor 静默失效:写入不生效;`tint` 读回白色,`pivot` 读回 `(0, 0)`,其余读回构造默认值
|
|
84
|
+
- `dispose()` 只是释放实例网格,由 `ParticleSystem` 销毁时调用,调用方不要自己调
|
|
85
|
+
- 整体移除走 `entity.removeComponent(ParticleSystem)`,不要单独销毁渲染器
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: bool-update-flag
|
|
3
|
+
title: 使用 BoolUpdateFlag
|
|
4
|
+
aliases:
|
|
5
|
+
- BoolUpdateFlag
|
|
6
|
+
- bool update flag
|
|
7
|
+
- 布尔更新标记
|
|
8
|
+
- 脏标记
|
|
9
|
+
keywords:
|
|
10
|
+
- flag
|
|
11
|
+
- dispatch
|
|
12
|
+
- flagManagers
|
|
13
|
+
- clearFromManager
|
|
14
|
+
tags:
|
|
15
|
+
- core
|
|
16
|
+
summary: BoolUpdateFlag 是布尔脏标记,初始为 true;dispatch 只置位,复位要自己改 flag,用完可 clearFromManager 或 destroy。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- update-flag
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- core:class:BoolUpdateFlag
|
|
21
|
+
- core:class:UpdateFlag
|
|
22
|
+
- core:class:UpdateFlagManager
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 使用 BoolUpdateFlag
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
要在数据变化时打一个「待更新」标记、由消费方在合适时机读取并复位时读这篇。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core`
|
|
34
|
+
- 可以用 `UpdateFlagManager` 创建,也可以直接 `new`
|
|
35
|
+
|
|
36
|
+
## 主示例
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const manager = new UpdateFlagManager();
|
|
40
|
+
const flag = manager.createFlag(BoolUpdateFlag);
|
|
41
|
+
|
|
42
|
+
flag.dispatch();
|
|
43
|
+
const pending = flag.flag;
|
|
44
|
+
|
|
45
|
+
flag.flag = false;
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 备注
|
|
49
|
+
|
|
50
|
+
- 直接构造:`new BoolUpdateFlag();` 无参
|
|
51
|
+
- 通过管理器创建:`const flag = manager.createFlag(BoolUpdateFlag);` 建好即注册进该管理器
|
|
52
|
+
- 初始状态:`flag` 一开始就是 `true`,不是 `false`
|
|
53
|
+
- 读状态:`const pending = flag.flag;`
|
|
54
|
+
- 置位:`flag.dispatch();` 只把 `flag` 设为 `true`
|
|
55
|
+
- 复位:`flag.flag = false;` 本类**不自动复位**,消费方读完自己清
|
|
56
|
+
- `dispatch(bit, message)` 的两个参数都不使用,传了也没效果
|
|
57
|
+
- 所属管理器:`const managers = flag.flagManagers;` 是公开数组
|
|
58
|
+
- 从所有管理器解绑:`flag.clearFromManager();` 解绑并清空 `flagManagers`
|
|
59
|
+
- 销毁:`flag.destroy();` 解绑并把 `flagManagers` 置为 `undefined`;之后再用会抛错
|
|
60
|
+
- 只做布尔语义:要携带位掩码或负载,得自己继承 `UpdateFlag` 写子类
|
|
61
|
+
- 不移除监听器:本类不持有监听器,监听挂在 `UpdateFlagManager` 上
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: clip-animation-controller
|
|
3
|
+
title: 使用 ClipAnimationController
|
|
4
|
+
aliases:
|
|
5
|
+
- ClipAnimationController
|
|
6
|
+
- clip animation controller
|
|
7
|
+
- 剪辑动画控制器
|
|
8
|
+
- 动画剪辑控制器
|
|
9
|
+
keywords:
|
|
10
|
+
- animationMixer
|
|
11
|
+
- animationClips
|
|
12
|
+
- crossFadeFromTo
|
|
13
|
+
- setLoop
|
|
14
|
+
- fadeIn
|
|
15
|
+
- setTimeScale
|
|
16
|
+
- setWeight
|
|
17
|
+
- update
|
|
18
|
+
tags:
|
|
19
|
+
- animation
|
|
20
|
+
- core
|
|
21
|
+
summary: 直接 new ClipAnimationController,play/setLoop/crossFade 控制 clips,并手动 update。
|
|
22
|
+
relatedGuides:
|
|
23
|
+
- animation
|
|
24
|
+
relatedApiIds:
|
|
25
|
+
- core:class:ClipAnimationController
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# 使用 ClipAnimationController
|
|
29
|
+
|
|
30
|
+
## 适用场景
|
|
31
|
+
|
|
32
|
+
已经有 `root`(`THREE.Object3D`)和 `clips`(`THREE.AnimationClip[]`,含 `'idle'` / `'run'`),要直接控制控制器、不经过 `Animation` 组件时读这篇。
|
|
33
|
+
|
|
34
|
+
## 前置条件
|
|
35
|
+
|
|
36
|
+
- 已安装 `@vista3d/core`
|
|
37
|
+
- 已安装 `three`(Object3D / AnimationClip / LoopRepeat 从 `three` 引入)
|
|
38
|
+
- `root` 是 mixer 驱动的 Object3D,`clips` 能驱动它
|
|
39
|
+
- `clips` 里有 `'idle'` 和 `'run'` 两个剪辑
|
|
40
|
+
- `clips` 只给这个 controller 使用;`destroy` 会清空该数组
|
|
41
|
+
|
|
42
|
+
## 主示例
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { LoopRepeat } from 'three';
|
|
46
|
+
|
|
47
|
+
const controller = new ClipAnimationController(root, clips);
|
|
48
|
+
|
|
49
|
+
controller.play('idle');
|
|
50
|
+
controller.play('run');
|
|
51
|
+
controller.setLoop('run', LoopRepeat, Infinity);
|
|
52
|
+
controller.crossFadeFromTo('idle', 'run', 0.3, true);
|
|
53
|
+
controller.update(0.016);
|
|
54
|
+
|
|
55
|
+
controller.destroy();
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 备注
|
|
59
|
+
|
|
60
|
+
- 构造:`new ClipAnimationController(root, clips);`;内部创建 `THREE.AnimationMixer`;`root` 是 mixer 驱动的 Object3D,`clips` 是 `THREE.AnimationClip[]`
|
|
61
|
+
- 读内部对象:`controller.animationMixer` 是 `THREE.AnimationMixer`;`controller.animationClips` 是构造时传入的 clips;`controller.animationNames()` 返回剪辑名数组
|
|
62
|
+
- 单独持有 controller 时,每帧手动 `controller.update(deltaTime);`;绑定到 `Animation` 后由组件每帧调,不要手动 update
|
|
63
|
+
- 绑定到 `Animation`:`entity.addComponent(Animation, { controller });`;销毁走 `entity.removeComponent(Animation)`,不要手动 `controller.destroy()`
|
|
64
|
+
- 播放:`controller.play('idle');`;暂停/恢复:`controller.pause('idle', true);` / `controller.pause('idle', false);`;停止:`controller.stop('idle');`;重置:`controller.reset('idle');`
|
|
65
|
+
- 状态:`controller.isRunning('idle');`、`controller.isScheduled('idle');`、`controller.isPaused('idle');`;找不到剪辑返回 `false`
|
|
66
|
+
- 启用/禁用 action:`controller.setEnabled('idle', false);`
|
|
67
|
+
- 循环/结束:`controller.setLoop('run', mode, Infinity);`、`controller.setClampWhenFinished('idle', true);`;mode 用 three 的 LoopOnce / LoopRepeat / LoopPingPong(从 `three` 引入)
|
|
68
|
+
- 时长/时间:`controller.getDuration('idle');`、`controller.setDuration('idle', 2.0);`、`controller.getTime('idle');`、`controller.setTime('idle', 0.5);`;找不到返回 `0`
|
|
69
|
+
- 起止/停止:`controller.setStartAt('idle', 0.2);`、`controller.setStopAt('idle', 1.5);`、`controller.halt('idle', 0.2);`;`setStopAt` 直接改 clip 的 `duration`
|
|
70
|
+
- 时间缩放:`controller.setTimeScale('idle', 0.5);`、`controller.getTimeScale('idle');`、`controller.setEffectiveTimeScale('idle', 0.5);`、`controller.getEffectiveTimeScale('idle');`;找不到返回 `0`
|
|
71
|
+
- 权重:`controller.setWeight('idle', 0.5);`、`controller.getWeight('idle');`、`controller.setEffectiveWeight('idle', 0.5);`、`controller.getEffectiveWeight('idle');`;找不到返回 `0`
|
|
72
|
+
- 淡入/淡出:`controller.fadeIn('idle', 0.3);`、`controller.fadeOut('idle', 0.3);`、`controller.stopFading('idle');`
|
|
73
|
+
- 交叉淡化:`controller.crossFadeFromTo('idle', 'run', 0.3, true);`;两个剪辑都必须存在,否则 no-op;先 `play` 目标剪辑再 crossFade
|
|
74
|
+
- 同步/变速:`controller.syncWith('idle', 'run');`、`controller.wrap('run', 1.0, 2.0, 0.3);`、`controller.stopWraping('run');`;SDK 方法名就是 `stopWraping`
|
|
75
|
+
- 找不到同名剪辑时,`play` / `pause` / `stop` / `reset` / fade / crossFade / sync / wrap 等方法都是 no-op;getter 返回 `0` / `false`
|
|
76
|
+
- `controller.destroy()` 会 uncache mixer root、清空构造时传入的 clips 数组,并解绑 `Animation`;destroy 后不要再用 controller,也不要复用该 clips 数组
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: clip-plane-updater
|
|
3
|
+
title: 使用 ClipPlaneUpdater
|
|
4
|
+
aliases:
|
|
5
|
+
- ClipPlaneUpdater
|
|
6
|
+
- clip plane updater
|
|
7
|
+
- 裁剪面更新器
|
|
8
|
+
- 动态裁剪面
|
|
9
|
+
keywords:
|
|
10
|
+
- estimator
|
|
11
|
+
- eventPriority
|
|
12
|
+
- Priority
|
|
13
|
+
- PerspectiveCamera
|
|
14
|
+
- OrthographicCamera
|
|
15
|
+
- near
|
|
16
|
+
- far
|
|
17
|
+
tags:
|
|
18
|
+
- scene
|
|
19
|
+
- core
|
|
20
|
+
summary: 在带相机的实体上 addComponent ClipPlaneUpdater,按 estimator 动态写 near/far。
|
|
21
|
+
relatedGuides:
|
|
22
|
+
- clip-plane
|
|
23
|
+
relatedApiIds:
|
|
24
|
+
- core:class:ClipPlaneUpdater
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 使用 ClipPlaneUpdater
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
已经有带相机组件的 `cameraEntity`,要用估计器动态写 near/far 时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/core`
|
|
36
|
+
- `cameraEntity` 已经有 PerspectiveCamera 或 OrthographicCamera
|
|
37
|
+
- 已确定用 TopDown 或 TiltedView estimator;主示例会创建 TopDown,TiltedView 只能配 PerspectiveCamera
|
|
38
|
+
|
|
39
|
+
## 主示例
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
const estimator = new TopDownClipPlaneEstimator({
|
|
43
|
+
minElevation: 0,
|
|
44
|
+
maxElevation: 120
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const updater = cameraEntity.addComponent(ClipPlaneUpdater, { estimator });
|
|
48
|
+
|
|
49
|
+
// use updater ...
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 备注
|
|
53
|
+
|
|
54
|
+
- `cameraEntity` 必须先有 PerspectiveCamera 或 OrthographicCamera;否则 `addComponent` 会因组件依赖抛错
|
|
55
|
+
- 移除相机前先 `cameraEntity.removeComponent(ClipPlaneUpdater)`,否则依赖检查会阻止移除相机
|
|
56
|
+
- `ClipPlaneUpdaterParams.estimator` 必填:`cameraEntity.addComponent(ClipPlaneUpdater, { estimator });`
|
|
57
|
+
- `ClipPlaneUpdaterParams.eventPriority` 默认 `Priority.NORMAL`(50);它决定相机事件回调顺序,只在构造时设置
|
|
58
|
+
- 启用后自动订阅相机的 `CAMERA_TRANSFORM_CHANGED` / `CAMERA_PROJECTION_CHANGED` / `BEFORE_CAMERA_RENDER`;首帧会估计一次;之后相机变化只标脏,渲染前写 `near` / `far` 并 `updateProjectionMatrix()`,不需要手动 update
|
|
59
|
+
- 换估计器:`updater.estimator = new TiltedViewClipPlaneEstimator(params);`;替换本身不会标脏,下一次相机 transform/projection 变化才重新估计
|
|
60
|
+
- `ClipPlaneUpdater` 继承 `Script`;`onEnable` / `onDisable` 是引擎生命周期钩子,不要手动调;移除走 `entity.removeComponent(ClipPlaneUpdater)`
|
|
61
|
+
- `TiltedViewClipPlaneEstimator` 只能配 PerspectiveCamera;配 OrthographicCamera 会在估计时抛错
|
|
62
|
+
- `eventPriority` 只在构造时给:`cameraEntity.addComponent(ClipPlaneUpdater, { estimator, eventPriority: Priority.HIGH });`
|
|
63
|
+
- estimator 只要实现 `IClipPlaneEstimator` 即可(`minElevation` / `maxElevation` / `estimate`);内置实现见 TopDown / TiltedView 两篇
|