@types/three 0.173.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 (84) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/animation/CCDIKSolver.d.ts +3 -2
  3. three/examples/jsm/loaders/MTLLoader.d.ts +2 -1
  4. three/examples/jsm/misc/Timer.d.ts +13 -2
  5. three/examples/jsm/objects/Reflector.d.ts +1 -0
  6. three/examples/jsm/tsl/math/Bayer.d.ts +4 -0
  7. three/examples/jsm/tsl/utils/Raymarching.d.ts +9 -0
  8. three/package.json +2 -2
  9. three/src/Three.TSL.d.ts +4 -0
  10. three/src/Three.d.ts +6 -1
  11. three/src/core/Raycaster.d.ts +4 -0
  12. three/src/extras/PMREMGenerator.d.ts +15 -2
  13. three/src/geometries/TorusGeometry.d.ts +5 -6
  14. three/src/materials/nodes/NodeMaterial.d.ts +2 -1
  15. three/src/materials/nodes/VolumeNodeMaterial.d.ts +14 -2
  16. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +4 -4
  17. three/src/nodes/Nodes.d.ts +1 -2
  18. three/src/nodes/TSL.d.ts +1 -0
  19. three/src/nodes/accessors/BufferAttributeNode.d.ts +25 -22
  20. three/src/nodes/accessors/Lights.d.ts +1 -1
  21. three/src/nodes/accessors/MaterialProperties.d.ts +5 -0
  22. three/src/nodes/accessors/ModelNode.d.ts +1 -0
  23. three/src/nodes/accessors/Object3DNode.d.ts +7 -5
  24. three/src/nodes/accessors/Texture3DNode.d.ts +2 -2
  25. three/src/nodes/core/LightingModel.d.ts +13 -28
  26. three/src/nodes/core/Node.d.ts +24 -24
  27. three/src/nodes/core/NodeAttribute.d.ts +3 -3
  28. three/src/nodes/core/NodeCache.d.ts +2 -2
  29. three/src/nodes/core/NodeParser.d.ts +1 -1
  30. three/src/nodes/core/NodeUniform.d.ts +4 -4
  31. three/src/nodes/core/NodeVar.d.ts +4 -4
  32. three/src/nodes/core/NodeVarying.d.ts +2 -2
  33. three/src/nodes/core/StructTypeNode.d.ts +2 -2
  34. three/src/nodes/core/UniformNode.d.ts +7 -7
  35. three/src/nodes/core/constants.d.ts +0 -1
  36. three/src/nodes/display/PassNode.d.ts +10 -1
  37. three/src/nodes/functions/BSDF/LTC.d.ts +5 -1
  38. three/src/nodes/functions/VolumetricLightingModel.d.ts +6 -0
  39. three/src/nodes/lighting/AnalyticLightNode.d.ts +13 -1
  40. three/src/nodes/lighting/LightingContextNode.d.ts +18 -4
  41. three/src/nodes/lighting/LightsNode.d.ts +24 -0
  42. three/src/nodes/lighting/PointLightNode.d.ts +8 -7
  43. three/src/nodes/lighting/ShadowBaseNode.d.ts +3 -0
  44. three/src/nodes/tsl/TSLCore.d.ts +3 -0
  45. three/src/nodes/utils/ReflectorNode.d.ts +1 -0
  46. three/src/objects/LOD.d.ts +4 -3
  47. three/src/renderers/common/Animation.d.ts +4 -4
  48. three/src/renderers/common/Attributes.d.ts +1 -1
  49. three/src/renderers/common/BindGroup.d.ts +2 -2
  50. three/src/renderers/common/Binding.d.ts +2 -2
  51. three/src/renderers/common/Buffer.d.ts +3 -3
  52. three/src/renderers/common/BufferUtils.d.ts +7 -8
  53. three/src/renderers/common/BundleGroup.d.ts +2 -2
  54. three/src/renderers/common/ChainMap.d.ts +3 -3
  55. three/src/renderers/common/ClippingContext.d.ts +3 -3
  56. three/src/renderers/common/Color4.d.ts +8 -8
  57. three/src/renderers/common/ComputePipeline.d.ts +1 -1
  58. three/src/renderers/common/DataMap.d.ts +2 -2
  59. three/src/renderers/common/Geometries.d.ts +4 -4
  60. three/src/renderers/common/Info.d.ts +2 -2
  61. three/src/renderers/common/Pipeline.d.ts +1 -1
  62. three/src/renderers/common/Pipelines.d.ts +9 -9
  63. three/src/renderers/common/ProgrammableStage.d.ts +4 -4
  64. three/src/renderers/common/RenderContext.d.ts +2 -2
  65. three/src/renderers/common/RenderContexts.d.ts +3 -3
  66. three/src/renderers/common/RenderList.d.ts +11 -11
  67. three/src/renderers/common/RenderObject.d.ts +13 -13
  68. three/src/renderers/common/RenderObjects.d.ts +3 -3
  69. three/src/renderers/common/RenderPipeline.d.ts +1 -1
  70. three/src/renderers/common/Renderer.d.ts +117 -91
  71. three/src/renderers/common/Textures.d.ts +6 -6
  72. three/src/renderers/common/TimestampQueryPool.d.ts +13 -1
  73. three/src/renderers/common/Uniform.d.ts +13 -13
  74. three/src/renderers/common/UniformBuffer.d.ts +1 -1
  75. three/src/renderers/common/UniformsGroup.d.ts +13 -13
  76. three/src/renderers/common/XRManager.d.ts +13 -15
  77. three/src/renderers/common/XRRenderTarget.d.ts +4 -4
  78. three/src/renderers/common/extras/PMREMGenerator.d.ts +9 -2
  79. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -3
  80. three/src/renderers/common/nodes/NodeLibrary.d.ts +11 -11
  81. three/src/renderers/common/nodes/NodeUniform.d.ts +9 -9
  82. three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -1
  83. three/src/renderers/common/nodes/Nodes.d.ts +11 -11
  84. three/src/renderers/webgl/WebGLState.d.ts +7 -6
@@ -20,20 +20,20 @@ declare class Uniform<TValue> {
20
20
  /**
21
21
  * Constructs a new uniform.
22
22
  *
23
- * @param {String} name - The uniform's name.
24
- * @param {Any} value - The uniform's value.
23
+ * @param {string} name - The uniform's name.
24
+ * @param {any} value - The uniform's value.
25
25
  */
26
26
  constructor(name: string, value: TValue);
27
27
  /**
28
28
  * Sets the uniform's value.
29
29
  *
30
- * @param {Any} value - The value to set.
30
+ * @param {any} value - The value to set.
31
31
  */
32
32
  setValue(value: TValue): void;
33
33
  /**
34
34
  * Returns the uniform's value.
35
35
  *
36
- * @return {Any} The value.
36
+ * @return {any} The value.
37
37
  */
38
38
  getValue(): TValue;
39
39
  }
@@ -48,8 +48,8 @@ declare class NumberUniform extends Uniform<number> {
48
48
  /**
49
49
  * Constructs a new Number uniform.
50
50
  *
51
- * @param {String} name - The uniform's name.
52
- * @param {Number} value - The uniform's value.
51
+ * @param {string} name - The uniform's name.
52
+ * @param {number} value - The uniform's value.
53
53
  */
54
54
  constructor(name: string, value?: number);
55
55
  }
@@ -64,7 +64,7 @@ declare class Vector2Uniform extends Uniform<Vector2> {
64
64
  /**
65
65
  * Constructs a new Number uniform.
66
66
  *
67
- * @param {String} name - The uniform's name.
67
+ * @param {string} name - The uniform's name.
68
68
  * @param {Vector2} value - The uniform's value.
69
69
  */
70
70
  constructor(name: string, value?: Vector2);
@@ -80,7 +80,7 @@ declare class Vector3Uniform extends Uniform<Vector3> {
80
80
  /**
81
81
  * Constructs a new Number uniform.
82
82
  *
83
- * @param {String} name - The uniform's name.
83
+ * @param {string} name - The uniform's name.
84
84
  * @param {Vector3} value - The uniform's value.
85
85
  */
86
86
  constructor(name: string, value?: Vector3);
@@ -96,7 +96,7 @@ declare class Vector4Uniform extends Uniform<Vector4> {
96
96
  /**
97
97
  * Constructs a new Number uniform.
98
98
  *
99
- * @param {String} name - The uniform's name.
99
+ * @param {string} name - The uniform's name.
100
100
  * @param {Vector4} value - The uniform's value.
101
101
  */
102
102
  constructor(name: string, value?: Vector4);
@@ -112,7 +112,7 @@ declare class ColorUniform extends Uniform<Color> {
112
112
  /**
113
113
  * Constructs a new Number uniform.
114
114
  *
115
- * @param {String} name - The uniform's name.
115
+ * @param {string} name - The uniform's name.
116
116
  * @param {Color} value - The uniform's value.
117
117
  */
118
118
  constructor(name: string, value?: Color);
@@ -128,7 +128,7 @@ declare class Matrix2Uniform extends Uniform<Matrix2> {
128
128
  /**
129
129
  * Constructs a new Number uniform.
130
130
  *
131
- * @param {String} name - The uniform's name.
131
+ * @param {string} name - The uniform's name.
132
132
  * @param {Matrix2} value - The uniform's value.
133
133
  */
134
134
  constructor(name: string, value?: Matrix2);
@@ -144,7 +144,7 @@ declare class Matrix3Uniform extends Uniform<Matrix3> {
144
144
  /**
145
145
  * Constructs a new Number uniform.
146
146
  *
147
- * @param {String} name - The uniform's name.
147
+ * @param {string} name - The uniform's name.
148
148
  * @param {Matrix3} value - The uniform's value.
149
149
  */
150
150
  constructor(name: string, value?: Matrix3);
@@ -160,7 +160,7 @@ declare class Matrix4Uniform extends Uniform<Matrix4> {
160
160
  /**
161
161
  * Constructs a new Number uniform.
162
162
  *
163
- * @param {String} name - The uniform's name.
163
+ * @param {string} name - The uniform's name.
164
164
  * @param {Matrix4} value - The uniform's value.
165
165
  */
166
166
  constructor(name: string, value?: Matrix4);
@@ -10,7 +10,7 @@ declare class UniformBuffer extends Buffer {
10
10
  /**
11
11
  * Constructs a new uniform buffer.
12
12
  *
13
- * @param {String} name - The buffer's name.
13
+ * @param {string} name - The buffer's name.
14
14
  * @param {TypedArray} [buffer=null] - The buffer.
15
15
  */
16
16
  constructor(name?: string, buffer?: null);
@@ -23,7 +23,7 @@ declare class UniformsGroup extends UniformBuffer {
23
23
  /**
24
24
  * Constructs a new uniforms group.
25
25
  *
26
- * @param {String} name - The group's name.
26
+ * @param {string} name - The group's name.
27
27
  */
28
28
  constructor(name?: string);
29
29
  /**
@@ -43,7 +43,7 @@ declare class UniformsGroup extends UniformBuffer {
43
43
  /**
44
44
  * An array with the raw uniform values.
45
45
  *
46
- * @type {Array<Number>}
46
+ * @type {Array<number>}
47
47
  */
48
48
  get values(): number[];
49
49
  /**
@@ -55,7 +55,7 @@ declare class UniformsGroup extends UniformBuffer {
55
55
  /**
56
56
  * The byte length of the buffer with correct buffer alignment.
57
57
  *
58
- * @type {Number}
58
+ * @type {number}
59
59
  */
60
60
  get byteLength(): number;
61
61
  /**
@@ -64,7 +64,7 @@ declare class UniformsGroup extends UniformBuffer {
64
64
  * values has actually changed so this method only returns
65
65
  * `true` if there is a real value change.
66
66
  *
67
- * @return {Boolean} Whether the uniforms have been updated and
67
+ * @return {boolean} Whether the uniforms have been updated and
68
68
  * must be uploaded to the GPU.
69
69
  */
70
70
  update(): boolean;
@@ -73,62 +73,62 @@ declare class UniformsGroup extends UniformBuffer {
73
73
  * the uniforms type.
74
74
  *
75
75
  * @param {Uniform} uniform - The uniform to update.
76
- * @return {Boolean} Whether the uniform has been updated or not.
76
+ * @return {boolean} Whether the uniform has been updated or not.
77
77
  */
78
78
  updateByType(uniform: NodeUniformGPU): boolean | undefined;
79
79
  /**
80
80
  * Updates a given Number uniform.
81
81
  *
82
82
  * @param {NumberUniform} uniform - The Number uniform.
83
- * @return {Boolean} Whether the uniform has been updated or not.
83
+ * @return {boolean} Whether the uniform has been updated or not.
84
84
  */
85
85
  updateNumber(uniform: NumberNodeUniform): boolean;
86
86
  /**
87
87
  * Updates a given Vector2 uniform.
88
88
  *
89
89
  * @param {Vector2Uniform} uniform - The Vector2 uniform.
90
- * @return {Boolean} Whether the uniform has been updated or not.
90
+ * @return {boolean} Whether the uniform has been updated or not.
91
91
  */
92
92
  updateVector2(uniform: Vector2NodeUniform): boolean;
93
93
  /**
94
94
  * Updates a given Vector3 uniform.
95
95
  *
96
96
  * @param {Vector3Uniform} uniform - The Vector3 uniform.
97
- * @return {Boolean} Whether the uniform has been updated or not.
97
+ * @return {boolean} Whether the uniform has been updated or not.
98
98
  */
99
99
  updateVector3(uniform: Vector3NodeUniform): boolean;
100
100
  /**
101
101
  * Updates a given Vector4 uniform.
102
102
  *
103
103
  * @param {Vector4Uniform} uniform - The Vector4 uniform.
104
- * @return {Boolean} Whether the uniform has been updated or not.
104
+ * @return {boolean} Whether the uniform has been updated or not.
105
105
  */
106
106
  updateVector4(uniform: Vector4NodeUniform): boolean;
107
107
  /**
108
108
  * Updates a given Color uniform.
109
109
  *
110
110
  * @param {ColorUniform} uniform - The Color uniform.
111
- * @return {Boolean} Whether the uniform has been updated or not.
111
+ * @return {boolean} Whether the uniform has been updated or not.
112
112
  */
113
113
  updateColor(uniform: ColorNodeUniform): boolean;
114
114
  /**
115
115
  * Updates a given Matrix3 uniform.
116
116
  *
117
117
  * @param {Matrix3Uniform} uniform - The Matrix3 uniform.
118
- * @return {Boolean} Whether the uniform has been updated or not.
118
+ * @return {boolean} Whether the uniform has been updated or not.
119
119
  */
120
120
  updateMatrix3(uniform: Matrix3NodeUniform): boolean;
121
121
  /**
122
122
  * Updates a given Matrix4 uniform.
123
123
  *
124
124
  * @param {Matrix4Uniform} uniform - The Matrix4 uniform.
125
- * @return {Boolean} Whether the uniform has been updated or not.
125
+ * @return {boolean} Whether the uniform has been updated or not.
126
126
  */
127
127
  updateMatrix4(uniform: Matrix4NodeUniform): boolean;
128
128
  /**
129
129
  * Returns a typed array that matches the given data type.
130
130
  *
131
- * @param {String} type - The data type.
131
+ * @param {string} type - The data type.
132
132
  * @return {TypedArray} The typed array.
133
133
  */
134
134
  _getBufferForType(type: string | null): Int32Array | Uint32Array | Float32Array;
@@ -1,7 +1,6 @@
1
1
  import { ArrayCamera } from "../../cameras/ArrayCamera.js";
2
2
  import { PerspectiveCamera } from "../../cameras/PerspectiveCamera.js";
3
3
  import { EventDispatcher } from "../../core/EventDispatcher.js";
4
- import { RenderTarget } from "../../core/RenderTarget.js";
5
4
  import { Vector2 } from "../../math/Vector2.js";
6
5
  import { WebXRController } from "../webxr/WebXRController.js";
7
6
  import { AnimationContext } from "./Animation.js";
@@ -35,7 +34,6 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
35
34
  _currentDepthFar: number | null;
36
35
  _controllers: WebXRController[];
37
36
  _controllerInputSources: (XRInputSource | null)[];
38
- _currentRenderTarget: RenderTarget | null;
39
37
  _xrRenderTarget: XRRenderTarget | null;
40
38
  _currentAnimationContext: AnimationContext | null;
41
39
  _currentAnimationLoop: ((time: DOMHighResTimeStamp, frame?: XRFrame) => void) | null;
@@ -67,7 +65,7 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
67
65
  * of a XR controller in target ray space. The requested controller is defined
68
66
  * by the given index.
69
67
  *
70
- * @param {Number} index - The index of the XR controller.
68
+ * @param {number} index - The index of the XR controller.
71
69
  * @return {Group} A group that represents the controller's transformation.
72
70
  */
73
71
  getController(index: number): import("../webxr/WebXRController.js").XRTargetRaySpace;
@@ -76,7 +74,7 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
76
74
  * of a XR controller in grip space. The requested controller is defined
77
75
  * by the given index.
78
76
  *
79
- * @param {Number} index - The index of the XR controller.
77
+ * @param {number} index - The index of the XR controller.
80
78
  * @return {Group} A group that represents the controller's transformation.
81
79
  */
82
80
  getControllerGrip(index: number): import("../webxr/WebXRController.js").XRGripSpace;
@@ -85,27 +83,27 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
85
83
  * of a XR controller in hand space. The requested controller is defined
86
84
  * by the given index.
87
85
  *
88
- * @param {Number} index - The index of the XR controller.
86
+ * @param {number} index - The index of the XR controller.
89
87
  * @return {Group} A group that represents the controller's transformation.
90
88
  */
91
89
  getHand(index: number): import("../webxr/WebXRController.js").XRHandSpace;
92
90
  /**
93
91
  * Returns the foveation value.
94
92
  *
95
- * @return {Number|undefined} The foveation value. Returns `undefined` if no base or projection layer is defined.
93
+ * @return {number|undefined} The foveation value. Returns `undefined` if no base or projection layer is defined.
96
94
  */
97
95
  getFoveation(): number | undefined;
98
96
  /**
99
97
  * Sets the foveation value.
100
98
  *
101
- * @param {Number} foveation - A number in the range `[0,1]` where `0` means no foveation (full resolution)
99
+ * @param {number} foveation - A number in the range `[0,1]` where `0` means no foveation (full resolution)
102
100
  * and `1` means maximum foveation (the edges render at lower resolution).
103
101
  */
104
102
  setFoveation(foveation: number): void;
105
103
  /**
106
104
  * Returns the framebuffer scale factor.
107
105
  *
108
- * @return {Number} The framebuffer scale factor.
106
+ * @return {number} The framebuffer scale factor.
109
107
  */
110
108
  getFramebufferScaleFactor(): number;
111
109
  /**
@@ -113,13 +111,13 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
113
111
  *
114
112
  * This method can not be used during a XR session.
115
113
  *
116
- * @param {Number} factor - The framebuffer scale factor.
114
+ * @param {number} factor - The framebuffer scale factor.
117
115
  */
118
116
  setFramebufferScaleFactor(factor: number): void;
119
117
  /**
120
118
  * Returns the reference space type.
121
119
  *
122
- * @return {String} The reference space type.
120
+ * @return {string} The reference space type.
123
121
  */
124
122
  getReferenceSpaceType(): XRReferenceSpaceType;
125
123
  /**
@@ -127,7 +125,7 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
127
125
  *
128
126
  * This method can not be used during a XR session.
129
127
  *
130
- * @param {String} type - The reference space type.
128
+ * @param {string} type - The reference space type.
131
129
  */
132
130
  setReferenceSpaceType(type: XRReferenceSpaceType): void;
133
131
  /**
@@ -151,19 +149,19 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
151
149
  /**
152
150
  * Returns the environment blend mode from the current XR session.
153
151
  *
154
- * @return {('opaque'|'additive'|'alpha-blend')?} The environment blend mode. Returns `null` when used outside of a XR session.
152
+ * @return {?('opaque'|'additive'|'alpha-blend')} The environment blend mode. Returns `null` when used outside of a XR session.
155
153
  */
156
154
  getEnvironmentBlendMode(): XREnvironmentBlendMode | undefined;
157
155
  /**
158
156
  * Returns the current XR frame.
159
157
  *
160
- * @return {XRFrame?} The XR frame. Returns `null` when used outside a XR session.
158
+ * @return {?XRFrame} The XR frame. Returns `null` when used outside a XR session.
161
159
  */
162
160
  getFrame(): XRFrame | null;
163
161
  /**
164
162
  * Returns the current XR session.
165
163
  *
166
- * @return {XRSession?} The XR session. Returns `null` when used outside a XR session.
164
+ * @return {?XRSession} The XR session. Returns `null` when used outside a XR session.
167
165
  */
168
166
  getSession(): XRSession | null;
169
167
  /**
@@ -188,7 +186,7 @@ declare class XRManager extends EventDispatcher<XRManagerEventMap> {
188
186
  * Returns a WebXR controller for the given controller index.
189
187
  *
190
188
  * @private
191
- * @param {Number} index - The controller index.
189
+ * @param {number} index - The controller index.
192
190
  * @return {WebXRController} The XR controller.
193
191
  */
194
192
  _getController(index: number): WebXRController;
@@ -1,4 +1,4 @@
1
- import { RenderTarget } from "../../core/RenderTarget.js";
1
+ import { RenderTarget, RenderTargetOptions } from "../../core/RenderTarget.js";
2
2
  /**
3
3
  * A special type of render target that is used when rendering
4
4
  * with the WebXR Device API.
@@ -13,11 +13,11 @@ declare class XRRenderTarget extends RenderTarget {
13
13
  /**
14
14
  * Constructs a new XR render target.
15
15
  *
16
- * @param {Number} [width=1] - The width of the render target.
17
- * @param {Number} [height=1] - The height of the render target.
16
+ * @param {number} [width=1] - The width of the render target.
17
+ * @param {number} [height=1] - The height of the render target.
18
18
  * @param {Object} [options={}] - The configuration options.
19
19
  */
20
- constructor(width?: number, height?: number, options?: {});
20
+ constructor(width?: number, height?: number, options?: RenderTargetOptions);
21
21
  copy(source: XRRenderTarget): this;
22
22
  }
23
23
  export { XRRenderTarget };
@@ -1,7 +1,14 @@
1
1
  import { RenderTarget } from "../../../core/RenderTarget.js";
2
+ import { Vector3 } from "../../../math/Vector3.js";
2
3
  import { Scene } from "../../../scenes/Scene.js";
3
4
  import Renderer from "../Renderer.js";
4
5
 
6
+ export interface PMREMGeneratorOptions {
7
+ size?: number | undefined;
8
+ position?: Vector3 | undefined;
9
+ renderTarget?: RenderTarget | null | undefined;
10
+ }
11
+
5
12
  declare class PMREMGenerator {
6
13
  constructor(renderer: Renderer);
7
14
 
@@ -10,7 +17,7 @@ declare class PMREMGenerator {
10
17
  sigma?: number,
11
18
  near?: number,
12
19
  far?: number,
13
- renderTarget?: RenderTarget | null,
20
+ options?: PMREMGeneratorOptions,
14
21
  ): RenderTarget;
15
22
 
16
23
  fromSceneAsync(
@@ -18,7 +25,7 @@ declare class PMREMGenerator {
18
25
  sigma?: number,
19
26
  near?: number,
20
27
  far?: number,
21
- renderTarget?: RenderTarget | null,
28
+ options?: PMREMGeneratorOptions,
22
29
  ): Promise<RenderTarget>;
23
30
 
24
31
  dispose(): void;
@@ -26,9 +26,9 @@ declare class NodeBuilderState {
26
26
  /**
27
27
  * Constructs a new node builder state.
28
28
  *
29
- * @param {String?} vertexShader - The native vertex shader code.
30
- * @param {String?} fragmentShader - The native fragment shader code.
31
- * @param {String?} computeShader - The native compute shader code.
29
+ * @param {?string} vertexShader - The native vertex shader code.
30
+ * @param {?string} fragmentShader - The native fragment shader code.
31
+ * @param {?string} computeShader - The native compute shader code.
32
32
  * @param {Array<NodeAttribute>} nodeAttributes - An array of node attributes.
33
33
  * @param {Array<BindGroup>} bindings - An array of bind groups.
34
34
  * @param {Array<Node>} updateNodes - An array of nodes that implement their `update()` method.
@@ -45,7 +45,7 @@ declare class NodeLibrary {
45
45
  * Adds a tone mapping node function for a tone mapping technique (constant).
46
46
  *
47
47
  * @param {Function} toneMappingNode - The tone mapping node function.
48
- * @param {Number} toneMapping - The tone mapping.
48
+ * @param {number} toneMapping - The tone mapping.
49
49
  */
50
50
  addToneMapping(
51
51
  toneMappingNode: (color: NodeRepresentation, exposure: NodeRepresentation) => ShaderNodeObject<Node>,
@@ -54,8 +54,8 @@ declare class NodeLibrary {
54
54
  /**
55
55
  * Returns a tone mapping node function for a tone mapping technique (constant).
56
56
  *
57
- * @param {Number} toneMapping - The tone mapping.
58
- * @return {Function?} The tone mapping node function. Returns `null` if no node function is found.
57
+ * @param {number} toneMapping - The tone mapping.
58
+ * @return {?Function} The tone mapping node function. Returns `null` if no node function is found.
59
59
  */
60
60
  getToneMappingFunction(
61
61
  toneMapping: ToneMapping,
@@ -63,15 +63,15 @@ declare class NodeLibrary {
63
63
  /**
64
64
  * Returns a node material class definition for a material type.
65
65
  *
66
- * @param {String} materialType - The material type.
67
- * @return {NodeMaterial.constructor?} The node material class definition. Returns `null` if no node material is found.
66
+ * @param {string} materialType - The material type.
67
+ * @return {?NodeMaterial.constructor} The node material class definition. Returns `null` if no node material is found.
68
68
  */
69
69
  getMaterialNodeClass(materialType: string): (new() => NodeMaterial) | null;
70
70
  /**
71
71
  * Adds a node material class definition for a given material type.
72
72
  *
73
73
  * @param {NodeMaterial.constructor} materialNodeClass - The node material class definition.
74
- * @param {String} materialClassType - The material type.
74
+ * @param {string} materialClassType - The material type.
75
75
  */
76
76
  addMaterial(materialNodeClass: {
77
77
  new(): NodeMaterial;
@@ -80,7 +80,7 @@ declare class NodeLibrary {
80
80
  * Returns a light node class definition for a light class definition.
81
81
  *
82
82
  * @param {Light.constructor} light - The light class definition.
83
- * @return {AnalyticLightNode.constructor?} The light node class definition. Returns `null` if no light node is found.
83
+ * @return {?AnalyticLightNode.constructor} The light node class definition. Returns `null` if no light node is found.
84
84
  */
85
85
  getLightNodeClass(light: Light): (new(light: Light) => AnalyticLightNode<Light>) | null;
86
86
  /**
@@ -97,16 +97,16 @@ declare class NodeLibrary {
97
97
  /**
98
98
  * Adds a node class definition for the given type to the provided type library.
99
99
  *
100
- * @param {Any} nodeClass - The node class definition.
101
- * @param {Number|String} type - The object type.
100
+ * @param {any} nodeClass - The node class definition.
101
+ * @param {number|string} type - The object type.
102
102
  * @param {Map} library - The type library.
103
103
  */
104
104
  addType<TNodeClass, TType>(nodeClass: TNodeClass, type: TType, library: Map<TType, TNodeClass>): void;
105
105
  /**
106
106
  * Adds a node class definition for the given class definition to the provided type library.
107
107
  *
108
- * @param {Any} nodeClass - The node class definition.
109
- * @param {Any} baseClass - The class definition.
108
+ * @param {any} nodeClass - The node class definition.
109
+ * @param {any} baseClass - The class definition.
110
110
  * @param {WeakMap} library - The type library.
111
111
  */
112
112
  addClass<TNodeClass, TBaseClass extends object>(
@@ -34,13 +34,13 @@ declare class NumberNodeUniform extends NumberUniform {
34
34
  /**
35
35
  * Overwritten to return the value of the node uniform.
36
36
  *
37
- * @return {Number} The value.
37
+ * @return {number} The value.
38
38
  */
39
39
  getValue(): number;
40
40
  /**
41
41
  * Returns the node uniform data type.
42
42
  *
43
- * @return {String} The data type.
43
+ * @return {string} The data type.
44
44
  */
45
45
  getType(): string | null;
46
46
  }
@@ -68,7 +68,7 @@ declare class Vector2NodeUniform extends Vector2Uniform {
68
68
  /**
69
69
  * Returns the node uniform data type.
70
70
  *
71
- * @return {String} The data type.
71
+ * @return {string} The data type.
72
72
  */
73
73
  getType(): string | null;
74
74
  }
@@ -96,7 +96,7 @@ declare class Vector3NodeUniform extends Vector3Uniform {
96
96
  /**
97
97
  * Returns the node uniform data type.
98
98
  *
99
- * @return {String} The data type.
99
+ * @return {string} The data type.
100
100
  */
101
101
  getType(): string | null;
102
102
  }
@@ -124,7 +124,7 @@ declare class Vector4NodeUniform extends Vector4Uniform {
124
124
  /**
125
125
  * Returns the node uniform data type.
126
126
  *
127
- * @return {String} The data type.
127
+ * @return {string} The data type.
128
128
  */
129
129
  getType(): string | null;
130
130
  }
@@ -152,7 +152,7 @@ declare class ColorNodeUniform extends ColorUniform {
152
152
  /**
153
153
  * Returns the node uniform data type.
154
154
  *
155
- * @return {String} The data type.
155
+ * @return {string} The data type.
156
156
  */
157
157
  getType(): string | null;
158
158
  }
@@ -180,7 +180,7 @@ declare class Matrix2NodeUniform extends Matrix2Uniform {
180
180
  /**
181
181
  * Returns the node uniform data type.
182
182
  *
183
- * @return {String} The data type.
183
+ * @return {string} The data type.
184
184
  */
185
185
  getType(): string | null;
186
186
  }
@@ -208,7 +208,7 @@ declare class Matrix3NodeUniform extends Matrix3Uniform {
208
208
  /**
209
209
  * Returns the node uniform data type.
210
210
  *
211
- * @return {String} The data type.
211
+ * @return {string} The data type.
212
212
  */
213
213
  getType(): string | null;
214
214
  }
@@ -236,7 +236,7 @@ declare class Matrix4NodeUniform extends Matrix4Uniform {
236
236
  /**
237
237
  * Returns the node uniform data type.
238
238
  *
239
- * @return {String} The data type.
239
+ * @return {string} The data type.
240
240
  */
241
241
  getType(): string | null;
242
242
  }
@@ -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);
@@ -97,14 +97,14 @@ declare class Nodes extends DataMap<{
97
97
  * Returns `true` if the given node uniforms group must be updated or not.
98
98
  *
99
99
  * @param {NodeUniformsGroup} nodeUniformsGroup - The node uniforms group.
100
- * @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.
101
101
  */
102
102
  updateGroup(nodeUniformsGroup: NodeUniformsGroup): boolean;
103
103
  /**
104
104
  * Returns the cache key for the given render object.
105
105
  *
106
106
  * @param {RenderObject} renderObject - The render object.
107
- * @return {Number} The cache key.
107
+ * @return {number} The cache key.
108
108
  */
109
109
  getForRenderCacheKey(renderObject: RenderObject): string;
110
110
  /**
@@ -117,8 +117,8 @@ declare class Nodes extends DataMap<{
117
117
  /**
118
118
  * Deletes the given object from the internal data map
119
119
  *
120
- * @param {Any} object - The object to delete.
121
- * @return {Object?} The deleted dictionary.
120
+ * @param {any} object - The object to delete.
121
+ * @return {?Object} The deleted dictionary.
122
122
  */
123
123
  delete(
124
124
  object: NodeUniformsGroup | RenderObject | ComputeNode | Scene,
@@ -169,14 +169,14 @@ declare class Nodes extends DataMap<{
169
169
  *
170
170
  * @param {Scene} scene - The scene.
171
171
  * @param {LightsNode} lightsNode - The lights node.
172
- * @return {Number} The cache key.
172
+ * @return {number} The cache key.
173
173
  */
174
174
  getCacheKey(scene: Scene, lightsNode: LightsNode): number;
175
175
  /**
176
176
  * A boolean that indicates whether tone mapping should be enabled
177
177
  * or not.
178
178
  *
179
- * @type {Boolean}
179
+ * @type {boolean}
180
180
  */
181
181
  get isToneMappingState(): boolean;
182
182
  /**
@@ -190,10 +190,10 @@ declare class Nodes extends DataMap<{
190
190
  * This method is part of the caching of nodes which are used to represents the
191
191
  * scene's background, fog or environment.
192
192
  *
193
- * @param {String} type - The type of object to cache.
193
+ * @param {string} type - The type of object to cache.
194
194
  * @param {Object} object - The object.
195
195
  * @param {Function} callback - A callback that produces a node representation for the given object.
196
- * @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.
197
197
  * @return {Node} The node representation.
198
198
  */
199
199
  getCacheNode(
@@ -227,7 +227,7 @@ declare class Nodes extends DataMap<{
227
227
  /**
228
228
  * Returns the current output cache key.
229
229
  *
230
- * @return {String} The output cache key.
230
+ * @return {string} The output cache key.
231
231
  */
232
232
  getOutputCacheKey(): string;
233
233
  /**
@@ -235,7 +235,7 @@ declare class Nodes extends DataMap<{
235
235
  * the given target has changed.
236
236
  *
237
237
  * @param {Texture} outputTarget - The output target.
238
- * @return {Boolean} Whether the output configuration has changed or not.
238
+ * @return {boolean} Whether the output configuration has changed or not.
239
239
  */
240
240
  hasOutputChange(outputTarget: Texture): boolean;
241
241
  /**
@@ -278,7 +278,7 @@ declare class Nodes extends DataMap<{
278
278
  * Returns `true` if the given render object requires a refresh.
279
279
  *
280
280
  * @param {RenderObject} renderObject - The render object.
281
- * @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.
282
282
  */
283
283
  needsRefresh(renderObject: RenderObject): boolean;
284
284
  /**