@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,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: event-spawn-context
|
|
3
|
+
title: 使用 EventSpawnContext
|
|
4
|
+
aliases:
|
|
5
|
+
- EventSpawnContext
|
|
6
|
+
- event spawn context
|
|
7
|
+
- 事件出生上下文
|
|
8
|
+
- GPU 事件出生
|
|
9
|
+
keywords:
|
|
10
|
+
- addBlock
|
|
11
|
+
- sendEvent
|
|
12
|
+
- 事件粒子
|
|
13
|
+
- 初始化块
|
|
14
|
+
tags:
|
|
15
|
+
- particle
|
|
16
|
+
summary: EventSpawnContext 是 GPU 事件触发的出生阶段;用 sendEvent 喂事件,本上下文有自己的块列表,与常规出生互不共享。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- contexts
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- particlesystem:class:EventSpawnContext
|
|
21
|
+
- particlesystem:interface:VFXCPUEvent
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 使用 EventSpawnContext
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `vfx`(`VFXSystem`),要让粒子由外部事件在指定位置出生时读这篇。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/particlesystem`
|
|
33
|
+
- 已安装 `three`(Vector3 / Color 从 `three` 引入)
|
|
34
|
+
- 外层已有 `vfx`
|
|
35
|
+
|
|
36
|
+
## 主示例
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const evt = vfx.eventSpawnContext;
|
|
40
|
+
|
|
41
|
+
evt.addBlock(SetLifetimeBlock, { lifetime: new MinMaxCurve(1) });
|
|
42
|
+
|
|
43
|
+
vfx.sendEvent({
|
|
44
|
+
count: 10,
|
|
45
|
+
position: new Vector3(0, 1, 0),
|
|
46
|
+
velocity: new Vector3(0, 2, 0)
|
|
47
|
+
});
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 备注
|
|
51
|
+
|
|
52
|
+
- 取实例:`const evt = vfx.eventSpawnContext;` 由系统构造并持有,不要自己建
|
|
53
|
+
- 触发方式只有 `vfx.sendEvent(event);`:写位置、速度、颜色和数量,本上下文负责按事件出生粒子
|
|
54
|
+
- 事件参数:`count` 默认 `1`、`position` 默认原点、`velocity` 默认零、`color` 默认白色
|
|
55
|
+
- 位置与速度用粒子模拟空间;`count` 会被向下取整,小于 `1` 时按 `1` 处理
|
|
56
|
+
- 事件上限 `MAX_EVENTS`(1024):超出的 `sendEvent` 调用被静默丢弃,不抛错
|
|
57
|
+
- 事件按帧消费:`sendEvent` 只是入队,下一次 `update` 才写进事件缓冲并派发
|
|
58
|
+
- 单次事件出生上限:`vfx.maxSpawnPerEvent`(默认 `100`);事件出生不受 `EmitContext.maxEmitPerFrame` 约束
|
|
59
|
+
- 加初始化块:`evt.addBlock(SetLifetimeBlock, { lifetime: new MinMaxCurve(1) });` 块类型与常规出生通用,但块列表独立
|
|
60
|
+
- 与常规出生的关系:`vfx.spawnContext` 和 `vfx.eventSpawnContext` 是两个实例,各自持有块列表;挂给常规出生的块不会在这里生效,两条路径都要就让两边各挂一份
|
|
61
|
+
- 拆块:`evt.removeBlock(block);` 不在本上下文上是 no-op
|
|
62
|
+
- 只接受 `contextType` 含 `VFXContextType.EVENT_SPAWN` 的块;挂别的段会抛错
|
|
63
|
+
- 事件出生也从 `deadList` 取得空位;池满时该线程跳过,不会覆盖已有粒子
|
|
64
|
+
- `VFXDataType.STRIP` 下事件出生同样从 `stripData` 取环形槽位
|
|
65
|
+
- `compile(layout)` 由系统调,不要自己调
|
|
66
|
+
- 改块或参数后要 `vfx.markNeedsCompile();`,`addBlock` / `removeBlock` 已替你标
|
|
67
|
+
- 移除整个系统走 `entity.removeComponent(VFXSystem)`
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: geometry-resource
|
|
3
|
+
title: 使用 GeometryResource
|
|
4
|
+
aliases:
|
|
5
|
+
- GeometryResource
|
|
6
|
+
- geometry resource
|
|
7
|
+
- 几何资源
|
|
8
|
+
- 网格资源
|
|
9
|
+
keywords:
|
|
10
|
+
- geometry
|
|
11
|
+
- nativeObject
|
|
12
|
+
- boundsTree
|
|
13
|
+
- BufferGeometry
|
|
14
|
+
- GLTF
|
|
15
|
+
tags:
|
|
16
|
+
- core
|
|
17
|
+
summary: 用 GeometryResource 包装已有 THREE.BufferGeometry,读取 .geometry 并在销毁时清理 boundsTree。
|
|
18
|
+
relatedGuides:
|
|
19
|
+
- resource
|
|
20
|
+
relatedApiIds:
|
|
21
|
+
- core:class:GeometryResource
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# 使用 GeometryResource
|
|
25
|
+
|
|
26
|
+
## 适用场景
|
|
27
|
+
|
|
28
|
+
已经有 `engine` 和 `geometry`(`THREE.BufferGeometry`),要把已有几何体包装成 `GeometryResource` 时读这篇;常规 glTF 加载会由 `ResourceManager` 自动创建。
|
|
29
|
+
|
|
30
|
+
## 前置条件
|
|
31
|
+
|
|
32
|
+
- 已安装 `@vista3d/core`
|
|
33
|
+
- 外层已有 `engine` 和 `geometry`(`THREE.BufferGeometry`)
|
|
34
|
+
|
|
35
|
+
## 主示例
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
const resource = new GeometryResource(engine, `__internal__:geo:${geometry.uuid}`, geometry);
|
|
39
|
+
|
|
40
|
+
const sameGeometry = resource.geometry;
|
|
41
|
+
|
|
42
|
+
// use sameGeometry ...
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 备注
|
|
46
|
+
|
|
47
|
+
- 构造:`new GeometryResource(engine, resourceID, geometry);`;`resourceID` 通常用 `__internal__:geo:${geometry.uuid}`。直接构造只包装已有 geometry,不会自动注册到 `ResourceManager`;常规 glTF 加载会自动创建
|
|
48
|
+
- `resource.geometry` 是传入的 `THREE.BufferGeometry`;`nativeObject` 返回同一个对象
|
|
49
|
+
- 直接构造的实例用完调 `resource.destroy()`;`GeometryResource` 销毁时会清理 `boundsTree`
|
|
50
|
+
- 销毁后 `resource.destroyed` 为 `true`,不要再使用这个 resource 或它的 geometry
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: gltf-parser
|
|
3
|
+
title: 使用 GLTFParser
|
|
4
|
+
aliases:
|
|
5
|
+
- GLTFParser
|
|
6
|
+
- gltf parser
|
|
7
|
+
- gltf 解析器
|
|
8
|
+
- 模型解析器
|
|
9
|
+
keywords:
|
|
10
|
+
- parse
|
|
11
|
+
- parseAndPrecompile
|
|
12
|
+
- precompile
|
|
13
|
+
- extractMeshData
|
|
14
|
+
- hasSkeleton
|
|
15
|
+
- hasInstancedMesh
|
|
16
|
+
- useAutoInstancing
|
|
17
|
+
- autoInstancingExclude
|
|
18
|
+
tags:
|
|
19
|
+
- core
|
|
20
|
+
summary: 用 GLTFParser.parse 把 GLTFResource 解析成实体树,并配置 parent、变换和自动实例化。
|
|
21
|
+
relatedGuides:
|
|
22
|
+
- gltf
|
|
23
|
+
relatedApiIds:
|
|
24
|
+
- core:class:GLTFParser
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 使用 GLTFParser
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
已经有 `glTFRef`(`ResourceRef<GLTFResource>`)和 `scene`,要把 glTF 解析成实体树时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/core`
|
|
36
|
+
- 外层已有 `engine`、`scene` 和 `glTFRef`
|
|
37
|
+
- `glTFRef` 是 `engine.resourceManager.loadGLTF(url)` 返回的保留引用
|
|
38
|
+
- 已安装 `three`(Vector3 从 `three` 引入)
|
|
39
|
+
- 预编译调用还需要 three.js 的 `THREE.Scene` 和 `THREE.Camera`
|
|
40
|
+
|
|
41
|
+
## 主示例
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { Vector3 } from 'three';
|
|
45
|
+
|
|
46
|
+
const root = GLTFParser.parse(glTFRef, {
|
|
47
|
+
parent: scene.rootEntity,
|
|
48
|
+
queryMask: QueryMask.MASK_0,
|
|
49
|
+
renderOrder: RenderOrder.NORMAL,
|
|
50
|
+
castShadow: true,
|
|
51
|
+
receiveShadow: true,
|
|
52
|
+
useAutoInstancing: true,
|
|
53
|
+
autoInstancingExclude: ['Blade'],
|
|
54
|
+
transformation: { position: new Vector3(0, 1, 0) }
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
// use root ...
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## 备注
|
|
61
|
+
|
|
62
|
+
- `glTFRef` 是 `ResourceRef<GLTFResource>`,从 `engine.resourceManager.loadGLTF(url)` 取;`parse` 不接管,按 `ResourceRef` 规则自己保留和释放
|
|
63
|
+
- `GLTFParser` 只有 static 方法;直接 `GLTFParser.parse(...)`,不要 `new GLTFParser()`
|
|
64
|
+
- `parse` 返回根 `Entity`;`parent: scene.rootEntity` 时挂到场景,省略 `parent` 时返回独立 root,不挂到场景
|
|
65
|
+
- `parse` 克隆 `glTFRef.resource.scene` 再建树,geometry / material 保持共享;已有 clone 时用第三个参数:`GLTFParser.parse(glTFRef, params, precompiledScene);`,`precompiledScene` 必须是 `glTFRef.resource.scene` 的 clone
|
|
66
|
+
- `parse` 的树里有 `THREE.DirectionalLight` / `THREE.PointLight` / `THREE.SpotLight` 时抛错
|
|
67
|
+
- `GLTFParserParams.queryMask`:`queryMask: QueryMask.MASK_0`;默认 `QueryMask.NONE`
|
|
68
|
+
- `GLTFParserParams.renderOrder`:`renderOrder: RenderOrder.NORMAL`;默认 `RenderOrder.NORMAL`
|
|
69
|
+
- `GLTFParserParams.castShadow` / `receiveShadow`:`castShadow: true, receiveShadow: true`;默认都是 `false`
|
|
70
|
+
- `GLTFParserParams.useBVH`:`useBVH: false`;预留,当前不生效
|
|
71
|
+
- `GLTFParserParams.useAutoInstancing`:`useAutoInstancing: true`;默认 `false`;只在 parse 的 clone 上把重复 Mesh 合成 `THREE.InstancedMesh`,资源模板不变
|
|
72
|
+
- `GLTFParserParams.autoInstancingExclude`:`autoInstancingExclude: ['Blade']`;只在 `useAutoInstancing: true` 时生效,匹配 `mesh.name`
|
|
73
|
+
- `GLTFParserParams.transformation`:`transformation: { position, scale, rotation, quaternion, lookAt }`;默认 `{}`;字段 `position` / `scale` / `rotation` / `quaternion` / `lookAt`;`position` / `scale` 是 `THREE.Vector3`,`rotation` 是 `THREE.Euler`,`quaternion` 是 `THREE.Quaternion`,`lookAt` 是 `THREE.Vector3`
|
|
74
|
+
- `parseAndPrecompile`:`const root = await GLTFParser.parseAndPrecompile(glTFRef, params, targetScene, cameras);`;`targetScene` 是 three.js `THREE.Scene`,`cameras` 是 `THREE.Camera` 或数组;`cameras` 为空抛错;重复相机只编译一次;最终建树同 `parse`,灯光节点抛错;返回 `Entity`
|
|
75
|
+
- `precompile`:`const object3D = await GLTFParser.precompile(glTFRef, params, targetScene, cameras);`;返回 `THREE.Object3D`,不建 Entity;`parent` / `queryMask` / `renderOrder` / `transformation` 不在这里生效,attach 时用 `parse`;`castShadow` / `receiveShadow` / `useAutoInstancing` / `autoInstancingExclude` 影响返回的 clone;`cameras` 为空抛错;`glTFRef` 要留到 parse
|
|
76
|
+
- `extractMeshData`:`const meshData = GLTFParser.extractMeshData(glTFRef.resource.scene);`;返回 `{ name, guid, geometry, material, matrix }[]`,`matrix` 相对 scene 根;拒绝 `THREE.InstancedMesh`、`THREE.SkinnedMesh`、`THREE.DirectionalLight` / `THREE.PointLight` / `THREE.SpotLight`;不 retain 返回的 geometry / material
|
|
77
|
+
- `hasSkeleton`:`const hasSkeleton = GLTFParser.hasSkeleton(glTFRef.resource.scene);`;有 `THREE.Bone` 或 `THREE.SkinnedMesh` 返回 `true`
|
|
78
|
+
- `hasInstancedMesh`:`const hasInstancedMesh = GLTFParser.hasInstancedMesh(glTFRef.resource.scene);`;有 `THREE.InstancedMesh` 返回 `true`
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: gltf-resource
|
|
3
|
+
title: 使用 GLTFResource
|
|
4
|
+
aliases:
|
|
5
|
+
- GLTFResource
|
|
6
|
+
- gltf resource
|
|
7
|
+
- GLTF 资源
|
|
8
|
+
- 模型资源
|
|
9
|
+
keywords:
|
|
10
|
+
- loadGLTF
|
|
11
|
+
- scene
|
|
12
|
+
- animations
|
|
13
|
+
- getMaterials
|
|
14
|
+
- getMaterial
|
|
15
|
+
- findMaterials
|
|
16
|
+
tags:
|
|
17
|
+
- core
|
|
18
|
+
summary: 用 loadGLTF 取 GLTFResource,读取场景根、动画和材质。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- resource
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:GLTFResource
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# 使用 GLTFResource
|
|
26
|
+
|
|
27
|
+
## 适用场景
|
|
28
|
+
|
|
29
|
+
已经有 `engine`,要直接读取 glTF 资源里的场景根、动画或材质时读这篇。
|
|
30
|
+
|
|
31
|
+
## 前置条件
|
|
32
|
+
|
|
33
|
+
- 已安装 `@vista3d/core`
|
|
34
|
+
- 外层已有 `engine`
|
|
35
|
+
- glTF URL 可访问
|
|
36
|
+
- 要按名字取材质时,文件里有对应 `material.name`(示例用 `'Body'`)
|
|
37
|
+
|
|
38
|
+
## 主示例
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
const ref = await engine.resourceManager.loadGLTF('/models/scene.gltf');
|
|
42
|
+
const resource = ref.resource;
|
|
43
|
+
|
|
44
|
+
const sceneRoot = resource.scene;
|
|
45
|
+
const animations = resource.animations;
|
|
46
|
+
const materials = resource.getMaterials();
|
|
47
|
+
const body = resource.getMaterial('Body');
|
|
48
|
+
const transparentMaterials = resource.findMaterials(material => material.transparent);
|
|
49
|
+
|
|
50
|
+
// use sceneRoot / animations / materials / body / transparentMaterials ...
|
|
51
|
+
ref.dispose();
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 备注
|
|
55
|
+
|
|
56
|
+
- `ref.resource` 是 `GLTFResource`;`.scene` 是 `THREE.Group` 场景根,`.animations` 是 `THREE.AnimationClip[]`;`nativeObject` 返回 `.scene`
|
|
57
|
+
- `getMaterials()` 返回去重后的 `THREE.Material[]`;共享材质只出现一次
|
|
58
|
+
- `getMaterial(name)` 返回第一个 `material.name` 匹配的材质,找不到返回 `undefined`
|
|
59
|
+
- `findMaterials(predicate)` 返回所有匹配的材质;`predicate` 返回 `true` 表示命中
|
|
60
|
+
- `GLTFResource` 销毁时会级联释放这个 glTF 的材质、纹理和几何子资源;不要先手动 dispose 这些原生对象
|
|
61
|
+
- `ref.resource.idleMemoryUsage` 是只读估算;`GLTFResource` 会把依赖子资源一起算进去
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: glyph-atlas
|
|
3
|
+
title: 使用 GlyphAtlas
|
|
4
|
+
aliases:
|
|
5
|
+
- GlyphAtlas
|
|
6
|
+
- glyph atlas
|
|
7
|
+
- 字形图集
|
|
8
|
+
- SDF 字形打包
|
|
9
|
+
keywords:
|
|
10
|
+
- addGlyphs
|
|
11
|
+
- getGlyphBlock
|
|
12
|
+
- generator
|
|
13
|
+
- SDFGlyphGenerator
|
|
14
|
+
- coord
|
|
15
|
+
tags:
|
|
16
|
+
- core
|
|
17
|
+
- scene
|
|
18
|
+
summary: GlyphAtlas 按需烘焙 SDF 字形并打包;页满自动开新页,不同字体不共页,单字形超出页尺寸会抛错。
|
|
19
|
+
relatedGuides:
|
|
20
|
+
- atlas
|
|
21
|
+
relatedApiIds:
|
|
22
|
+
- core:class:GlyphAtlas
|
|
23
|
+
- core:interface:GlyphAtlasParams
|
|
24
|
+
- core:interface:GlyphAtlasBlock
|
|
25
|
+
- core:class:SDFGlyphGenerator
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# 使用 GlyphAtlas
|
|
29
|
+
|
|
30
|
+
## 适用场景
|
|
31
|
+
|
|
32
|
+
已经有字体 URL,要把文字字形烘焙成可采样的图集、供批量文字渲染使用时读这篇。
|
|
33
|
+
|
|
34
|
+
## 前置条件
|
|
35
|
+
|
|
36
|
+
- 已安装 `@vista3d/core`
|
|
37
|
+
- 字体文件可通过 URL 访问(本图集只按 URL 取字形)
|
|
38
|
+
- 运行环境支持 Worker(`SDFGlyphGenerator` 依赖它烘焙)
|
|
39
|
+
|
|
40
|
+
## 主示例
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
const glyphAtlas = new GlyphAtlas({ width: 1024, height: 1024 });
|
|
44
|
+
|
|
45
|
+
const blocks = await glyphAtlas.addGlyphs('/fonts/MyFont.ttf', 'ABC');
|
|
46
|
+
|
|
47
|
+
if (blocks.length > 0) {
|
|
48
|
+
const first = blocks[0];
|
|
49
|
+
const uv = first.coord;
|
|
50
|
+
const pageTexture = first.texture;
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 备注
|
|
55
|
+
|
|
56
|
+
- 构造:`new GlyphAtlas({ width: 1024, height: 1024, borderWidth: 1 });` 尺寸默认 `1024`,`borderWidth` 默认 `1`
|
|
57
|
+
- 尺寸必须 `> 0`,`borderWidth` 不能为负,否则构造抛错
|
|
58
|
+
- 生成器:不传 `generator` 时自建一个(`new SDFGlyphGenerator()`),并在 `dispose` 时一并释放
|
|
59
|
+
- 传入外部生成器:`new GlyphAtlas({ generator });` 此时图集**不**负责释放它
|
|
60
|
+
- 读取生成器:`const gen = glyphAtlas.generator;` 只读
|
|
61
|
+
- 烘焙:`const blocks = await glyphAtlas.addGlyphs(fontUrl, chars);` 异步,返回顺序是先出现顺序
|
|
62
|
+
- 自动去重:`addGlyphs` 的入参里重复字符只烘焙一次
|
|
63
|
+
- 取块:`const block = glyphAtlas.getGlyphBlock(fontUrl, 'A');` 未烘焙返回 `undefined`
|
|
64
|
+
- 块字段:`block.glyph`(位图与排版度量)、`block.texture`(所在页纹理)、`block.width` / `block.height`、`block.coord`
|
|
65
|
+
- `coord` 布局:`x` / `y` 是**左下角**,`z` / `w` 是宽高,归一化 `[0, 1]`
|
|
66
|
+
- 查找键含四项:字体 URL、字符、格子尺寸、距离半径;改生成器参数后同一字符会视为不同条目
|
|
67
|
+
- 页满自动开新页,但**不同字体不共页**:换字体就换页
|
|
68
|
+
- 单个字形比整页还大时抛错(`Single glyph bitmap exceeds atlas page`)
|
|
69
|
+
- 字体加载失败时生成器的错误原样抛出,不吞掉
|
|
70
|
+
- 页纹理是**单通道、线性过滤、无 mipmap、flipY**,与 `TextureAtlas` 的 sRGB 画布纹理不同
|
|
71
|
+
- 尺寸字段:`const w = glyphAtlas.width;`、`const h = glyphAtlas.height;` 只读
|
|
72
|
+
- 释放:`glyphAtlas.dispose();` 释放所有页纹理;自建生成器时一并释放
|
|
73
|
+
- 释放后 `generator`、`addGlyphs`、`getGlyphBlock` 都会抛 `GlyphAtlas Disposed`
|
|
74
|
+
- 重复调用 `dispose()` 不抛错
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: gradient
|
|
3
|
+
title: 创建 Gradient
|
|
4
|
+
aliases:
|
|
5
|
+
- Gradient
|
|
6
|
+
- color gradient
|
|
7
|
+
- 颜色渐变对象
|
|
8
|
+
- 创建渐变
|
|
9
|
+
keywords:
|
|
10
|
+
- addColorKey
|
|
11
|
+
- addAlphaKey
|
|
12
|
+
- evaluateColor
|
|
13
|
+
- evaluateAlpha
|
|
14
|
+
- GradientMode
|
|
15
|
+
- randomColor
|
|
16
|
+
tags:
|
|
17
|
+
- animation
|
|
18
|
+
- core
|
|
19
|
+
summary: 用 Gradient.addColorKey / addAlphaKey 写入关键帧,evaluate 按时间取 Color4。
|
|
20
|
+
relatedGuides:
|
|
21
|
+
- gradient
|
|
22
|
+
relatedApiIds:
|
|
23
|
+
- core:class:Gradient
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
# 创建 Gradient
|
|
27
|
+
|
|
28
|
+
## 适用场景
|
|
29
|
+
|
|
30
|
+
要自己建一条按时间采样的颜色 / 透明度渐变时读这篇。
|
|
31
|
+
|
|
32
|
+
## 前置条件
|
|
33
|
+
|
|
34
|
+
- 已安装 `@vista3d/core`
|
|
35
|
+
|
|
36
|
+
## 主示例
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const gradient = new Gradient();
|
|
40
|
+
gradient.addColorKey(0, '#000000');
|
|
41
|
+
gradient.addColorKey(1, '#ffffff');
|
|
42
|
+
gradient.addAlphaKey(0, 0);
|
|
43
|
+
gradient.addAlphaKey(1, 1);
|
|
44
|
+
const color = gradient.evaluate(0.5);
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## 备注
|
|
48
|
+
|
|
49
|
+
- 构造:`const gradient = new Gradient();`
|
|
50
|
+
- 加颜色帧:`gradient.addColorKey(0, '#000000');` 或 `gradient.addColorKey(new GradientColorKey(0, '#000000'));` 按 `time` 插入排序;`time` 在 `0`~`1`,颜色是 three.js 的颜色表示
|
|
51
|
+
- 加透明度帧:`gradient.addAlphaKey(0, 0);` 或 `gradient.addAlphaKey(new GradientAlphaKey(0, 0));` 按 `time` 插入排序;`time` / `alpha` 在 `0`~`1`
|
|
52
|
+
- 整表替换不排序:`gradient.setKeys([new GradientColorKey(0, '#000000')], [new GradientAlphaKey(0, 1)]);` 按引用保存,调用方自己保证按 `time` 排好
|
|
53
|
+
- 只换颜色表:`gradient.setColorKeys([new GradientColorKey(0, '#000000')]);` 不排序,按引用保存
|
|
54
|
+
- 只换透明度表:`gradient.setAlphaKeys([new GradientAlphaKey(0, 1)]);` 不排序,按引用保存
|
|
55
|
+
- 删颜色帧:`gradient.removeColorKey(0);`
|
|
56
|
+
- 删透明度帧:`gradient.removeAlphaKey(0);`
|
|
57
|
+
- 清空颜色:`gradient.clearColorKeys();`
|
|
58
|
+
- 清空透明度:`gradient.clearAlphaKeys();`
|
|
59
|
+
- 全清:`gradient.clear();`
|
|
60
|
+
- 取样:`gradient.evaluate(0.5);` 返回 `Color4`;空颜色表或空透明度表时行为未定义,可能抛错
|
|
61
|
+
- 只取颜色:`gradient.evaluateColor(0.5);` 返回新的 `THREE.Color`;空表行为未定义,可能抛错
|
|
62
|
+
- 只取透明度:`gradient.evaluateAlpha(0.5);` 空表行为未定义,可能抛错
|
|
63
|
+
- 范围外夹到首尾帧;`gradient.mode = GradientMode.FIXED;` 时区间内用下一帧,默认 `GradientMode.BLEND` 线性插值
|
|
64
|
+
- 随机一帧颜色:`gradient.randomColor();` 空颜色表行为未定义,可能抛错
|
|
65
|
+
- 随机一帧透明度:`gradient.randomAlpha();` 空透明度表行为未定义,可能抛错
|
|
66
|
+
- 随机一帧颜色加透明度:`gradient.random();` 两边都空时行为未定义
|
|
67
|
+
- 查询:`const colorKeys = gradient.colorKeys;` 只读,用于查询和遍历;不要改数组或关键帧的 `time`
|
|
68
|
+
- 查询:`const alphaKeys = gradient.alphaKeys;` 只读,用于查询和遍历;不要改数组或关键帧的 `time`
|
|
69
|
+
- 序列化:`const json = gradient.toJSON();` 颜色存成十六进制字符串
|
|
70
|
+
- 反序列化:`const restored = Gradient.fromJSON(json);` 用 `addColorKey` / `addAlphaKey` 重建;`json.alphaKeys` 和 `json.colorKeys` 必须是数组,缺了会抛错
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: grain-node
|
|
3
|
+
title: 使用 GrainNode
|
|
4
|
+
aliases:
|
|
5
|
+
- GrainNode
|
|
6
|
+
- grain node
|
|
7
|
+
- 胶片颗粒
|
|
8
|
+
- 噪点节点
|
|
9
|
+
keywords:
|
|
10
|
+
- grain
|
|
11
|
+
- film grain
|
|
12
|
+
- LDR
|
|
13
|
+
- outputColorTransform
|
|
14
|
+
tags:
|
|
15
|
+
- core
|
|
16
|
+
summary: 用 grain 给已 tone-mapped 的 LDR 颜色加胶片颗粒,强度可调。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- effect-node
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- core:class:GrainNode
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 使用 GrainNode
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有已经 tone-mapped / sRGB 编码的 LDR 颜色 node,要加胶片颗粒时读这篇。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/core` 和 `three`
|
|
32
|
+
- 外层已有 `WebGPUEngine`、`scene` 和 `engine`
|
|
33
|
+
- `colorNode` 已经是 LDR、约 `0..1` 的显示颜色(如 `renderOutput` 之后)
|
|
34
|
+
- `ScriptableSceneRenderer` 可用(WebGPU)
|
|
35
|
+
|
|
36
|
+
## 主示例
|
|
37
|
+
|
|
38
|
+
```ts
|
|
39
|
+
const node = grain(colorNode);
|
|
40
|
+
|
|
41
|
+
node.grain.value = 0.03;
|
|
42
|
+
|
|
43
|
+
scene.sceneRenderer = new ScriptableSceneRenderer(engine, {
|
|
44
|
+
output: node,
|
|
45
|
+
outputColorTransform: false
|
|
46
|
+
});
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 备注
|
|
50
|
+
|
|
51
|
+
- 输入必须是已 tone-mapped / encoded 的显示色,约 `0..1`;不要接在线性 HDR 或 `ColorGradingNode` 后
|
|
52
|
+
- `grain` 默认 `0.02`;`0` 关闭;公式是 `rgb + noise * grain`,alpha 保留
|
|
53
|
+
- 帧序号由 `updateBefore` 自己递增;`setup` / `updateBefore` 由 TSL node system 调,不要手动调
|
|
54
|
+
- `outputColorTransform` 默认 `true`;接 Grain 时用 `false`,并确保 `colorNode` 已经是 LDR;不要把 Grain 放进 `true` 的包装链里
|
|
55
|
+
- 后面可以再接 `DitherNode` 消色带
|
|
56
|
+
- `colorNode` 是外层已有的 LDR 颜色 node,是唯一的构造输入;运行时只改 `node.grain.value`
|
|
57
|
+
- 也可以直接 `new GrainNode(colorNode)`;`grain(...)` 只是构造辅助
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: hemisphere-light
|
|
3
|
+
title: 创建 HemisphereLight
|
|
4
|
+
aliases:
|
|
5
|
+
- HemisphereLight
|
|
6
|
+
- 半球光
|
|
7
|
+
- hemisphere light
|
|
8
|
+
- 天空地面光
|
|
9
|
+
keywords:
|
|
10
|
+
- skyColor
|
|
11
|
+
- groundColor
|
|
12
|
+
tags:
|
|
13
|
+
- scene
|
|
14
|
+
- core
|
|
15
|
+
summary: 在子实体上 addComponent HemisphereLight,用天空色和地面色混合照明。
|
|
16
|
+
relatedGuides:
|
|
17
|
+
- light
|
|
18
|
+
relatedApiIds:
|
|
19
|
+
- core:class:HemisphereLight
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
# 创建 HemisphereLight
|
|
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(HemisphereLight, {
|
|
38
|
+
skyColor: '#ffffff',
|
|
39
|
+
groundColor: '#ffffff',
|
|
40
|
+
intensity: 1.0
|
|
41
|
+
});
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 备注
|
|
45
|
+
|
|
46
|
+
- 默认天空色 / 地面色 `'#ffffff'`,强度 `1.0`
|
|
47
|
+
- 没有位置、方向、阴影
|
|
48
|
+
- 启用时挂到该实体的 `Transform` 下,禁用时移除
|
|
49
|
+
- 移除走 `entity.removeComponent(HemisphereLight)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: instanced-model-renderer
|
|
3
|
+
title: 创建 InstancedModelRenderer
|
|
4
|
+
aliases:
|
|
5
|
+
- InstancedModelRenderer
|
|
6
|
+
- instanced model renderer
|
|
7
|
+
- 实例化模型渲染
|
|
8
|
+
- 批量模型渲染
|
|
9
|
+
keywords:
|
|
10
|
+
- resource
|
|
11
|
+
- instanceTransformations
|
|
12
|
+
- setInstancedTransformationAt
|
|
13
|
+
- InstancedMesh
|
|
14
|
+
- cloneMaterial
|
|
15
|
+
- raycast
|
|
16
|
+
- castShadow
|
|
17
|
+
- receiveShadow
|
|
18
|
+
tags:
|
|
19
|
+
- core
|
|
20
|
+
summary: 在实体上 addComponent InstancedModelRenderer,用 instanceTransformations 建 InstancedMesh。
|
|
21
|
+
relatedGuides:
|
|
22
|
+
- instanced-model-renderer
|
|
23
|
+
relatedApiIds:
|
|
24
|
+
- core:class:InstancedModelRenderer
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
# 创建 InstancedModelRenderer
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
30
|
+
|
|
31
|
+
已经有 `scene` 和 `glTFRef`,要用同一个静态 glTF 生成一批实例时读这篇。
|
|
32
|
+
|
|
33
|
+
## 前置条件
|
|
34
|
+
|
|
35
|
+
- 已安装 `@vista3d/core`
|
|
36
|
+
- 外层已有 `scene`
|
|
37
|
+
- `glTFRef` 是 `engine.resourceManager.loadGLTF(url)` 返回的保留引用,模型是静态的:无动画、无骨骼、无已有 InstancedMesh
|
|
38
|
+
- 已安装 `three`(Vector3 / Quaternion 从 `three` 引入)
|
|
39
|
+
- 模型里带名为 `'Body'` 的材质(备注里的材质操作使用)
|
|
40
|
+
|
|
41
|
+
## 主示例
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
import { Quaternion, Vector3 } from 'three';
|
|
45
|
+
|
|
46
|
+
const entity = scene.rootEntity.createChild();
|
|
47
|
+
const instanceTransformations = [
|
|
48
|
+
{ position: new Vector3(-1, 0, 0), scale: new Vector3(1, 1, 1), quaternion: new Quaternion() },
|
|
49
|
+
{ position: new Vector3(1, 0, 0), scale: new Vector3(1, 1, 1), quaternion: new Quaternion() }
|
|
50
|
+
];
|
|
51
|
+
|
|
52
|
+
const renderer = entity.addComponent(InstancedModelRenderer, {
|
|
53
|
+
resource: glTFRef,
|
|
54
|
+
instanceTransformations,
|
|
55
|
+
castShadow: true,
|
|
56
|
+
receiveShadow: true
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
// use renderer ...
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 备注
|
|
63
|
+
|
|
64
|
+
- `InstancedModelRenderer` 通常由 `Scene.loadInstancedGLTF` 创建;手动挂:`const renderer = entity.addComponent(InstancedModelRenderer, { resource: glTFRef, instanceTransformations });`
|
|
65
|
+
- `resource` 必填:`resource: glTFRef`;组件会 clone 一份 ref,外层 `glTFRef` 可按 `ResourceRef` 规则释放
|
|
66
|
+
- `instanceTransformations` 必填:数组长度就是实例数,每项 `{ position, scale, quaternion }`;构造时读取,之后再改这个数组不会更新实例,用 `setInstancedTransformationAt`
|
|
67
|
+
- `Scene.loadInstancedGLTF` 拒绝空 `instanceTransformations`;手动直接挂时长度就是实例数
|
|
68
|
+
- 实例化只适合静态模型:`GLTFParser.extractMeshData` 拒绝 `THREE.SkinnedMesh` / `THREE.InstancedMesh` / 灯光;`Scene.loadInstancedGLTF` 还拒绝动画、骨骼和已有 `THREE.InstancedMesh`
|
|
69
|
+
- 组件启用时自动把 InstancedMesh 挂到 `entity.transform.object3D`;不需要手动 `add`
|
|
70
|
+
- 读列表:`renderer.meshes` 返回 `THREE.InstancedMesh[]`,`renderer.object3D` 返回同一批 mesh 的 `THREE.Object3D[]`;两者每次调用都是新数组
|
|
71
|
+
- `renderer.visible = false;` 会设置所有 InstancedMesh;getter 读第一个,空列表返回 `false`
|
|
72
|
+
- `renderer.castShadow = true;` / `renderer.receiveShadow = true;` 写到所有 InstancedMesh;构造时用 `castShadow: true, receiveShadow: true`;默认 `false`;只有 setter,没有 getter,要读看 `renderer.meshes[0]?.castShadow`
|
|
73
|
+
- `renderer.setInstancedTransformationAt(index, { position, scale, quaternion }, worldSpace = false);` 更新所有 InstancedMesh 的该实例;`index` 超出 `[0, mesh.count)` 会抛错;`worldSpace` 为 `true` 时按实体世界矩阵转成局部
|
|
74
|
+
- `setInstancedTransformationAt` 不会标记 `instanceMatrix.needsUpdate`;运行时改完要自己刷:
|
|
75
|
+
|
|
76
|
+
```ts
|
|
77
|
+
renderer.setInstancedTransformationAt(0, {
|
|
78
|
+
position: new Vector3(0, 1, 0),
|
|
79
|
+
scale: new Vector3(1, 1, 1),
|
|
80
|
+
quaternion: new Quaternion()
|
|
81
|
+
});
|
|
82
|
+
renderer.meshes.forEach((mesh) => {
|
|
83
|
+
mesh.instanceMatrix.needsUpdate = true;
|
|
84
|
+
});
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- `renderer.cloneMaterial('Body');` 复制并返回材质,替换所有使用该名字的 InstancedMesh;找不到返回 `undefined`;重复调用返回已有 clone
|
|
88
|
+
- `renderer.restoreMaterial('Body');` 恢复原材质并 dispose clone;没有 clone 时 no-op
|
|
89
|
+
- `renderer.replaceAllMaterials(material);` 替换所有 InstancedMesh 的材质;`renderer.revertAllMaterials();` 按构造时记录的名字恢复
|
|
90
|
+
- `renderer.raycast(raycaster);` 只测可见 InstancedMesh,返回最近的 `THREE.Intersection` 或 `undefined`;通常由 picker 调,调用方用 `scene.pick`
|
|
91
|
+
- `renderer.worldBounds` 是只读世界 AABB,按所有 InstancedMesh 计算
|
|
92
|
+
- `renderer.renderOrder = RenderOrder.OVERLAY;`;构造时也可 `renderOrder: RenderOrder.OVERLAY`;默认 `RenderOrder.NORMAL`,会写到每个 InstancedMesh
|
|
93
|
+
- `renderer.queryMask = QueryMask.MASK_0;`;构造时也可 `queryMask: QueryMask.MASK_0`;默认 `QueryMask.NONE`,不设置就不参与 `scene.pick` / `scene.boxSelect`
|
|
94
|
+
- `renderer.position` / `renderer.scale` / `renderer.rotation` / `renderer.quaternion` 读写 entity.transform;`renderer.setTransformation(...)` 也落到 entity.transform
|
|
95
|
+
- `renderer.setPosition(...)` / `renderer.setScale(...)` / `renderer.setRotation(...)` / `renderer.setQuaternion(...)` / `renderer.translate(offset)` 继承自 `Renderer`,在 InstancedModelRenderer 上是 no-op;改用 `entity.transform.setPosition(...)` / `setScale(...)` / `setRotation(...)` / `setQuaternion(...)` / `translate(offset)`,或 `renderer.setTransformation(...)`
|
|
96
|
+
- `renderer.getWorldPosition(...)` / `getWorldScale(...)` / `getWorldQuaternion(...)` / `getWorldDirection(...)` / `lookAt(...)` / `translateX/Y/Z` / `translateOnAxis(...)` / `rotateX/Y/Z` / `rotateOnAxis(...)` / `rotateOnWorldAxis(...)` / `localToWorld(...)` / `worldToLocal(...)` 已重写到 entity.transform,可直接用
|
|
97
|
+
- `transformation` 是继承字段;手动 `addComponent` 时组件不应用,用 `entity.transform`;`Scene.loadInstancedGLTF` 在创建根实体时应用
|
|
98
|
+
- `renderer.updateWorldMatrix();` 是手动刷新入口,通常不用调;`update` / `beforeCameraRender` / `afterCameraRender` 是 `Renderer` 的引擎钩子
|
|
99
|
+
- 移除走 `entity.removeComponent(InstancedModelRenderer)`,不要自己调 `destroy`
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
slug: karis-bloom-node
|
|
3
|
+
title: 使用 KarisBloomNode
|
|
4
|
+
aliases:
|
|
5
|
+
- KarisBloomNode
|
|
6
|
+
- karis bloom node
|
|
7
|
+
- Karis bloom
|
|
8
|
+
- 泛光节点
|
|
9
|
+
keywords:
|
|
10
|
+
- bloom
|
|
11
|
+
- meter
|
|
12
|
+
- dispose
|
|
13
|
+
- TSL texture node
|
|
14
|
+
tags:
|
|
15
|
+
- core
|
|
16
|
+
summary: 用 KarisBloomNode 生成 bloom,再和场景颜色合成;meter 可给自动曝光。
|
|
17
|
+
relatedGuides:
|
|
18
|
+
- effect-node
|
|
19
|
+
relatedApiIds:
|
|
20
|
+
- core:class:KarisBloomNode
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# 使用 KarisBloomNode
|
|
24
|
+
|
|
25
|
+
## 适用场景
|
|
26
|
+
|
|
27
|
+
已经有 WebGPU 场景颜色和 TSL 纹理 node,要加 Karis bloom 时读这篇。
|
|
28
|
+
|
|
29
|
+
## 前置条件
|
|
30
|
+
|
|
31
|
+
- 已安装 `@vista3d/core` 和 `three`
|
|
32
|
+
- 外层已有 `WebGPUEngine`、`scene` 和 `engine`
|
|
33
|
+
- `colorTextureNode` 是外层已有的 TSL 纹理 node
|
|
34
|
+
- `colorNode` 是外层已有的同一张场景颜色 node,用于合成
|
|
35
|
+
- `ScriptableSceneRenderer` 可用(WebGPU)
|
|
36
|
+
|
|
37
|
+
## 主示例
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
const bloomNode = new KarisBloomNode(colorTextureNode);
|
|
41
|
+
bloomNode.bloom.value = 0.05;
|
|
42
|
+
|
|
43
|
+
const output = colorNode.add(bloomNode);
|
|
44
|
+
|
|
45
|
+
scene.sceneRenderer = new ScriptableSceneRenderer(engine, { output });
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## 备注
|
|
49
|
+
|
|
50
|
+
- `colorTextureNode` 是外层已有的 TSL 纹理 node,作为构造输入;不是普通颜色 node
|
|
51
|
+
- `setup()` 只输出 bloom,不含场景色;调用方自己 `colorNode.add(bloomNode)` 合成
|
|
52
|
+
- `bloom` 默认 `0.05`;运行时 `bloomNode.bloom.value = 0.08;`
|
|
53
|
+
- `bloomNode.meter` 是 1/16 分辨率的颜色纹理,可直接给 `AutoExposureNode` 做 metering
|
|
54
|
+
- 内部做 5 级 downsample(半分辨率到 1/32)再 upsample;`updateBefore` 由 TSL node system 调,不要手动调
|
|
55
|
+
- 用完调 `bloomNode.dispose()` 释放内部 RenderTarget 和 pass material;先保证输出链不再引用它
|
|
56
|
+
- 也可以直接 `new KarisBloomNode(...)`;`karisBloom(...)` 只是构造辅助
|