@types/three 0.182.0 → 0.183.1
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.
- three/README.md +1 -1
- three/examples/jsm/Addons.d.ts +0 -3
- three/examples/jsm/controls/OrbitControls.d.ts +39 -0
- three/examples/jsm/effects/AnaglyphEffect.d.ts +4 -0
- three/examples/jsm/environments/ColorEnvironment.d.ts +9 -0
- three/examples/jsm/gpgpu/BitonicSort.d.ts +5 -5
- three/examples/jsm/helpers/AnimationPathHelper.d.ts +38 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +4 -1
- three/examples/jsm/inspector/tabs/Parameters.d.ts +3 -0
- three/examples/jsm/inspector/ui/Item.d.ts +5 -0
- three/examples/jsm/libs/meshopt_decoder.module.d.ts +1 -1
- three/examples/jsm/lights/LightProbeGenerator.d.ts +11 -5
- three/examples/jsm/loaders/ColladaLoader.d.ts +27 -4
- three/examples/jsm/objects/SkyMesh.d.ts +11 -6
- three/examples/jsm/objects/Water2Mesh.d.ts +7 -7
- three/examples/jsm/objects/WaterMesh.d.ts +6 -6
- three/examples/jsm/postprocessing/EffectComposer.d.ts +9 -10
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +4 -9
- three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +30 -0
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +1 -1
- three/examples/jsm/tsl/display/BilateralBlurNode.d.ts +27 -0
- three/examples/jsm/tsl/display/BloomNode.d.ts +5 -5
- three/examples/jsm/tsl/display/CRT.d.ts +22 -0
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +5 -5
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +4 -6
- three/examples/jsm/tsl/display/GTAONode.d.ts +8 -8
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +4 -2
- three/examples/jsm/tsl/display/GodraysNode.d.ts +20 -0
- three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -6
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +5 -5
- three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -1
- three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -6
- three/examples/jsm/tsl/display/PixelationPassNode.d.ts +10 -10
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +2 -2
- three/examples/jsm/tsl/display/RetroPassNode.d.ts +17 -0
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -1
- three/examples/jsm/tsl/display/SSGINode.d.ts +11 -11
- three/examples/jsm/tsl/display/SSRNode.d.ts +6 -6
- three/examples/jsm/tsl/display/SSSNode.d.ts +5 -5
- three/examples/jsm/tsl/display/Shape.d.ts +3 -0
- three/examples/jsm/tsl/display/TransitionNode.d.ts +3 -3
- three/examples/jsm/tsl/display/boxBlur.d.ts +1 -1
- three/examples/jsm/tsl/display/depthAwareBlend.d.ts +15 -0
- three/examples/jsm/tsl/display/hashBlur.d.ts +1 -1
- three/examples/jsm/tsl/math/Bayer.d.ts +2 -0
- three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -2
- three/package.json +3 -3
- three/src/Three.Core.d.ts +1 -1
- three/src/Three.TSL.d.ts +6 -11
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +3 -0
- three/src/Three.d.ts +2 -2
- three/src/animation/AnimationClip.d.ts +1 -1
- three/src/animation/KeyframeTrack.d.ts +19 -5
- three/src/animation/PropertyMixer.d.ts +5 -4
- three/src/audio/Audio.d.ts +224 -157
- three/src/audio/AudioAnalyser.d.ts +32 -27
- three/src/audio/AudioContext.d.ts +12 -12
- three/src/audio/AudioListener.d.ts +44 -65
- three/src/audio/PositionalAudio.d.ts +69 -62
- three/src/cameras/ArrayCamera.d.ts +21 -24
- three/src/cameras/Camera.d.ts +14 -53
- three/src/cameras/CubeCamera.d.ts +32 -28
- three/src/cameras/OrthographicCamera.d.ts +70 -100
- three/src/cameras/PerspectiveCamera.d.ts +133 -146
- three/src/cameras/StereoCamera.d.ts +24 -30
- three/src/constants.d.ts +14 -2
- three/src/core/Clock.d.ts +3 -0
- three/src/core/Object3D.d.ts +31 -7
- three/src/geometries/TorusGeometry.d.ts +22 -3
- three/src/helpers/ArrowHelper.d.ts +34 -50
- three/src/helpers/AxesHelper.d.ts +22 -36
- three/src/helpers/Box3Helper.d.ts +14 -25
- three/src/helpers/BoxHelper.d.ts +28 -39
- three/src/helpers/CameraHelper.d.ts +31 -52
- three/src/helpers/DirectionalLightHelper.d.ts +32 -53
- three/src/helpers/GridHelper.d.ts +15 -29
- three/src/helpers/HemisphereLightHelper.d.ts +26 -49
- three/src/helpers/PlaneHelper.d.ts +21 -33
- three/src/helpers/PointLightHelper.d.ts +25 -50
- three/src/helpers/PolarGridHelper.d.ts +19 -32
- three/src/helpers/SkeletonHelper.d.ts +26 -50
- three/src/helpers/SpotLightHelper.d.ts +28 -55
- three/src/lights/AmbientLight.d.ts +15 -23
- three/src/lights/DirectionalLight.d.ts +40 -82
- three/src/lights/DirectionalLightShadow.d.ts +6 -61
- three/src/lights/HemisphereLight.d.ts +20 -47
- three/src/lights/Light.d.ts +18 -48
- three/src/lights/LightProbe.d.ts +24 -29
- three/src/lights/LightShadow.d.ts +107 -91
- three/src/lights/PointLight.d.ts +36 -77
- three/src/lights/PointLightShadow.d.ts +9 -6
- three/src/lights/RectAreaLight.d.ts +39 -59
- three/src/lights/SpotLight.d.ts +62 -116
- three/src/lights/SpotLightShadow.d.ts +17 -59
- three/src/lights/webgpu/IESSpotLight.d.ts +13 -1
- three/src/lights/webgpu/ProjectorLight.d.ts +9 -10
- three/src/materials/MeshLambertMaterial.d.ts +6 -0
- three/src/materials/MeshPhongMaterial.d.ts +6 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +0 -6
- three/src/materials/nodes/LineBasicNodeMaterial.d.ts +0 -4
- three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -2
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +0 -2
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +0 -2
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +5 -8
- three/src/materials/nodes/MeshToonNodeMaterial.d.ts +0 -4
- three/src/materials/nodes/NodeMaterial.d.ts +9 -3
- three/src/materials/nodes/SpriteNodeMaterial.d.ts +0 -3
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +0 -2
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +39 -93
- three/src/math/Color.d.ts +1 -0
- three/src/math/Vector3.d.ts +2 -2
- three/src/math/interpolants/BezierInterpolant.d.ts +7 -0
- three/src/nodes/Nodes.d.ts +55 -35
- three/src/nodes/TSL.d.ts +2 -5
- three/src/nodes/accessors/Arrays.d.ts +19 -10
- three/src/nodes/accessors/BufferAttributeNode.d.ts +99 -33
- three/src/nodes/accessors/BufferNode.d.ts +21 -7
- three/src/nodes/accessors/Camera.d.ts +10 -10
- three/src/nodes/accessors/CubeTextureNode.d.ts +1 -1
- three/src/nodes/accessors/InstanceNode.d.ts +6 -0
- three/src/nodes/accessors/Lights.d.ts +9 -6
- three/src/nodes/accessors/MaterialNode.d.ts +1 -3
- three/src/nodes/accessors/MaterialProperties.d.ts +4 -4
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/ModelNode.d.ts +34 -17
- three/src/nodes/accessors/MorphNode.d.ts +1 -1
- three/src/nodes/accessors/Normal.d.ts +13 -15
- three/src/nodes/accessors/Object3DNode.d.ts +35 -16
- three/src/nodes/accessors/Position.d.ts +9 -7
- three/src/nodes/accessors/ReferenceNode.d.ts +16 -7
- three/src/nodes/accessors/ReflectVector.d.ts +4 -5
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/SceneProperties.d.ts +5 -0
- three/src/nodes/accessors/SkinningNode.d.ts +5 -3
- three/src/nodes/accessors/StorageBufferNode.d.ts +49 -22
- three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/src/nodes/accessors/Tangent.d.ts +5 -7
- three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
- three/src/nodes/accessors/TextureBicubic.d.ts +3 -2
- three/src/nodes/accessors/TextureNode.d.ts +19 -18
- three/src/nodes/accessors/UV.d.ts +1 -1
- three/src/nodes/accessors/UniformArrayNode.d.ts +10 -8
- three/src/nodes/accessors/UserDataNode.d.ts +1 -1
- three/src/nodes/accessors/VelocityNode.d.ts +3 -3
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
- three/src/nodes/code/FunctionCallNode.d.ts +0 -1
- three/src/nodes/code/FunctionNode.d.ts +7 -3
- three/src/nodes/core/ArrayNode.d.ts +2 -3
- three/src/nodes/core/AttributeNode.d.ts +12 -6
- three/src/nodes/core/BypassNode.d.ts +2 -3
- three/src/nodes/core/ConstNode.d.ts +10 -3
- three/src/nodes/core/ContextNode.d.ts +23 -28
- three/src/nodes/core/IndexNode.d.ts +1 -1
- three/src/nodes/core/InputNode.d.ts +12 -4
- three/src/nodes/core/InspectorNode.d.ts +2 -3
- three/src/nodes/core/IsolateNode.d.ts +2 -7
- three/src/nodes/core/MRTNode.d.ts +7 -0
- three/src/nodes/core/Node.d.ts +258 -39
- three/src/nodes/core/NodeAttribute.d.ts +30 -5
- three/src/nodes/core/NodeBuilder.d.ts +5 -3
- three/src/nodes/core/NodeCache.d.ts +24 -48
- three/src/nodes/core/NodeError.d.ts +9 -0
- three/src/nodes/core/NodeParser.d.ts +2 -0
- three/src/nodes/core/NodeUniform.d.ts +33 -9
- three/src/nodes/core/NodeVar.d.ts +33 -5
- three/src/nodes/core/NodeVarying.d.ts +32 -4
- three/src/nodes/core/ParameterNode.d.ts +11 -4
- three/src/nodes/core/PropertyNode.d.ts +45 -35
- three/src/nodes/core/StackTrace.d.ts +9 -0
- three/src/nodes/core/StructType.d.ts +3 -1
- three/src/nodes/core/StructTypeNode.d.ts +19 -5
- three/src/nodes/core/TempNode.d.ts +9 -3
- three/src/nodes/core/UniformNode.d.ts +53 -15
- three/src/nodes/core/VarNode.d.ts +15 -14
- three/src/nodes/core/VaryingNode.d.ts +14 -19
- three/src/nodes/core/constants.d.ts +9 -4
- three/src/nodes/display/BlendModes.d.ts +7 -27
- three/src/nodes/display/ColorAdjustment.d.ts +8 -9
- three/src/nodes/display/ColorSpaceNode.d.ts +2 -8
- three/src/nodes/display/FrontFacingNode.d.ts +1 -1
- three/src/nodes/display/PassNode.d.ts +9 -5
- three/src/nodes/display/RenderOutputNode.d.ts +3 -7
- three/src/nodes/display/ScreenNode.d.ts +25 -17
- three/src/nodes/display/ToneMappingNode.d.ts +3 -7
- three/src/nodes/display/ViewportDepthNode.d.ts +11 -7
- three/src/nodes/display/ViewportTextureNode.d.ts +2 -0
- three/src/nodes/fog/Fog.d.ts +5 -3
- three/src/nodes/geometry/RangeNode.d.ts +51 -9
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +2 -0
- three/src/nodes/gpgpu/BarrierNode.d.ts +2 -0
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -7
- three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/src/nodes/lighting/HemisphereLightNode.d.ts +3 -2
- three/src/nodes/lighting/LightProbeNode.d.ts +1 -1
- three/src/nodes/lighting/LightUtils.d.ts +1 -1
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -1
- three/src/nodes/lighting/SpotLightNode.d.ts +0 -6
- three/src/nodes/materialx/MaterialXNodes.d.ts +11 -11
- three/src/nodes/math/BitcountNode.d.ts +2 -0
- three/src/nodes/math/ConditionalNode.d.ts +43 -22
- three/src/nodes/math/Hash.d.ts +1 -1
- three/src/nodes/math/MathNode.d.ts +603 -267
- three/src/nodes/math/MathUtils.d.ts +9 -5
- three/src/nodes/math/OperatorNode.d.ts +490 -227
- three/src/nodes/math/TriNoise3D.d.ts +3 -3
- three/src/nodes/pmrem/PMREMNode.d.ts +1 -1
- three/src/nodes/procedural/Checker.d.ts +1 -1
- three/src/nodes/tsl/TSLCore.d.ts +1683 -224
- three/src/nodes/utils/ArrayElementNode.d.ts +9 -4
- three/src/nodes/utils/DebugNode.d.ts +2 -5
- three/src/nodes/utils/Discard.d.ts +2 -3
- three/src/nodes/utils/FlipNode.d.ts +11 -0
- three/src/nodes/utils/LoopNode.d.ts +17 -13
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/src/nodes/utils/Oscillators.d.ts +4 -4
- three/src/nodes/utils/Packing.d.ts +3 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +5 -5
- three/src/nodes/utils/RemapNode.d.ts +33 -39
- three/src/nodes/utils/RotateNode.d.ts +17 -8
- three/src/nodes/utils/SplitNode.d.ts +1 -2
- three/src/nodes/utils/SpriteSheetUV.d.ts +7 -0
- three/src/nodes/utils/StorageArrayElementNode.d.ts +18 -9
- three/src/nodes/utils/Timer.d.ts +4 -4
- three/src/nodes/utils/TriplanarTextures.d.ts +2 -2
- three/src/nodes/utils/UVUtils.d.ts +6 -4
- three/src/objects/BatchedMesh.d.ts +6 -4
- three/src/objects/InstancedMesh.d.ts +32 -24
- three/src/renderers/WebGLRenderer.d.ts +4 -93
- three/src/renderers/common/Animation.d.ts +46 -9
- three/src/renderers/common/Attributes.d.ts +11 -13
- three/src/renderers/common/Backend.d.ts +0 -2
- three/src/renderers/common/Background.d.ts +17 -15
- three/src/renderers/common/BindGroup.d.ts +27 -13
- three/src/renderers/common/Binding.d.ts +15 -3
- three/src/renderers/common/Bindings.d.ts +41 -17
- three/src/renderers/common/BlendMode.d.ts +22 -0
- three/src/renderers/common/Buffer.d.ts +35 -11
- three/src/renderers/common/BufferUtils.d.ts +3 -4
- three/src/renderers/common/BundleGroup.d.ts +16 -6
- three/src/renderers/common/CanvasTarget.d.ts +76 -13
- three/src/renderers/common/ChainMap.d.ts +12 -9
- three/src/renderers/common/ClippingContext.d.ts +61 -10
- three/src/renderers/common/Color4.d.ts +10 -5
- three/src/renderers/common/ComputePipeline.d.ts +16 -2
- three/src/renderers/common/Constants.d.ts +5 -3
- three/src/renderers/common/CubeRenderTarget.d.ts +24 -7
- three/src/renderers/common/DataMap.d.ts +10 -18
- three/src/renderers/common/Geometries.d.ts +39 -20
- three/src/renderers/common/Info.d.ts +62 -9
- three/src/renderers/common/InspectorBase.d.ts +19 -7
- three/src/renderers/common/Lighting.d.ts +2 -6
- three/src/renderers/common/Pipeline.d.ts +14 -2
- three/src/renderers/common/Pipelines.d.ts +58 -60
- three/src/renderers/common/PostProcessing.d.ts +14 -17
- three/src/renderers/common/ProgrammableStage.d.ts +48 -8
- three/src/renderers/common/RenderBundle.d.ts +4 -2
- three/src/renderers/common/RenderBundles.d.ts +6 -3
- three/src/renderers/common/RenderContext.d.ts +175 -7
- three/src/renderers/common/RenderContexts.d.ts +20 -25
- three/src/renderers/common/RenderList.d.ts +77 -11
- three/src/renderers/common/RenderLists.d.ts +16 -4
- three/src/renderers/common/RenderObject.d.ts +223 -47
- three/src/renderers/common/RenderObjectPipeline.d.ts +33 -0
- three/src/renderers/common/RenderObjects.d.ts +55 -22
- three/src/renderers/common/RenderPipeline.d.ts +20 -17
- three/src/renderers/common/Renderer.d.ts +625 -207
- three/src/renderers/common/Textures.d.ts +24 -46
- three/src/renderers/common/TimestampQueryPool.d.ts +62 -8
- three/src/renderers/common/Uniform.d.ts +143 -58
- three/src/renderers/common/UniformBuffer.d.ts +7 -5
- three/src/renderers/common/UniformsGroup.d.ts +50 -35
- three/src/renderers/common/XRManager.d.ts +321 -83
- three/src/renderers/common/XRRenderTarget.d.ts +49 -6
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +75 -15
- three/src/renderers/common/nodes/NodeLibrary.d.ts +25 -5
- three/src/renderers/common/nodes/{Nodes.d.ts → NodeManager.d.ts} +54 -73
- three/src/renderers/common/nodes/NodeUniform.d.ts +60 -70
- three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +23 -4
- three/src/renderers/shaders/UniformsLib.d.ts +0 -3
- three/src/renderers/webgl/WebGLAttributes.d.ts +9 -7
- three/src/renderers/webgl/WebGLEnvironments.d.ts +8 -0
- three/src/renderers/webgl/WebGLExtensions.d.ts +1 -1
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +9 -5
- three/src/renderers/webgl/WebGLLights.d.ts +19 -18
- three/src/renderers/webgl/WebGLObjects.d.ts +15 -2
- three/src/renderers/webgl/WebGLProgram.d.ts +2 -10
- three/src/renderers/webgl/WebGLPrograms.d.ts +2 -2
- three/src/renderers/webgl/WebGLRenderLists.d.ts +1 -3
- three/src/renderers/webgl/WebGLShadowMap.d.ts +0 -5
- three/src/renderers/webgl/WebGLState.d.ts +305 -28
- three/src/renderers/webgl/WebGLTextures.d.ts +10 -9
- three/src/renderers/webgl/WebGLUniforms.d.ts +0 -7
- three/src/renderers/webgpu/WebGPUBackend.d.ts +0 -1
- three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +2 -4
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +15 -4
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +1 -1
- three/src/scenes/Fog.d.ts +31 -37
- three/src/scenes/FogExp2.d.ts +26 -31
- three/src/scenes/Scene.d.ts +51 -65
- three/src/textures/CompressedArrayTexture.d.ts +1 -1
- three/src/textures/DataArrayTexture.d.ts +1 -1
- three/src/utils.d.ts +5 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -18
- three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +0 -13
- three/examples/jsm/shaders/GodRaysShader.d.ts +0 -44
- three/src/nodes/accessors/SceneNode.d.ts +0 -21
- three/src/nodes/code/ScriptableNode.d.ts +0 -21
- three/src/nodes/code/ScriptableValueNode.d.ts +0 -9
- three/src/nodes/display/PosterizeNode.d.ts +0 -13
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +0 -15
- three/src/renderers/webgl/WebGLCubeMaps.d.ts +0 -8
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +0 -9
|
@@ -1,14 +1,53 @@
|
|
|
1
1
|
import { Object3D } from "../../core/Object3D.js";
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* This renderer module provides a series of statistical information
|
|
4
5
|
* about the GPU memory and the rendering process. Useful for debugging
|
|
5
6
|
* and monitoring.
|
|
6
7
|
*/
|
|
7
8
|
declare class Info {
|
|
9
|
+
/**
|
|
10
|
+
* Whether frame related metrics should automatically
|
|
11
|
+
* be resetted or not. This property should be set to `false`
|
|
12
|
+
* by apps which manage their own animation loop. They must
|
|
13
|
+
* then call `renderer.info.reset()` once per frame manually.
|
|
14
|
+
*
|
|
15
|
+
* @type {boolean}
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
8
18
|
autoReset: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
19
|
+
/**
|
|
20
|
+
* The current frame ID. This ID is managed
|
|
21
|
+
* by `NodeFrame`.
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @readonly
|
|
25
|
+
* @default 0
|
|
26
|
+
*/
|
|
27
|
+
readonly frame: number;
|
|
28
|
+
/**
|
|
29
|
+
* The number of render calls since the
|
|
30
|
+
* app has been started.
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @readonly
|
|
34
|
+
* @default 0
|
|
35
|
+
*/
|
|
36
|
+
readonly calls: number;
|
|
37
|
+
/**
|
|
38
|
+
* Render related metrics.
|
|
39
|
+
*
|
|
40
|
+
* @type {Object}
|
|
41
|
+
* @readonly
|
|
42
|
+
* @property {number} calls - The number of render calls since the app has been started.
|
|
43
|
+
* @property {number} frameCalls - The number of render calls of the current frame.
|
|
44
|
+
* @property {number} drawCalls - The number of draw calls of the current frame.
|
|
45
|
+
* @property {number} triangles - The number of rendered triangle primitives of the current frame.
|
|
46
|
+
* @property {number} points - The number of rendered point primitives of the current frame.
|
|
47
|
+
* @property {number} lines - The number of rendered line primitives of the current frame.
|
|
48
|
+
* @property {number} timestamp - The timestamp of the frame.
|
|
49
|
+
*/
|
|
50
|
+
readonly render: {
|
|
12
51
|
calls: number;
|
|
13
52
|
frameCalls: number;
|
|
14
53
|
drawCalls: number;
|
|
@@ -17,19 +56,32 @@ declare class Info {
|
|
|
17
56
|
lines: number;
|
|
18
57
|
timestamp: number;
|
|
19
58
|
};
|
|
20
|
-
|
|
59
|
+
/**
|
|
60
|
+
* Compute related metrics.
|
|
61
|
+
*
|
|
62
|
+
* @type {Object}
|
|
63
|
+
* @readonly
|
|
64
|
+
* @property {number} calls - The number of compute calls since the app has been started.
|
|
65
|
+
* @property {number} frameCalls - The number of compute calls of the current frame.
|
|
66
|
+
* @property {number} timestamp - The timestamp of the frame when using `renderer.computeAsync()`.
|
|
67
|
+
*/
|
|
68
|
+
readonly compute: {
|
|
21
69
|
calls: number;
|
|
22
70
|
frameCalls: number;
|
|
23
71
|
timestamp: number;
|
|
24
72
|
};
|
|
25
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Memory related metrics.
|
|
75
|
+
*
|
|
76
|
+
* @type {Object}
|
|
77
|
+
* @readonly
|
|
78
|
+
* @property {number} geometries - The number of active geometries.
|
|
79
|
+
* @property {number} frameCalls - The number of active textures.
|
|
80
|
+
*/
|
|
81
|
+
readonly memory: {
|
|
26
82
|
geometries: number;
|
|
27
83
|
textures: number;
|
|
28
84
|
};
|
|
29
|
-
/**
|
|
30
|
-
* Constructs a new info component.
|
|
31
|
-
*/
|
|
32
|
-
constructor();
|
|
33
85
|
/**
|
|
34
86
|
* This method should be executed per draw call and updates the corresponding metrics.
|
|
35
87
|
*
|
|
@@ -47,4 +99,5 @@ declare class Info {
|
|
|
47
99
|
*/
|
|
48
100
|
dispose(): void;
|
|
49
101
|
}
|
|
102
|
+
|
|
50
103
|
export default Info;
|
|
@@ -1,39 +1,50 @@
|
|
|
1
1
|
import { Camera } from "../../cameras/Camera.js";
|
|
2
2
|
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
3
|
+
import Node from "../../nodes/core/Node.js";
|
|
4
|
+
import NodeFrame from "../../nodes/core/NodeFrame.js";
|
|
3
5
|
import ComputeNode from "../../nodes/gpgpu/ComputeNode.js";
|
|
4
6
|
import { Scene } from "../../scenes/Scene.js";
|
|
5
7
|
import { Texture } from "../../textures/Texture.js";
|
|
6
8
|
import Renderer from "./Renderer.js";
|
|
9
|
+
|
|
7
10
|
/**
|
|
8
11
|
* InspectorBase is the base class for all inspectors.
|
|
9
12
|
*
|
|
10
13
|
* @class InspectorBase
|
|
11
14
|
*/
|
|
12
15
|
declare class InspectorBase {
|
|
13
|
-
_renderer: Renderer | null;
|
|
14
16
|
/**
|
|
15
|
-
*
|
|
17
|
+
* The renderer associated with this inspector.
|
|
18
|
+
*
|
|
19
|
+
* @type {WebGLRenderer}
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
private _renderer;
|
|
23
|
+
/**
|
|
24
|
+
* The current frame being processed.
|
|
25
|
+
*
|
|
26
|
+
* @type {Object}
|
|
16
27
|
*/
|
|
17
|
-
|
|
28
|
+
currentFrame: unknown;
|
|
18
29
|
/**
|
|
19
30
|
* Returns the node frame for the current renderer.
|
|
20
31
|
*
|
|
21
32
|
* @return {Object} The node frame.
|
|
22
33
|
*/
|
|
23
|
-
get nodeFrame():
|
|
34
|
+
get nodeFrame(): NodeFrame;
|
|
24
35
|
/**
|
|
25
36
|
* Sets the renderer for this inspector.
|
|
26
37
|
*
|
|
27
38
|
* @param {WebGLRenderer} renderer - The renderer to associate with this inspector.
|
|
28
39
|
* @return {InspectorBase} This inspector instance.
|
|
29
40
|
*/
|
|
30
|
-
setRenderer(renderer: Renderer
|
|
41
|
+
setRenderer(renderer: Renderer): InspectorBase;
|
|
31
42
|
/**
|
|
32
43
|
* Returns the renderer associated with this inspector.
|
|
33
44
|
*
|
|
34
45
|
* @return {WebGLRenderer} The associated renderer.
|
|
35
46
|
*/
|
|
36
|
-
getRenderer(): Renderer
|
|
47
|
+
getRenderer(): Renderer;
|
|
37
48
|
/**
|
|
38
49
|
* Initializes the inspector.
|
|
39
50
|
*/
|
|
@@ -51,7 +62,7 @@ declare class InspectorBase {
|
|
|
51
62
|
*
|
|
52
63
|
* @param {Node} node - The node to inspect.
|
|
53
64
|
*/
|
|
54
|
-
inspect(): void;
|
|
65
|
+
inspect(node: Node): void;
|
|
55
66
|
/**
|
|
56
67
|
* When a compute operation is performed.
|
|
57
68
|
*
|
|
@@ -102,4 +113,5 @@ declare class InspectorBase {
|
|
|
102
113
|
*/
|
|
103
114
|
copyFramebufferToTexture(framebufferTexture: Texture): void;
|
|
104
115
|
}
|
|
116
|
+
|
|
105
117
|
export default InspectorBase;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { Camera } from "../../cameras/Camera.js";
|
|
2
1
|
import { Object3D } from "../../core/Object3D.js";
|
|
3
2
|
import { Light } from "../../lights/Light.js";
|
|
4
3
|
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
5
|
-
import ChainMap from "./ChainMap.js";
|
|
6
|
-
|
|
7
|
-
declare class Lighting extends ChainMap<[Object3D, Camera], LightsNode> {
|
|
8
|
-
constructor();
|
|
9
4
|
|
|
5
|
+
declare class Lighting {
|
|
10
6
|
createNode(lights?: Light[]): LightsNode;
|
|
11
7
|
|
|
12
|
-
getNode(scene: Object3D
|
|
8
|
+
getNode(scene: Object3D): LightsNode;
|
|
13
9
|
}
|
|
14
10
|
|
|
15
11
|
export default Lighting;
|
|
@@ -5,13 +5,25 @@
|
|
|
5
5
|
* @abstract
|
|
6
6
|
*/
|
|
7
7
|
declare class Pipeline {
|
|
8
|
-
cacheKey: string;
|
|
9
|
-
usedTimes: number;
|
|
10
8
|
/**
|
|
11
9
|
* Constructs a new pipeline.
|
|
12
10
|
*
|
|
13
11
|
* @param {string} cacheKey - The pipeline's cache key.
|
|
14
12
|
*/
|
|
15
13
|
constructor(cacheKey: string);
|
|
14
|
+
/**
|
|
15
|
+
* The pipeline's cache key.
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
*/
|
|
19
|
+
cacheKey: string;
|
|
20
|
+
/**
|
|
21
|
+
* How often the pipeline is currently in use.
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
|
+
usedTimes: number;
|
|
16
27
|
}
|
|
28
|
+
|
|
17
29
|
export default Pipeline;
|
|
@@ -1,53 +1,69 @@
|
|
|
1
1
|
import ComputeNode from "../../nodes/gpgpu/ComputeNode.js";
|
|
2
2
|
import Backend from "./Backend.js";
|
|
3
|
-
import
|
|
3
|
+
import BindGroup from "./BindGroup.js";
|
|
4
4
|
import Bindings from "./Bindings.js";
|
|
5
5
|
import ComputePipeline from "./ComputePipeline.js";
|
|
6
6
|
import DataMap from "./DataMap.js";
|
|
7
|
-
import
|
|
7
|
+
import NodeManager from "./nodes/NodeManager.js";
|
|
8
8
|
import Pipeline from "./Pipeline.js";
|
|
9
9
|
import ProgrammableStage from "./ProgrammableStage.js";
|
|
10
10
|
import RenderObject from "./RenderObject.js";
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
version: number;
|
|
14
|
-
pipeline: ComputePipeline;
|
|
15
|
-
}
|
|
16
|
-
interface RenderObjectData {
|
|
17
|
-
pipeline: RenderPipeline;
|
|
18
|
-
}
|
|
11
|
+
import RenderObjectPipeline from "./RenderObjectPipeline.js";
|
|
12
|
+
|
|
19
13
|
/**
|
|
20
14
|
* This renderer module manages the pipelines of the renderer.
|
|
21
15
|
*
|
|
22
16
|
* @private
|
|
23
17
|
* @augments DataMap
|
|
24
18
|
*/
|
|
25
|
-
declare class Pipelines extends DataMap
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
19
|
+
declare class Pipelines extends DataMap {
|
|
20
|
+
/**
|
|
21
|
+
* Constructs a new pipeline management component.
|
|
22
|
+
*
|
|
23
|
+
* @param {Backend} backend - The renderer's backend.
|
|
24
|
+
* @param {Nodes} nodes - Renderer component for managing nodes related logic.
|
|
25
|
+
*/
|
|
26
|
+
constructor(backend: Backend, nodes: NodeManager);
|
|
27
|
+
/**
|
|
28
|
+
* The renderer's backend.
|
|
29
|
+
*
|
|
30
|
+
* @type {Backend}
|
|
31
|
+
*/
|
|
35
32
|
backend: Backend;
|
|
36
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Renderer component for managing nodes related logic.
|
|
35
|
+
*
|
|
36
|
+
* @type {Nodes}
|
|
37
|
+
*/
|
|
38
|
+
nodes: NodeManager;
|
|
39
|
+
/**
|
|
40
|
+
* A references to the bindings management component.
|
|
41
|
+
* This reference will be set inside the `Bindings`
|
|
42
|
+
* constructor.
|
|
43
|
+
*
|
|
44
|
+
* @type {?Bindings}
|
|
45
|
+
* @default null
|
|
46
|
+
*/
|
|
37
47
|
bindings: Bindings | null;
|
|
48
|
+
/**
|
|
49
|
+
* Internal cache for maintaining pipelines.
|
|
50
|
+
* The key of the map is a cache key, the value the pipeline.
|
|
51
|
+
*
|
|
52
|
+
* @type {Map<string,Pipeline>}
|
|
53
|
+
*/
|
|
38
54
|
caches: Map<string, Pipeline>;
|
|
55
|
+
/**
|
|
56
|
+
* This dictionary maintains for each shader stage type (vertex,
|
|
57
|
+
* fragment and compute) the programmable stage objects which
|
|
58
|
+
* represent the actual shader code.
|
|
59
|
+
*
|
|
60
|
+
* @type {Object<string,Map<string, ProgrammableStage>>}
|
|
61
|
+
*/
|
|
39
62
|
programs: {
|
|
40
63
|
vertex: Map<string, ProgrammableStage>;
|
|
41
64
|
fragment: Map<string, ProgrammableStage>;
|
|
42
65
|
compute: Map<string, ProgrammableStage>;
|
|
43
66
|
};
|
|
44
|
-
/**
|
|
45
|
-
* Constructs a new pipeline management component.
|
|
46
|
-
*
|
|
47
|
-
* @param {Backend} backend - The renderer's backend.
|
|
48
|
-
* @param {Nodes} nodes - Renderer component for managing nodes related logic.
|
|
49
|
-
*/
|
|
50
|
-
constructor(backend: Backend, nodes: Nodes);
|
|
51
67
|
/**
|
|
52
68
|
* Returns a compute pipeline for the given compute node.
|
|
53
69
|
*
|
|
@@ -55,26 +71,22 @@ declare class Pipelines extends DataMap<{
|
|
|
55
71
|
* @param {Array<BindGroup>} bindings - The bindings.
|
|
56
72
|
* @return {ComputePipeline} The compute pipeline.
|
|
57
73
|
*/
|
|
58
|
-
getForCompute(computeNode: ComputeNode, bindings:
|
|
74
|
+
getForCompute(computeNode: ComputeNode, bindings: BindGroup[]): ComputePipeline;
|
|
59
75
|
/**
|
|
60
76
|
* Returns a render pipeline for the given render object.
|
|
61
77
|
*
|
|
62
78
|
* @param {RenderObject} renderObject - The render object.
|
|
63
79
|
* @param {?Array<Promise>} [promises=null] - An array of compilation promises which is only relevant in context of `Renderer.compileAsync()`.
|
|
64
|
-
* @return {
|
|
80
|
+
* @return {RenderObjectPipeline} The render pipeline.
|
|
65
81
|
*/
|
|
66
|
-
getForRender(renderObject: RenderObject, promises?: Promise<void>[] | null):
|
|
82
|
+
getForRender(renderObject: RenderObject, promises?: Promise<void>[] | null): RenderObjectPipeline;
|
|
67
83
|
/**
|
|
68
84
|
* Deletes the pipeline for the given render object.
|
|
69
85
|
*
|
|
70
86
|
* @param {RenderObject} object - The render object.
|
|
71
87
|
* @return {?Object} The deleted dictionary.
|
|
72
88
|
*/
|
|
73
|
-
delete(object:
|
|
74
|
-
/**
|
|
75
|
-
* Frees internal resources.
|
|
76
|
-
*/
|
|
77
|
-
dispose(): void;
|
|
89
|
+
delete(object: RenderObject): unknown;
|
|
78
90
|
/**
|
|
79
91
|
* Updates the pipeline for the given render object.
|
|
80
92
|
*
|
|
@@ -91,12 +103,7 @@ declare class Pipelines extends DataMap<{
|
|
|
91
103
|
* @param {Array<BindGroup>} bindings - The bindings.
|
|
92
104
|
* @return {ComputePipeline} The compute pipeline.
|
|
93
105
|
*/
|
|
94
|
-
_getComputePipeline
|
|
95
|
-
computeNode: ComputeNode,
|
|
96
|
-
stageCompute: ProgrammableStage,
|
|
97
|
-
cacheKey: string,
|
|
98
|
-
bindings: Binding[],
|
|
99
|
-
): ComputePipeline;
|
|
106
|
+
private _getComputePipeline;
|
|
100
107
|
/**
|
|
101
108
|
* Returns a render pipeline for the given parameters.
|
|
102
109
|
*
|
|
@@ -106,15 +113,9 @@ declare class Pipelines extends DataMap<{
|
|
|
106
113
|
* @param {ProgrammableStage} stageFragment - The programmable stage representing the fragment shader.
|
|
107
114
|
* @param {string} cacheKey - The cache key.
|
|
108
115
|
* @param {?Array<Promise>} promises - An array of compilation promises which is only relevant in context of `Renderer.compileAsync()`.
|
|
109
|
-
* @return {
|
|
116
|
+
* @return {RenderObjectPipeline} The render pipeline.
|
|
110
117
|
*/
|
|
111
|
-
_getRenderPipeline
|
|
112
|
-
renderObject: RenderObject,
|
|
113
|
-
stageVertex: ProgrammableStage,
|
|
114
|
-
stageFragment: ProgrammableStage,
|
|
115
|
-
cacheKey: string,
|
|
116
|
-
promises: Promise<void>[] | null,
|
|
117
|
-
): RenderPipeline;
|
|
118
|
+
private _getRenderPipeline;
|
|
118
119
|
/**
|
|
119
120
|
* Computes a cache key representing a compute pipeline.
|
|
120
121
|
*
|
|
@@ -123,7 +124,7 @@ declare class Pipelines extends DataMap<{
|
|
|
123
124
|
* @param {ProgrammableStage} stageCompute - The programmable stage representing the compute shader.
|
|
124
125
|
* @return {string} The cache key.
|
|
125
126
|
*/
|
|
126
|
-
_getComputeCacheKey
|
|
127
|
+
private _getComputeCacheKey;
|
|
127
128
|
/**
|
|
128
129
|
* Computes a cache key representing a render pipeline.
|
|
129
130
|
*
|
|
@@ -133,25 +134,21 @@ declare class Pipelines extends DataMap<{
|
|
|
133
134
|
* @param {ProgrammableStage} stageFragment - The programmable stage representing the fragment shader.
|
|
134
135
|
* @return {string} The cache key.
|
|
135
136
|
*/
|
|
136
|
-
_getRenderCacheKey
|
|
137
|
-
renderObject: RenderObject,
|
|
138
|
-
stageVertex: ProgrammableStage,
|
|
139
|
-
stageFragment: ProgrammableStage,
|
|
140
|
-
): string;
|
|
137
|
+
private _getRenderCacheKey;
|
|
141
138
|
/**
|
|
142
139
|
* Releases the given pipeline.
|
|
143
140
|
*
|
|
144
141
|
* @private
|
|
145
142
|
* @param {Pipeline} pipeline - The pipeline to release.
|
|
146
143
|
*/
|
|
147
|
-
_releasePipeline
|
|
144
|
+
private _releasePipeline;
|
|
148
145
|
/**
|
|
149
146
|
* Releases the shader program.
|
|
150
147
|
*
|
|
151
148
|
* @private
|
|
152
149
|
* @param {Object} program - The shader program to release.
|
|
153
150
|
*/
|
|
154
|
-
_releaseProgram
|
|
151
|
+
private _releaseProgram;
|
|
155
152
|
/**
|
|
156
153
|
* Returns `true` if the compute pipeline for the given compute node requires an update.
|
|
157
154
|
*
|
|
@@ -159,7 +156,7 @@ declare class Pipelines extends DataMap<{
|
|
|
159
156
|
* @param {Node} computeNode - The compute node.
|
|
160
157
|
* @return {boolean} Whether the compute pipeline for the given compute node requires an update or not.
|
|
161
158
|
*/
|
|
162
|
-
_needsComputeUpdate
|
|
159
|
+
private _needsComputeUpdate;
|
|
163
160
|
/**
|
|
164
161
|
* Returns `true` if the render pipeline for the given render object requires an update.
|
|
165
162
|
*
|
|
@@ -167,6 +164,7 @@ declare class Pipelines extends DataMap<{
|
|
|
167
164
|
* @param {RenderObject} renderObject - The render object.
|
|
168
165
|
* @return {boolean} Whether the render object for the given render object requires an update or not.
|
|
169
166
|
*/
|
|
170
|
-
_needsRenderUpdate
|
|
167
|
+
private _needsRenderUpdate;
|
|
171
168
|
}
|
|
169
|
+
|
|
172
170
|
export default Pipelines;
|
|
@@ -1,24 +1,21 @@
|
|
|
1
1
|
import { Node } from "../../nodes/Nodes.js";
|
|
2
2
|
import Renderer from "./Renderer.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
constructor(renderer: Renderer, outputNode?: Node);
|
|
13
|
-
|
|
14
|
-
render(): void;
|
|
15
|
-
|
|
16
|
-
dispose(): void;
|
|
17
|
-
|
|
3
|
+
import RenderPipeline from "./RenderPipeline.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use {@link RenderPipeline} instead. PostProcessing has been renamed to RenderPipeline.
|
|
7
|
+
*
|
|
8
|
+
* This class is a wrapper for backward compatibility and will be removed in a future version.
|
|
9
|
+
*/
|
|
10
|
+
declare class PostProcessing extends RenderPipeline {
|
|
18
11
|
/**
|
|
19
|
-
*
|
|
12
|
+
* Constructs a new post processing management module.
|
|
13
|
+
*
|
|
14
|
+
* @param {Renderer} renderer - A reference to the renderer.
|
|
15
|
+
* @param {Node<vec4>} outputNode - An optional output node.
|
|
16
|
+
* @deprecated since r183. Use {@link RenderPipeline} instead.
|
|
20
17
|
*/
|
|
21
|
-
|
|
18
|
+
constructor(renderer: Renderer, outputNode?: Node);
|
|
22
19
|
}
|
|
23
20
|
|
|
24
21
|
export default PostProcessing;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import NodeAttribute from "../../nodes/core/NodeAttribute.js";
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Class for representing programmable stages which are vertex,
|
|
4
5
|
* fragment or compute shaders. Unlike fixed-function states (like blending),
|
|
@@ -7,12 +8,6 @@ import NodeAttribute from "../../nodes/core/NodeAttribute.js";
|
|
|
7
8
|
* @private
|
|
8
9
|
*/
|
|
9
10
|
declare class ProgrammableStage {
|
|
10
|
-
id: number;
|
|
11
|
-
code: string;
|
|
12
|
-
stage: "compute" | "vertex" | "fragment";
|
|
13
|
-
name: string;
|
|
14
|
-
attributes: NodeAttribute[] | null;
|
|
15
|
-
usedTimes: number;
|
|
16
11
|
/**
|
|
17
12
|
* Constructs a new programmable stage.
|
|
18
13
|
*
|
|
@@ -24,10 +19,55 @@ declare class ProgrammableStage {
|
|
|
24
19
|
*/
|
|
25
20
|
constructor(
|
|
26
21
|
code: string,
|
|
27
|
-
stage: "
|
|
22
|
+
stage: "vertex" | "fragment" | "compute",
|
|
28
23
|
name: string,
|
|
29
|
-
transforms?: null,
|
|
24
|
+
transforms?: unknown[] | null,
|
|
30
25
|
attributes?: NodeAttribute[] | null,
|
|
31
26
|
);
|
|
27
|
+
/**
|
|
28
|
+
* The id of the programmable stage.
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
*/
|
|
32
|
+
id: number;
|
|
33
|
+
/**
|
|
34
|
+
* The shader code.
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
*/
|
|
38
|
+
code: string;
|
|
39
|
+
/**
|
|
40
|
+
* The type of stage.
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
*/
|
|
44
|
+
stage: "vertex" | "fragment" | "compute";
|
|
45
|
+
/**
|
|
46
|
+
* The name of the stage.
|
|
47
|
+
* This is used for debugging purposes.
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* The transforms (only relevant for compute stages with WebGL 2 which uses Transform Feedback).
|
|
54
|
+
*
|
|
55
|
+
* @type {?Array<Object>}
|
|
56
|
+
*/
|
|
57
|
+
transforms: unknown[] | null;
|
|
58
|
+
/**
|
|
59
|
+
* The attributes (only relevant for compute stages with WebGL 2 which uses Transform Feedback).
|
|
60
|
+
*
|
|
61
|
+
* @type {?Array<Object>}
|
|
62
|
+
*/
|
|
63
|
+
attributes: NodeAttribute[] | null;
|
|
64
|
+
/**
|
|
65
|
+
* How often the programmable stage is currently in use.
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @default 0
|
|
69
|
+
*/
|
|
70
|
+
usedTimes: number;
|
|
32
71
|
}
|
|
72
|
+
|
|
33
73
|
export default ProgrammableStage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Camera } from "../../cameras/Camera.js";
|
|
2
2
|
import BundleGroup from "./BundleGroup.js";
|
|
3
|
+
|
|
3
4
|
/**
|
|
4
5
|
* This module is used to represent render bundles inside the renderer
|
|
5
6
|
* for further processing.
|
|
@@ -7,8 +8,6 @@ import BundleGroup from "./BundleGroup.js";
|
|
|
7
8
|
* @private
|
|
8
9
|
*/
|
|
9
10
|
declare class RenderBundle {
|
|
10
|
-
bundleGroup: BundleGroup;
|
|
11
|
-
camera: Camera;
|
|
12
11
|
/**
|
|
13
12
|
* Constructs a new bundle group.
|
|
14
13
|
*
|
|
@@ -16,5 +15,8 @@ declare class RenderBundle {
|
|
|
16
15
|
* @param {Camera} camera - The camera the bundle group is rendered with.
|
|
17
16
|
*/
|
|
18
17
|
constructor(bundleGroup: BundleGroup, camera: Camera);
|
|
18
|
+
bundleGroup: BundleGroup;
|
|
19
|
+
camera: Camera;
|
|
19
20
|
}
|
|
21
|
+
|
|
20
22
|
export default RenderBundle;
|
|
@@ -2,17 +2,19 @@ import { Camera } from "../../cameras/Camera.js";
|
|
|
2
2
|
import BundleGroup from "./BundleGroup.js";
|
|
3
3
|
import ChainMap from "./ChainMap.js";
|
|
4
4
|
import RenderBundle from "./RenderBundle.js";
|
|
5
|
+
|
|
5
6
|
/**
|
|
6
7
|
* This renderer module manages render bundles.
|
|
7
8
|
*
|
|
8
9
|
* @private
|
|
9
10
|
*/
|
|
10
11
|
declare class RenderBundles {
|
|
11
|
-
bundles: ChainMap<readonly [BundleGroup, Camera], RenderBundle>;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* A chain map for maintaining the render bundles.
|
|
14
|
+
*
|
|
15
|
+
* @type {ChainMap}
|
|
14
16
|
*/
|
|
15
|
-
|
|
17
|
+
bundles: ChainMap;
|
|
16
18
|
/**
|
|
17
19
|
* Returns a render bundle for the given bundle group and camera.
|
|
18
20
|
*
|
|
@@ -26,4 +28,5 @@ declare class RenderBundles {
|
|
|
26
28
|
*/
|
|
27
29
|
dispose(): void;
|
|
28
30
|
}
|
|
31
|
+
|
|
29
32
|
export default RenderBundles;
|