@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,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: label
|
|
3
|
+
title: 创建 Label
|
|
4
|
+
aliases:
|
|
5
|
+
- Label
|
|
6
|
+
- 标签组件
|
|
7
|
+
- 屏幕标签
|
|
8
|
+
- 标注
|
|
9
|
+
keywords:
|
|
10
|
+
- text
|
|
11
|
+
- font
|
|
12
|
+
- image
|
|
13
|
+
- offset
|
|
14
|
+
- visible
|
|
15
|
+
- transformation
|
|
16
|
+
tags:
|
|
17
|
+
- scene
|
|
18
|
+
- core
|
|
19
|
+
summary: 创建或调整 Label:文字、图标、位置、offset、显隐。
|
|
20
|
+
relatedGuides:
|
|
21
|
+
- label
|
|
22
|
+
relatedApiIds:
|
|
23
|
+
- core:class:Label
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 创建 Label
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
已经有 `scene`,要在实体上显示或调整屏幕标签时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/core`
|
|
35
|
+
- 外层已有 `scene`
|
|
36
|
+
- 已安装 `three`(Vector3 / Vector2 从 `three` 引入)
|
|
37
|
+
- `text.font` 和 `image.map` 都是 URL,资源要能访问到
|
|
38
|
+
|
|
39
|
+
## 主示例
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { Vector3 } from 'three';
|
|
43
|
+
|
|
44
|
+
const textEntity = scene.rootEntity.createChild();
|
|
45
|
+
const label = textEntity.addComponent(Label, {
|
|
46
|
+
transformation: { position: new Vector3(0, 1, 0) },
|
|
47
|
+
text: { content: 'Hello', font: '/fonts/MyFont.ttf' }
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
label.offset.set(0, 8);
|
|
51
|
+
label.text = { content: 'Updated' };
|
|
52
|
+
|
|
53
|
+
const iconEntity = scene.rootEntity.createChild();
|
|
54
|
+
iconEntity.addComponent(Label, {
|
|
55
|
+
image: { map: '/icons/pin.png' }
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## 备注
|
|
60
|
+
|
|
61
|
+
- `text.content` 必填;不传 `text.font` 时文字画不出来;Core 不内置字体
|
|
62
|
+
- 文字参数:`label.text = { content: 'Hello', font: '/fonts/MyFont.ttf', color: '#ffffff', size: 32, outline: { width: 2, color: '#000000' }, maxWidth: 200, lineHeight: 1.2, visible: true };`
|
|
63
|
+
- `text` 默认:`color` `'#ffffff'`、`size` `32`、`lineHeight` `1.2`、`visible` `true`;`outline` 传对象整体替换,`null` 关闭,省略保持不变;`outline.width` 必填,`outline.color` 默认 `'#000000'`(width 建议 ≤ 字号 10%);`maxWidth` 不传只按 `\n` 换行
|
|
64
|
+
- 改文字:`label.text = { content: 'Updated' };` 只覆盖 `content`;先取快照改再整体赋回:`const text = label.text; if (text) { text.content = 'Updated'; label.text = text; }`;`label.text = undefined;` 清除
|
|
65
|
+
- 图标参数:`label.image = { map: '/icons/pin.png', color: '#ffffff', width: 32, height: 32, size: 32, visible: true };`;`map` 必填;`width` / `height` / `size` 默认 `32`,`color` 默认 `'#ffffff'`,`visible` 默认 `true`
|
|
66
|
+
- 改图标:`label.image = { map: '/icons/pin2.png' };` 只覆盖传入字段;`label.image = undefined;` 清除;`label.image` getter 也是快照,改完整体赋回
|
|
67
|
+
- `text.font` / `image.map` 是 URL,资源要能访问到;URL 形式异步加载,赋值当下文字/图标还没到位,也没有完成回调
|
|
68
|
+
- 标签局部位置:构造时在 `addComponent` 参数里写 `transformation: { position: new Vector3(0, 1, 0) }`,或运行时 `label.setPosition(0, 1, 0);`;顶层 `position` 会被索引签名吞掉,不生效;Vector3 从 `three` 引入
|
|
69
|
+
- 移动实体(标签跟着走):`entity.transform.setPosition(0, 1, 0);`
|
|
70
|
+
- 水平/垂直原点:`label.horizontalOrigin = HorizontalOrigin.LEFT;`(默认 `HorizontalOrigin.CENTER`);`label.verticalOrigin = VerticalOrigin.TOP;`(默认 `VerticalOrigin.BOTTOM`)
|
|
71
|
+
- 像素偏移:`label.offset.set(0, 8);` 改内部向量,下一帧写进 batch;`label.offset = new Vector2(0, 8);` 走 setter copy;Vector2 从 `three` 引入
|
|
72
|
+
- 整体缩放/透明度:`label.sizeScale = 1.5;`(默认 `1.0`);`label.opacity = 0.5;`(默认 `1.0`)
|
|
73
|
+
- 遮挡/文字对齐:`label.occluded = true;`(默认 `false`);`label.textAlign = TextAlign.CENTER;`(默认 `TextAlign.RIGHT`;相对图标,只有文字时语义不明确)
|
|
74
|
+
- 显隐:`label.visible = false;` 隐藏整个标签;只拨锚点 Group 藏不住图标和文字
|
|
75
|
+
- 距离淡出/自动裁剪/权重:`label.visibleDistance = 100;`(默认 `-1`,≤0 不限制);`label.autoCulling = true;`(默认 `false`);`label.weight = 10;`(默认 `0`)
|
|
76
|
+
- 拾取:`label.raycast(raycaster)` 是屏幕像素框拾取,命中锚点,不是 batch mesh;被 culling 掉的标签不命中;通常由 picker 调用,调用方用 `scene.pick`
|
|
77
|
+
- 移除走 `entity.removeComponent(Label)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: lens-flare-node
|
|
3
|
+
title: 使用 LensFlareNode
|
|
4
|
+
aliases:
|
|
5
|
+
- LensFlareNode
|
|
6
|
+
- lens flare node
|
|
7
|
+
- 镜头光晕节点
|
|
8
|
+
- 太阳光晕
|
|
9
|
+
keywords:
|
|
10
|
+
- sunDirection
|
|
11
|
+
- sunColor
|
|
12
|
+
- sunIntensity
|
|
13
|
+
- computeVisibility
|
|
14
|
+
- depth
|
|
15
|
+
- CloudSample
|
|
16
|
+
tags:
|
|
17
|
+
- core
|
|
18
|
+
summary: 用 LensFlareNode 在场景颜色上叠加太阳光晕;渲染后调用 computeVisibility。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- effect-node
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:LensFlareNode
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 使用 LensFlareNode
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
已经有 WebGPU 场景颜色、场景深度和透视相机,要加太阳光晕时读这篇。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core` 和 `three`
|
|
34
|
+
- 外层已有 `WebGPUEngine`、`scene` 和 `engine`
|
|
35
|
+
- `colorNode` 是场景颜色 node;`depthTexture` 是场景深度纹理
|
|
36
|
+
- `camera` 是场景的 `THREE.PerspectiveCamera`(不是全屏后处理正交相机)
|
|
37
|
+
- `sunDirection` 是 `THREE.Vector3`,指向太阳
|
|
38
|
+
- `ScriptableSceneRenderer` 可用(WebGPU)
|
|
39
|
+
|
|
40
|
+
## 主示例
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
const node = new LensFlareNode(colorNode, depthTexture, camera);
|
|
44
|
+
|
|
45
|
+
node.strength.value = 1;
|
|
46
|
+
node.sunDirection.value.copy(sunDirection);
|
|
47
|
+
node.sunColor.value.set(0xffffff);
|
|
48
|
+
node.sunIntensity.value = 5;
|
|
49
|
+
|
|
50
|
+
scene.sceneRenderer = new ScriptableSceneRenderer(engine, {
|
|
51
|
+
output: node,
|
|
52
|
+
afterRender: () => node.computeVisibility(engine.renderer as WebGPURenderer)
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 备注
|
|
57
|
+
|
|
58
|
+
- `colorNode` 是外层已有的 TSL 颜色 node;`depthTexture` 是外层已有的场景深度纹理;`camera` 必须是场景透视相机,全屏后处理正交相机无法投影太阳
|
|
59
|
+
- `camera` 是公开字段,可在运行时换成另一个透视相机
|
|
60
|
+
- `depthTexture` 是场景深度;`clouds` 可选 `CloudSample`,提供 `map` 云历史和 `view` 相机基向量;不传就跳过云透射
|
|
61
|
+
- `strength` 默认 `1`;`sunDirection` 默认 `(0, 1, 0)`,每帧写 `.value`;`sunColor` 默认白色;`sunIntensity` 默认 `0`,必须自己设置
|
|
62
|
+
- 可见度晚一帧生效;渲染完必须调 `node.computeVisibility(renderer);`;用 `ScriptableSceneRenderer` 的 `afterRender`
|
|
63
|
+
- `updateBefore` 写太阳屏幕位置、在屏比例、aspect、时间步和输出高度;相机不是透视时跳过;由 TSL node system 调,不要手动调
|
|
64
|
+
- `setup` 只把 flare RGB 加到场景色上,alpha 不变
|
|
65
|
+
- 也可以直接 `new LensFlareNode(...)`;`lensFlare(...)` 只是构造辅助
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: light-probe-group
|
|
3
|
+
title: 创建 LightProbeGroup
|
|
4
|
+
aliases:
|
|
5
|
+
- LightProbeGroup
|
|
6
|
+
- 探针网格
|
|
7
|
+
- probe grid
|
|
8
|
+
- bake probes
|
|
9
|
+
keywords:
|
|
10
|
+
- bake GI
|
|
11
|
+
- 体积探针
|
|
12
|
+
- irradiance grid
|
|
13
|
+
tags:
|
|
14
|
+
- scene
|
|
15
|
+
- core
|
|
16
|
+
summary: new LightProbeGroup 后 bake,把场景采进体积探针网格。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- light-probe
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- core:class:LightProbeGroup
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 创建 LightProbeGroup
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有 `scene`,要把场景烘焙成体积探针网格。要把网格从原点挪开时外层已有 `position`。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/core`
|
|
32
|
+
- 外层已有 `scene`
|
|
33
|
+
- 要把网格从原点挪开时外层已有 `position`
|
|
34
|
+
|
|
35
|
+
## 主示例
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const group = new LightProbeGroup(scene);
|
|
39
|
+
await group.bake();
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 备注
|
|
43
|
+
|
|
44
|
+
- 不是组件:`new LightProbeGroup(scene);` 然后 `await group.bake();`,不要 `addComponent`
|
|
45
|
+
- 构造就创建 native 网格和 helper 并加进 `scene.native`,不烘焙。再 `await group.bake();` 是原地重采
|
|
46
|
+
- 带体积:`new LightProbeGroup(scene, { width: 4, height: 2, depth: 4, widthProbes: 4, heightProbes: 2, depthProbes: 4 });`
|
|
47
|
+
- 边长默认 `1`;省略 probe 数量时为 `Math.max(1, Math.round(对应边长))`。数量不能事后改,要换密度就 `group.dispose();` 后重新 `new`
|
|
48
|
+
- `position` 构造时拷贝,默认原点:`new LightProbeGroup(scene, { position });`
|
|
49
|
+
- `showProbes` 默认 `false`:`group.showProbes = true;`;`enabled` 默认 `true`:`group.enabled = false;`
|
|
50
|
+
- 改边长后重采:`group.width = 4;`、`group.height = 2;`、`group.depth = 4;` 然后 `await group.bake();`
|
|
51
|
+
- 重叠时谁亮:`group.priority = 1;`
|
|
52
|
+
- 烘焙选项:`await group.bake({ cubemapSize: 8, near: 0.1, far: 100, bounces: 0, start: 0, pass: 0 });`。`cubemapSize` 默认 `8`,WebGPU 必须是 4 的倍数;`near` 默认 `0.1`;`far` 默认 `100`;`bounces` 默认 `0`,只整网格能用;`start` 默认 `0`;`count` 默认剩下的 probe;`pass` 默认 `0`,分段烘焙时 `bounces` 必须是 `0`
|
|
53
|
+
- 用完:`group.dispose();`
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: light-probe
|
|
3
|
+
title: 创建 LightProbe
|
|
4
|
+
aliases:
|
|
5
|
+
- LightProbe
|
|
6
|
+
- 立方体探针
|
|
7
|
+
- cube probe
|
|
8
|
+
- cube light probe
|
|
9
|
+
keywords:
|
|
10
|
+
- CubeTexture
|
|
11
|
+
- 漫反射探针
|
|
12
|
+
- 球谐探针
|
|
13
|
+
tags:
|
|
14
|
+
- scene
|
|
15
|
+
- core
|
|
16
|
+
summary: 用立方体贴图 new LightProbe,生成漫反射探针并加到场景。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- light-probe
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- core:class:LightProbe
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 创建 LightProbe
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有 `scene` 和 `cubeTexture`,要从立方体贴图生成漫反射探针。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/core`
|
|
32
|
+
- 外层已有 `scene`
|
|
33
|
+
- 外层已有 `cubeTexture`
|
|
34
|
+
|
|
35
|
+
## 主示例
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const lightProbe = new LightProbe(scene, {
|
|
39
|
+
source: cubeTexture
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## 备注
|
|
44
|
+
|
|
45
|
+
- 不是组件:`new LightProbe(scene, { source: cubeTexture });`,不要 `addComponent`
|
|
46
|
+
- `source` 必填。`CubeTexture` 两个引擎都能用;`CubeRenderTarget` 只 WebGPU;`WebGLCubeRenderTarget` 只 WebGL
|
|
47
|
+
- 错配会在生成时拒绝:`WebGLCubeRenderTarget type parameters are not supported in WebGPU mode`;`CubeRenderTarget type parameters are not supported in WebGL mode`
|
|
48
|
+
- 构造开始异步生成,不返回 Promise;`enabled` / `showProbes` 在生成完成时生效
|
|
49
|
+
- 完成前和 `dispose` 之后:`lightProbe.enabled = false;`、`lightProbe.showProbes = true;`、`await lightProbe.update(cubeTexture);` 都是 no-op
|
|
50
|
+
- `showProbes` 默认 `false`;`enabled` 默认 `true`
|
|
51
|
+
- 换源:`await lightProbe.update(cubeTexture);` 把球谐拷到现有探针上
|
|
52
|
+
- 用完:`lightProbe.dispose();`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: linear-picker
|
|
3
|
+
title: 使用 LinearPicker
|
|
4
|
+
aliases:
|
|
5
|
+
- LinearPicker
|
|
6
|
+
- linear picker
|
|
7
|
+
- 线性拾取
|
|
8
|
+
- 默认拾取
|
|
9
|
+
keywords:
|
|
10
|
+
- scene.getPicker
|
|
11
|
+
- isPickable
|
|
12
|
+
- QueryMask
|
|
13
|
+
- PickResult
|
|
14
|
+
tags:
|
|
15
|
+
- pick
|
|
16
|
+
- core
|
|
17
|
+
summary: 用 scene.getPicker(LinearPicker) 取默认拾取后端,覆盖 isPickable 改参与条件。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- pick
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:LinearPicker
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 使用 LinearPicker
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `scene`,要改默认线性拾取的参与条件时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 外层已有 `scene`
|
|
34
|
+
|
|
35
|
+
## 主示例
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const picker = scene.getPicker(LinearPicker);
|
|
39
|
+
if (picker) {
|
|
40
|
+
picker.isPickable = renderer => renderer.entity.visible;
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 备注
|
|
45
|
+
|
|
46
|
+
- `scene.getPicker(LinearPicker)` 未注册时返回 `undefined`;Scene 默认注册 `LinearPicker`,取到后先判空再改
|
|
47
|
+
- `isPickable` 默认要求 `renderer.entity.visible` 和 `renderer.visible` 都为 `true`;覆盖它可改参与条件
|
|
48
|
+
- `LinearPicker` 用扁平集合扫描 renderer,适合数量不大的场景;数量大时用带空间索引的后端
|
|
49
|
+
- `pick` / `boxSelect` 的 `queryMask` 默认 `QueryMask.EVERYTHING`
|
|
50
|
+
- `pick` 返回 `PickResult[]`;`boxSelect` 返回去重后的 `Entity[]`
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: lut-resource
|
|
3
|
+
title: 使用 LUTResource
|
|
4
|
+
aliases:
|
|
5
|
+
- LUTResource
|
|
6
|
+
- LUT resource
|
|
7
|
+
- LUT 资源
|
|
8
|
+
- 颜色查找表
|
|
9
|
+
keywords:
|
|
10
|
+
- loadLUT
|
|
11
|
+
- lut
|
|
12
|
+
- Data3DTexture
|
|
13
|
+
- cube
|
|
14
|
+
- 3dl
|
|
15
|
+
- Hald CLUT
|
|
16
|
+
tags:
|
|
17
|
+
- core
|
|
18
|
+
summary: 用 loadLUT 加载 .cube/.png/.3dl,从 LUTResource 取 Data3DTexture。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- resource
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:LUTResource
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 使用 LUTResource
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
已经有 `engine`,要加载 LUT 做调色或色调映射时读这篇。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core`
|
|
34
|
+
- 外层已有 `engine`
|
|
35
|
+
- LUT 文件 URL 可访问,扩展名是 `.cube`、`.png`(Hald CLUT)或 `.3dl`
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const ref = await engine.resourceManager.loadLUT('/luts/filmic.cube');
|
|
41
|
+
const resource = ref.resource;
|
|
42
|
+
|
|
43
|
+
const lut = resource.lut;
|
|
44
|
+
|
|
45
|
+
// use lut ...
|
|
46
|
+
ref.dispose();
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 备注
|
|
50
|
+
|
|
51
|
+
- `ref.resource` 是 `LUTResource`;`.lut` 是底层 `THREE.Data3DTexture`,`nativeObject` 返回同一个对象:`ref.resource.nativeObject`
|
|
52
|
+
- `LUTResource` 对应 `.cube`、`.png`(Hald CLUT)和 `.3dl` 三种 LUT 文件
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: material-resource
|
|
3
|
+
title: 使用 MaterialResource
|
|
4
|
+
aliases:
|
|
5
|
+
- MaterialResource
|
|
6
|
+
- material resource
|
|
7
|
+
- 材质资源
|
|
8
|
+
- 材质包装
|
|
9
|
+
keywords:
|
|
10
|
+
- createMaterialResource
|
|
11
|
+
- updateTextures
|
|
12
|
+
- material
|
|
13
|
+
- textureRef
|
|
14
|
+
- uniform
|
|
15
|
+
tags:
|
|
16
|
+
- core
|
|
17
|
+
summary: 用 createMaterialResource 包材质,按 label 替换、清除或更新纹理槽。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- resource
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:MaterialResource
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 使用 MaterialResource
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `engine`、`material` 和 `textureRef`,要把材质纳入资源管理,或运行时替换材质纹理槽时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 外层已有 `engine`
|
|
34
|
+
- `material` 是 `THREE.Material` 实例
|
|
35
|
+
- `textureRef` 是 `ResourceRef<TextureResource>`,已经拿到
|
|
36
|
+
- 要更新的槽位在材质上存在:属性名(如 `map`)或 `uniform:${slot}`(如 `uniform:diffuseMap`)
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const ref = await engine.resourceManager.createMaterialResource(material, [
|
|
42
|
+
{ label: 'map', textureRef }
|
|
43
|
+
]);
|
|
44
|
+
const resource = ref.resource;
|
|
45
|
+
|
|
46
|
+
const nextTextureRef = await engine.resourceManager.loadTexture('/textures/albedo-next.png');
|
|
47
|
+
resource.updateTextures([{ label: 'map', textureRef: nextTextureRef }]);
|
|
48
|
+
|
|
49
|
+
const nativeMaterial = resource.material;
|
|
50
|
+
|
|
51
|
+
// use nativeMaterial ...
|
|
52
|
+
ref.dispose();
|
|
53
|
+
textureRef.dispose();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 备注
|
|
57
|
+
|
|
58
|
+
- `ref.resource` 是 `MaterialResource`;`.material` 是底层 `THREE.Material`,`nativeObject` 返回同一个对象:`ref.resource.nativeObject`
|
|
59
|
+
- `updateTextures` 按 label 更新槽位:属性名写成 `'map'`,uniform 写成 `'uniform:diffuseMap'`;`resource.updateTextures([{ label: 'map', textureRef: nextTextureRef }]);`
|
|
60
|
+
- 传入 `updateTextures` 的 ref 不会被 clone,`MaterialResource` 接管它的生命周期;如果调用方还要继续用,先 `nextTextureRef.clone()` 再传
|
|
61
|
+
- 清除槽位:`resource.updateTextures([{ label: 'map', textureRef: null }]);`;会释放该槽位之前持有的引用
|
|
62
|
+
- 槽位不存在或不可写时,这一项被跳过并 warning,调用不抛错;其它项照常更新
|
|
63
|
+
- `ref.resource.idleMemoryUsage` 是只读估算;`MaterialResource` 会把依赖纹理一起算进去
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: memory-estimator
|
|
3
|
+
title: 使用 MemoryEstimator
|
|
4
|
+
aliases:
|
|
5
|
+
- MemoryEstimator
|
|
6
|
+
- memory estimator
|
|
7
|
+
- 内存估算器
|
|
8
|
+
- 资源占用估算
|
|
9
|
+
keywords:
|
|
10
|
+
- estimateTextureMemory
|
|
11
|
+
- estimateGeometryMemory
|
|
12
|
+
- estimateMeshMemory
|
|
13
|
+
- includeDependencies
|
|
14
|
+
- dedupe
|
|
15
|
+
- totalBytes
|
|
16
|
+
tags:
|
|
17
|
+
- core
|
|
18
|
+
- scene
|
|
19
|
+
summary: 用 MemoryEstimator 的 static 方法估算纹理、几何与整棵场景树的 CPU/GPU 占用;复合资源返回 self、dependencies、total 三层。
|
|
20
|
+
relatedGuides:
|
|
21
|
+
- memory
|
|
22
|
+
relatedApiIds:
|
|
23
|
+
- core:class:MemoryEstimator
|
|
24
|
+
- core:interface:MemoryUsage
|
|
25
|
+
- core:interface:MemoryUsageBreakdown
|
|
26
|
+
- core:interface:MemoryEstimateOptions
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
# 使用 MemoryEstimator
|
|
30
|
+
|
|
31
|
+
## 适用场景
|
|
32
|
+
|
|
33
|
+
要在加载资源后统计占用、做缓存淘汰判断、或排查显存异常时读这篇。
|
|
34
|
+
|
|
35
|
+
## 前置条件
|
|
36
|
+
|
|
37
|
+
- 已安装 `@vista3d/core`
|
|
38
|
+
- 已有要估算的 three.js 资源:`texture`、`geometry`、`material`、`mesh` 或 `scene` 根节点
|
|
39
|
+
|
|
40
|
+
## 主示例
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
const textureUsage = MemoryEstimator.estimateTextureMemory(texture);
|
|
44
|
+
const geometryUsage = MemoryEstimator.estimateGeometryMemory(geometry);
|
|
45
|
+
|
|
46
|
+
const meshBreakdown = MemoryEstimator.estimateMeshMemory(mesh, {
|
|
47
|
+
includeDependencies: true,
|
|
48
|
+
dedupe: true
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const meshTotalBytes = meshBreakdown.total.totalBytes;
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 备注
|
|
55
|
+
|
|
56
|
+
- 全是 static 方法,直接 `MemoryEstimator.xxx(...)`;不要 `new MemoryEstimator()`
|
|
57
|
+
- 纹理:`MemoryEstimator.estimateTextureMemory(texture);` 可选第二参数作 `label`,默认 `'texture'`
|
|
58
|
+
- LUT:`MemoryEstimator.estimateLUTMemory(lut);` 复用纹理估算,`label` 为 `'lut'`
|
|
59
|
+
- 几何:`MemoryEstimator.estimateGeometryMemory(geometry);` 统计属性、索引、morph 属性,并把 BVH 类附加数据计入 CPU
|
|
60
|
+
- 材质:`MemoryEstimator.estimateMaterialMemory(material, options);`
|
|
61
|
+
- Mesh:`MemoryEstimator.estimateMeshMemory(mesh, options);`
|
|
62
|
+
- 场景树:`MemoryEstimator.estimateObject3DMemory(root, options);`
|
|
63
|
+
- glTF:`MemoryEstimator.estimateGLTFMemory(scene, animations, options);` `animations` 默认 `[]`
|
|
64
|
+
- 返回形状分两类:纹理 / 几何是单个 `MemoryUsage`;材质 / Mesh / Object3D / glTF 是 `MemoryUsageBreakdown`
|
|
65
|
+
- 单份用量字段:`u.cpuBytes`、`u.gpuBytes`、`u.totalBytes`、`u.estimated`、`u.label`
|
|
66
|
+
- 三层字段:`b.self`、`b.dependencies`、`b.total`,`total` 已经包含 `self`
|
|
67
|
+
- 通道:`const mb = u.totalBytes / 1024 / 1024;`
|
|
68
|
+
- 不含依赖:`{ includeDependencies: false }` 时 `dependencies` 各项为 `0`,只算对象自身元数据
|
|
69
|
+
- 不去重:`{ dedupe: false }` 时共享资源会被重复计入,等于测「引用总量」而不是真实占用
|
|
70
|
+
- 两个选项默认都是 `true`
|
|
71
|
+
- `estimated` 表示是估算值,公开入口当前恒为 `true`
|
|
72
|
+
- `label` 标识类别,例如 `texture`、`geometry`、`materialSelf`、`meshTotal`
|
|
73
|
+
- 纹理优先读真实字节长度;读不到才按宽高 × 每像素字节 × mip 链推算
|
|
74
|
+
- 压缩纹理按格式规则估算(ASTC / S3TC / RGTC / ETC / PVRTC)
|
|
75
|
+
- 立方体贴图按 6 面计,3D 纹理按深度轴逐级减半算 mip
|
|
76
|
+
- 材质自身只算对象与着色器元数据,纹理归入 `dependencies`
|
|
77
|
+
- 找材质纹理不依赖字段名:扫描对象图中所有 `isTexture` 引用,自定义材质也能覆盖
|
|
78
|
+
- 骨骼统计骨骼矩阵与节点,`boneTexture` 走纹理估算路径
|
|
79
|
+
- 动画只统计 clips / tracks 元数据与关键帧数组,通常只有 CPU 部分
|
|
80
|
+
- 返回值都是非负整数,内部会向下取整并夹到 `0` 以上
|
|
81
|
+
- 纯 CPU 估算,不访问 GPU,不会引起显存抖动
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: mesh-output-context
|
|
3
|
+
title: 使用 MeshOutputContext
|
|
4
|
+
aliases:
|
|
5
|
+
- MeshOutputContext
|
|
6
|
+
- mesh output context
|
|
7
|
+
- 网格输出
|
|
8
|
+
- 实例网格粒子
|
|
9
|
+
keywords:
|
|
10
|
+
- geometry
|
|
11
|
+
- transparent
|
|
12
|
+
- depthWrite
|
|
13
|
+
- blending
|
|
14
|
+
- 粒子网格
|
|
15
|
+
tags:
|
|
16
|
+
- particle
|
|
17
|
+
summary: MeshOutputContext 用调用方给的几何体做实例网格输出;必须传 geometry,透明要自己开并通常关掉 depthWrite。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- contexts
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- particlesystem:class:MeshOutputContext
|
|
22
|
+
- particlesystem:interface:MeshOutputContextParams
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 使用 MeshOutputContext
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
已经有 GPU 粒子系统,要让每个粒子画一份自定义几何体、而不是四边形时读这篇。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/particlesystem`
|
|
34
|
+
- 已安装 `three`(BufferGeometry 从 `three` 引入)
|
|
35
|
+
- 外层已有 `vfx`(`VFXSystem`)
|
|
36
|
+
- 外层已有 `geometry`
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
entity.addComponent(VFXSystem, {
|
|
42
|
+
output: (system, curveAtlas) => new MeshOutputContext(system, curveAtlas, {
|
|
43
|
+
geometry,
|
|
44
|
+
transparent: true,
|
|
45
|
+
depthWrite: false,
|
|
46
|
+
blending: NormalBlending
|
|
47
|
+
})
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
vfx.play();
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 备注
|
|
54
|
+
|
|
55
|
+
- 必须用工厂替换输出:构造 `VFXSystem` 时传 `output: (system, curveAtlas) => new MeshOutputContext(system, curveAtlas, params);`,默认输出是 Quad
|
|
56
|
+
- 取实例:`const mesh = vfx.outputContext as MeshOutputContext;`
|
|
57
|
+
- `geometry` 必填,没有它在构造时就抛错;内部会克隆并接管,改传进去的原几何体不影响已画出的粒子
|
|
58
|
+
- 颜色贴图:`mesh.map = '/textures/rock.png';` 也接受 `Texture`,传 `null` 清除;按 `geometry` 的 UV 采样,不做图集解码
|
|
59
|
+
- 贴图按 sRGB 处理;传 URL 时异步加载,赋值当下贴图还没到位,也没有完成回调
|
|
60
|
+
- 默认不透明且写深度(`transparent` 为 `false`、`depthWrite` 为 `true`)
|
|
61
|
+
- 透明:`mesh.transparent = true;`;关闭时混合被忽略,但片元 alpha 仍然写进颜色附件,预乘画布会透出页面背景
|
|
62
|
+
- 要粒子按 alpha 淡出,必须 `mesh.transparent = true;` 并通常同时 `mesh.depthWrite = false;`
|
|
63
|
+
- 混合:`mesh.blending = AdditiveBlending;`(默认 `NormalBlending`);只在 `transparent` 为 `true` 时生效
|
|
64
|
+
- 自定义混合不支持:传 `CustomBlending` 没有因子接口,three.js 用默认因子,效果不符合预期
|
|
65
|
+
- 光照材质:只有构造时传 `lights: true` 才是受光材质,默认 `false`
|
|
66
|
+
- 几何体没有 UV 或贴图缺省时,只用粒子颜色
|
|
67
|
+
- 改完参数要 `vfx.markNeedsCompile();`,上下文不会替调用方标脏
|
|
68
|
+
- `STRIP` 布局不能配 Mesh 输出
|
|
69
|
+
- 移除整个系统走 `entity.removeComponent(VFXSystem)`
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: mesh-particle-renderer
|
|
3
|
+
title: 使用 MeshParticleRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- MeshParticleRenderer
|
|
6
|
+
- mesh particle renderer
|
|
7
|
+
- 网格粒子
|
|
8
|
+
- 实例化粒子
|
|
9
|
+
keywords:
|
|
10
|
+
- 粒子几何体
|
|
11
|
+
- 粒子材质
|
|
12
|
+
- 粒子阴影
|
|
13
|
+
- instanced particle
|
|
14
|
+
tags:
|
|
15
|
+
- particle
|
|
16
|
+
summary: 用工厂形式把 MeshParticleRenderer 交给 ParticleSystem,每个粒子画一份几何体实例,可选投影与接收阴影。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- shuriken-renderer
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- particlesystem:class:MeshParticleRenderer
|
|
21
|
+
- particlesystem:interface:MeshParticleRendererParams
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 使用 MeshParticleRenderer
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有挂在场景里的 `entity`,要让每个粒子都画一份几何体实例、而不是朝相机的四边形时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/particlesystem`
|
|
33
|
+
- 已安装 `three`(BufferGeometry / Material 从 `three` 引入)
|
|
34
|
+
- 外层已有挂在场景里的 `entity`
|
|
35
|
+
- 外层已有可用的 `geometry` 和 `material`
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
let renderer: MeshParticleRenderer | undefined;
|
|
41
|
+
|
|
42
|
+
entity.addComponent(ParticleSystem, {
|
|
43
|
+
renderer: (system) => {
|
|
44
|
+
renderer = new MeshParticleRenderer(system, {
|
|
45
|
+
renderMode: ParticleSystemRenderMode.MESH,
|
|
46
|
+
geometry,
|
|
47
|
+
material,
|
|
48
|
+
castShadow: true,
|
|
49
|
+
receiveShadow: false
|
|
50
|
+
});
|
|
51
|
+
return renderer;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 备注
|
|
57
|
+
|
|
58
|
+
- 构造:`new MeshParticleRenderer(system, params);`;`system` 是 `ParticleSystem` 实例,不要在它之外自己 `new`
|
|
59
|
+
- 常用接法是把工厂交给系统:`entity.addComponent(ParticleSystem, { renderer: (system) => new MeshParticleRenderer(system, params) });`
|
|
60
|
+
- `ParticleSystem` 没有公开的 renderer 属性;要留运行期引用,就在工厂里存到一个外层变量
|
|
61
|
+
- `MeshParticleRendererParams.renderMode` 必填且必须是 `ParticleSystemRenderMode.MESH`
|
|
62
|
+
- `geometry` 和 `material` 必填;`material` 可以是一个材质,也可以是按子网格排列的材质数组
|
|
63
|
+
- 构造时几何体和材质都会被克隆,克隆出来的 GPU 资源归这个渲染器所有,随它一起释放;改传进来的原对象不会影响已经画出来的粒子
|
|
64
|
+
- 克隆的材质会被强制打开 `vertexColors`,实例颜色写在实例颜色属性里,不是几何体的 `color` 属性
|
|
65
|
+
- 阴影:`castShadow` / `receiveShadow` 默认都是 `false`;只能构造时给,没有运行期访问器
|
|
66
|
+
- 源几何体与源材质:`const g = renderer.geometry;`、`const m = renderer.material;` 返回的是传进去的源对象,不是内部克隆
|
|
67
|
+
- 翻转按轴加 180° 旋转,不是负缩放:实例网格不能镜像缩放,否则三角形绕序会反
|
|
68
|
+
- `WORLD` 模拟空间下会把粒子世界坐标换回渲染器本地,粒子不会跟着发射器走
|
|
69
|
+
- 没有 `Mesh` 对象,也不加载模型;需要模型请先自己解析出 `geometry` 和 `material`
|
|
70
|
+
- `dispose()` 由 `ParticleSystem` 销毁时调用,会释放实例网格与克隆资源,调用方不要自己调
|
|
71
|
+
- 整体移除走 `entity.removeComponent(ParticleSystem)`,不要单独销毁渲染器
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: mesh-renderer
|
|
3
|
+
title: 创建 MeshRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- MeshRenderer
|
|
6
|
+
- mesh renderer
|
|
7
|
+
- 网格渲染组件
|
|
8
|
+
- 创建网格渲染
|
|
9
|
+
keywords:
|
|
10
|
+
- addComponent MeshRenderer
|
|
11
|
+
- 单个 THREE.Mesh
|
|
12
|
+
- ownsMesh
|
|
13
|
+
- mesh picking
|
|
14
|
+
tags:
|
|
15
|
+
- scene
|
|
16
|
+
- core
|
|
17
|
+
summary: 在实体上 addComponent MeshRenderer,把单个 THREE.Mesh 挂到 Transform 下;ownsMesh 默认 true。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- mesh-renderer
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:MeshRenderer
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 创建 MeshRenderer
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `entity` 和 `mesh`,要把 mesh 挂到实体上画出来。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 已安装 `three`(`mesh` 的类型是 `THREE.Mesh`)
|
|
34
|
+
- 外层已有 `entity` 和 `mesh`
|
|
35
|
+
|
|
36
|
+
## 主示例
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
entity.addComponent(MeshRenderer, { mesh });
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## 备注
|
|
43
|
+
|
|
44
|
+
- `mesh` 是单个 `THREE.Mesh`;不传时可以先挂组件,之后设置该组件的 `mesh`
|
|
45
|
+
- `ownsMesh` 默认 `true`;移除组件或替换 `mesh` 时释放旧 mesh 的 geometry / material;设为 `false` 时由调用方释放
|
|
46
|
+
- 替换 `mesh` 时,组件会挂上新 mesh,并按 `ownsMesh` 处理旧 mesh
|
|
47
|
+
- `renderOrder` 默认 `RenderOrder.NORMAL`;替换 `mesh` 时会把当前值写到新 mesh 上
|
|
48
|
+
- `queryMask` 默认 `QueryMask.NONE`,要参与 `scene.pick` / `scene.boxSelect` 的掩码查询就显式设置
|
|
49
|
+
- 移除走 `entity.removeComponent(MeshRenderer)`,不要自己调 `destroy`
|