@types/three 0.184.0 → 0.185.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.
- three/README.md +1 -1
- three/examples/jsm/Addons.d.ts +2 -0
- three/examples/jsm/controls/FirstPersonControls.d.ts +9 -0
- three/examples/jsm/controls/OrbitControls.d.ts +2 -2
- three/examples/jsm/controls/TransformControls.d.ts +32 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +73 -13
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +2 -2
- three/examples/jsm/exporters/PLYExporter.d.ts +5 -4
- three/examples/jsm/exporters/USDZExporter.d.ts +5 -1
- three/examples/jsm/generators/CityGenerator.d.ts +75 -0
- three/examples/jsm/generators/ForestGenerator.d.ts +79 -0
- three/examples/jsm/generators/TerrainGenerator.d.ts +67 -0
- three/examples/jsm/generators/TreeGenerator.d.ts +97 -0
- three/examples/jsm/generators/city/SidewalkGenerator.d.ts +40 -0
- three/examples/jsm/generators/city/SkyscraperGenerator.d.ts +83 -0
- three/examples/jsm/geometries/LoftGeometry.d.ts +83 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +5 -2
- three/examples/jsm/lighting/ClusteredLighting.d.ts +45 -0
- three/examples/jsm/lighting/LightProbeGrid.d.ts +131 -13
- three/examples/jsm/loaders/DRACOLoader.d.ts +20 -6
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -12
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRLoader.d.ts +2 -12
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
- three/examples/jsm/loaders/LWOLoader.d.ts +6 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +1 -7
- three/examples/jsm/loaders/SVGLoader.d.ts +9 -6
- three/examples/jsm/loaders/TGALoader.d.ts +2 -2
- three/examples/jsm/loaders/TIFFLoader.d.ts +2 -11
- three/examples/jsm/loaders/USDLoader.d.ts +6 -1
- three/examples/jsm/misc/TileCreasedNormalsPlugin.d.ts +49 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +2 -2
- three/examples/jsm/objects/Reflector.d.ts +38 -5
- three/examples/jsm/objects/SkyMesh.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
- three/examples/jsm/tsl/display/BloomNode.d.ts +23 -6
- three/examples/jsm/tsl/display/ImportanceSampledEnvironment.d.ts +84 -0
- three/examples/jsm/tsl/display/RecurrentDenoiseNode.d.ts +89 -0
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +0 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +4 -1
- three/examples/jsm/tsl/display/SSRNode.d.ts +303 -30
- three/examples/jsm/tsl/display/TRAANode.d.ts +1 -1
- three/examples/jsm/tsl/display/TemporalReprojectNode.d.ts +64 -0
- three/examples/jsm/tsl/lighting/ClusteredLightsNode.d.ts +54 -0
- three/examples/jsm/tsl/math/curlNoise.d.ts +38 -0
- three/examples/jsm/tsl/utils/GroundedSkybox.d.ts +17 -0
- three/examples/jsm/tsl/utils/RNoise.d.ts +12 -0
- three/examples/jsm/tsl/utils/SpecularHelpers.d.ts +20 -0
- three/examples/jsm/webxr/WebGLXRFallback.d.ts +14 -0
- three/package.json +3 -3
- three/src/Three.TSL.d.ts +10 -3
- three/src/Three.WebGPU.Nodes.d.ts +2 -2
- three/src/Three.WebGPU.d.ts +5 -3
- three/src/animation/AnimationClip.d.ts +0 -10
- three/src/cameras/Camera.d.ts +1 -1
- three/src/core/InterleavedBuffer.d.ts +1 -1
- three/src/core/Object3D.d.ts +8 -4
- three/src/core/RenderTarget.d.ts +11 -0
- three/src/core/Timer.d.ts +1 -1
- three/src/core/UniformsGroup.d.ts +1 -1
- three/src/extras/Controls.d.ts +6 -5
- three/src/extras/core/ShapePath.d.ts +61 -65
- three/src/loaders/DataTextureLoader.d.ts +37 -3
- three/src/loaders/MaterialLoader.d.ts +8 -0
- three/src/materials/LineBasicMaterial.d.ts +5 -0
- three/src/materials/Material.d.ts +9 -1
- three/src/materials/MeshBasicMaterial.d.ts +30 -0
- three/src/materials/MeshDepthMaterial.d.ts +13 -0
- three/src/materials/MeshDistanceMaterial.d.ts +13 -0
- three/src/materials/MeshLambertMaterial.d.ts +50 -1
- three/src/materials/MeshMatcapMaterial.d.ts +31 -1
- three/src/materials/MeshNormalMaterial.d.ts +11 -1
- three/src/materials/MeshPhongMaterial.d.ts +50 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +50 -0
- three/src/materials/MeshStandardMaterial.d.ts +53 -1
- three/src/materials/MeshToonMaterial.d.ts +43 -1
- three/src/materials/PointsMaterial.d.ts +9 -0
- three/src/materials/ShaderMaterial.d.ts +2 -0
- three/src/materials/SpriteMaterial.d.ts +9 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +18 -13
- three/src/materials/nodes/NodeMaterial.d.ts +33 -13
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +0 -84
- three/src/math/Box2.d.ts +3 -3
- three/src/math/Box3.d.ts +255 -19
- three/src/math/Color.d.ts +10 -10
- three/src/math/FrustumArray.d.ts +75 -16
- three/src/math/Interpolant.d.ts +111 -8
- three/src/math/Matrix2.d.ts +1 -1
- three/src/math/Matrix3.d.ts +10 -1
- three/src/math/Matrix4.d.ts +329 -105
- three/src/math/Vector2.d.ts +1 -2
- three/src/math/Vector3.d.ts +3 -4
- three/src/math/Vector4.d.ts +1 -2
- three/src/math/interpolants/BezierInterpolant.d.ts +19 -3
- three/src/math/interpolants/CubicInterpolant.d.ts +18 -3
- three/src/math/interpolants/DiscreteInterpolant.d.ts +8 -3
- three/src/math/interpolants/LinearInterpolant.d.ts +7 -3
- three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +7 -3
- three/src/nodes/Nodes.d.ts +4 -13
- three/src/nodes/TSL.d.ts +7 -5
- three/src/nodes/accessors/Batch.d.ts +19 -0
- three/src/nodes/accessors/Instance.d.ts +34 -0
- three/src/nodes/accessors/MaterialNode.d.ts +86 -79
- three/src/nodes/accessors/Morph.d.ts +11 -0
- three/src/nodes/accessors/Skinning.d.ts +23 -0
- three/src/nodes/accessors/StorageBufferNode.d.ts +22 -23
- three/src/nodes/accessors/StorageTexture3DNode.d.ts +17 -0
- three/src/nodes/accessors/StorageTextureNode.d.ts +6 -4
- three/src/nodes/accessors/TextureNode.d.ts +15 -10
- three/src/nodes/core/ArrayNode.d.ts +16 -8
- three/src/nodes/core/ContextNode.d.ts +5 -6
- three/src/nodes/core/LightingModel.d.ts +2 -0
- three/src/nodes/core/Node.d.ts +50 -51
- three/src/nodes/core/NodeBuilder.d.ts +1 -133
- three/src/nodes/core/OverrideContextNode.d.ts +92 -0
- three/src/nodes/core/PropertyNode.d.ts +13 -2
- three/src/nodes/core/StructNode.d.ts +0 -2
- three/src/nodes/core/StructTypeNode.d.ts +5 -4
- three/src/nodes/core/UniformNode.d.ts +48 -9
- three/src/nodes/display/BlendModes.d.ts +72 -11
- three/src/nodes/display/FrontFacingNode.d.ts +62 -3
- three/src/nodes/display/PassNode.d.ts +0 -2
- three/src/nodes/display/PremultiplyAlphaFunctions.d.ts +37 -0
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +53 -45
- three/src/nodes/lighting/LightingContextNode.d.ts +9 -2
- three/src/nodes/lighting/LightsNode.d.ts +4 -4
- three/src/nodes/math/MathNode.d.ts +358 -304
- three/src/nodes/math/OperatorNode.d.ts +253 -82
- three/src/nodes/tsl/TSLCore.d.ts +16 -9
- three/src/nodes/utils/ArrayElementNode.d.ts +5 -4
- three/src/nodes/utils/EquirectUV.d.ts +31 -1
- three/src/nodes/utils/Packing.d.ts +50 -3
- three/src/nodes/utils/RTTNode.d.ts +7 -12
- three/src/nodes/utils/Remap.d.ts +216 -29
- three/src/nodes/utils/SampleNode.d.ts +18 -8
- three/src/objects/BatchedMesh.d.ts +1 -1
- three/src/objects/InstancedMesh.d.ts +0 -8
- three/src/objects/Skeleton.d.ts +0 -2
- three/src/renderers/common/Backend.d.ts +0 -3
- three/src/renderers/common/CanvasTarget.d.ts +0 -49
- three/src/renderers/common/ClippingContext.d.ts +6 -1
- three/src/renderers/common/CubeRenderTarget.d.ts +2 -1
- three/src/renderers/common/Info.d.ts +26 -66
- three/src/renderers/common/InspectorBase.d.ts +0 -7
- three/src/renderers/common/Lighting.d.ts +49 -5
- three/src/renderers/common/Renderer.d.ts +34 -458
- three/src/renderers/common/RendererUtils.d.ts +1 -2
- three/src/renderers/common/TimestampQueryPool.d.ts +1 -1
- three/src/renderers/common/XRManager.d.ts +32 -299
- three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -117
- three/src/renderers/webgl/WebGLPrograms.d.ts +2 -0
- three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -1
- three/src/renderers/webgl/WebGLState.d.ts +2 -0
- three/src/renderers/webgl-fallback/WebGLBackend.d.ts +1 -1
- three/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.d.ts +0 -10
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +0 -1
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +5 -121
- three/src/textures/CubeDepthTexture.d.ts +2 -3
- three/src/textures/DataTexture.d.ts +2 -1
- three/src/textures/DepthTexture.d.ts +5 -5
- three/examples/jsm/lighting/TiledLighting.d.ts +0 -9
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +0 -31
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +0 -22
- three/src/nodes/accessors/BatchNode.d.ts +0 -12
- three/src/nodes/accessors/InstanceNode.d.ts +0 -30
- three/src/nodes/accessors/InstancedMeshNode.d.ts +0 -10
- three/src/nodes/accessors/MorphNode.d.ts +0 -14
- three/src/nodes/accessors/SkinningNode.d.ts +0 -32
- three/src/renderers/common/Animation.d.ts +0 -102
- three/src/renderers/common/Attributes.d.ts +0 -59
- three/src/renderers/common/Background.d.ts +0 -47
- three/src/renderers/common/BindGroup.d.ts +0 -39
- three/src/renderers/common/Binding.d.ts +0 -50
- three/src/renderers/common/Bindings.d.ts +0 -132
- three/src/renderers/common/Buffer.d.ts +0 -90
- three/src/renderers/common/ChainMap.d.ts +0 -49
- three/src/renderers/common/Color4.d.ts +0 -55
- three/src/renderers/common/ComputePipeline.d.ts +0 -34
- three/src/renderers/common/DataMap.d.ts +0 -42
- three/src/renderers/common/Geometries.d.ts +0 -111
- three/src/renderers/common/Pipeline.d.ts +0 -29
- three/src/renderers/common/Pipelines.d.ts +0 -186
- three/src/renderers/common/ProgrammableStage.d.ts +0 -73
- three/src/renderers/common/RenderBundle.d.ts +0 -25
- three/src/renderers/common/RenderBundles.d.ts +0 -34
- three/src/renderers/common/RenderContext.d.ts +0 -235
- three/src/renderers/common/RenderContexts.d.ts +0 -47
- three/src/renderers/common/RenderList.d.ts +0 -226
- three/src/renderers/common/RenderLists.d.ts +0 -46
- three/src/renderers/common/RenderObject.d.ts +0 -448
- three/src/renderers/common/RenderObjectPipeline.d.ts +0 -33
- three/src/renderers/common/RenderObjects.d.ts +0 -151
- three/src/renderers/common/SampledTexture.d.ts +0 -28
- three/src/renderers/common/Sampler.d.ts +0 -19
- three/src/renderers/common/Textures.d.ts +0 -125
- three/src/renderers/common/Uniform.d.ts +0 -262
- three/src/renderers/common/UniformBuffer.d.ts +0 -20
- three/src/renderers/common/UniformsGroup.d.ts +0 -152
- three/src/renderers/common/XRRenderTarget.d.ts +0 -67
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +0 -121
- three/src/renderers/common/nodes/NodeManager.d.ts +0 -309
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +0 -29
- three/src/renderers/common/nodes/NodeSampler.d.ts +0 -12
- three/src/renderers/common/nodes/NodeUniform.d.ts +0 -250
- three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +0 -41
- three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -6
- three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -6
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
-
import { BufferGeometry, GeometryGroup } from "../../core/BufferGeometry.js";
|
|
3
|
-
import { Object3D } from "../../core/Object3D.js";
|
|
4
|
-
import { Light } from "../../lights/Light.js";
|
|
5
|
-
import { Material } from "../../materials/Material.js";
|
|
6
|
-
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
7
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
8
|
-
import BundleGroup from "./BundleGroup.js";
|
|
9
|
-
import ClippingContext from "./ClippingContext.js";
|
|
10
|
-
import Lighting from "./Lighting.js";
|
|
11
|
-
|
|
12
|
-
export interface Bundle {
|
|
13
|
-
bundleGroup: BundleGroup;
|
|
14
|
-
camera: Camera;
|
|
15
|
-
renderList: RenderList;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface RenderItem {
|
|
19
|
-
id: number | null;
|
|
20
|
-
object: Object3D | null;
|
|
21
|
-
geometry: BufferGeometry | null;
|
|
22
|
-
material: Material | null;
|
|
23
|
-
groupOrder: number | null;
|
|
24
|
-
renderOrder: number | null;
|
|
25
|
-
z: number | null;
|
|
26
|
-
group: GeometryGroup | null;
|
|
27
|
-
clippingContext: ClippingContext | null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* When the renderer analyzes the scene at the beginning of a render call,
|
|
32
|
-
* it stores 3D object for further processing in render lists. Depending on the
|
|
33
|
-
* properties of a 3D objects (like their transformation or material state), the
|
|
34
|
-
* objects are maintained in ordered lists for the actual rendering.
|
|
35
|
-
*
|
|
36
|
-
* Render lists are unique per scene and camera combination.
|
|
37
|
-
*
|
|
38
|
-
* @private
|
|
39
|
-
* @augments Pipeline
|
|
40
|
-
*/
|
|
41
|
-
declare class RenderList {
|
|
42
|
-
/**
|
|
43
|
-
* Constructs a render list.
|
|
44
|
-
*
|
|
45
|
-
* @param {Lighting} lighting - The lighting management component.
|
|
46
|
-
* @param {Scene} scene - The scene.
|
|
47
|
-
* @param {Camera} camera - The camera the scene is rendered with.
|
|
48
|
-
*/
|
|
49
|
-
constructor(lighting: Lighting, scene: Scene, camera: Camera);
|
|
50
|
-
/**
|
|
51
|
-
* 3D objects are transformed into render items and stored in this array.
|
|
52
|
-
*
|
|
53
|
-
* @type {Array<Object>}
|
|
54
|
-
*/
|
|
55
|
-
renderItems: RenderItem[];
|
|
56
|
-
/**
|
|
57
|
-
* The current render items index.
|
|
58
|
-
*
|
|
59
|
-
* @type {number}
|
|
60
|
-
* @default 0
|
|
61
|
-
*/
|
|
62
|
-
renderItemsIndex: number;
|
|
63
|
-
/**
|
|
64
|
-
* A list with opaque render items.
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<Object>}
|
|
67
|
-
*/
|
|
68
|
-
opaque: RenderItem[];
|
|
69
|
-
/**
|
|
70
|
-
* A list with transparent render items which require
|
|
71
|
-
* double pass rendering (e.g. transmissive objects).
|
|
72
|
-
*
|
|
73
|
-
* @type {Array<Object>}
|
|
74
|
-
*/
|
|
75
|
-
transparentDoublePass: RenderItem[];
|
|
76
|
-
/**
|
|
77
|
-
* A list with transparent render items.
|
|
78
|
-
*
|
|
79
|
-
* @type {Array<Object>}
|
|
80
|
-
*/
|
|
81
|
-
transparent: RenderItem[];
|
|
82
|
-
/**
|
|
83
|
-
* A list with transparent render bundle data.
|
|
84
|
-
*
|
|
85
|
-
* @type {Array<Object>}
|
|
86
|
-
*/
|
|
87
|
-
bundles: Bundle[];
|
|
88
|
-
/**
|
|
89
|
-
* The render list's lights node. This node is later
|
|
90
|
-
* relevant for the actual analytical light nodes which
|
|
91
|
-
* compute the scene's lighting in the shader.
|
|
92
|
-
*
|
|
93
|
-
* @type {LightsNode}
|
|
94
|
-
*/
|
|
95
|
-
lightsNode: LightsNode;
|
|
96
|
-
/**
|
|
97
|
-
* The scene's lights stored in an array. This array
|
|
98
|
-
* is used to setup the lights node.
|
|
99
|
-
*
|
|
100
|
-
* @type {Array<Light>}
|
|
101
|
-
*/
|
|
102
|
-
lightsArray: Light[];
|
|
103
|
-
/**
|
|
104
|
-
* The scene.
|
|
105
|
-
*
|
|
106
|
-
* @type {Scene}
|
|
107
|
-
*/
|
|
108
|
-
scene: Scene;
|
|
109
|
-
/**
|
|
110
|
-
* The camera the scene is rendered with.
|
|
111
|
-
*
|
|
112
|
-
* @type {Camera}
|
|
113
|
-
*/
|
|
114
|
-
camera: Camera;
|
|
115
|
-
/**
|
|
116
|
-
* How many objects perform occlusion query tests.
|
|
117
|
-
*
|
|
118
|
-
* @type {number}
|
|
119
|
-
* @default 0
|
|
120
|
-
*/
|
|
121
|
-
occlusionQueryCount: number;
|
|
122
|
-
/**
|
|
123
|
-
* This method is called right at the beginning of a render call
|
|
124
|
-
* before the scene is analyzed. It prepares the internal data
|
|
125
|
-
* structures for the upcoming render lists generation.
|
|
126
|
-
*
|
|
127
|
-
* @return {RenderList} A reference to this render list.
|
|
128
|
-
*/
|
|
129
|
-
begin(): this;
|
|
130
|
-
/**
|
|
131
|
-
* Returns a render item for the giving render item state. The state is defined
|
|
132
|
-
* by a series of object-related parameters.
|
|
133
|
-
*
|
|
134
|
-
* The method avoids object creation by holding render items and reusing them in
|
|
135
|
-
* subsequent render calls (just with different property values).
|
|
136
|
-
*
|
|
137
|
-
* @param {Object3D} object - The 3D object.
|
|
138
|
-
* @param {BufferGeometry} geometry - The 3D object's geometry.
|
|
139
|
-
* @param {Material} material - The 3D object's material.
|
|
140
|
-
* @param {number} groupOrder - The current group order.
|
|
141
|
-
* @param {number} z - Th 3D object's depth value (z value in clip space).
|
|
142
|
-
* @param {?number} group - {?Object} group - Only relevant for objects using multiple materials. This represents a group entry from the respective `BufferGeometry`.
|
|
143
|
-
* @param {ClippingContext} clippingContext - The current clipping context.
|
|
144
|
-
* @return {Object} The render item.
|
|
145
|
-
*/
|
|
146
|
-
getNextRenderItem(
|
|
147
|
-
object: Object3D,
|
|
148
|
-
geometry: BufferGeometry,
|
|
149
|
-
material: Material,
|
|
150
|
-
groupOrder: number,
|
|
151
|
-
z: number,
|
|
152
|
-
group: GeometryGroup | null,
|
|
153
|
-
clippingContext: ClippingContext,
|
|
154
|
-
): RenderItem;
|
|
155
|
-
/**
|
|
156
|
-
* Pushes the given object as a render item to the internal render lists.
|
|
157
|
-
* The selected lists depend on the object properties.
|
|
158
|
-
*
|
|
159
|
-
* @param {Object3D} object - The 3D object.
|
|
160
|
-
* @param {BufferGeometry} geometry - The 3D object's geometry.
|
|
161
|
-
* @param {Material} material - The 3D object's material.
|
|
162
|
-
* @param {number} groupOrder - The current group order.
|
|
163
|
-
* @param {number} z - Th 3D object's depth value (z value in clip space).
|
|
164
|
-
* @param {?number} group - {?Object} group - Only relevant for objects using multiple materials. This represents a group entry from the respective `BufferGeometry`.
|
|
165
|
-
* @param {ClippingContext} clippingContext - The current clipping context.
|
|
166
|
-
*/
|
|
167
|
-
push(
|
|
168
|
-
object: Object3D,
|
|
169
|
-
geometry: BufferGeometry,
|
|
170
|
-
material: Material,
|
|
171
|
-
groupOrder: number,
|
|
172
|
-
z: number,
|
|
173
|
-
group: GeometryGroup | null,
|
|
174
|
-
clippingContext: ClippingContext,
|
|
175
|
-
): void;
|
|
176
|
-
/**
|
|
177
|
-
* Inserts the given object as a render item at the start of the internal render lists.
|
|
178
|
-
* The selected lists depend on the object properties.
|
|
179
|
-
*
|
|
180
|
-
* @param {Object3D} object - The 3D object.
|
|
181
|
-
* @param {BufferGeometry} geometry - The 3D object's geometry.
|
|
182
|
-
* @param {Material} material - The 3D object's material.
|
|
183
|
-
* @param {number} groupOrder - The current group order.
|
|
184
|
-
* @param {number} z - Th 3D object's depth value (z value in clip space).
|
|
185
|
-
* @param {?number} group - {?Object} group - Only relevant for objects using multiple materials. This represents a group entry from the respective `BufferGeometry`.
|
|
186
|
-
* @param {ClippingContext} clippingContext - The current clipping context.
|
|
187
|
-
*/
|
|
188
|
-
unshift(
|
|
189
|
-
object: Object3D,
|
|
190
|
-
geometry: BufferGeometry,
|
|
191
|
-
material: Material,
|
|
192
|
-
groupOrder: number,
|
|
193
|
-
z: number,
|
|
194
|
-
group: GeometryGroup | null,
|
|
195
|
-
clippingContext: ClippingContext,
|
|
196
|
-
): void;
|
|
197
|
-
/**
|
|
198
|
-
* Pushes render bundle group data into the render list.
|
|
199
|
-
*
|
|
200
|
-
* @param {Object} group - Bundle group data.
|
|
201
|
-
*/
|
|
202
|
-
pushBundle(group: Bundle): void;
|
|
203
|
-
/**
|
|
204
|
-
* Pushes a light into the render list.
|
|
205
|
-
*
|
|
206
|
-
* @param {Light} light - The light.
|
|
207
|
-
*/
|
|
208
|
-
pushLight(light: Light): void;
|
|
209
|
-
/**
|
|
210
|
-
* Sorts the internal render lists.
|
|
211
|
-
*
|
|
212
|
-
* @param {?function(any, any): number} customOpaqueSort - A custom sort function for opaque objects.
|
|
213
|
-
* @param {?function(any, any): number} customTransparentSort - A custom sort function for transparent objects.
|
|
214
|
-
*/
|
|
215
|
-
sort(
|
|
216
|
-
customOpaqueSort: ((a: RenderItem, b: RenderItem) => number) | null,
|
|
217
|
-
customTransparentSort: ((a: RenderItem, b: RenderItem) => number) | null,
|
|
218
|
-
): void;
|
|
219
|
-
/**
|
|
220
|
-
* This method performs finalizing tasks right after the render lists
|
|
221
|
-
* have been generated.
|
|
222
|
-
*/
|
|
223
|
-
finish(): void;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
export default RenderList;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
-
import { Scene } from "../../scenes/Scene.js";
|
|
3
|
-
import ChainMap from "./ChainMap.js";
|
|
4
|
-
import Lighting from "./Lighting.js";
|
|
5
|
-
import RenderList from "./RenderList.js";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This renderer module manages the render lists which are unique
|
|
9
|
-
* per scene and camera combination.
|
|
10
|
-
*
|
|
11
|
-
* @private
|
|
12
|
-
*/
|
|
13
|
-
declare class RenderLists {
|
|
14
|
-
/**
|
|
15
|
-
* Constructs a render lists management component.
|
|
16
|
-
*
|
|
17
|
-
* @param {Lighting} lighting - The lighting management component.
|
|
18
|
-
*/
|
|
19
|
-
constructor(lighting: Lighting);
|
|
20
|
-
/**
|
|
21
|
-
* The lighting management component.
|
|
22
|
-
*
|
|
23
|
-
* @type {Lighting}
|
|
24
|
-
*/
|
|
25
|
-
lighting: Lighting;
|
|
26
|
-
/**
|
|
27
|
-
* The internal chain map which holds the render lists.
|
|
28
|
-
*
|
|
29
|
-
* @type {ChainMap}
|
|
30
|
-
*/
|
|
31
|
-
lists: ChainMap;
|
|
32
|
-
/**
|
|
33
|
-
* Returns a render list for the given scene and camera.
|
|
34
|
-
*
|
|
35
|
-
* @param {Scene} scene - The scene.
|
|
36
|
-
* @param {Camera} camera - The camera.
|
|
37
|
-
* @return {RenderList} The render list.
|
|
38
|
-
*/
|
|
39
|
-
get(scene: Scene, camera: Camera): RenderList;
|
|
40
|
-
/**
|
|
41
|
-
* Frees all internal resources.
|
|
42
|
-
*/
|
|
43
|
-
dispose(): void;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default RenderLists;
|