@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
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: min-max-curve
|
|
3
|
+
title: 创建 MinMaxCurve
|
|
4
|
+
aliases:
|
|
5
|
+
- MinMaxCurve
|
|
6
|
+
- min-max curve
|
|
7
|
+
- 最小最大曲线
|
|
8
|
+
- 范围随机曲线
|
|
9
|
+
keywords:
|
|
10
|
+
- MinMaxCurveMode
|
|
11
|
+
- curveMultiplier
|
|
12
|
+
- TWO_CONSTANTS
|
|
13
|
+
- TWO_CURVES
|
|
14
|
+
- evaluate
|
|
15
|
+
tags:
|
|
16
|
+
- animation
|
|
17
|
+
- core
|
|
18
|
+
summary: 用 MinMaxCurve 构造常量、曲线或两者之间的取值,evaluate 产出一个数。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- utils-curve
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:MinMaxCurve
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 创建 MinMaxCurve
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
要按常量、曲线或两者之间随机取出一个数时读这篇。曲线模式外层已有 `curve`;两曲线模式外层已有 `curveMin`、`curveMax`。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core`
|
|
34
|
+
- 曲线模式已有 `curve`(`AnimationCurve`)
|
|
35
|
+
- 两曲线模式已有 `curveMin`、`curveMax`(`AnimationCurve`)
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const minMax = new MinMaxCurve(1);
|
|
41
|
+
const value = minMax.evaluate(0);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 备注
|
|
45
|
+
|
|
46
|
+
- 构造按参数选模式:`new MinMaxCurve(1)` 常量;`new MinMaxCurve(0, 10)` 两常量随机;`new MinMaxCurve(curve)` 单曲线(按引用);`new MinMaxCurve(curveMin, curveMax)` 两曲线随机(按引用)
|
|
47
|
+
- 求值:`minMax.evaluate(0.5);` `MinMaxCurveMode.CONSTANT` 忽略参数;`MinMaxCurveMode.CURVE` 只用 time;两常量 / 两曲线可传随机因子:`minMax.evaluate(0.5, 0.3);` 省略时每次随机
|
|
48
|
+
- `curveMultiplier` 只乘在 `MinMaxCurveMode.CURVE` / `MinMaxCurveMode.TWO_CURVES`:`minMax.curveMultiplier = 2;` 默认 `1`
|
|
49
|
+
- 换模式要同时改对应字段:`minMax.mode = MinMaxCurveMode.CURVE; minMax.curve = curve;`
|
|
50
|
+
- 字段:`minMax.constant = 1;`
|
|
51
|
+
- 字段:`minMax.constantMin = 0;`
|
|
52
|
+
- 字段:`minMax.constantMax = 10;`
|
|
53
|
+
- 字段:`minMax.curveMin = curveMin;`
|
|
54
|
+
- 字段:`minMax.curveMax = curveMax;`
|
|
55
|
+
- 序列化:`const json = minMax.toJSON();`
|
|
56
|
+
- 反序列化:`const restored = MinMaxCurve.fromJSON(json);`
|
|
57
|
+
- 原地写回:`minMax.copyFromJSON(json);` 缺字段跳过;嵌套曲线用 `AnimationCurve.fromJSON` 重建后替换引用
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: min-max-gradient
|
|
3
|
+
title: 创建 MinMaxGradient
|
|
4
|
+
aliases:
|
|
5
|
+
- MinMaxGradient
|
|
6
|
+
- min-max gradient
|
|
7
|
+
- 最小最大渐变
|
|
8
|
+
- 范围随机颜色
|
|
9
|
+
keywords:
|
|
10
|
+
- MinMaxGradientMode
|
|
11
|
+
- TWO_COLORS
|
|
12
|
+
- TWO_GRADIENTS
|
|
13
|
+
- RANDOM_COLOR
|
|
14
|
+
- evaluate
|
|
15
|
+
tags:
|
|
16
|
+
- animation
|
|
17
|
+
- core
|
|
18
|
+
summary: 用 MinMaxGradient 构造单色、渐变或两者之间的取色,evaluate 产出 Color4。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- gradient
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:MinMaxGradient
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 创建 MinMaxGradient
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
要按单色、渐变或两者之间随机取出一个 `Color4` 时读这篇。渐变模式外层已有 `gradient`;两渐变模式外层已有 `gradientMin`、`gradientMax`;两色模式外层已有 `colorMin`、`colorMax`。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core`
|
|
34
|
+
- 渐变模式已有 `gradient`(`Gradient`)
|
|
35
|
+
- 两渐变模式已有 `gradientMin`、`gradientMax`(`Gradient`)
|
|
36
|
+
- 两色模式已有 `colorMin`、`colorMax`(`Color4`)
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const minMax = new MinMaxGradient(new Color4('#ffffff'));
|
|
42
|
+
const color = minMax.evaluate(0);
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 备注
|
|
46
|
+
|
|
47
|
+
- 构造按参数选模式:`new MinMaxGradient(new Color4('#ffffff'));` 单色(copy 颜色);`new MinMaxGradient(colorMin, colorMax);` 两色随机(copy 颜色);`new MinMaxGradient(gradient);` 单渐变(按引用);`new MinMaxGradient(gradientMin, gradientMax);` 两渐变随机(按引用)
|
|
48
|
+
- 求值:`minMax.evaluate(0.5);` `MinMaxGradientMode.COLOR` 忽略参数;`MinMaxGradientMode.GRADIENT` 只用 time;两色 / 两渐变可传随机因子:`minMax.evaluate(0.5, 0.3);` 省略时每次随机
|
|
49
|
+
- `MinMaxGradientMode.RANDOM_COLOR` 没有构造:`minMax.mode = MinMaxGradientMode.RANDOM_COLOR; minMax.gradient = gradient;` 此时 `evaluate` 忽略 time,从 `gradient` 随机一帧
|
|
50
|
+
- 字段:`minMax.color = new Color4('#ffffff');`
|
|
51
|
+
- 字段:`minMax.colorMin = colorMin;`
|
|
52
|
+
- 字段:`minMax.colorMax = colorMax;`
|
|
53
|
+
- 字段:`minMax.gradient = gradient;`
|
|
54
|
+
- 字段:`minMax.gradientMin = gradientMin;`
|
|
55
|
+
- 字段:`minMax.gradientMax = gradientMax;`
|
|
56
|
+
- 序列化:`const json = minMax.toJSON();`
|
|
57
|
+
- 反序列化:`const restored = MinMaxGradient.fromJSON(json);` `MinMaxGradientMode.RANDOM_COLOR` 会建成 `MinMaxGradientMode.COLOR`
|
|
58
|
+
- 原地写回:`minMax.copyFromJSON(json);` 缺字段跳过;颜色写入已有 `Color4`;嵌套渐变用 `Gradient.fromJSON` 重建后替换引用
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: model-renderer
|
|
3
|
+
title: 创建 ModelRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- ModelRenderer
|
|
6
|
+
- model renderer
|
|
7
|
+
- 模型渲染
|
|
8
|
+
- 多网格渲染
|
|
9
|
+
keywords:
|
|
10
|
+
- resource
|
|
11
|
+
- meshes
|
|
12
|
+
- setMorphTargetInfluence
|
|
13
|
+
- cloneMaterial
|
|
14
|
+
- restoreMaterial
|
|
15
|
+
- raycast
|
|
16
|
+
- castShadow
|
|
17
|
+
- receiveShadow
|
|
18
|
+
tags:
|
|
19
|
+
- core
|
|
20
|
+
summary: 在实体上 addComponent ModelRenderer,传 resource 和 meshes,并演示 morph、材质和拾取。
|
|
21
|
+
relatedGuides:
|
|
22
|
+
- model-renderer
|
|
23
|
+
relatedApiIds:
|
|
24
|
+
- core:class:ModelRenderer
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 创建 ModelRenderer
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
已经有 `scene`、`glTFRef` 和 `sourceMesh`,要手动创建 `ModelRenderer` 时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/core`
|
|
36
|
+
- 外层已有 `scene`
|
|
37
|
+
- `glTFRef` 是 `engine.resourceManager.loadGLTF(url)` 返回的保留引用
|
|
38
|
+
- `sourceMesh` 是该 GLTF 里的独立 `THREE.Mesh`,局部变换可直接用;带 morph target `'Smile'`,且带名为 `'Body'` 的材质
|
|
39
|
+
- 要保留 glTF 的完整层级和节点变换,用 `GLTFParser.parse` / `Scene.loadGLTF`,不要手动 clone 单个 mesh
|
|
40
|
+
- 已安装 `three`
|
|
41
|
+
|
|
42
|
+
## 主示例
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
const entity = scene.rootEntity.createChild();
|
|
46
|
+
const mesh = sourceMesh.clone();
|
|
47
|
+
entity.transform.object3D.add(mesh);
|
|
48
|
+
|
|
49
|
+
const renderer = entity.addComponent(ModelRenderer, {
|
|
50
|
+
resource: glTFRef,
|
|
51
|
+
meshes: [mesh],
|
|
52
|
+
castShadow: true,
|
|
53
|
+
receiveShadow: true
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
renderer.setMorphTargetInfluence('Smile', 0.5);
|
|
57
|
+
|
|
58
|
+
// use renderer ...
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## 备注
|
|
62
|
+
|
|
63
|
+
- `ModelRenderer` 通常由 `GLTFParser.parse` / `Scene.loadGLTF` 创建;手动挂:`const renderer = entity.addComponent(ModelRenderer, { resource: glTFRef, meshes: [mesh] });`
|
|
64
|
+
- 手动挂时 `meshes` 必须已经挂在 `entity.transform.object3D` 下:`entity.transform.object3D.add(mesh);`;组件不会重挂
|
|
65
|
+
- 手动挂单个 mesh 只保留该 mesh 的局部变换;要保留 glTF 的完整层级和节点变换用 `GLTFParser.parse` / `Scene.loadGLTF`
|
|
66
|
+
- `resource` 必填:`resource: glTFRef`;组件会 clone 一份 ref,外层 `glTFRef` 可按 `ResourceRef` 规则释放
|
|
67
|
+
- `meshes` 必填:`meshes: [mesh]`;类型是 `THREE.Mesh[]`
|
|
68
|
+
- 读 mesh 列表:`renderer.meshes`;`renderer.object3D` 返回同一个数组
|
|
69
|
+
- `renderer.visible = false;` 会把所有 mesh 设为不可见;getter 读第一个 mesh,空列表返回 `false`
|
|
70
|
+
- `renderer.castShadow = true;` / `renderer.receiveShadow = true;` 写到所有 mesh;构造时用 `castShadow: true, receiveShadow: true`;默认 `false`;只有 setter,没有 getter,要读看 `renderer.meshes[0]?.castShadow`
|
|
71
|
+
- `renderer.setMorphTargetInfluence('Smile', 0.5);`;`target` 是 morph target 名,`influence` clamp 到 `[0, 1]`,`smoothing` 默认 `1`,没有该 target 的 mesh 跳过
|
|
72
|
+
- `renderer.cloneMaterial('Body');` 复制并返回材质,替换所有使用该名字的 mesh;找不到返回 `undefined`;重复调用返回已有 clone
|
|
73
|
+
- `renderer.restoreMaterial('Body');` 恢复原材质并 dispose clone;没有 clone 时 no-op
|
|
74
|
+
- `renderer.replaceAllMaterials(material);` 替换所有 mesh 的材质;`renderer.revertAllMaterials();` 按构造时记录的名字恢复
|
|
75
|
+
- `renderer.raycast(raycaster);` 只测可见 mesh,返回最近的 `THREE.Intersection` 或 `undefined`;通常由 picker 调,调用方用 `scene.pick`
|
|
76
|
+
- `renderer.worldBounds` 是只读世界 AABB,按所有 mesh 计算
|
|
77
|
+
- `renderer.renderOrder = RenderOrder.OVERLAY;`;构造时也可 `renderOrder: RenderOrder.OVERLAY`;默认 `RenderOrder.NORMAL`,会写到每个 mesh
|
|
78
|
+
- `renderer.queryMask = QueryMask.MASK_0;`;构造时也可 `queryMask: QueryMask.MASK_0`;默认 `QueryMask.NONE`,不设置就不参与 `scene.pick` / `scene.boxSelect`
|
|
79
|
+
- `transformation` 是继承字段,ModelRenderer 不应用;位置/旋转/缩放用 `entity.transform`;`renderer.position` / `renderer.scale` / `renderer.rotation` / `renderer.quaternion` 读写 entity.transform,`renderer.setTransformation(...)` 也落到 entity.transform
|
|
80
|
+
- `renderer.setPosition(...)` / `renderer.setScale(...)` / `renderer.setRotation(...)` / `renderer.setQuaternion(...)` / `renderer.translate(offset)` 继承自 `Renderer`,在 ModelRenderer 上是 no-op;改用 `entity.transform.setPosition(...)` / `setScale(...)` / `setRotation(...)` / `setQuaternion(...)` / `translate(offset)`,或 `renderer.setTransformation(...)`
|
|
81
|
+
- `renderer.getWorldPosition(...)` / `getWorldScale(...)` / `getWorldQuaternion(...)` / `getWorldDirection(...)` / `lookAt(...)` / `translateX/Y/Z` / `translateOnAxis(...)` / `rotateX/Y/Z` / `rotateOnAxis(...)` / `rotateOnWorldAxis(...)` / `localToWorld(...)` / `worldToLocal(...)` 已重写到 entity.transform,可直接用
|
|
82
|
+
- `renderer.updateWorldMatrix();` 是手动刷新入口,通常不用调;`update` / `beforeCameraRender` / `afterCameraRender` 是 `Renderer` 的引擎钩子
|
|
83
|
+
- 移除走 `entity.removeComponent(ModelRenderer)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: none-particle-renderer
|
|
3
|
+
title: 使用 NoneParticleRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- NoneParticleRenderer
|
|
6
|
+
- none particle renderer
|
|
7
|
+
- 不画粒子
|
|
8
|
+
- 无粒子渲染
|
|
9
|
+
keywords:
|
|
10
|
+
- 只留拖尾
|
|
11
|
+
- 隐藏粒子
|
|
12
|
+
- renderMode none
|
|
13
|
+
tags:
|
|
14
|
+
- particle
|
|
15
|
+
summary: 用工厂形式把 NoneParticleRenderer 交给 ParticleSystem,不画粒子网格,只让拖尾之类的附加绘制出现。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- shuriken-renderer
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- particlesystem:class:NoneParticleRenderer
|
|
20
|
+
- particlesystem:interface:NoneParticleRendererParams
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 使用 NoneParticleRenderer
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有挂在场景里的 `entity`,要跑粒子模拟但不画粒子本体(例如只让拖尾画出来)时读这篇。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/particlesystem`
|
|
32
|
+
- 外层已有挂在场景里的 `entity`
|
|
33
|
+
|
|
34
|
+
## 主示例
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
let renderer: NoneParticleRenderer | undefined;
|
|
38
|
+
|
|
39
|
+
entity.addComponent(ParticleSystem, {
|
|
40
|
+
renderer: (system) => {
|
|
41
|
+
renderer = new NoneParticleRenderer(system, {
|
|
42
|
+
renderMode: ParticleSystemRenderMode.NONE
|
|
43
|
+
});
|
|
44
|
+
return renderer;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 备注
|
|
50
|
+
|
|
51
|
+
- 构造:`new NoneParticleRenderer(system, params);`;`system` 是 `ParticleSystem` 实例,不要在它之外自己 `new`
|
|
52
|
+
- 常用接法是把工厂交给系统:`entity.addComponent(ParticleSystem, { renderer: (system) => new NoneParticleRenderer(system, params) });`
|
|
53
|
+
- `ParticleSystem` 没有公开的 renderer 属性;要留运行期引用,就在工厂里存到一个外层变量
|
|
54
|
+
- `NoneParticleRendererParams.renderMode` 必填且必须是 `ParticleSystemRenderMode.NONE`
|
|
55
|
+
- 没有网格,也没有 GPU 上传;`renderer.object3D` 恒为 `undefined`,不要拿它去挂到场景上
|
|
56
|
+
- 只支持基类的 `sortMode` / `flipProbability`;排序结果不会画出来,留着也不影响模拟
|
|
57
|
+
- `clear()` 仍会清空活粒子列表和 `bounds`,`stop` 之后不会留下过期的包围盒
|
|
58
|
+
- `dispose()` 只丢系统引用和挂载对象引用,没有 GPU 资源要释放;由 `ParticleSystem` 销毁时调用,调用方不要自己调
|
|
59
|
+
- 整体移除走 `entity.removeComponent(ParticleSystem)`,不要单独销毁渲染器
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: offscreen-pass
|
|
3
|
+
title: 创建 OffscreenPass
|
|
4
|
+
aliases:
|
|
5
|
+
- OffscreenPass
|
|
6
|
+
- offscreen pass
|
|
7
|
+
- 离屏拷贝
|
|
8
|
+
- 离屏 pass
|
|
9
|
+
keywords:
|
|
10
|
+
- renderTarget
|
|
11
|
+
- CopyMaterial
|
|
12
|
+
- initialize
|
|
13
|
+
- dispose
|
|
14
|
+
tags:
|
|
15
|
+
- postprocessing
|
|
16
|
+
summary: 用 OffscreenPass 把输入缓冲拷到 WebGLRenderTarget;通常由后处理渲染器在离屏时挂上。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- pass
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- postprocessing:class:OffscreenPass
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 创建 OffscreenPass
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有 `renderTarget`,要把后处理结果拷到离屏目标时读这篇。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/postprocessing`
|
|
32
|
+
- 外层已有 `renderTarget`(`THREE.WebGLRenderTarget`)
|
|
33
|
+
|
|
34
|
+
## 主示例
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
const pass = new OffscreenPass(renderTarget);
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## 备注
|
|
41
|
+
|
|
42
|
+
- 构造:`const pass = new OffscreenPass();` 或 `new OffscreenPass(renderTarget);` 默认 `renderTarget` 为 `null`
|
|
43
|
+
- 换目标:`pass.renderTarget = renderTarget;`
|
|
44
|
+
- `render` / `initialize` 由 composer 调;`render` 画到 `renderTarget`,`needsSwap` 为 `false`
|
|
45
|
+
- `initialize` 会按 `frameBufferType` 改 `renderTarget.texture.type`;`renderTarget` 为 `null` 时抛错,不要让 composer 在空目标上调它
|
|
46
|
+
- 释放:`pass.dispose();` 把 `renderTarget` 置 `null` 并拆全屏材质,不 dispose 外接 target
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: orbit-controls
|
|
3
|
+
title: 创建 OrbitControls
|
|
4
|
+
aliases:
|
|
5
|
+
- OrbitControls
|
|
6
|
+
- 轨道控制器
|
|
7
|
+
- orbit controls
|
|
8
|
+
- 轨道旋转
|
|
9
|
+
keywords:
|
|
10
|
+
- enableDamping
|
|
11
|
+
- autoRotate
|
|
12
|
+
tags:
|
|
13
|
+
- scene
|
|
14
|
+
- core
|
|
15
|
+
summary: 在已有透视或正交相机的实体上 addComponent OrbitControls,绕一点转、平移、推拉。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- controls
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- core:class:OrbitControls
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 创建 OrbitControls
|
|
23
|
+
|
|
24
|
+
## 适用场景
|
|
25
|
+
|
|
26
|
+
已经有挂了 `PerspectiveCamera` 或 `OrthographicCamera` 的 `entity`,要加轨道操控。
|
|
27
|
+
|
|
28
|
+
## 前置条件
|
|
29
|
+
|
|
30
|
+
- 已安装 `@vista3d/core`
|
|
31
|
+
- 外层已有 `entity`,且该实体上已有 `PerspectiveCamera` 或 `OrthographicCamera`
|
|
32
|
+
|
|
33
|
+
## 主示例
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
entity.addComponent(OrbitControls, {
|
|
37
|
+
enableDamping: false,
|
|
38
|
+
autoRotate: false
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 备注
|
|
43
|
+
|
|
44
|
+
- 用 `entity.addComponent(OrbitControls)` 挂;不要自己 `new OrbitControls`
|
|
45
|
+
- 同实体上要先有 `PerspectiveCamera` 或 `OrthographicCamera`,否则 `addComponent` 会抛
|
|
46
|
+
- 要卸 `PerspectiveCamera` 或 `OrthographicCamera`,先卸 `OrbitControls`
|
|
47
|
+
- `enableDamping` 默认 `false`,`autoRotate` 默认 `false`
|
|
48
|
+
- 默认绕原点转
|
|
49
|
+
- 正交相机推拉时改的是 `frustumSize`
|
|
50
|
+
- `focus` 目前是空操作,调用了也不会改相机
|
|
51
|
+
- 移除走 `entity.removeComponent(OrbitControls)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: orthographic-camera
|
|
3
|
+
title: 创建 OrthographicCamera
|
|
4
|
+
aliases:
|
|
5
|
+
- OrthographicCamera
|
|
6
|
+
- 正交相机
|
|
7
|
+
- orthographic camera
|
|
8
|
+
- 平行投影
|
|
9
|
+
keywords:
|
|
10
|
+
- frustumSize
|
|
11
|
+
- createOrthographicCamera
|
|
12
|
+
tags:
|
|
13
|
+
- scene
|
|
14
|
+
- core
|
|
15
|
+
summary: 在已有场景上 createOrthographicCamera,得到大小不随距离变的正交相机。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- camera
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- core:class:OrthographicCamera
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 创建 OrthographicCamera
|
|
23
|
+
|
|
24
|
+
## 适用场景
|
|
25
|
+
|
|
26
|
+
已经有 `scene`,要加一台大小不随距离变的正交相机。
|
|
27
|
+
|
|
28
|
+
## 前置条件
|
|
29
|
+
|
|
30
|
+
- 已安装 `@vista3d/core`
|
|
31
|
+
- 外层已有 `scene`
|
|
32
|
+
|
|
33
|
+
## 主示例
|
|
34
|
+
|
|
35
|
+
```ts
|
|
36
|
+
const camera = scene.createOrthographicCamera({
|
|
37
|
+
near: 0.1,
|
|
38
|
+
far: 2000
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 备注
|
|
43
|
+
|
|
44
|
+
- 用 `scene.createOrthographicCamera` 建,不要自己 `new OrthographicCamera`
|
|
45
|
+
- 默认 `near` `0.1`,`far` `2000`
|
|
46
|
+
- 不传 `frustumSize` 时用画布像素宽,要世界单位宽度就自己传
|
|
47
|
+
- 要当主相机时第二个参数传 `true`
|
|
48
|
+
- 启用后加入激活相机列表,禁用会拿掉
|
|
49
|
+
- 移除走 `camera.entity.removeComponent(OrthographicCamera)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: parallel-light
|
|
3
|
+
title: 创建 ParallelLight
|
|
4
|
+
aliases:
|
|
5
|
+
- ParallelLight
|
|
6
|
+
- 平行光
|
|
7
|
+
- parallel light
|
|
8
|
+
- 太阳平行光
|
|
9
|
+
keywords:
|
|
10
|
+
- 指向原点
|
|
11
|
+
- castShadow
|
|
12
|
+
tags:
|
|
13
|
+
- scene
|
|
14
|
+
- core
|
|
15
|
+
summary: 在子实体上 addComponent ParallelLight。光线从 position 指向原点,没有单独的 target。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- light
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- core:class:ParallelLight
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 创建 ParallelLight
|
|
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(ParallelLight, {
|
|
38
|
+
color: '#ffffff',
|
|
39
|
+
intensity: 1
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 备注
|
|
44
|
+
|
|
45
|
+
- 默认颜色 `'#ffffff'`,强度 `1`,位置是 `(0, 1, 0)`
|
|
46
|
+
- 光线从 `position` 指向原点,没有单独的 `target`
|
|
47
|
+
- 开阴影:`entity.addComponent(ParallelLight, { castShadow: true });`;`shadow` 只在 `castShadow` 为 `true` 时生效
|
|
48
|
+
- `autoUpdate` 默认 `true`;为 `false` 时要刷新阴影:`const parallelLight = entity.addComponent(ParallelLight, { castShadow: true, shadow: { autoUpdate: false } }); parallelLight.updateShadow();`
|
|
49
|
+
- 移除走 `entity.removeComponent(ParallelLight)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: particle-module-registry
|
|
3
|
+
title: 登记自定义粒子模块
|
|
4
|
+
aliases:
|
|
5
|
+
- ParticleModuleRegistry
|
|
6
|
+
- particle module registry
|
|
7
|
+
- 粒子模块注册表
|
|
8
|
+
- 自定义粒子模块登记
|
|
9
|
+
keywords:
|
|
10
|
+
- register
|
|
11
|
+
- get
|
|
12
|
+
- typeId
|
|
13
|
+
- 自定义模块
|
|
14
|
+
- 模板恢复模块
|
|
15
|
+
tags:
|
|
16
|
+
- particle
|
|
17
|
+
summary: 用 ParticleModuleRegistry.register 按 typeId 登记自定义模块类,模板还原时 ParticleSystemFactory 靠它把 type 取回构造器。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- registry
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- particlesystem:class:ParticleModuleRegistry
|
|
22
|
+
- particlesystem:type:ParticleModuleConstructor
|
|
23
|
+
- particlesystem:class:ParticleModule
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 登记自定义粒子模块
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
已经有自定义模块类 MyModule(继承 `ParticleModule` 且带非空 static `typeId`),要让模板反序列化时能按 `type` 找回它时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/particlesystem`
|
|
35
|
+
- 外层已有继承 `ParticleModule` 的类,且给了非空 static `typeId`
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
class MyModule extends ParticleModule {
|
|
41
|
+
static override readonly typeId: string = 'my-module';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
ParticleModuleRegistry.register(MyModule);
|
|
45
|
+
|
|
46
|
+
const ctor = ParticleModuleRegistry.get('my-module');
|
|
47
|
+
const module = new ctor();
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 备注
|
|
51
|
+
|
|
52
|
+
- 都是 static 方法,直接 `ParticleModuleRegistry.register(...)`;不要 `new ParticleModuleRegistry()`
|
|
53
|
+
- 登记:`ParticleModuleRegistry.register(MyModule);`
|
|
54
|
+
- 取构造器:`const ctor = ParticleModuleRegistry.get('my-module');` 返回登记时的类本身,不是实例
|
|
55
|
+
- 实例化:`const module = new ctor();`;`ParticleModuleConstructor` 的构造不收参数
|
|
56
|
+
- `typeId` 是 `ParticleModule` 上的 static 只读字段,子类用 `static override readonly typeId: string = 'my-module';` 覆盖;内置模块保持空串
|
|
57
|
+
- `typeId` 为空串时 `register` 抛错(`Particle module typeId must be a non-empty string.`)
|
|
58
|
+
- `typeId` 已登记时 `register` 抛错(`Particle module type "..." is already registered.`),重复登记不会覆盖,也没有注销接口
|
|
59
|
+
- `get` 找不到该 `type` 时抛错(`Unregistered particle module type: ...`),空串也走这条未注册路径
|
|
60
|
+
- 主用途是模板还原:`ParticleSystemFactory.create` 读到模板里自定义模块的 `type` 时走这张表取构造器,未登记就抛错
|
|
61
|
+
- 自定义模块要能被模板写出,`typeId` 必须非空;空 `typeId` 的模块在序列化时抛错
|
|
62
|
+
- 登记要在还原之前做:先 `register`,再 `create` / `load`,顺序反了会抛未注册
|
|
63
|
+
- 内置模块不在这张表里:`main`、`emission`、`shape` 等由粒子系统自己组装
|
|
64
|
+
- 运行期加模块不走这张表:`particles.addParticleModule(module);` 直接收实例
|
|
65
|
+
- 同名类不同 `typeId` 可以共存;同一 `typeId` 只能登记一次
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: particle-renderer-registry
|
|
3
|
+
title: 登记自定义粒子渲染器
|
|
4
|
+
aliases:
|
|
5
|
+
- ParticleRendererRegistry
|
|
6
|
+
- particle renderer registry
|
|
7
|
+
- 粒子渲染器注册表
|
|
8
|
+
- 自定义粒子渲染器登记
|
|
9
|
+
keywords:
|
|
10
|
+
- register
|
|
11
|
+
- get
|
|
12
|
+
- typeId
|
|
13
|
+
- renderMode
|
|
14
|
+
- 自定义渲染器
|
|
15
|
+
tags:
|
|
16
|
+
- particle
|
|
17
|
+
summary: 用 ParticleRendererRegistry.register 按 typeId 登记自定义渲染器类;ParticleSystem 的 renderer.type 靠它取回构造器。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- registry
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- particlesystem:class:ParticleRendererRegistry
|
|
22
|
+
- particlesystem:type:ParticleRendererConstructor
|
|
23
|
+
- particlesystem:class:ParticleRenderer
|
|
24
|
+
- particlesystem:interface:CustomParticleRendererParams
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 登记自定义粒子渲染器
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
已经有自定义渲染器类 MyRenderer(继承 `ParticleRenderer` 且带非空 static `typeId`),要用 `renderer: { type }` 在粒子上启用它时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/particlesystem`
|
|
36
|
+
- 外层已有继承 `ParticleRenderer` 的类,且给了非空 static `typeId`,并实现了 `updateRenderer` / `dispose`
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
class MyRenderer extends ParticleRenderer {
|
|
42
|
+
static override readonly typeId: string = 'my-renderer';
|
|
43
|
+
|
|
44
|
+
protected updateRenderer(): void {}
|
|
45
|
+
|
|
46
|
+
dispose(): void {}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
ParticleRendererRegistry.register(MyRenderer);
|
|
50
|
+
|
|
51
|
+
entity.addComponent(ParticleSystem, {
|
|
52
|
+
renderer: { type: 'my-renderer' }
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 备注
|
|
57
|
+
|
|
58
|
+
- 都是 static 方法,直接 `ParticleRendererRegistry.register(...)`;不要 `new ParticleRendererRegistry()`
|
|
59
|
+
- 登记:`ParticleRendererRegistry.register(MyRenderer);`
|
|
60
|
+
- 取构造器:`const ctor = ParticleRendererRegistry.get('my-renderer');` 返回登记时的类本身,不是实例
|
|
61
|
+
- `typeId` 是 `ParticleRenderer` 上的 static 只读字段,子类用 `static override readonly typeId: string = 'my-renderer';` 覆盖
|
|
62
|
+
- `typeId` 为空串时 `register` 抛错(`Particle renderer typeId must be a non-empty string.`)
|
|
63
|
+
- `typeId` 已登记时 `register` 抛错(`Particle renderer type "..." is already registered.`),重复登记不会覆盖
|
|
64
|
+
- 没有注销或清空接口:`typeId` 一经登记,页面生命周期内一直有效
|
|
65
|
+
- `get` 找不到该 `type` 时抛错(`Unregistered particle renderer type: ...`),空串也走这条未注册路径
|
|
66
|
+
- 真正用到登记表的入口只有一个:`entity.addComponent(ParticleSystem, { renderer: { type: 'my-renderer' } });` 构造时按 `type` 查表;未登记就抛错
|
|
67
|
+
- `type` 之外的同级字段会原样传给自定义构造函数,参数类型是 `CustomParticleRendererParams`:`renderer: { type: 'my-renderer', myOption: 1 }`
|
|
68
|
+
- 自定义构造函数签名是 `new (system, params)`:第一个参数是拥有它的 `ParticleSystem`,第二个是上面那包选项
|
|
69
|
+
- 内置渲染器不走这张表:`renderMode` 为 `MESH` / `NONE` 时在查表之前就直接建内置类,默认则建 Billboard
|
|
70
|
+
- 内置渲染器的 `typeId` 非空(`billboard` / `mesh` / `none`),这些 id 未被保留,`register` 会接受它们;但这只改 `get` 的返回值,不影响 `ParticleSystem` 按 `renderMode` 选渲染器
|
|
71
|
+
- 登记要在建组件之前做:先 `register`,再 `addComponent`,顺序反了会抛未注册
|
|
72
|
+
- 自定义渲染器必须自己实现 `dispose()`;系统在 `ParticleSystem` 销毁时统一调它
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: particle-system-factory
|
|
3
|
+
title: 使用 ParticleSystemFactory
|
|
4
|
+
aliases:
|
|
5
|
+
- ParticleSystemFactory
|
|
6
|
+
- particle system factory
|
|
7
|
+
- 粒子模板
|
|
8
|
+
- 粒子反序列化
|
|
9
|
+
keywords:
|
|
10
|
+
- create
|
|
11
|
+
- load
|
|
12
|
+
- template
|
|
13
|
+
- toJSON
|
|
14
|
+
- 从模板创建粒子
|
|
15
|
+
- 加载粒子模板
|
|
16
|
+
tags:
|
|
17
|
+
- particle
|
|
18
|
+
summary: 用 ParticleSystemFactory.create 从模板对象组装 ParticleSystem,或用 load 按 URL 拉取 JSON 再组装;只有 static 方法。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- shuriken-factory
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- particlesystem:class:ParticleSystemFactory
|
|
23
|
+
- particlesystem:class:ParticleSystem
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 使用 ParticleSystemFactory
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
已经有挂在场景里的 `entity`,手里有 `ParticleSystem.toJSON()` 导出的模板对象或模板 JSON 的 URL,要还原成粒子系统时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/particlesystem`
|
|
35
|
+
- 外层已有挂在场景里的 `entity`
|
|
36
|
+
- 用 `load` 时,外层已有可访问的 `url`,且该地址能返回模板 JSON
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const particles = ParticleSystemFactory.create(entity, template);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 备注
|
|
45
|
+
|
|
46
|
+
- 不要 `new ParticleSystemFactory()`;它的构造函数是私有的,只有 `create` / `load` 两个 static 方法
|
|
47
|
+
- 从对象组装:`const particles = ParticleSystemFactory.create(entity, template);` 在 `entity` 上组装并返回 `ParticleSystem`
|
|
48
|
+
- 从 URL 组装:`const particles = await ParticleSystemFactory.load(entity, url);` 取该 URL 的 JSON 后组装;HTTP 响应不是 ok 时抛错
|
|
49
|
+
- `load` 的另两条失败路径:网络失败或 JSON 解析失败时,异常由内部的 `fetch` / `response.json()` 直接 reject,不是本方法自己抛的错
|
|
50
|
+
- 模板来源:`const template = particles.toJSON();`;`ParticleSystem` 没有 `fromJSON`,还原只能走这个工厂
|
|
51
|
+
- 模板把 mesh 渲染器的 geometry / material 存成 uuid,正文放在 `geometries` / `materials` 里;`create` 用 `ObjectLoader` 重建这些资源
|
|
52
|
+
- mesh 渲染器的 geometry 或 material uuid 在模板资源里找不到时抛错
|
|
53
|
+
- 自定义模块按 `type` 走 `ParticleModuleRegistry`;`type` 缺失或未注册时抛错
|
|
54
|
+
- 碰撞平面按 guid 在 `entity.scene.rootEntity` 下查找;实体找不到、或没有场景 / 根实体时跳过,不抛错
|
|
55
|
+
- mesh shape 的 geometry 在模板资源里找不到时跳过,不抛错;`shape` 不是 `MeshShape` 时不做绑定,原样保留
|
|
56
|
+
- 函数工厂渲染器不能写进模板:模板里存的是当时的渲染器 JSON,还原出来的是按该 JSON 重建的渲染器
|
|
57
|
+
- 模板里的 `position` / `scale` / `rotation` 会一并写回组件变换,不是只建组件
|
|
58
|
+
- 只缩放 / 只旋转也能还原:三个字段里有多少就用多少,全缺时不动变换
|
|
59
|
+
- `queryMask`、`renderOrder`、`maxParticles`、`useAutoRandomSeed` 会从模板带回构造参数
|
|
60
|
+
- 整体移除仍走 `entity.removeComponent(ParticleSystem)`,不要对工厂做清理
|