@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,1525 @@
|
|
|
1
|
+
[**core**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[core](../README.md) / PerspectiveCamera
|
|
6
|
+
|
|
7
|
+
# Class: PerspectiveCamera
|
|
8
|
+
|
|
9
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:17](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L17)
|
|
10
|
+
|
|
11
|
+
Perspective camera component.
|
|
12
|
+
Extends Camera and wraps THREE.PerspectiveCamera. Uses perspective projection to simulate near-large / far-small
|
|
13
|
+
vision, and is the default camera for most 3D scenes.
|
|
14
|
+
The frustum is defined by vertical FOV, aspect ratio, and near/far clip planes.
|
|
15
|
+
|
|
16
|
+
## Export
|
|
17
|
+
|
|
18
|
+
PerspectiveCamera
|
|
19
|
+
|
|
20
|
+
## Extends
|
|
21
|
+
|
|
22
|
+
- [`Camera`](Camera.md)
|
|
23
|
+
|
|
24
|
+
## Constructors
|
|
25
|
+
|
|
26
|
+
### Constructor
|
|
27
|
+
|
|
28
|
+
> **new PerspectiveCamera**(`entity`, `params?`): `PerspectiveCamera`
|
|
29
|
+
|
|
30
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:159](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L159)
|
|
31
|
+
|
|
32
|
+
Create a perspective camera and reuse the entity Transform object3D.
|
|
33
|
+
|
|
34
|
+
#### Parameters
|
|
35
|
+
|
|
36
|
+
##### entity
|
|
37
|
+
|
|
38
|
+
[`Entity`](Entity.md)
|
|
39
|
+
|
|
40
|
+
Owning entity
|
|
41
|
+
|
|
42
|
+
##### params?
|
|
43
|
+
|
|
44
|
+
[`PerspectiveCameraParams`](../interfaces/PerspectiveCameraParams.md) = `{}`
|
|
45
|
+
|
|
46
|
+
Perspective construction parameters
|
|
47
|
+
|
|
48
|
+
#### Returns
|
|
49
|
+
|
|
50
|
+
`PerspectiveCamera`
|
|
51
|
+
|
|
52
|
+
#### Memberof
|
|
53
|
+
|
|
54
|
+
PerspectiveCamera
|
|
55
|
+
|
|
56
|
+
#### Overrides
|
|
57
|
+
|
|
58
|
+
[`Camera`](Camera.md).[`constructor`](Camera.md#constructor)
|
|
59
|
+
|
|
60
|
+
## Properties
|
|
61
|
+
|
|
62
|
+
### autoUpdateProjectionMatrix
|
|
63
|
+
|
|
64
|
+
> **autoUpdateProjectionMatrix**: `boolean` = `true`
|
|
65
|
+
|
|
66
|
+
Defined in: [ecs/component/camera/Camera.ts:155](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L155)
|
|
67
|
+
|
|
68
|
+
Whether projection-affecting property changes call [updateProjectionMatrix](Camera.md#updateprojectionmatrix) automatically.
|
|
69
|
+
|
|
70
|
+
#### Memberof
|
|
71
|
+
|
|
72
|
+
Camera
|
|
73
|
+
|
|
74
|
+
#### Inherited from
|
|
75
|
+
|
|
76
|
+
[`Camera`](Camera.md).[`autoUpdateProjectionMatrix`](Camera.md#autoupdateprojectionmatrix)
|
|
77
|
+
|
|
78
|
+
***
|
|
79
|
+
|
|
80
|
+
### awoken
|
|
81
|
+
|
|
82
|
+
> `protected` **awoken**: `boolean` = `false`
|
|
83
|
+
|
|
84
|
+
Defined in: [ecs/component/Component.ts:101](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L101)
|
|
85
|
+
|
|
86
|
+
#### Inherited from
|
|
87
|
+
|
|
88
|
+
[`Camera`](Camera.md).[`awoken`](Camera.md#awoken)
|
|
89
|
+
|
|
90
|
+
***
|
|
91
|
+
|
|
92
|
+
### enabledValue
|
|
93
|
+
|
|
94
|
+
> `protected` **enabledValue**: `boolean` = `true`
|
|
95
|
+
|
|
96
|
+
Defined in: [ecs/component/Component.ts:104](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L104)
|
|
97
|
+
|
|
98
|
+
#### Inherited from
|
|
99
|
+
|
|
100
|
+
[`Camera`](Camera.md).[`enabledValue`](Camera.md#enabledvalue)
|
|
101
|
+
|
|
102
|
+
***
|
|
103
|
+
|
|
104
|
+
### entity
|
|
105
|
+
|
|
106
|
+
> `readonly` **entity**: [`Entity`](Entity.md)
|
|
107
|
+
|
|
108
|
+
Defined in: [ecs/component/Component.ts:122](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L122)
|
|
109
|
+
|
|
110
|
+
Target entity
|
|
111
|
+
|
|
112
|
+
#### Inherited from
|
|
113
|
+
|
|
114
|
+
[`Camera`](Camera.md).[`entity`](Camera.md#entity)
|
|
115
|
+
|
|
116
|
+
***
|
|
117
|
+
|
|
118
|
+
### framebuffer
|
|
119
|
+
|
|
120
|
+
> `protected` **framebuffer**: `WebGLRenderTarget`\<`Texture`\<`unknown`, `TextureEventMap`\>\> \| `null` = `null`
|
|
121
|
+
|
|
122
|
+
Defined in: [ecs/component/camera/Camera.ts:336](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L336)
|
|
123
|
+
|
|
124
|
+
#### Inherited from
|
|
125
|
+
|
|
126
|
+
[`Camera`](Camera.md).[`framebuffer`](Camera.md#framebuffer)
|
|
127
|
+
|
|
128
|
+
***
|
|
129
|
+
|
|
130
|
+
### isCamera
|
|
131
|
+
|
|
132
|
+
> `readonly` **isCamera**: `boolean` = `true`
|
|
133
|
+
|
|
134
|
+
Defined in: [ecs/component/camera/Camera.ts:131](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L131)
|
|
135
|
+
|
|
136
|
+
Marker that this component is a camera.
|
|
137
|
+
|
|
138
|
+
#### Memberof
|
|
139
|
+
|
|
140
|
+
Camera
|
|
141
|
+
|
|
142
|
+
#### Inherited from
|
|
143
|
+
|
|
144
|
+
[`Camera`](Camera.md).[`isCamera`](Camera.md#iscamera)
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
### isPerspectiveCamera
|
|
149
|
+
|
|
150
|
+
> `readonly` **isPerspectiveCamera**: `boolean` = `true`
|
|
151
|
+
|
|
152
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:25](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L25)
|
|
153
|
+
|
|
154
|
+
Marker that this component is a perspective camera.
|
|
155
|
+
|
|
156
|
+
#### Memberof
|
|
157
|
+
|
|
158
|
+
PerspectiveCamera
|
|
159
|
+
|
|
160
|
+
***
|
|
161
|
+
|
|
162
|
+
### pixelViewportValue
|
|
163
|
+
|
|
164
|
+
> `protected` **pixelViewportValue**: `Vector4`
|
|
165
|
+
|
|
166
|
+
Defined in: [ecs/component/camera/Camera.ts:330](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L330)
|
|
167
|
+
|
|
168
|
+
#### Inherited from
|
|
169
|
+
|
|
170
|
+
[`Camera`](Camera.md).[`pixelViewportValue`](Camera.md#pixelviewportvalue)
|
|
171
|
+
|
|
172
|
+
***
|
|
173
|
+
|
|
174
|
+
### priorityValue
|
|
175
|
+
|
|
176
|
+
> `protected` **priorityValue**: `number` = `0`
|
|
177
|
+
|
|
178
|
+
Defined in: [ecs/component/camera/Camera.ts:324](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L324)
|
|
179
|
+
|
|
180
|
+
#### Inherited from
|
|
181
|
+
|
|
182
|
+
[`Camera`](Camera.md).[`priorityValue`](Camera.md#priorityvalue)
|
|
183
|
+
|
|
184
|
+
***
|
|
185
|
+
|
|
186
|
+
### projectionUpdateFlagManager
|
|
187
|
+
|
|
188
|
+
> `readonly` **projectionUpdateFlagManager**: [`UpdateFlagManager`](UpdateFlagManager.md)
|
|
189
|
+
|
|
190
|
+
Defined in: [ecs/component/camera/Camera.ts:147](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L147)
|
|
191
|
+
|
|
192
|
+
Update-flag manager for camera projection-matrix changes.
|
|
193
|
+
|
|
194
|
+
#### Memberof
|
|
195
|
+
|
|
196
|
+
Camera
|
|
197
|
+
|
|
198
|
+
#### Inherited from
|
|
199
|
+
|
|
200
|
+
[`Camera`](Camera.md).[`projectionUpdateFlagManager`](Camera.md#projectionupdateflagmanager)
|
|
201
|
+
|
|
202
|
+
***
|
|
203
|
+
|
|
204
|
+
### renderTargetValue
|
|
205
|
+
|
|
206
|
+
> `protected` **renderTargetValue**: `WebGLRenderTarget`\<`Texture`\<`unknown`, `TextureEventMap`\>\> \| `null` = `null`
|
|
207
|
+
|
|
208
|
+
Defined in: [ecs/component/camera/Camera.ts:333](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L333)
|
|
209
|
+
|
|
210
|
+
#### Inherited from
|
|
211
|
+
|
|
212
|
+
[`Camera`](Camera.md).[`renderTargetValue`](Camera.md#rendertargetvalue)
|
|
213
|
+
|
|
214
|
+
***
|
|
215
|
+
|
|
216
|
+
### transformUpdateFlagManager
|
|
217
|
+
|
|
218
|
+
> `readonly` **transformUpdateFlagManager**: [`UpdateFlagManager`](UpdateFlagManager.md)
|
|
219
|
+
|
|
220
|
+
Defined in: [ecs/component/camera/Camera.ts:139](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L139)
|
|
221
|
+
|
|
222
|
+
Update-flag manager for camera world-transform changes.
|
|
223
|
+
|
|
224
|
+
#### Memberof
|
|
225
|
+
|
|
226
|
+
Camera
|
|
227
|
+
|
|
228
|
+
#### Inherited from
|
|
229
|
+
|
|
230
|
+
[`Camera`](Camera.md).[`transformUpdateFlagManager`](Camera.md#transformupdateflagmanager)
|
|
231
|
+
|
|
232
|
+
***
|
|
233
|
+
|
|
234
|
+
### userData
|
|
235
|
+
|
|
236
|
+
> **userData**: `object`
|
|
237
|
+
|
|
238
|
+
Defined in: [ecs/component/Component.ts:39](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L39)
|
|
239
|
+
|
|
240
|
+
User-defined key/value bag initialized from `params.userData`.
|
|
241
|
+
The engine never reads or writes it; suitable for temporary state or business metadata.
|
|
242
|
+
|
|
243
|
+
#### Index Signature
|
|
244
|
+
|
|
245
|
+
\[`key`: `string`\]: `unknown`
|
|
246
|
+
|
|
247
|
+
#### Memberof
|
|
248
|
+
|
|
249
|
+
Component
|
|
250
|
+
|
|
251
|
+
#### Inherited from
|
|
252
|
+
|
|
253
|
+
[`Camera`](Camera.md).[`userData`](Camera.md#userdata)
|
|
254
|
+
|
|
255
|
+
***
|
|
256
|
+
|
|
257
|
+
### viewportValue
|
|
258
|
+
|
|
259
|
+
> `protected` **viewportValue**: `Vector4`
|
|
260
|
+
|
|
261
|
+
Defined in: [ecs/component/camera/Camera.ts:327](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L327)
|
|
262
|
+
|
|
263
|
+
#### Inherited from
|
|
264
|
+
|
|
265
|
+
[`Camera`](Camera.md).[`viewportValue`](Camera.md#viewportvalue)
|
|
266
|
+
|
|
267
|
+
***
|
|
268
|
+
|
|
269
|
+
### worldMatrixDirty
|
|
270
|
+
|
|
271
|
+
> `protected` **worldMatrixDirty**: `boolean` = `false`
|
|
272
|
+
|
|
273
|
+
Defined in: [ecs/component/Component.ts:110](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L110)
|
|
274
|
+
|
|
275
|
+
#### Inherited from
|
|
276
|
+
|
|
277
|
+
[`Camera`](Camera.md).[`worldMatrixDirty`](Camera.md#worldmatrixdirty)
|
|
278
|
+
|
|
279
|
+
***
|
|
280
|
+
|
|
281
|
+
### worldMatrixNeedsUpdateIndex
|
|
282
|
+
|
|
283
|
+
> **worldMatrixNeedsUpdateIndex**: `number` = `-1`
|
|
284
|
+
|
|
285
|
+
Defined in: [ecs/component/Component.ts:30](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L30)
|
|
286
|
+
|
|
287
|
+
Index inside the world-matrix dirty list assigned by [ComponentsManager](ComponentsManager.md) for O(1) removal; `-1` means not
|
|
288
|
+
listed.
|
|
289
|
+
|
|
290
|
+
#### Memberof
|
|
291
|
+
|
|
292
|
+
Component
|
|
293
|
+
|
|
294
|
+
#### Inherited from
|
|
295
|
+
|
|
296
|
+
[`Camera`](Camera.md).[`worldMatrixNeedsUpdateIndex`](Camera.md#worldmatrixneedsupdateindex)
|
|
297
|
+
|
|
298
|
+
## Accessors
|
|
299
|
+
|
|
300
|
+
### aspect
|
|
301
|
+
|
|
302
|
+
#### Get Signature
|
|
303
|
+
|
|
304
|
+
> **get** **aspect**(): `number`
|
|
305
|
+
|
|
306
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:142](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L142)
|
|
307
|
+
|
|
308
|
+
Camera frustum aspect ratio (width / height).
|
|
309
|
+
|
|
310
|
+
##### Memberof
|
|
311
|
+
|
|
312
|
+
PerspectiveCamera
|
|
313
|
+
|
|
314
|
+
##### Returns
|
|
315
|
+
|
|
316
|
+
`number`
|
|
317
|
+
|
|
318
|
+
***
|
|
319
|
+
|
|
320
|
+
### colorTexture
|
|
321
|
+
|
|
322
|
+
#### Get Signature
|
|
323
|
+
|
|
324
|
+
> **get** **colorTexture**(): `Readonly`\<`Texture`\<`unknown`, `TextureEventMap`\>\> \| `null`
|
|
325
|
+
|
|
326
|
+
Defined in: [ecs/component/camera/Camera.ts:304](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L304)
|
|
327
|
+
|
|
328
|
+
Color texture of the optional capture framebuffer, if any.
|
|
329
|
+
|
|
330
|
+
##### Memberof
|
|
331
|
+
|
|
332
|
+
Camera
|
|
333
|
+
|
|
334
|
+
##### Returns
|
|
335
|
+
|
|
336
|
+
`Readonly`\<`Texture`\<`unknown`, `TextureEventMap`\>\> \| `null`
|
|
337
|
+
|
|
338
|
+
#### Inherited from
|
|
339
|
+
|
|
340
|
+
[`Camera`](Camera.md).[`colorTexture`](Camera.md#colortexture)
|
|
341
|
+
|
|
342
|
+
***
|
|
343
|
+
|
|
344
|
+
### depthTexture
|
|
345
|
+
|
|
346
|
+
#### Get Signature
|
|
347
|
+
|
|
348
|
+
> **get** **depthTexture**(): `Readonly`\<`DepthTexture`\<`DepthTextureImageData`\>\> \| `null`
|
|
349
|
+
|
|
350
|
+
Defined in: [ecs/component/camera/Camera.ts:317](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L317)
|
|
351
|
+
|
|
352
|
+
Depth texture of the optional capture framebuffer, if any.
|
|
353
|
+
|
|
354
|
+
##### Memberof
|
|
355
|
+
|
|
356
|
+
Camera
|
|
357
|
+
|
|
358
|
+
##### Returns
|
|
359
|
+
|
|
360
|
+
`Readonly`\<`DepthTexture`\<`DepthTextureImageData`\>\> \| `null`
|
|
361
|
+
|
|
362
|
+
#### Inherited from
|
|
363
|
+
|
|
364
|
+
[`Camera`](Camera.md).[`depthTexture`](Camera.md#depthtexture)
|
|
365
|
+
|
|
366
|
+
***
|
|
367
|
+
|
|
368
|
+
### enabled
|
|
369
|
+
|
|
370
|
+
#### Get Signature
|
|
371
|
+
|
|
372
|
+
> **get** **enabled**(): `boolean`
|
|
373
|
+
|
|
374
|
+
Defined in: [ecs/component/Component.ts:81](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L81)
|
|
375
|
+
|
|
376
|
+
Whether the user enable switch is on, regardless of entity hierarchy activity.
|
|
377
|
+
See [isActiveAndEnabled](Component.md#isactiveandenabled) for whether the component is currently running.
|
|
378
|
+
|
|
379
|
+
##### Memberof
|
|
380
|
+
|
|
381
|
+
Component
|
|
382
|
+
|
|
383
|
+
##### Returns
|
|
384
|
+
|
|
385
|
+
`boolean`
|
|
386
|
+
|
|
387
|
+
#### Set Signature
|
|
388
|
+
|
|
389
|
+
> **set** **enabled**(`value`): `void`
|
|
390
|
+
|
|
391
|
+
Defined in: [ecs/component/Component.ts:61](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L61)
|
|
392
|
+
|
|
393
|
+
Set the user enable switch without changing entity hierarchy activity.
|
|
394
|
+
The component runs only when this switch is on and the entity is active in hierarchy.
|
|
395
|
+
|
|
396
|
+
##### Memberof
|
|
397
|
+
|
|
398
|
+
Component
|
|
399
|
+
|
|
400
|
+
##### Parameters
|
|
401
|
+
|
|
402
|
+
###### value
|
|
403
|
+
|
|
404
|
+
`boolean`
|
|
405
|
+
|
|
406
|
+
##### Returns
|
|
407
|
+
|
|
408
|
+
`void`
|
|
409
|
+
|
|
410
|
+
#### Inherited from
|
|
411
|
+
|
|
412
|
+
[`Camera`](Camera.md).[`enabled`](Camera.md#enabled)
|
|
413
|
+
|
|
414
|
+
***
|
|
415
|
+
|
|
416
|
+
### far
|
|
417
|
+
|
|
418
|
+
#### Get Signature
|
|
419
|
+
|
|
420
|
+
> **get** **far**(): `number`
|
|
421
|
+
|
|
422
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:129](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L129)
|
|
423
|
+
|
|
424
|
+
Far clip plane distance.
|
|
425
|
+
|
|
426
|
+
##### Memberof
|
|
427
|
+
|
|
428
|
+
PerspectiveCamera
|
|
429
|
+
|
|
430
|
+
##### Returns
|
|
431
|
+
|
|
432
|
+
`number`
|
|
433
|
+
|
|
434
|
+
#### Set Signature
|
|
435
|
+
|
|
436
|
+
> **set** **far**(`value`): `void`
|
|
437
|
+
|
|
438
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:105](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L105)
|
|
439
|
+
|
|
440
|
+
Set the far clip plane distance.
|
|
441
|
+
|
|
442
|
+
##### Memberof
|
|
443
|
+
|
|
444
|
+
PerspectiveCamera
|
|
445
|
+
|
|
446
|
+
##### Parameters
|
|
447
|
+
|
|
448
|
+
###### value
|
|
449
|
+
|
|
450
|
+
`number`
|
|
451
|
+
|
|
452
|
+
##### Returns
|
|
453
|
+
|
|
454
|
+
`void`
|
|
455
|
+
|
|
456
|
+
***
|
|
457
|
+
|
|
458
|
+
### fov
|
|
459
|
+
|
|
460
|
+
#### Get Signature
|
|
461
|
+
|
|
462
|
+
> **get** **fov**(): `number`
|
|
463
|
+
|
|
464
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:57](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L57)
|
|
465
|
+
|
|
466
|
+
Vertical field of view in degrees.
|
|
467
|
+
|
|
468
|
+
##### Memberof
|
|
469
|
+
|
|
470
|
+
PerspectiveCamera
|
|
471
|
+
|
|
472
|
+
##### Returns
|
|
473
|
+
|
|
474
|
+
`number`
|
|
475
|
+
|
|
476
|
+
#### Set Signature
|
|
477
|
+
|
|
478
|
+
> **set** **fov**(`value`): `void`
|
|
479
|
+
|
|
480
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:33](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L33)
|
|
481
|
+
|
|
482
|
+
Set the vertical field of view in degrees.
|
|
483
|
+
|
|
484
|
+
##### Memberof
|
|
485
|
+
|
|
486
|
+
PerspectiveCamera
|
|
487
|
+
|
|
488
|
+
##### Parameters
|
|
489
|
+
|
|
490
|
+
###### value
|
|
491
|
+
|
|
492
|
+
`number`
|
|
493
|
+
|
|
494
|
+
##### Returns
|
|
495
|
+
|
|
496
|
+
`void`
|
|
497
|
+
|
|
498
|
+
***
|
|
499
|
+
|
|
500
|
+
### isActiveAndEnabled
|
|
501
|
+
|
|
502
|
+
#### Get Signature
|
|
503
|
+
|
|
504
|
+
> **get** **isActiveAndEnabled**(): `boolean`
|
|
505
|
+
|
|
506
|
+
Defined in: [ecs/component/Component.ts:94](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L94)
|
|
507
|
+
|
|
508
|
+
Whether the component is currently running: enabled, entity active in hierarchy, and enable handler completed.
|
|
509
|
+
|
|
510
|
+
##### Memberof
|
|
511
|
+
|
|
512
|
+
Component
|
|
513
|
+
|
|
514
|
+
##### Returns
|
|
515
|
+
|
|
516
|
+
`boolean`
|
|
517
|
+
|
|
518
|
+
#### Inherited from
|
|
519
|
+
|
|
520
|
+
[`Camera`](Camera.md).[`isActiveAndEnabled`](Camera.md#isactiveandenabled)
|
|
521
|
+
|
|
522
|
+
***
|
|
523
|
+
|
|
524
|
+
### native
|
|
525
|
+
|
|
526
|
+
#### Get Signature
|
|
527
|
+
|
|
528
|
+
> **get** **native**(): `Camera`
|
|
529
|
+
|
|
530
|
+
Defined in: [ecs/component/camera/Camera.ts:164](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L164)
|
|
531
|
+
|
|
532
|
+
Underlying Three.js camera used for rendering.
|
|
533
|
+
|
|
534
|
+
##### Memberof
|
|
535
|
+
|
|
536
|
+
Camera
|
|
537
|
+
|
|
538
|
+
##### Returns
|
|
539
|
+
|
|
540
|
+
`Camera`
|
|
541
|
+
|
|
542
|
+
#### Inherited from
|
|
543
|
+
|
|
544
|
+
[`Camera`](Camera.md).[`native`](Camera.md#native)
|
|
545
|
+
|
|
546
|
+
***
|
|
547
|
+
|
|
548
|
+
### near
|
|
549
|
+
|
|
550
|
+
#### Get Signature
|
|
551
|
+
|
|
552
|
+
> **get** **near**(): `number`
|
|
553
|
+
|
|
554
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:93](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L93)
|
|
555
|
+
|
|
556
|
+
Near clip plane distance.
|
|
557
|
+
|
|
558
|
+
##### Memberof
|
|
559
|
+
|
|
560
|
+
PerspectiveCamera
|
|
561
|
+
|
|
562
|
+
##### Returns
|
|
563
|
+
|
|
564
|
+
`number`
|
|
565
|
+
|
|
566
|
+
#### Set Signature
|
|
567
|
+
|
|
568
|
+
> **set** **near**(`value`): `void`
|
|
569
|
+
|
|
570
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:69](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L69)
|
|
571
|
+
|
|
572
|
+
Set the near clip plane distance.
|
|
573
|
+
|
|
574
|
+
##### Memberof
|
|
575
|
+
|
|
576
|
+
PerspectiveCamera
|
|
577
|
+
|
|
578
|
+
##### Parameters
|
|
579
|
+
|
|
580
|
+
###### value
|
|
581
|
+
|
|
582
|
+
`number`
|
|
583
|
+
|
|
584
|
+
##### Returns
|
|
585
|
+
|
|
586
|
+
`void`
|
|
587
|
+
|
|
588
|
+
***
|
|
589
|
+
|
|
590
|
+
### pixelViewport
|
|
591
|
+
|
|
592
|
+
#### Get Signature
|
|
593
|
+
|
|
594
|
+
> **get** **pixelViewport**(): `Readonly`\<`Vector4`\>
|
|
595
|
+
|
|
596
|
+
Defined in: [ecs/component/camera/Camera.ts:236](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L236)
|
|
597
|
+
|
|
598
|
+
Pixel-space viewport rectangle derived from [viewport](Camera.md#viewport).
|
|
599
|
+
|
|
600
|
+
##### Memberof
|
|
601
|
+
|
|
602
|
+
Camera
|
|
603
|
+
|
|
604
|
+
##### Returns
|
|
605
|
+
|
|
606
|
+
`Readonly`\<`Vector4`\>
|
|
607
|
+
|
|
608
|
+
#### Inherited from
|
|
609
|
+
|
|
610
|
+
[`Camera`](Camera.md).[`pixelViewport`](Camera.md#pixelviewport)
|
|
611
|
+
|
|
612
|
+
***
|
|
613
|
+
|
|
614
|
+
### priority
|
|
615
|
+
|
|
616
|
+
#### Get Signature
|
|
617
|
+
|
|
618
|
+
> **get** **priority**(): `number`
|
|
619
|
+
|
|
620
|
+
Defined in: [ecs/component/camera/Camera.ts:194](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L194)
|
|
621
|
+
|
|
622
|
+
Render priority among active cameras.
|
|
623
|
+
|
|
624
|
+
##### Memberof
|
|
625
|
+
|
|
626
|
+
Camera
|
|
627
|
+
|
|
628
|
+
##### Returns
|
|
629
|
+
|
|
630
|
+
`number`
|
|
631
|
+
|
|
632
|
+
#### Set Signature
|
|
633
|
+
|
|
634
|
+
> **set** **priority**(`value`): `void`
|
|
635
|
+
|
|
636
|
+
Defined in: [ecs/component/camera/Camera.ts:176](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L176)
|
|
637
|
+
|
|
638
|
+
Set the render priority among active cameras.
|
|
639
|
+
|
|
640
|
+
##### Memberof
|
|
641
|
+
|
|
642
|
+
Camera
|
|
643
|
+
|
|
644
|
+
##### Parameters
|
|
645
|
+
|
|
646
|
+
###### value
|
|
647
|
+
|
|
648
|
+
`number`
|
|
649
|
+
|
|
650
|
+
##### Returns
|
|
651
|
+
|
|
652
|
+
`void`
|
|
653
|
+
|
|
654
|
+
#### Inherited from
|
|
655
|
+
|
|
656
|
+
[`Camera`](Camera.md).[`priority`](Camera.md#priority)
|
|
657
|
+
|
|
658
|
+
***
|
|
659
|
+
|
|
660
|
+
### projectionMatrix
|
|
661
|
+
|
|
662
|
+
#### Get Signature
|
|
663
|
+
|
|
664
|
+
> **get** **projectionMatrix**(): `Matrix4`
|
|
665
|
+
|
|
666
|
+
Defined in: [ecs/component/camera/Camera.ts:262](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L262)
|
|
667
|
+
|
|
668
|
+
Projection matrix.
|
|
669
|
+
|
|
670
|
+
##### Memberof
|
|
671
|
+
|
|
672
|
+
Camera
|
|
673
|
+
|
|
674
|
+
##### Returns
|
|
675
|
+
|
|
676
|
+
`Matrix4`
|
|
677
|
+
|
|
678
|
+
#### Inherited from
|
|
679
|
+
|
|
680
|
+
[`Camera`](Camera.md).[`projectionMatrix`](Camera.md#projectionmatrix)
|
|
681
|
+
|
|
682
|
+
***
|
|
683
|
+
|
|
684
|
+
### renderTarget
|
|
685
|
+
|
|
686
|
+
#### Get Signature
|
|
687
|
+
|
|
688
|
+
> **get** **renderTarget**(): `WebGLRenderTarget`
|
|
689
|
+
|
|
690
|
+
Defined in: [ecs/component/camera/Camera.ts:291](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L291)
|
|
691
|
+
|
|
692
|
+
Optional offscreen render target.
|
|
693
|
+
|
|
694
|
+
##### Memberof
|
|
695
|
+
|
|
696
|
+
Camera
|
|
697
|
+
|
|
698
|
+
##### Returns
|
|
699
|
+
|
|
700
|
+
`WebGLRenderTarget`
|
|
701
|
+
|
|
702
|
+
#### Set Signature
|
|
703
|
+
|
|
704
|
+
> **set** **renderTarget**(`value`): `void`
|
|
705
|
+
|
|
706
|
+
Defined in: [ecs/component/camera/Camera.ts:274](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L274)
|
|
707
|
+
|
|
708
|
+
Set the optional offscreen render target.
|
|
709
|
+
|
|
710
|
+
##### Memberof
|
|
711
|
+
|
|
712
|
+
Camera
|
|
713
|
+
|
|
714
|
+
##### Parameters
|
|
715
|
+
|
|
716
|
+
###### value
|
|
717
|
+
|
|
718
|
+
`WebGLRenderTarget`
|
|
719
|
+
|
|
720
|
+
##### Returns
|
|
721
|
+
|
|
722
|
+
`void`
|
|
723
|
+
|
|
724
|
+
#### Inherited from
|
|
725
|
+
|
|
726
|
+
[`Camera`](Camera.md).[`renderTarget`](Camera.md#rendertarget)
|
|
727
|
+
|
|
728
|
+
***
|
|
729
|
+
|
|
730
|
+
### scene
|
|
731
|
+
|
|
732
|
+
#### Get Signature
|
|
733
|
+
|
|
734
|
+
> **get** **scene**(): [`Scene`](Scene.md)
|
|
735
|
+
|
|
736
|
+
Defined in: [ecs/component/Component.ts:49](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L49)
|
|
737
|
+
|
|
738
|
+
Scene that owns this component, resolved through `entity.scene`.
|
|
739
|
+
Undefined until the entity is attached to a scene.
|
|
740
|
+
|
|
741
|
+
##### Memberof
|
|
742
|
+
|
|
743
|
+
Component
|
|
744
|
+
|
|
745
|
+
##### Returns
|
|
746
|
+
|
|
747
|
+
[`Scene`](Scene.md)
|
|
748
|
+
|
|
749
|
+
#### Inherited from
|
|
750
|
+
|
|
751
|
+
[`Camera`](Camera.md).[`scene`](Camera.md#scene)
|
|
752
|
+
|
|
753
|
+
***
|
|
754
|
+
|
|
755
|
+
### viewMatrix
|
|
756
|
+
|
|
757
|
+
#### Get Signature
|
|
758
|
+
|
|
759
|
+
> **get** **viewMatrix**(): `Matrix4`
|
|
760
|
+
|
|
761
|
+
Defined in: [ecs/component/camera/Camera.ts:249](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L249)
|
|
762
|
+
|
|
763
|
+
View matrix (world-to-camera).
|
|
764
|
+
|
|
765
|
+
##### Memberof
|
|
766
|
+
|
|
767
|
+
Camera
|
|
768
|
+
|
|
769
|
+
##### Returns
|
|
770
|
+
|
|
771
|
+
`Matrix4`
|
|
772
|
+
|
|
773
|
+
#### Inherited from
|
|
774
|
+
|
|
775
|
+
[`Camera`](Camera.md).[`viewMatrix`](Camera.md#viewmatrix)
|
|
776
|
+
|
|
777
|
+
***
|
|
778
|
+
|
|
779
|
+
### viewport
|
|
780
|
+
|
|
781
|
+
#### Get Signature
|
|
782
|
+
|
|
783
|
+
> **get** **viewport**(): `Readonly`\<`Vector4`\>
|
|
784
|
+
|
|
785
|
+
Defined in: [ecs/component/camera/Camera.ts:223](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L223)
|
|
786
|
+
|
|
787
|
+
Normalized viewport rectangle (x, y, width, height) in [0, 1].
|
|
788
|
+
|
|
789
|
+
##### Memberof
|
|
790
|
+
|
|
791
|
+
Camera
|
|
792
|
+
|
|
793
|
+
##### Returns
|
|
794
|
+
|
|
795
|
+
`Readonly`\<`Vector4`\>
|
|
796
|
+
|
|
797
|
+
#### Set Signature
|
|
798
|
+
|
|
799
|
+
> **set** **viewport**(`value`): `void`
|
|
800
|
+
|
|
801
|
+
Defined in: [ecs/component/camera/Camera.ts:206](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L206)
|
|
802
|
+
|
|
803
|
+
Set the normalized viewport rectangle.
|
|
804
|
+
|
|
805
|
+
##### Memberof
|
|
806
|
+
|
|
807
|
+
Camera
|
|
808
|
+
|
|
809
|
+
##### Parameters
|
|
810
|
+
|
|
811
|
+
###### value
|
|
812
|
+
|
|
813
|
+
`Vector4`
|
|
814
|
+
|
|
815
|
+
##### Returns
|
|
816
|
+
|
|
817
|
+
`void`
|
|
818
|
+
|
|
819
|
+
#### Inherited from
|
|
820
|
+
|
|
821
|
+
[`Camera`](Camera.md).[`viewport`](Camera.md#viewport)
|
|
822
|
+
|
|
823
|
+
## Methods
|
|
824
|
+
|
|
825
|
+
### destroy()
|
|
826
|
+
|
|
827
|
+
> **destroy**(): `void`
|
|
828
|
+
|
|
829
|
+
Defined in: [ecs/component/Component.ts:173](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L173)
|
|
830
|
+
|
|
831
|
+
Destroy the component: reset awake state, disable if running without clearing the user switch, run the destroy
|
|
832
|
+
hook, then dispose event listeners.
|
|
833
|
+
Invoked by [Entity.removeComponent](Entity.md#removecomponent); do not call from user code.
|
|
834
|
+
|
|
835
|
+
#### Returns
|
|
836
|
+
|
|
837
|
+
`void`
|
|
838
|
+
|
|
839
|
+
#### Memberof
|
|
840
|
+
|
|
841
|
+
Component
|
|
842
|
+
|
|
843
|
+
#### Inherited from
|
|
844
|
+
|
|
845
|
+
[`Camera`](Camera.md).[`destroy`](Camera.md#destroy)
|
|
846
|
+
|
|
847
|
+
***
|
|
848
|
+
|
|
849
|
+
### dispose()
|
|
850
|
+
|
|
851
|
+
> **dispose**(): `void`
|
|
852
|
+
|
|
853
|
+
Defined in: [event/EventDispatcher.ts:192](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L192)
|
|
854
|
+
|
|
855
|
+
Clear every subscriber list and release the map entries.
|
|
856
|
+
|
|
857
|
+
#### Returns
|
|
858
|
+
|
|
859
|
+
`void`
|
|
860
|
+
|
|
861
|
+
#### Memberof
|
|
862
|
+
|
|
863
|
+
EventDispatcher
|
|
864
|
+
|
|
865
|
+
#### Inherited from
|
|
866
|
+
|
|
867
|
+
[`Camera`](Camera.md).[`dispose`](Camera.md#dispose)
|
|
868
|
+
|
|
869
|
+
***
|
|
870
|
+
|
|
871
|
+
### emit()
|
|
872
|
+
|
|
873
|
+
> **emit**(`event`): `void`
|
|
874
|
+
|
|
875
|
+
Defined in: [event/EventDispatcher.ts:159](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L159)
|
|
876
|
+
|
|
877
|
+
Emit an event to subscribers of `event.type` in priority order.
|
|
878
|
+
|
|
879
|
+
The subscriber array is sliced before the loop so removals during a
|
|
880
|
+
callback do not affect iteration. A callback return of `true` stops
|
|
881
|
+
the remaining subscribers for this emission.
|
|
882
|
+
|
|
883
|
+
#### Parameters
|
|
884
|
+
|
|
885
|
+
##### event
|
|
886
|
+
|
|
887
|
+
Event object; `type` is required
|
|
888
|
+
|
|
889
|
+
###### type
|
|
890
|
+
|
|
891
|
+
`string`
|
|
892
|
+
|
|
893
|
+
#### Returns
|
|
894
|
+
|
|
895
|
+
`void`
|
|
896
|
+
|
|
897
|
+
#### Memberof
|
|
898
|
+
|
|
899
|
+
EventDispatcher
|
|
900
|
+
|
|
901
|
+
#### Inherited from
|
|
902
|
+
|
|
903
|
+
[`Camera`](Camera.md).[`emit`](Camera.md#emit)
|
|
904
|
+
|
|
905
|
+
***
|
|
906
|
+
|
|
907
|
+
### handleAwake()
|
|
908
|
+
|
|
909
|
+
> `protected` **handleAwake**(): `void`
|
|
910
|
+
|
|
911
|
+
Defined in: [ecs/component/Component.ts:194](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L194)
|
|
912
|
+
|
|
913
|
+
Lifecycle hook invoked once when the entity first becomes active in hierarchy (also when the component is
|
|
914
|
+
disabled).
|
|
915
|
+
Runs before enable; entity and scene references are already available.
|
|
916
|
+
|
|
917
|
+
#### Returns
|
|
918
|
+
|
|
919
|
+
`void`
|
|
920
|
+
|
|
921
|
+
#### Memberof
|
|
922
|
+
|
|
923
|
+
Component
|
|
924
|
+
|
|
925
|
+
#### Inherited from
|
|
926
|
+
|
|
927
|
+
[`Camera`](Camera.md).[`handleAwake`](Camera.md#handleawake)
|
|
928
|
+
|
|
929
|
+
***
|
|
930
|
+
|
|
931
|
+
### handleDestroy()
|
|
932
|
+
|
|
933
|
+
> `protected` **handleDestroy**(): `void`
|
|
934
|
+
|
|
935
|
+
Defined in: [ecs/component/camera/Camera.ts:672](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L672)
|
|
936
|
+
|
|
937
|
+
Remove the Transform update listener on destroy.
|
|
938
|
+
|
|
939
|
+
#### Returns
|
|
940
|
+
|
|
941
|
+
`void`
|
|
942
|
+
|
|
943
|
+
#### Memberof
|
|
944
|
+
|
|
945
|
+
Camera
|
|
946
|
+
|
|
947
|
+
#### Inherited from
|
|
948
|
+
|
|
949
|
+
[`Camera`](Camera.md).[`handleDestroy`](Camera.md#handledestroy)
|
|
950
|
+
|
|
951
|
+
***
|
|
952
|
+
|
|
953
|
+
### handleDisable()
|
|
954
|
+
|
|
955
|
+
> `protected` **handleDisable**(): `void`
|
|
956
|
+
|
|
957
|
+
Defined in: [ecs/component/camera/Camera.ts:660](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L660)
|
|
958
|
+
|
|
959
|
+
Detach this camera from the scene active-camera list when disabled.
|
|
960
|
+
|
|
961
|
+
#### Returns
|
|
962
|
+
|
|
963
|
+
`void`
|
|
964
|
+
|
|
965
|
+
#### Memberof
|
|
966
|
+
|
|
967
|
+
Camera
|
|
968
|
+
|
|
969
|
+
#### Inherited from
|
|
970
|
+
|
|
971
|
+
[`Camera`](Camera.md).[`handleDisable`](Camera.md#handledisable)
|
|
972
|
+
|
|
973
|
+
***
|
|
974
|
+
|
|
975
|
+
### handleEnable()
|
|
976
|
+
|
|
977
|
+
> `protected` **handleEnable**(): `void`
|
|
978
|
+
|
|
979
|
+
Defined in: [ecs/component/camera/Camera.ts:648](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L648)
|
|
980
|
+
|
|
981
|
+
Attach this camera to the scene active-camera list when enabled.
|
|
982
|
+
|
|
983
|
+
#### Returns
|
|
984
|
+
|
|
985
|
+
`void`
|
|
986
|
+
|
|
987
|
+
#### Memberof
|
|
988
|
+
|
|
989
|
+
Camera
|
|
990
|
+
|
|
991
|
+
#### Inherited from
|
|
992
|
+
|
|
993
|
+
[`Camera`](Camera.md).[`handleEnable`](Camera.md#handleenable)
|
|
994
|
+
|
|
995
|
+
***
|
|
996
|
+
|
|
997
|
+
### notifyProjectionChanged()
|
|
998
|
+
|
|
999
|
+
> `protected` **notifyProjectionChanged**(): `void`
|
|
1000
|
+
|
|
1001
|
+
Defined in: [ecs/component/camera/Camera.ts:706](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L706)
|
|
1002
|
+
|
|
1003
|
+
Notify projection update-flag listeners and emit projection-changed events.
|
|
1004
|
+
|
|
1005
|
+
#### Returns
|
|
1006
|
+
|
|
1007
|
+
`void`
|
|
1008
|
+
|
|
1009
|
+
#### Memberof
|
|
1010
|
+
|
|
1011
|
+
Camera
|
|
1012
|
+
|
|
1013
|
+
#### Inherited from
|
|
1014
|
+
|
|
1015
|
+
[`Camera`](Camera.md).[`notifyProjectionChanged`](Camera.md#notifyprojectionchanged)
|
|
1016
|
+
|
|
1017
|
+
***
|
|
1018
|
+
|
|
1019
|
+
### notifyTransformChanged()
|
|
1020
|
+
|
|
1021
|
+
> `protected` **notifyTransformChanged**(): `void`
|
|
1022
|
+
|
|
1023
|
+
Defined in: [ecs/component/camera/Camera.ts:684](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L684)
|
|
1024
|
+
|
|
1025
|
+
Notify transform update-flag listeners and emit transform-changed events.
|
|
1026
|
+
|
|
1027
|
+
#### Returns
|
|
1028
|
+
|
|
1029
|
+
`void`
|
|
1030
|
+
|
|
1031
|
+
#### Memberof
|
|
1032
|
+
|
|
1033
|
+
Camera
|
|
1034
|
+
|
|
1035
|
+
#### Inherited from
|
|
1036
|
+
|
|
1037
|
+
[`Camera`](Camera.md).[`notifyTransformChanged`](Camera.md#notifytransformchanged)
|
|
1038
|
+
|
|
1039
|
+
***
|
|
1040
|
+
|
|
1041
|
+
### off()
|
|
1042
|
+
|
|
1043
|
+
> **off**(`type`, `callback?`): `void`
|
|
1044
|
+
|
|
1045
|
+
Defined in: [event/EventDispatcher.ts:85](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L85)
|
|
1046
|
+
|
|
1047
|
+
Unsubscribe from an event type.
|
|
1048
|
+
|
|
1049
|
+
When `callback` is omitted, all subscribers for that type are removed.
|
|
1050
|
+
When `callback` is given, only the first matching subscriber is removed.
|
|
1051
|
+
|
|
1052
|
+
#### Parameters
|
|
1053
|
+
|
|
1054
|
+
##### type
|
|
1055
|
+
|
|
1056
|
+
`string`
|
|
1057
|
+
|
|
1058
|
+
Event type
|
|
1059
|
+
|
|
1060
|
+
##### callback?
|
|
1061
|
+
|
|
1062
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1063
|
+
|
|
1064
|
+
Callback to remove; omit to clear the type
|
|
1065
|
+
|
|
1066
|
+
#### Returns
|
|
1067
|
+
|
|
1068
|
+
`void`
|
|
1069
|
+
|
|
1070
|
+
#### Memberof
|
|
1071
|
+
|
|
1072
|
+
EventDispatcher
|
|
1073
|
+
|
|
1074
|
+
#### Inherited from
|
|
1075
|
+
|
|
1076
|
+
[`Camera`](Camera.md).[`off`](Camera.md#off)
|
|
1077
|
+
|
|
1078
|
+
***
|
|
1079
|
+
|
|
1080
|
+
### on()
|
|
1081
|
+
|
|
1082
|
+
> **on**(`type`, `callback`, `options?`): `void`
|
|
1083
|
+
|
|
1084
|
+
Defined in: [event/EventDispatcher.ts:49](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L49)
|
|
1085
|
+
|
|
1086
|
+
Subscribe to an event type, inserting by descending priority.
|
|
1087
|
+
|
|
1088
|
+
#### Parameters
|
|
1089
|
+
|
|
1090
|
+
##### type
|
|
1091
|
+
|
|
1092
|
+
`string`
|
|
1093
|
+
|
|
1094
|
+
Event type
|
|
1095
|
+
|
|
1096
|
+
##### callback
|
|
1097
|
+
|
|
1098
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1099
|
+
|
|
1100
|
+
Subscriber callback
|
|
1101
|
+
|
|
1102
|
+
##### options?
|
|
1103
|
+
|
|
1104
|
+
Optional `this` binding. `priority` defaults to [Priority.NORMAL](../enumerations/Priority.md#normal)
|
|
1105
|
+
|
|
1106
|
+
###### priority?
|
|
1107
|
+
|
|
1108
|
+
[`Priority`](../enumerations/Priority.md)
|
|
1109
|
+
|
|
1110
|
+
###### target?
|
|
1111
|
+
|
|
1112
|
+
`any`
|
|
1113
|
+
|
|
1114
|
+
#### Returns
|
|
1115
|
+
|
|
1116
|
+
`void`
|
|
1117
|
+
|
|
1118
|
+
#### Memberof
|
|
1119
|
+
|
|
1120
|
+
EventDispatcher
|
|
1121
|
+
|
|
1122
|
+
#### Inherited from
|
|
1123
|
+
|
|
1124
|
+
[`Camera`](Camera.md).[`on`](Camera.md#on)
|
|
1125
|
+
|
|
1126
|
+
***
|
|
1127
|
+
|
|
1128
|
+
### once()
|
|
1129
|
+
|
|
1130
|
+
> **once**(`type`, `callback`, `options?`): `void`
|
|
1131
|
+
|
|
1132
|
+
Defined in: [event/EventDispatcher.ts:132](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/event/EventDispatcher.ts#L132)
|
|
1133
|
+
|
|
1134
|
+
Subscribe for a single emission, then unsubscribe automatically.
|
|
1135
|
+
|
|
1136
|
+
The wrapper invokes the original callback, removes itself via `off`,
|
|
1137
|
+
and returns the original callback's return value so stop-propagation
|
|
1138
|
+
still works.
|
|
1139
|
+
|
|
1140
|
+
#### Parameters
|
|
1141
|
+
|
|
1142
|
+
##### type
|
|
1143
|
+
|
|
1144
|
+
`string`
|
|
1145
|
+
|
|
1146
|
+
Event type
|
|
1147
|
+
|
|
1148
|
+
##### callback
|
|
1149
|
+
|
|
1150
|
+
[`SubscriberCallbackFn`](../type-aliases/SubscriberCallbackFn.md)
|
|
1151
|
+
|
|
1152
|
+
Subscriber callback
|
|
1153
|
+
|
|
1154
|
+
##### options?
|
|
1155
|
+
|
|
1156
|
+
Optional `this` binding. `priority` defaults to [Priority.NORMAL](../enumerations/Priority.md#normal)
|
|
1157
|
+
|
|
1158
|
+
###### priority?
|
|
1159
|
+
|
|
1160
|
+
[`Priority`](../enumerations/Priority.md)
|
|
1161
|
+
|
|
1162
|
+
###### target?
|
|
1163
|
+
|
|
1164
|
+
`any`
|
|
1165
|
+
|
|
1166
|
+
#### Returns
|
|
1167
|
+
|
|
1168
|
+
`void`
|
|
1169
|
+
|
|
1170
|
+
#### Memberof
|
|
1171
|
+
|
|
1172
|
+
EventDispatcher
|
|
1173
|
+
|
|
1174
|
+
#### Inherited from
|
|
1175
|
+
|
|
1176
|
+
[`Camera`](Camera.md).[`once`](Camera.md#once)
|
|
1177
|
+
|
|
1178
|
+
***
|
|
1179
|
+
|
|
1180
|
+
### resetWorldMatrixNeedsUpdate()
|
|
1181
|
+
|
|
1182
|
+
> `protected` **resetWorldMatrixNeedsUpdate**(): `void`
|
|
1183
|
+
|
|
1184
|
+
Defined in: [ecs/component/Component.ts:230](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L230)
|
|
1185
|
+
|
|
1186
|
+
Clear the world-matrix dirty flag after [updateWorldMatrix](Component.md#updateworldmatrix).
|
|
1187
|
+
Called by [ComponentsManager.callWorldMatrixUpdate](ComponentsManager.md#callworldmatrixupdate); does not clear the list index.
|
|
1188
|
+
|
|
1189
|
+
#### Returns
|
|
1190
|
+
|
|
1191
|
+
`void`
|
|
1192
|
+
|
|
1193
|
+
#### Memberof
|
|
1194
|
+
|
|
1195
|
+
Component
|
|
1196
|
+
|
|
1197
|
+
#### Inherited from
|
|
1198
|
+
|
|
1199
|
+
[`Camera`](Camera.md).[`resetWorldMatrixNeedsUpdate`](Camera.md#resetworldmatrixneedsupdate)
|
|
1200
|
+
|
|
1201
|
+
***
|
|
1202
|
+
|
|
1203
|
+
### resize()
|
|
1204
|
+
|
|
1205
|
+
> **resize**(`width`, `height`): `void`
|
|
1206
|
+
|
|
1207
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:215](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L215)
|
|
1208
|
+
|
|
1209
|
+
Refresh the pixel viewport after a canvas resize.
|
|
1210
|
+
|
|
1211
|
+
#### Parameters
|
|
1212
|
+
|
|
1213
|
+
##### width
|
|
1214
|
+
|
|
1215
|
+
`number`
|
|
1216
|
+
|
|
1217
|
+
Pixel width
|
|
1218
|
+
|
|
1219
|
+
##### height
|
|
1220
|
+
|
|
1221
|
+
`number`
|
|
1222
|
+
|
|
1223
|
+
Pixel height
|
|
1224
|
+
|
|
1225
|
+
#### Returns
|
|
1226
|
+
|
|
1227
|
+
`void`
|
|
1228
|
+
|
|
1229
|
+
#### Memberof
|
|
1230
|
+
|
|
1231
|
+
PerspectiveCamera
|
|
1232
|
+
|
|
1233
|
+
#### Overrides
|
|
1234
|
+
|
|
1235
|
+
[`Camera`](Camera.md).[`resize`](Camera.md#resize)
|
|
1236
|
+
|
|
1237
|
+
***
|
|
1238
|
+
|
|
1239
|
+
### screenPointToRay()
|
|
1240
|
+
|
|
1241
|
+
> **screenPointToRay**(`point`, `out`): `Ray` \| `undefined`
|
|
1242
|
+
|
|
1243
|
+
Defined in: [ecs/component/camera/Camera.ts:476](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L476)
|
|
1244
|
+
|
|
1245
|
+
Build a world-space ray from a screen-space point.
|
|
1246
|
+
|
|
1247
|
+
#### Parameters
|
|
1248
|
+
|
|
1249
|
+
##### point
|
|
1250
|
+
|
|
1251
|
+
`Vector2`
|
|
1252
|
+
|
|
1253
|
+
Screen-space point
|
|
1254
|
+
|
|
1255
|
+
##### out
|
|
1256
|
+
|
|
1257
|
+
`Ray`
|
|
1258
|
+
|
|
1259
|
+
Ray to fill
|
|
1260
|
+
|
|
1261
|
+
#### Returns
|
|
1262
|
+
|
|
1263
|
+
`Ray` \| `undefined`
|
|
1264
|
+
|
|
1265
|
+
The filled ray, or undefined when outside the pixel viewport
|
|
1266
|
+
|
|
1267
|
+
#### Memberof
|
|
1268
|
+
|
|
1269
|
+
Camera
|
|
1270
|
+
|
|
1271
|
+
#### Inherited from
|
|
1272
|
+
|
|
1273
|
+
[`Camera`](Camera.md).[`screenPointToRay`](Camera.md#screenpointtoray)
|
|
1274
|
+
|
|
1275
|
+
***
|
|
1276
|
+
|
|
1277
|
+
### screenRectToFrustum()
|
|
1278
|
+
|
|
1279
|
+
> **screenRectToFrustum**(`point1`, `point2`, `nearFar?`): `Frustum` \| `undefined`
|
|
1280
|
+
|
|
1281
|
+
Defined in: [ecs/component/camera/Camera.ts:394](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L394)
|
|
1282
|
+
|
|
1283
|
+
Build a frustum from a screen-space rectangle.
|
|
1284
|
+
|
|
1285
|
+
#### Parameters
|
|
1286
|
+
|
|
1287
|
+
##### point1
|
|
1288
|
+
|
|
1289
|
+
`Vector2`
|
|
1290
|
+
|
|
1291
|
+
First screen-space corner
|
|
1292
|
+
|
|
1293
|
+
##### point2
|
|
1294
|
+
|
|
1295
|
+
`Vector2`
|
|
1296
|
+
|
|
1297
|
+
Second screen-space corner
|
|
1298
|
+
|
|
1299
|
+
##### nearFar?
|
|
1300
|
+
|
|
1301
|
+
`Vector2`
|
|
1302
|
+
|
|
1303
|
+
Optional custom near/far distances
|
|
1304
|
+
|
|
1305
|
+
#### Returns
|
|
1306
|
+
|
|
1307
|
+
`Frustum` \| `undefined`
|
|
1308
|
+
|
|
1309
|
+
Cloned frustum, or undefined when the rect is empty
|
|
1310
|
+
|
|
1311
|
+
#### Memberof
|
|
1312
|
+
|
|
1313
|
+
Camera
|
|
1314
|
+
|
|
1315
|
+
#### Inherited from
|
|
1316
|
+
|
|
1317
|
+
[`Camera`](Camera.md).[`screenRectToFrustum`](Camera.md#screenrecttofrustum)
|
|
1318
|
+
|
|
1319
|
+
***
|
|
1320
|
+
|
|
1321
|
+
### screenToNdcPoint()
|
|
1322
|
+
|
|
1323
|
+
> **screenToNdcPoint**(`point`, `out`): `Vector2`
|
|
1324
|
+
|
|
1325
|
+
Defined in: [ecs/component/camera/Camera.ts:538](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L538)
|
|
1326
|
+
|
|
1327
|
+
Convert a screen-space point to NDC.
|
|
1328
|
+
|
|
1329
|
+
#### Parameters
|
|
1330
|
+
|
|
1331
|
+
##### point
|
|
1332
|
+
|
|
1333
|
+
`Vector2`
|
|
1334
|
+
|
|
1335
|
+
Screen-space point
|
|
1336
|
+
|
|
1337
|
+
##### out
|
|
1338
|
+
|
|
1339
|
+
`Vector2`
|
|
1340
|
+
|
|
1341
|
+
NDC point to fill
|
|
1342
|
+
|
|
1343
|
+
#### Returns
|
|
1344
|
+
|
|
1345
|
+
`Vector2`
|
|
1346
|
+
|
|
1347
|
+
The filled NDC point
|
|
1348
|
+
|
|
1349
|
+
#### Memberof
|
|
1350
|
+
|
|
1351
|
+
Camera
|
|
1352
|
+
|
|
1353
|
+
#### Inherited from
|
|
1354
|
+
|
|
1355
|
+
[`Camera`](Camera.md).[`screenToNdcPoint`](Camera.md#screentondcpoint)
|
|
1356
|
+
|
|
1357
|
+
***
|
|
1358
|
+
|
|
1359
|
+
### screenToWorldPoint()
|
|
1360
|
+
|
|
1361
|
+
> **screenToWorldPoint**(`point`, `out`): `Vector3`
|
|
1362
|
+
|
|
1363
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:188](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L188)
|
|
1364
|
+
|
|
1365
|
+
Unproject a screen-space point (depth in [near, far]) to world space.
|
|
1366
|
+
|
|
1367
|
+
#### Parameters
|
|
1368
|
+
|
|
1369
|
+
##### point
|
|
1370
|
+
|
|
1371
|
+
`Vector3`
|
|
1372
|
+
|
|
1373
|
+
Screen-space point; z is depth in [near, far]
|
|
1374
|
+
|
|
1375
|
+
##### out
|
|
1376
|
+
|
|
1377
|
+
`Vector3`
|
|
1378
|
+
|
|
1379
|
+
World-space point to fill
|
|
1380
|
+
|
|
1381
|
+
#### Returns
|
|
1382
|
+
|
|
1383
|
+
`Vector3`
|
|
1384
|
+
|
|
1385
|
+
The filled world-space point
|
|
1386
|
+
|
|
1387
|
+
#### Memberof
|
|
1388
|
+
|
|
1389
|
+
PerspectiveCamera
|
|
1390
|
+
|
|
1391
|
+
#### Overrides
|
|
1392
|
+
|
|
1393
|
+
[`Camera`](Camera.md).[`screenToWorldPoint`](Camera.md#screentoworldpoint)
|
|
1394
|
+
|
|
1395
|
+
***
|
|
1396
|
+
|
|
1397
|
+
### updatePixelViewport()
|
|
1398
|
+
|
|
1399
|
+
> `protected` **updatePixelViewport**(): `void`
|
|
1400
|
+
|
|
1401
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:255](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L255)
|
|
1402
|
+
|
|
1403
|
+
Refresh the pixel viewport and keep aspect ratio in sync.
|
|
1404
|
+
|
|
1405
|
+
#### Returns
|
|
1406
|
+
|
|
1407
|
+
`void`
|
|
1408
|
+
|
|
1409
|
+
#### Memberof
|
|
1410
|
+
|
|
1411
|
+
PerspectiveCamera
|
|
1412
|
+
|
|
1413
|
+
#### Overrides
|
|
1414
|
+
|
|
1415
|
+
[`Camera`](Camera.md).[`updatePixelViewport`](Camera.md#updatepixelviewport)
|
|
1416
|
+
|
|
1417
|
+
***
|
|
1418
|
+
|
|
1419
|
+
### updateProjectionMatrix()
|
|
1420
|
+
|
|
1421
|
+
> **updateProjectionMatrix**(): `void`
|
|
1422
|
+
|
|
1423
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:240](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L240)
|
|
1424
|
+
|
|
1425
|
+
Rebuild the projection matrix and notify projection listeners.
|
|
1426
|
+
|
|
1427
|
+
#### Returns
|
|
1428
|
+
|
|
1429
|
+
`void`
|
|
1430
|
+
|
|
1431
|
+
#### Memberof
|
|
1432
|
+
|
|
1433
|
+
PerspectiveCamera
|
|
1434
|
+
|
|
1435
|
+
#### Overrides
|
|
1436
|
+
|
|
1437
|
+
[`Camera`](Camera.md).[`updateProjectionMatrix`](Camera.md#updateprojectionmatrix)
|
|
1438
|
+
|
|
1439
|
+
***
|
|
1440
|
+
|
|
1441
|
+
### updateWorldMatrix()
|
|
1442
|
+
|
|
1443
|
+
> **updateWorldMatrix**(): `void`
|
|
1444
|
+
|
|
1445
|
+
Defined in: [ecs/component/camera/PerspectiveCamera.ts:227](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/PerspectiveCamera.ts#L227)
|
|
1446
|
+
|
|
1447
|
+
Update the Three.js camera world matrix and notify transform listeners.
|
|
1448
|
+
|
|
1449
|
+
#### Returns
|
|
1450
|
+
|
|
1451
|
+
`void`
|
|
1452
|
+
|
|
1453
|
+
#### Memberof
|
|
1454
|
+
|
|
1455
|
+
PerspectiveCamera
|
|
1456
|
+
|
|
1457
|
+
#### Overrides
|
|
1458
|
+
|
|
1459
|
+
[`Camera`](Camera.md).[`updateWorldMatrix`](Camera.md#updateworldmatrix)
|
|
1460
|
+
|
|
1461
|
+
***
|
|
1462
|
+
|
|
1463
|
+
### worldMatrixNeedsUpdate()
|
|
1464
|
+
|
|
1465
|
+
> **worldMatrixNeedsUpdate**(): `void`
|
|
1466
|
+
|
|
1467
|
+
Defined in: [ecs/component/Component.ts:141](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/Component.ts#L141)
|
|
1468
|
+
|
|
1469
|
+
Mark the world matrix dirty and enqueue this component for the next matrix update pass.
|
|
1470
|
+
Use when this component's own Object3D local transform changed and no ancestor Transform is the dirty root.
|
|
1471
|
+
Ancestor propagation only marks dirty without enqueueing. No-ops if already dirty; re-calling after scene attach
|
|
1472
|
+
backfills the queue if needed.
|
|
1473
|
+
|
|
1474
|
+
#### Returns
|
|
1475
|
+
|
|
1476
|
+
`void`
|
|
1477
|
+
|
|
1478
|
+
#### Memberof
|
|
1479
|
+
|
|
1480
|
+
Component
|
|
1481
|
+
|
|
1482
|
+
#### Inherited from
|
|
1483
|
+
|
|
1484
|
+
[`Camera`](Camera.md).[`worldMatrixNeedsUpdate`](Camera.md#worldmatrixneedsupdate)
|
|
1485
|
+
|
|
1486
|
+
***
|
|
1487
|
+
|
|
1488
|
+
### worldToScreenPoint()
|
|
1489
|
+
|
|
1490
|
+
> **worldToScreenPoint**(`point`, `out`): `Vector3`
|
|
1491
|
+
|
|
1492
|
+
Defined in: [ecs/component/camera/Camera.ts:513](https://github.com/yisky/vista3d/blob/e1ccd08ef45ea4d82a8d984fd687bd5c8240fdd9/packages/core/src/ecs/component/camera/Camera.ts#L513)
|
|
1493
|
+
|
|
1494
|
+
Project a world-space point into this camera's pixel viewport.
|
|
1495
|
+
|
|
1496
|
+
`out.x` / `out.y` are pixels in this camera's `pixelViewport`.
|
|
1497
|
+
`out.z` is NDC z (WebGL `[-1, 1]`, WebGPU `[0, 1]`).
|
|
1498
|
+
|
|
1499
|
+
#### Parameters
|
|
1500
|
+
|
|
1501
|
+
##### point
|
|
1502
|
+
|
|
1503
|
+
`Vector3`
|
|
1504
|
+
|
|
1505
|
+
World-space point
|
|
1506
|
+
|
|
1507
|
+
##### out
|
|
1508
|
+
|
|
1509
|
+
`Vector3`
|
|
1510
|
+
|
|
1511
|
+
Screen-space point to fill; z is NDC depth
|
|
1512
|
+
|
|
1513
|
+
#### Returns
|
|
1514
|
+
|
|
1515
|
+
`Vector3`
|
|
1516
|
+
|
|
1517
|
+
The filled `out`
|
|
1518
|
+
|
|
1519
|
+
#### Memberof
|
|
1520
|
+
|
|
1521
|
+
Camera
|
|
1522
|
+
|
|
1523
|
+
#### Inherited from
|
|
1524
|
+
|
|
1525
|
+
[`Camera`](Camera.md).[`worldToScreenPoint`](Camera.md#worldtoscreenpoint)
|