@types/three 0.172.0 → 0.174.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.
Files changed (124) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/animation/CCDIKSolver.d.ts +3 -2
  3. three/examples/jsm/geometries/TextGeometry.d.ts +0 -8
  4. three/examples/jsm/interactive/InteractiveGroup.d.ts +9 -1
  5. three/examples/jsm/loaders/MTLLoader.d.ts +2 -1
  6. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +3 -0
  7. three/examples/jsm/misc/Timer.d.ts +13 -2
  8. three/examples/jsm/objects/Reflector.d.ts +1 -0
  9. three/examples/jsm/tsl/math/Bayer.d.ts +4 -0
  10. three/examples/jsm/tsl/utils/Raymarching.d.ts +9 -0
  11. three/examples/jsm/webxr/XRButton.d.ts +4 -2
  12. three/package.json +2 -2
  13. three/src/Three.Core.d.ts +2 -0
  14. three/src/Three.TSL.d.ts +13 -1
  15. three/src/Three.d.ts +6 -1
  16. three/src/animation/AnimationClip.d.ts +1 -1
  17. three/src/cameras/ArrayCamera.d.ts +7 -6
  18. three/src/cameras/Camera.d.ts +7 -7
  19. three/src/constants.d.ts +6 -0
  20. three/src/core/BufferAttribute.d.ts +5 -0
  21. three/src/core/Raycaster.d.ts +4 -0
  22. three/src/extras/PMREMGenerator.d.ts +15 -2
  23. three/src/geometries/TorusGeometry.d.ts +5 -6
  24. three/src/materials/nodes/NodeMaterial.d.ts +2 -1
  25. three/src/materials/nodes/NodeMaterials.d.ts +0 -4
  26. three/src/materials/nodes/PointsNodeMaterial.d.ts +7 -14
  27. three/src/materials/nodes/VolumeNodeMaterial.d.ts +14 -2
  28. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +5 -4
  29. three/src/math/Matrix4.d.ts +2 -1
  30. three/src/nodes/Nodes.d.ts +6 -3
  31. three/src/nodes/TSL.d.ts +5 -0
  32. three/src/nodes/accessors/Arrays.d.ts +9 -2
  33. three/src/nodes/accessors/BufferAttributeNode.d.ts +25 -22
  34. three/src/nodes/accessors/Camera.d.ts +1 -0
  35. three/src/nodes/accessors/Lights.d.ts +1 -1
  36. three/src/nodes/accessors/MaterialNode.d.ts +3 -3
  37. three/src/nodes/accessors/MaterialProperties.d.ts +5 -0
  38. three/src/nodes/accessors/ModelNode.d.ts +1 -0
  39. three/src/nodes/accessors/Object3DNode.d.ts +7 -5
  40. three/src/nodes/accessors/StorageBufferNode.d.ts +7 -3
  41. three/src/nodes/accessors/Texture3DNode.d.ts +2 -2
  42. three/src/nodes/core/ArrayNode.d.ts +26 -0
  43. three/src/nodes/core/LightingModel.d.ts +13 -28
  44. three/src/nodes/core/Node.d.ts +31 -23
  45. three/src/nodes/core/NodeAttribute.d.ts +3 -3
  46. three/src/nodes/core/NodeCache.d.ts +4 -3
  47. three/src/nodes/core/NodeParser.d.ts +1 -1
  48. three/src/nodes/core/NodeUniform.d.ts +4 -4
  49. three/src/nodes/core/NodeVar.d.ts +8 -4
  50. three/src/nodes/core/NodeVarying.d.ts +2 -2
  51. three/src/nodes/core/StructNode.d.ts +21 -0
  52. three/src/nodes/core/StructType.d.ts +8 -0
  53. three/src/nodes/core/StructTypeNode.d.ts +33 -14
  54. three/src/nodes/core/UniformNode.d.ts +7 -7
  55. three/src/nodes/core/VarNode.d.ts +8 -1
  56. three/src/nodes/core/VaryingNode.d.ts +9 -0
  57. three/src/nodes/core/constants.d.ts +0 -1
  58. three/src/nodes/display/PassNode.d.ts +10 -1
  59. three/src/nodes/functions/BSDF/LTC.d.ts +5 -1
  60. three/src/nodes/functions/VolumetricLightingModel.d.ts +6 -0
  61. three/src/nodes/geometry/RangeNode.d.ts +6 -11
  62. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +5 -0
  63. three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +1 -0
  64. three/src/nodes/lighting/AnalyticLightNode.d.ts +13 -1
  65. three/src/nodes/lighting/LightingContextNode.d.ts +18 -4
  66. three/src/nodes/lighting/LightsNode.d.ts +24 -0
  67. three/src/nodes/lighting/PointLightNode.d.ts +8 -7
  68. three/src/nodes/lighting/ShadowBaseNode.d.ts +3 -0
  69. three/src/nodes/math/MathNode.d.ts +2 -0
  70. three/src/nodes/math/OperatorNode.d.ts +2 -0
  71. three/src/nodes/shapes/Shapes.d.ts +4 -0
  72. three/src/nodes/tsl/TSLBase.d.ts +1 -0
  73. three/src/nodes/tsl/TSLCore.d.ts +19 -3
  74. three/src/nodes/utils/MemberNode.d.ts +11 -0
  75. three/src/nodes/utils/ReflectorNode.d.ts +1 -0
  76. three/src/objects/BatchedMesh.d.ts +1 -0
  77. three/src/objects/InstancedMesh.d.ts +4 -3
  78. three/src/objects/LOD.d.ts +4 -3
  79. three/src/renderers/WebGLRenderer.d.ts +2 -2
  80. three/src/renderers/common/Animation.d.ts +16 -4
  81. three/src/renderers/common/Attributes.d.ts +1 -1
  82. three/src/renderers/common/BindGroup.d.ts +2 -2
  83. three/src/renderers/common/Binding.d.ts +2 -2
  84. three/src/renderers/common/Buffer.d.ts +3 -3
  85. three/src/renderers/common/BufferUtils.d.ts +8 -9
  86. three/src/renderers/common/BundleGroup.d.ts +3 -3
  87. three/src/renderers/common/ChainMap.d.ts +8 -8
  88. three/src/renderers/common/ClippingContext.d.ts +3 -3
  89. three/src/renderers/common/Color4.d.ts +12 -8
  90. three/src/renderers/common/ComputePipeline.d.ts +1 -1
  91. three/src/renderers/common/DataMap.d.ts +2 -2
  92. three/src/renderers/common/Geometries.d.ts +4 -4
  93. three/src/renderers/common/Info.d.ts +2 -13
  94. three/src/renderers/common/Pipeline.d.ts +1 -1
  95. three/src/renderers/common/Pipelines.d.ts +10 -10
  96. three/src/renderers/common/PostProcessing.d.ts +1 -1
  97. three/src/renderers/common/ProgrammableStage.d.ts +4 -4
  98. three/src/renderers/common/RenderContext.d.ts +8 -6
  99. three/src/renderers/common/RenderContexts.d.ts +16 -24
  100. three/src/renderers/common/RenderList.d.ts +11 -11
  101. three/src/renderers/common/RenderObject.d.ts +24 -16
  102. three/src/renderers/common/RenderObjects.d.ts +3 -3
  103. three/src/renderers/common/RenderPipeline.d.ts +1 -1
  104. three/src/renderers/common/Renderer.d.ts +139 -96
  105. three/src/renderers/common/Textures.d.ts +6 -6
  106. three/src/renderers/common/TimestampQueryPool.d.ts +43 -0
  107. three/src/renderers/common/Uniform.d.ts +39 -13
  108. three/src/renderers/common/UniformBuffer.d.ts +1 -1
  109. three/src/renderers/common/UniformsGroup.d.ts +13 -13
  110. three/src/renderers/common/XRManager.d.ts +194 -0
  111. three/src/renderers/common/XRRenderTarget.d.ts +23 -0
  112. three/src/renderers/common/extras/PMREMGenerator.d.ts +9 -2
  113. three/src/renderers/common/nodes/NodeBuilderState.d.ts +6 -6
  114. three/src/renderers/common/nodes/NodeLibrary.d.ts +11 -11
  115. three/src/renderers/common/nodes/NodeUniform.d.ts +39 -8
  116. three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -1
  117. three/src/renderers/common/nodes/Nodes.d.ts +19 -18
  118. three/src/renderers/webgl/WebGLState.d.ts +7 -6
  119. three/src/renderers/webgpu/WebGPUBackend.d.ts +2 -1
  120. three/src/textures/Texture.d.ts +2 -5
  121. three/src/textures/VideoFrameTexture.d.ts +27 -0
  122. three/examples/jsm/geometries/InstancedPointsGeometry.d.ts +0 -13
  123. three/examples/jsm/objects/InstancedPoints.d.ts +0 -10
  124. three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +0 -33
@@ -1,4 +1,5 @@
1
1
  import { Color } from "../../../math/Color.js";
2
+ import { Matrix2 } from "../../../math/Matrix2.js";
2
3
  import { Matrix3 } from "../../../math/Matrix3.js";
3
4
  import { Matrix4 } from "../../../math/Matrix4.js";
4
5
  import { Vector2 } from "../../../math/Vector2.js";
@@ -7,6 +8,7 @@ import { Vector4 } from "../../../math/Vector4.js";
7
8
  import NodeUniform from "../../../nodes/core/NodeUniform.js";
8
9
  import {
9
10
  ColorUniform,
11
+ Matrix2Uniform,
10
12
  Matrix3Uniform,
11
13
  Matrix4Uniform,
12
14
  NumberUniform,
@@ -32,13 +34,13 @@ declare class NumberNodeUniform extends NumberUniform {
32
34
  /**
33
35
  * Overwritten to return the value of the node uniform.
34
36
  *
35
- * @return {Number} The value.
37
+ * @return {number} The value.
36
38
  */
37
39
  getValue(): number;
38
40
  /**
39
41
  * Returns the node uniform data type.
40
42
  *
41
- * @return {String} The data type.
43
+ * @return {string} The data type.
42
44
  */
43
45
  getType(): string | null;
44
46
  }
@@ -66,7 +68,7 @@ declare class Vector2NodeUniform extends Vector2Uniform {
66
68
  /**
67
69
  * Returns the node uniform data type.
68
70
  *
69
- * @return {String} The data type.
71
+ * @return {string} The data type.
70
72
  */
71
73
  getType(): string | null;
72
74
  }
@@ -94,7 +96,7 @@ declare class Vector3NodeUniform extends Vector3Uniform {
94
96
  /**
95
97
  * Returns the node uniform data type.
96
98
  *
97
- * @return {String} The data type.
99
+ * @return {string} The data type.
98
100
  */
99
101
  getType(): string | null;
100
102
  }
@@ -122,7 +124,7 @@ declare class Vector4NodeUniform extends Vector4Uniform {
122
124
  /**
123
125
  * Returns the node uniform data type.
124
126
  *
125
- * @return {String} The data type.
127
+ * @return {string} The data type.
126
128
  */
127
129
  getType(): string | null;
128
130
  }
@@ -150,7 +152,35 @@ declare class ColorNodeUniform extends ColorUniform {
150
152
  /**
151
153
  * Returns the node uniform data type.
152
154
  *
153
- * @return {String} The data type.
155
+ * @return {string} The data type.
156
+ */
157
+ getType(): string | null;
158
+ }
159
+ /**
160
+ * A special form of Matrix2 uniform binding type.
161
+ * It's value is managed by a node object.
162
+ *
163
+ * @private
164
+ * @augments Matrix2Uniform
165
+ */
166
+ declare class Matrix2NodeUniform extends Matrix2Uniform {
167
+ nodeUniform: NodeUniform<Matrix2>;
168
+ /**
169
+ * Constructs a new node-based Matrix2 uniform.
170
+ *
171
+ * @param {NodeUniform} nodeUniform - The node uniform.
172
+ */
173
+ constructor(nodeUniform: NodeUniform<Matrix2>);
174
+ /**
175
+ * Overwritten to return the value of the node uniform.
176
+ *
177
+ * @return {Matrix2} The value.
178
+ */
179
+ getValue(): Matrix2;
180
+ /**
181
+ * Returns the node uniform data type.
182
+ *
183
+ * @return {string} The data type.
154
184
  */
155
185
  getType(): string | null;
156
186
  }
@@ -178,7 +208,7 @@ declare class Matrix3NodeUniform extends Matrix3Uniform {
178
208
  /**
179
209
  * Returns the node uniform data type.
180
210
  *
181
- * @return {String} The data type.
211
+ * @return {string} The data type.
182
212
  */
183
213
  getType(): string | null;
184
214
  }
@@ -206,12 +236,13 @@ declare class Matrix4NodeUniform extends Matrix4Uniform {
206
236
  /**
207
237
  * Returns the node uniform data type.
208
238
  *
209
- * @return {String} The data type.
239
+ * @return {string} The data type.
210
240
  */
211
241
  getType(): string | null;
212
242
  }
213
243
  export {
214
244
  ColorNodeUniform,
245
+ Matrix2NodeUniform,
215
246
  Matrix3NodeUniform,
216
247
  Matrix4NodeUniform,
217
248
  NumberNodeUniform,
@@ -14,7 +14,7 @@ declare class NodeUniformsGroup extends UniformsGroup {
14
14
  /**
15
15
  * Constructs a new node-based uniforms group.
16
16
  *
17
- * @param {String} name - The group's name.
17
+ * @param {string} name - The group's name.
18
18
  * @param {UniformGroupNode} groupNode - The uniform group node.
19
19
  */
20
20
  constructor(name: string, groupNode: UniformGroupNode);
@@ -39,6 +39,10 @@ interface SceneData {
39
39
  environment?: Texture | undefined;
40
40
  environmentNode?: ShaderNodeObject<Node> | undefined;
41
41
  }
42
+ interface CacheKeyData {
43
+ callId: number;
44
+ cacheKey: number;
45
+ }
42
46
  declare module "../../../scenes/Scene.js" {
43
47
  interface Scene {
44
48
  environmentNode?: ShaderNodeObject<Node> | null | undefined;
@@ -81,10 +85,7 @@ declare class Nodes extends DataMap<{
81
85
  backend: Backend;
82
86
  nodeFrame: NodeFrame;
83
87
  nodeBuilderCache: Map<string, NodeBuilderState>;
84
- callHashCache: ChainMap<readonly [Scene, LightsNode], {
85
- callId: number;
86
- cacheKey: string;
87
- }>;
88
+ callHashCache: ChainMap<readonly [Scene, LightsNode], CacheKeyData>;
88
89
  groupsData: ChainMap<readonly [UniformGroupNode, NodeUniformsGroup], {
89
90
  version?: number;
90
91
  }>;
@@ -96,14 +97,14 @@ declare class Nodes extends DataMap<{
96
97
  * Returns `true` if the given node uniforms group must be updated or not.
97
98
  *
98
99
  * @param {NodeUniformsGroup} nodeUniformsGroup - The node uniforms group.
99
- * @return {Boolean} Whether the node uniforms group requires an update or not.
100
+ * @return {boolean} Whether the node uniforms group requires an update or not.
100
101
  */
101
102
  updateGroup(nodeUniformsGroup: NodeUniformsGroup): boolean;
102
103
  /**
103
104
  * Returns the cache key for the given render object.
104
105
  *
105
106
  * @param {RenderObject} renderObject - The render object.
106
- * @return {Number} The cache key.
107
+ * @return {number} The cache key.
107
108
  */
108
109
  getForRenderCacheKey(renderObject: RenderObject): string;
109
110
  /**
@@ -116,12 +117,12 @@ declare class Nodes extends DataMap<{
116
117
  /**
117
118
  * Deletes the given object from the internal data map
118
119
  *
119
- * @param {Any} object - The object to delete.
120
- * @return {Object?} The deleted dictionary.
120
+ * @param {any} object - The object to delete.
121
+ * @return {?Object} The deleted dictionary.
121
122
  */
122
123
  delete(
123
124
  object: NodeUniformsGroup | RenderObject | ComputeNode | Scene,
124
- ): SceneData | RenderObjectData | NodeUniformsGroupData | ComputeNodeData;
125
+ ): RenderObjectData | NodeUniformsGroupData | ComputeNodeData | SceneData;
125
126
  /**
126
127
  * Returns a node builder state for the given compute node.
127
128
  *
@@ -168,14 +169,14 @@ declare class Nodes extends DataMap<{
168
169
  *
169
170
  * @param {Scene} scene - The scene.
170
171
  * @param {LightsNode} lightsNode - The lights node.
171
- * @return {Number} The cache key.
172
+ * @return {number} The cache key.
172
173
  */
173
- getCacheKey(scene: Scene, lightsNode: LightsNode): string;
174
+ getCacheKey(scene: Scene, lightsNode: LightsNode): number;
174
175
  /**
175
176
  * A boolean that indicates whether tone mapping should be enabled
176
177
  * or not.
177
178
  *
178
- * @type {Boolean}
179
+ * @type {boolean}
179
180
  */
180
181
  get isToneMappingState(): boolean;
181
182
  /**
@@ -189,10 +190,10 @@ declare class Nodes extends DataMap<{
189
190
  * This method is part of the caching of nodes which are used to represents the
190
191
  * scene's background, fog or environment.
191
192
  *
192
- * @param {String} type - The type of object to cache.
193
+ * @param {string} type - The type of object to cache.
193
194
  * @param {Object} object - The object.
194
195
  * @param {Function} callback - A callback that produces a node representation for the given object.
195
- * @param {Boolean} [forceUpdate=false] - Whether an update should be enforced or not.
196
+ * @param {boolean} [forceUpdate=false] - Whether an update should be enforced or not.
196
197
  * @return {Node} The node representation.
197
198
  */
198
199
  getCacheNode(
@@ -226,7 +227,7 @@ declare class Nodes extends DataMap<{
226
227
  /**
227
228
  * Returns the current output cache key.
228
229
  *
229
- * @return {String} The output cache key.
230
+ * @return {string} The output cache key.
230
231
  */
231
232
  getOutputCacheKey(): string;
232
233
  /**
@@ -234,7 +235,7 @@ declare class Nodes extends DataMap<{
234
235
  * the given target has changed.
235
236
  *
236
237
  * @param {Texture} outputTarget - The output target.
237
- * @return {Boolean} Whether the output configuration has changed or not.
238
+ * @return {boolean} Whether the output configuration has changed or not.
238
239
  */
239
240
  hasOutputChange(outputTarget: Texture): boolean;
240
241
  /**
@@ -277,11 +278,11 @@ declare class Nodes extends DataMap<{
277
278
  * Returns `true` if the given render object requires a refresh.
278
279
  *
279
280
  * @param {RenderObject} renderObject - The render object.
280
- * @return {Boolean} Whether the given render object requires a refresh or not.
281
+ * @return {boolean} Whether the given render object requires a refresh or not.
281
282
  */
282
283
  needsRefresh(renderObject: RenderObject): boolean;
283
284
  /**
284
- * Frees the intenral resources.
285
+ * Frees the internal resources.
285
286
  */
286
287
  dispose(): void;
287
288
  }
@@ -11,14 +11,14 @@ import { Vector4 } from "../../math/Vector4.js";
11
11
  import { WebGLRenderTarget } from "../WebGLRenderTarget.js";
12
12
  import { WebGLExtensions } from "./WebGLExtensions.js";
13
13
 
14
- declare class ColorBuffer {
14
+ declare class WebGLColorBuffer {
15
15
  setMask(colorMask: boolean): void;
16
16
  setLocked(lock: boolean): void;
17
17
  setClear(r: number, g: number, b: number, a: number, premultipliedAlpha: boolean): void;
18
18
  reset(): void;
19
19
  }
20
20
 
21
- declare class DepthBuffer {
21
+ declare class WebGLDepthBuffer {
22
22
  constructor();
23
23
 
24
24
  setReversed(value: boolean): void;
@@ -31,7 +31,7 @@ declare class DepthBuffer {
31
31
  reset(): void;
32
32
  }
33
33
 
34
- declare class StencilBuffer {
34
+ declare class WebGLStencilBuffer {
35
35
  constructor();
36
36
 
37
37
  setTest(stencilTest: boolean): void;
@@ -47,9 +47,9 @@ declare class WebGLState {
47
47
  constructor(gl: WebGLRenderingContext, extensions: WebGLExtensions);
48
48
 
49
49
  buffers: {
50
- color: ColorBuffer;
51
- depth: DepthBuffer;
52
- stencil: StencilBuffer;
50
+ color: WebGLColorBuffer;
51
+ depth: WebGLDepthBuffer;
52
+ stencil: WebGLStencilBuffer;
53
53
  };
54
54
 
55
55
  enable(id: number): void;
@@ -117,3 +117,4 @@ declare class WebGLState {
117
117
  }
118
118
 
119
119
  export { WebGLState };
120
+ export type { WebGLColorBuffer, WebGLDepthBuffer, WebGLStencilBuffer };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="@webgpu/types" />
2
2
 
3
- import { CoordinateSystem } from "../../constants.js";
3
+ import { CoordinateSystem, HalfFloatType, UnsignedByteType } from "../../constants.js";
4
4
  import Backend, { BackendParameters } from "../common/Backend.js";
5
5
 
6
6
  export interface WebGPUBackendParameters extends BackendParameters {
@@ -10,6 +10,7 @@ export interface WebGPUBackendParameters extends BackendParameters {
10
10
  device?: GPUDevice | undefined;
11
11
  powerPreference?: GPUPowerPreference | undefined;
12
12
  context?: GPUCanvasContext | undefined;
13
+ outputType?: typeof UnsignedByteType | typeof HalfFloatType | undefined;
13
14
  }
14
15
 
15
16
  export default class WebGPUBackend extends Backend {
@@ -455,11 +455,8 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
455
455
  updateMatrix(): void;
456
456
 
457
457
  /**
458
- * Make copy of the texture
459
- * @remarks Note this is not a **"deep copy"**, the image is shared
460
- * @remarks
461
- * Besides, cloning a texture does not automatically mark it for a texture upload
462
- * You have to set {@link needsUpdate | .needsUpdate} to `true` as soon as it's image property (the data source) is fully loaded or ready.
458
+ * Make copy of the texture. Note this is not a "deep copy", the image is shared. Cloning the texture automatically
459
+ * marks it for texture upload.
463
460
  */
464
461
  clone(): this;
465
462
 
@@ -0,0 +1,27 @@
1
+ import {
2
+ MagnificationTextureFilter,
3
+ Mapping,
4
+ MinificationTextureFilter,
5
+ PixelFormat,
6
+ TextureDataType,
7
+ Wrapping,
8
+ } from "../constants.js";
9
+ import { VideoTexture } from "./VideoTexture.js";
10
+
11
+ declare class VideoFrameTexture extends VideoTexture {
12
+ constructor(
13
+ mapping?: Mapping,
14
+ wrapS?: Wrapping,
15
+ wrapT?: Wrapping,
16
+ magFilter?: MagnificationTextureFilter,
17
+ minFilter?: MinificationTextureFilter,
18
+ format?: PixelFormat,
19
+ type?: TextureDataType,
20
+ anisotropy?: number,
21
+ );
22
+
23
+ // FIXME Replace with VideoFrame when we no longer need to support TypeScript 5.0
24
+ setFrame(frane: unknown): void;
25
+ }
26
+
27
+ export { VideoFrameTexture };
@@ -1,13 +0,0 @@
1
- import { InstancedBufferGeometry } from "three";
2
-
3
- declare class InstancedPointsGeometry extends InstancedBufferGeometry {
4
- readonly isInstancedPointsGeometry: true;
5
-
6
- constructor();
7
-
8
- setPositions(array: Float32Array | ArrayLike<number>): this;
9
-
10
- setColors(array: Float32Array | ArrayLike<number>): this;
11
- }
12
-
13
- export default InstancedPointsGeometry;
@@ -1,10 +0,0 @@
1
- import { InstancedPointsNodeMaterial, Mesh } from "three/webgpu";
2
- import InstancedPointsGeometry from "../geometries/InstancedPointsGeometry.js";
3
-
4
- declare class InstancedPoints extends Mesh<InstancedPointsGeometry, InstancedPointsNodeMaterial> {
5
- readonly isInstancedPoints: true;
6
-
7
- constructor(geometry?: InstancedPointsGeometry, material?: InstancedPointsNodeMaterial);
8
- }
9
-
10
- export default InstancedPoints;
@@ -1,33 +0,0 @@
1
- import { Color } from "../../math/Color.js";
2
- import Node from "../../nodes/core/Node.js";
3
- import { Texture } from "../../textures/Texture.js";
4
- import { PointsMaterialParameters } from "../PointsMaterial.js";
5
- import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
6
-
7
- export interface InstancedPointsNodeMaterialParameters extends NodeMaterialParameters, PointsMaterialParameters {
8
- useAlphaToCoverage?: boolean | undefined;
9
- useColor?: boolean | undefined;
10
- pointWidth?: number | undefined;
11
- pointColorNode?: Node | null | undefined;
12
- pointWidthNode?: Node | null | undefined;
13
- }
14
-
15
- declare class InstancedPointsNodeMaterial extends NodeMaterial {
16
- useAlphaToCoverage: boolean;
17
- useColor: boolean | undefined;
18
- pointWidth: number;
19
- pointColorNode: Node | null;
20
- pointWidthNode: Node | null;
21
-
22
- // Properties from LineDashedMaterial
23
- readonly isPointsMaterial: true;
24
- color: Color;
25
- map: Texture | null;
26
- alphaMap: Texture | null;
27
- size: number;
28
- sizeAttenuation: boolean;
29
-
30
- constructor(params?: InstancedPointsNodeMaterialParameters);
31
- }
32
-
33
- export default InstancedPointsNodeMaterial;