@types/three 0.176.0 → 0.178.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 (214) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/Addons.d.ts +0 -1
  3. three/examples/jsm/capabilities/WebGL.d.ts +0 -11
  4. three/examples/jsm/controls/TransformControls.d.ts +16 -1
  5. three/examples/jsm/helpers/TextureHelper.d.ts +2 -2
  6. three/examples/jsm/helpers/TextureHelperGPU.d.ts +2 -2
  7. three/examples/jsm/loaders/LDrawLoader.d.ts +8 -3
  8. three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
  9. three/examples/jsm/math/Octree.d.ts +3 -0
  10. three/examples/jsm/physics/RapierPhysics.d.ts +1 -0
  11. three/examples/jsm/postprocessing/AfterimagePass.d.ts +13 -10
  12. three/examples/jsm/postprocessing/FXAAPass.d.ts +7 -0
  13. three/examples/jsm/transpiler/AST.d.ts +77 -26
  14. three/examples/jsm/transpiler/TSLEncoder.d.ts +9 -3
  15. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +4 -4
  16. three/examples/jsm/tsl/display/BleachBypass.d.ts +2 -2
  17. three/examples/jsm/tsl/display/BloomNode.d.ts +2 -2
  18. three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +20 -0
  19. three/examples/jsm/tsl/display/DenoiseNode.d.ts +4 -4
  20. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +6 -6
  21. three/examples/jsm/tsl/display/DotScreenNode.d.ts +2 -2
  22. three/examples/jsm/tsl/display/FXAANode.d.ts +3 -3
  23. three/examples/jsm/tsl/display/FilmNode.d.ts +4 -4
  24. three/examples/jsm/tsl/display/GTAONode.d.ts +3 -3
  25. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +5 -5
  26. three/examples/jsm/tsl/display/LensflareNode.d.ts +8 -8
  27. three/examples/jsm/tsl/display/Lut3DNode.d.ts +4 -4
  28. three/examples/jsm/tsl/display/MotionBlur.d.ts +4 -4
  29. three/examples/jsm/tsl/display/OutlineNode.d.ts +3 -3
  30. three/examples/jsm/tsl/display/RGBShiftNode.d.ts +3 -3
  31. three/examples/jsm/tsl/display/SMAANode.d.ts +3 -3
  32. three/examples/jsm/tsl/display/SSRNode.d.ts +5 -5
  33. three/examples/jsm/tsl/display/Sepia.d.ts +2 -2
  34. three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +3 -3
  35. three/examples/jsm/tsl/display/TransitionNode.d.ts +4 -4
  36. three/examples/jsm/tsl/display/hashBlur.d.ts +10 -4
  37. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +5 -5
  38. three/package.json +3 -3
  39. three/src/Three.Core.d.ts +0 -2
  40. three/src/Three.TSL.d.ts +11 -18
  41. three/src/Three.WebGPU.Nodes.d.ts +1 -0
  42. three/src/Three.WebGPU.d.ts +3 -0
  43. three/src/animation/tracks/NumberKeyframeTrack.d.ts +1 -1
  44. three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +1 -1
  45. three/src/animation/tracks/StringKeyframeTrack.d.ts +1 -1
  46. three/src/animation/tracks/VectorKeyframeTrack.d.ts +1 -1
  47. three/src/constants.d.ts +13 -5
  48. three/src/core/BufferGeometry.d.ts +11 -2
  49. three/src/core/GLBufferAttribute.d.ts +18 -1
  50. three/src/core/RenderTarget.d.ts +3 -20
  51. three/src/extras/DataUtils.d.ts +4 -4
  52. three/src/geometries/CapsuleGeometry.d.ts +1 -0
  53. three/src/helpers/AxesHelper.d.ts +3 -1
  54. three/src/lights/SpotLightShadow.d.ts +2 -0
  55. three/src/lights/webgpu/ProjectorLight.d.ts +17 -0
  56. three/src/materials/LineBasicMaterial.d.ts +66 -34
  57. three/src/materials/LineDashedMaterial.d.ts +41 -21
  58. three/src/materials/Material.d.ts +408 -398
  59. three/src/materials/MeshBasicMaterial.d.ts +101 -62
  60. three/src/materials/MeshDepthMaterial.d.ts +71 -32
  61. three/src/materials/MeshDistanceMaterial.d.ts +65 -29
  62. three/src/materials/MeshLambertMaterial.d.ts +179 -103
  63. three/src/materials/MeshMatcapMaterial.d.ts +97 -55
  64. three/src/materials/MeshNormalMaterial.d.ts +76 -41
  65. three/src/materials/MeshPhongMaterial.d.ts +164 -100
  66. three/src/materials/MeshPhysicalMaterial.d.ts +164 -116
  67. three/src/materials/MeshStandardMaterial.d.ts +178 -91
  68. three/src/materials/MeshToonMaterial.d.ts +130 -81
  69. three/src/materials/PointsMaterial.d.ts +77 -30
  70. three/src/materials/RawShaderMaterial.d.ts +12 -7
  71. three/src/materials/ShaderMaterial.d.ts +186 -98
  72. three/src/materials/ShadowMaterial.d.ts +49 -23
  73. three/src/materials/SpriteMaterial.d.ts +62 -33
  74. three/src/materials/nodes/Line2NodeMaterial.d.ts +87 -40
  75. three/src/materials/nodes/LineBasicNodeMaterial.d.ts +35 -16
  76. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +75 -20
  77. three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +49 -30
  78. three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -42
  79. three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +38 -26
  80. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +36 -22
  81. three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +68 -48
  82. three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +240 -65
  83. three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +99 -3
  84. three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +83 -47
  85. three/src/materials/nodes/MeshToonNodeMaterial.d.ts +42 -36
  86. three/src/materials/nodes/NodeMaterial.d.ts +418 -55
  87. three/src/materials/nodes/NodeMaterials.d.ts +3 -2
  88. three/src/materials/nodes/PointsNodeMaterial.d.ts +31 -7
  89. three/src/materials/nodes/ShadowNodeMaterial.d.ts +38 -11
  90. three/src/materials/nodes/SpriteNodeMaterial.d.ts +68 -18
  91. three/src/materials/nodes/VolumeNodeMaterial.d.ts +50 -14
  92. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +4 -0
  93. three/src/math/Box3.d.ts +8 -0
  94. three/src/math/Color.d.ts +1 -1
  95. three/src/math/ColorManagement.d.ts +12 -2
  96. three/src/math/Sphere.d.ts +8 -0
  97. three/src/math/Triangle.d.ts +3 -3
  98. three/src/nodes/Nodes.d.ts +2 -3
  99. three/src/nodes/TSL.d.ts +4 -3
  100. three/src/nodes/accessors/AccessorsUtils.d.ts +3 -3
  101. three/src/nodes/accessors/Bitangent.d.ts +0 -2
  102. three/src/nodes/accessors/CubeTextureNode.d.ts +16 -5
  103. three/src/nodes/accessors/Normal.d.ts +19 -5
  104. three/src/nodes/accessors/ReferenceBaseNode.d.ts +1 -1
  105. three/src/nodes/accessors/StorageBufferNode.d.ts +3 -2
  106. three/src/nodes/accessors/StorageTextureNode.d.ts +5 -5
  107. three/src/nodes/accessors/Tangent.d.ts +0 -2
  108. three/src/nodes/accessors/TangentUtils.d.ts +22 -0
  109. three/src/nodes/accessors/Texture3DNode.d.ts +5 -4
  110. three/src/nodes/accessors/TextureBicubic.d.ts +4 -2
  111. three/src/nodes/accessors/TextureNode.d.ts +24 -19
  112. three/src/nodes/accessors/TextureSizeNode.d.ts +3 -3
  113. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -7
  114. three/src/nodes/code/FunctionCallNode.d.ts +3 -1
  115. three/src/nodes/code/FunctionNode.d.ts +2 -2
  116. three/src/nodes/code/ScriptableNode.d.ts +2 -2
  117. three/src/nodes/core/AssignNode.d.ts +7 -3
  118. three/src/nodes/core/AttributeNode.d.ts +1 -1
  119. three/src/nodes/core/BypassNode.d.ts +2 -2
  120. three/src/nodes/core/CacheNode.d.ts +1 -0
  121. three/src/nodes/core/ContextNode.d.ts +3 -3
  122. three/src/nodes/core/Node.d.ts +5 -4
  123. three/src/nodes/core/NodeUtils.d.ts +4 -0
  124. three/src/nodes/core/StackNode.d.ts +3 -13
  125. three/src/nodes/core/SubBuildNode.d.ts +15 -0
  126. three/src/nodes/core/VarNode.d.ts +4 -4
  127. three/src/nodes/core/VaryingNode.d.ts +3 -3
  128. three/src/nodes/display/BlendModes.d.ts +14 -10
  129. three/src/nodes/display/BumpMapNode.d.ts +4 -3
  130. three/src/nodes/display/ColorAdjustment.d.ts +17 -17
  131. three/src/nodes/display/ColorSpaceFunctions.d.ts +3 -3
  132. three/src/nodes/display/ColorSpaceNode.d.ts +6 -16
  133. three/src/nodes/display/FrontFacingNode.d.ts +1 -0
  134. three/src/nodes/display/PosterizeNode.d.ts +3 -3
  135. three/src/nodes/display/RenderOutputNode.d.ts +2 -2
  136. three/src/nodes/display/ScreenNode.d.ts +0 -10
  137. three/src/nodes/display/ToneMappingFunctions.d.ts +7 -7
  138. three/src/nodes/display/ToneMappingNode.d.ts +6 -6
  139. three/src/nodes/display/ViewportDepthTextureNode.d.ts +3 -3
  140. three/src/nodes/fog/Fog.d.ts +10 -10
  141. three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +4 -4
  142. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +2 -2
  143. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +4 -4
  144. three/src/nodes/geometry/RangeNode.d.ts +9 -2
  145. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +20 -20
  146. three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
  147. three/src/nodes/lighting/PointShadowNode.d.ts +11 -11
  148. three/src/nodes/lighting/ProjectorLightNode.d.ts +5 -0
  149. three/src/nodes/lighting/ShadowFilterNode.d.ts +11 -11
  150. three/src/nodes/lighting/SpotLightNode.d.ts +15 -1
  151. three/src/nodes/materialx/MaterialXNodes.d.ts +59 -59
  152. three/src/nodes/materialx/lib/mx_hsv.d.ts +3 -3
  153. three/src/nodes/materialx/lib/mx_noise.d.ts +206 -206
  154. three/src/nodes/materialx/lib/mx_transform_color.d.ts +2 -2
  155. three/src/nodes/math/ConditionalNode.d.ts +4 -19
  156. three/src/nodes/math/Hash.d.ts +2 -2
  157. three/src/nodes/math/MathNode.d.ts +21 -17
  158. three/src/nodes/math/OperatorNode.d.ts +41 -52
  159. three/src/nodes/math/TriNoise3D.d.ts +6 -6
  160. three/src/nodes/pmrem/PMREMNode.d.ts +3 -3
  161. three/src/nodes/pmrem/PMREMUtils.d.ts +20 -20
  162. three/src/nodes/procedural/Checker.d.ts +2 -2
  163. three/src/nodes/shapes/Shapes.d.ts +2 -2
  164. three/src/nodes/tsl/TSLBase.d.ts +1 -0
  165. three/src/nodes/tsl/TSLCore.d.ts +186 -81
  166. three/src/nodes/utils/CubeMapNode.d.ts +2 -2
  167. three/src/nodes/utils/DebugNode.d.ts +2 -2
  168. three/src/nodes/utils/Discard.d.ts +2 -2
  169. three/src/nodes/utils/EquirectUV.d.ts +4 -0
  170. three/src/nodes/utils/LoopNode.d.ts +2 -7
  171. three/src/nodes/utils/MatcapUV.d.ts +4 -0
  172. three/src/nodes/utils/Oscillators.d.ts +5 -5
  173. three/src/nodes/utils/Packing.d.ts +3 -3
  174. three/src/nodes/utils/PostProcessingUtils.d.ts +9 -9
  175. three/src/nodes/utils/RTTNode.d.ts +3 -3
  176. three/src/nodes/utils/ReflectorNode.d.ts +1 -0
  177. three/src/nodes/utils/RemapNode.d.ts +9 -9
  178. three/src/nodes/utils/RotateNode.d.ts +3 -3
  179. three/src/nodes/utils/SampleNode.d.ts +16 -0
  180. three/src/nodes/utils/SpriteSheetUVNode.d.ts +4 -4
  181. three/src/nodes/utils/SpriteUtils.d.ts +2 -2
  182. three/src/nodes/utils/StorageArrayElementNode.d.ts +4 -3
  183. three/src/nodes/utils/TriplanarTextures.d.ts +20 -0
  184. three/src/nodes/utils/UVUtils.d.ts +8 -7
  185. three/src/nodes/utils/ViewportUtils.d.ts +2 -2
  186. three/src/objects/LOD.d.ts +1 -1
  187. three/src/objects/Mesh.d.ts +8 -0
  188. three/src/objects/Sprite.d.ts +8 -0
  189. three/src/renderers/WebGLRenderer.d.ts +3 -3
  190. three/src/renderers/common/Backend.d.ts +3 -3
  191. three/src/renderers/common/RenderObject.d.ts +10 -2
  192. three/src/renderers/common/Renderer.d.ts +10 -5
  193. three/src/renderers/common/Storage3DTexture.d.ts +40 -0
  194. three/src/renderers/common/StorageArrayTexture.d.ts +29 -0
  195. three/src/renderers/common/Textures.d.ts +2 -2
  196. three/src/renderers/common/XRManager.d.ts +45 -0
  197. three/src/renderers/common/XRRenderTarget.d.ts +3 -2
  198. three/src/renderers/common/nodes/NodeLibrary.d.ts +4 -9
  199. three/src/renderers/common/nodes/NodeSampledTexture.d.ts +1 -1
  200. three/src/renderers/common/nodes/Nodes.d.ts +1 -1
  201. three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -0
  202. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +65 -0
  203. three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +1 -0
  204. three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +10 -1
  205. three/src/textures/DepthTexture.d.ts +4 -2
  206. three/src/textures/Source.d.ts +20 -16
  207. three/src/textures/Texture.d.ts +69 -2
  208. three/examples/jsm/effects/PeppersGhostEffect.d.ts +0 -10
  209. three/src/core/RenderTargetArray.d.ts +0 -9
  210. three/src/nodes/utils/EquirectUVNode.d.ts +0 -8
  211. three/src/nodes/utils/MatcapUVNode.d.ts +0 -8
  212. three/src/nodes/utils/TriplanarTexturesNode.d.ts +0 -36
  213. three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +0 -5
  214. three/src/textures/DepthArrayTexture.d.ts +0 -14
@@ -1,12 +1,12 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
- import { TempNode, TextureNode, UniformNode, Vector3 } from "three/webgpu";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode, Vector3 } from "three/webgpu";
3
3
 
4
4
  interface LensflareNodeParams {
5
- ghostTint?: NodeRepresentation | undefined;
6
- threshold?: NodeRepresentation | undefined;
7
- ghostSamples?: NodeRepresentation | undefined;
8
- ghostSpacing?: NodeRepresentation | undefined;
9
- ghostAttenuationFactor?: NodeRepresentation | undefined;
5
+ ghostTint?: Node | undefined;
6
+ threshold?: Node | undefined;
7
+ ghostSamples?: Node | undefined;
8
+ ghostSpacing?: Node | undefined;
9
+ ghostAttenuationFactor?: Node | undefined;
10
10
  downSampleRatio?: number | undefined;
11
11
  }
12
12
 
@@ -30,6 +30,6 @@ declare class LensflareNode extends TempNode {
30
30
  export default LensflareNode;
31
31
 
32
32
  export const lensflare: (
33
- inputNode: NodeRepresentation,
33
+ inputNode: Node,
34
34
  params?: LensflareNodeParams,
35
35
  ) => ShaderNodeObject<LensflareNode>;
@@ -1,4 +1,4 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Data3DTexture, Node, TempNode, Texture3DNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class Lut3DNode extends TempNode {
@@ -13,8 +13,8 @@ declare class Lut3DNode extends TempNode {
13
13
  export default Lut3DNode;
14
14
 
15
15
  export const lut3D: (
16
- node: NodeRepresentation,
17
- lut: NodeRepresentation,
16
+ node: Node,
17
+ lut: Node,
18
18
  size: number,
19
- intensity: NodeRepresentation,
19
+ intensity: Node,
20
20
  ) => ShaderNodeObject<Lut3DNode>;
@@ -1,8 +1,8 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Node } from "three/webgpu";
3
3
 
4
4
  export const motionBlur: (
5
- inputNode: NodeRepresentation,
6
- velocity: NodeRepresentation,
7
- numSamples?: NodeRepresentation,
5
+ inputNode: Node,
6
+ velocity: Node,
7
+ numSamples?: Node,
8
8
  ) => ShaderNodeObject<Node>;
@@ -1,10 +1,10 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Camera, Node, Object3D, Scene, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  export interface OutlineNodeParams {
5
5
  selectedObjects?: Object3D[] | undefined;
6
- edgeThickness?: NodeRepresentation | undefined;
7
- edgeGlow?: NodeRepresentation | undefined;
6
+ edgeThickness?: Node | undefined;
7
+ edgeGlow?: Node | undefined;
8
8
  downSampleRatio?: number | undefined;
9
9
  }
10
10
 
@@ -1,5 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
- import { TempNode, TextureNode, UniformNode } from "three/webgpu";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  export default class RGBShiftNode extends TempNode {
5
5
  textureNode: TextureNode;
@@ -13,4 +13,4 @@ export default class RGBShiftNode extends TempNode {
13
13
  setSize(width: number, height: number): void;
14
14
  }
15
15
 
16
- export const rgbShift: (node: NodeRepresentation, amount?: number, angle?: number) => ShaderNodeObject<RGBShiftNode>;
16
+ export const rgbShift: (node: Node, amount?: number, angle?: number) => ShaderNodeObject<RGBShiftNode>;
@@ -1,5 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
- import { TempNode, TextureNode } from "three/webgpu";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode } from "three/webgpu";
3
3
 
4
4
  declare class SMAANode extends TempNode {
5
5
  textureNode: TextureNode;
@@ -15,4 +15,4 @@ declare class SMAANode extends TempNode {
15
15
  getSearchTexture(): string;
16
16
  }
17
17
 
18
- export const smaa: (node: NodeRepresentation) => ShaderNodeObject<SMAANode>;
18
+ export const smaa: (node: Node) => ShaderNodeObject<SMAANode>;
@@ -1,4 +1,4 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Camera, Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class SSRNode extends TempNode {
@@ -30,9 +30,9 @@ declare class SSRNode extends TempNode {
30
30
  export default SSRNode;
31
31
 
32
32
  export const ssr: (
33
- colorNode: NodeRepresentation,
34
- depthNode: NodeRepresentation,
35
- normalNode: NodeRepresentation,
36
- metalnessNode: NodeRepresentation,
33
+ colorNode: Node,
34
+ depthNode: Node,
35
+ normalNode: Node,
36
+ metalnessNode: Node,
37
37
  camera: Camera,
38
38
  ) => ShaderNodeObject<SSRNode>;
@@ -1,4 +1,4 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Node } from "three/webgpu";
3
3
 
4
- export const sepia: (color: NodeRepresentation) => ShaderNodeObject<Node>;
4
+ export const sepia: (color: Node) => ShaderNodeObject<Node>;
@@ -1,5 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
- import { TempNode, TextureNode } from "three/webgpu";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode } from "three/webgpu";
3
3
 
4
4
  declare class SobelOperatorNode extends TempNode {
5
5
  textureNode: TextureNode;
@@ -9,4 +9,4 @@ declare class SobelOperatorNode extends TempNode {
9
9
 
10
10
  export default SobelOperatorNode;
11
11
 
12
- export const sobel: (node: NodeRepresentation) => ShaderNodeObject<SobelOperatorNode>;
12
+ export const sobel: (node: Node) => ShaderNodeObject<SobelOperatorNode>;
@@ -1,4 +1,4 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class TransitionNode extends TempNode {
@@ -23,9 +23,9 @@ declare class TransitionNode extends TempNode {
23
23
  export default TransitionNode;
24
24
 
25
25
  export const transition: (
26
- node: NodeRepresentation,
27
- nodeB: NodeRepresentation,
28
- mixTexture: NodeRepresentation,
26
+ node: Node,
27
+ nodeB: Node,
28
+ mixTexture: Node,
29
29
  mixRatio: UniformNode<number>,
30
30
  threshold: UniformNode<number>,
31
31
  useTexture: UniformNode<number>,
@@ -1,8 +1,14 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { Node } from "three/webgpu";
3
3
 
4
+ interface HashBlurOptions {
5
+ repeats?: Node | undefined;
6
+ mask?: Node | null | undefined;
7
+ premultipliedAlpha?: boolean | undefined;
8
+ }
9
+
4
10
  export const hashBlur: (
5
- textureNode: NodeRepresentation,
6
- bluramount?: NodeRepresentation,
7
- repeats?: NodeRepresentation,
11
+ textureNode: Node,
12
+ bluramount?: Node | number,
13
+ options?: HashBlurOptions,
8
14
  ) => ShaderNodeObject<Node>;
@@ -1,11 +1,11 @@
1
- import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
2
  import { LightsNode, Node } from "three/webgpu";
3
3
 
4
4
  export const circleIntersectsAABB: (
5
- circleCenter: NodeRepresentation,
6
- radius: NodeRepresentation,
7
- minBounds: NodeRepresentation,
8
- maxBounds: NodeRepresentation,
5
+ circleCenter: Node,
6
+ radius: Node,
7
+ minBounds: Node,
8
+ maxBounds: Node,
9
9
  ) => ShaderNodeObject<Node>;
10
10
 
11
11
  declare class TiledLightsNode extends LightsNode {
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.176.0",
3
+ "version": "0.178.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {
43
- "@dimforge/rapier3d-compat": "^0.12.0",
43
+ "@dimforge/rapier3d-compat": "~0.12.0",
44
44
  "@tweenjs/tween.js": "~23.1.3",
45
45
  "@types/stats.js": "*",
46
46
  "@types/webxr": "*",
@@ -49,6 +49,6 @@
49
49
  "meshoptimizer": "~0.18.1"
50
50
  },
51
51
  "peerDependencies": {},
52
- "typesPublisherContentHash": "2633ecc9f78b2c3a7ff53ae098668242bacbcea8b1a3e8ca27d1bf0a943233a6",
52
+ "typesPublisherContentHash": "820feeea012736cf714d3dce62c769821b2d466044ede81f0fd6cd7021221e7a",
53
53
  "typeScriptVersion": "5.1"
54
54
  }
three/src/Three.Core.d.ts CHANGED
@@ -39,7 +39,6 @@ export * from "./core/Object3D.js";
39
39
  export * from "./core/Raycaster.js";
40
40
  export * from "./core/RenderTarget.js";
41
41
  export * from "./core/RenderTarget3D.js";
42
- export * from "./core/RenderTargetArray.js";
43
42
  export * from "./core/Uniform.js";
44
43
  export * from "./core/UniformsGroup.js";
45
44
  export * from "./extras/Controls.js";
@@ -153,7 +152,6 @@ export * from "./textures/CubeTexture.js";
153
152
  export * from "./textures/Data3DTexture.js";
154
153
  export * from "./textures/DataArrayTexture.js";
155
154
  export * from "./textures/DataTexture.js";
156
- export * from "./textures/DepthArrayTexture.js";
157
155
  export * from "./textures/DepthTexture.js";
158
156
  export * from "./textures/FramebufferTexture.js";
159
157
  export * from "./textures/Source.js";
three/src/Three.TSL.d.ts CHANGED
@@ -68,6 +68,7 @@ export const backgroundBlurriness: typeof TSL.backgroundBlurriness;
68
68
  export const backgroundIntensity: typeof TSL.backgroundIntensity;
69
69
  export const backgroundRotation: typeof TSL.backgroundRotation;
70
70
  export const batch: typeof TSL.batch;
71
+ export const bentNormalView: typeof TSL.bentNormalView;
71
72
  export const billboarding: typeof TSL.billboarding;
72
73
  export const bitAnd: typeof TSL.bitAnd;
73
74
  export const bitNot: typeof TSL.bitNot;
@@ -118,7 +119,6 @@ export const colorSpaceToWorking: typeof TSL.colorSpaceToWorking;
118
119
  export const colorToDirection: typeof TSL.colorToDirection;
119
120
  export const compute: typeof TSL.compute;
120
121
  export const computeSkinning: typeof TSL.computeSkinning;
121
- export const cond: typeof TSL.cond;
122
122
  export const Const: typeof TSL.Const;
123
123
  export const context: typeof TSL.context;
124
124
  export const convert: typeof TSL.convert;
@@ -237,7 +237,6 @@ export const globalId: typeof TSL.globalId;
237
237
  export const log: typeof TSL.log;
238
238
  export const log2: typeof TSL.log2;
239
239
  export const logarithmicDepthToViewZ: typeof TSL.logarithmicDepthToViewZ;
240
- export const loop: typeof TSL.loop;
241
240
  export const luminance: typeof TSL.luminance;
242
241
  export const mediumpModelViewMatrix: typeof TSL.mediumpModelViewMatrix;
243
242
  export const mat2: typeof TSL.mat2;
@@ -339,7 +338,9 @@ export const normalGeometry: typeof TSL.normalGeometry;
339
338
  export const normalLocal: typeof TSL.normalLocal;
340
339
  export const normalMap: typeof TSL.normalMap;
341
340
  export const normalView: typeof TSL.normalView;
341
+ export const normalViewGeometry: typeof TSL.normalViewGeometry;
342
342
  export const normalWorld: typeof TSL.normalWorld;
343
+ export const normalWorldGeometry: typeof TSL.normalWorldGeometry;
343
344
  export const normalize: typeof TSL.normalize;
344
345
  export const not: typeof TSL.not;
345
346
  export const notEqual: typeof TSL.notEqual;
@@ -385,6 +386,7 @@ export const pow: typeof TSL.pow;
385
386
  export const pow2: typeof TSL.pow2;
386
387
  export const pow3: typeof TSL.pow3;
387
388
  export const pow4: typeof TSL.pow4;
389
+ export const premultiplyAlpha: typeof TSL.premultiplyAlpha;
388
390
  export const property: typeof TSL.property;
389
391
  export const radians: typeof TSL.radians;
390
392
  export const rand: typeof TSL.rand;
@@ -403,7 +405,6 @@ export const refract: typeof TSL.refract;
403
405
  export const refractVector: typeof TSL.refractVector;
404
406
  export const refractView: typeof TSL.refractView;
405
407
  export const reinhardToneMapping: typeof TSL.reinhardToneMapping;
406
- export const remainder: typeof TSL.remainder;
407
408
  export const remap: typeof TSL.remap;
408
409
  export const remapClamp: typeof TSL.remapClamp;
409
410
  export const renderGroup: typeof TSL.renderGroup;
@@ -416,6 +417,7 @@ export const round: typeof TSL.round;
416
417
  export const rtt: typeof TSL.rtt;
417
418
  export const sRGBTransferEOTF: typeof TSL.sRGBTransferEOTF;
418
419
  export const sRGBTransferOETF: typeof TSL.sRGBTransferOETF;
420
+ export const sample: typeof TSL.sample;
419
421
  export const sampler: typeof TSL.sampler;
420
422
  export const samplerComparison: typeof TSL.samplerComparison;
421
423
  export const saturate: typeof TSL.saturate;
@@ -460,6 +462,7 @@ export const storageTexture: typeof TSL.storageTexture;
460
462
  export const string: typeof TSL.string;
461
463
  export const struct: typeof TSL.struct;
462
464
  export const sub: typeof TSL.sub;
465
+ export const subBuild: typeof TSL.subBuild;
463
466
  export const subgroupIndex: typeof TSL.subgroupIndex;
464
467
  export const subgroupSize: typeof TSL.subgroupSize;
465
468
  export const tan: typeof TSL.tan;
@@ -472,46 +475,38 @@ export const texture: typeof TSL.texture;
472
475
  export const texture3D: typeof TSL.texture3D;
473
476
  export const textureBarrier: typeof TSL.textureBarrier;
474
477
  export const textureBicubic: typeof TSL.textureBicubic;
478
+ export const textureBicubicLevel: typeof TSL.textureBicubicLevel;
475
479
  export const textureCubeUV: typeof TSL.textureCubeUV;
476
480
  export const textureLoad: typeof TSL.textureLoad;
477
481
  export const textureSize: typeof TSL.textureSize;
478
482
  export const textureStore: typeof TSL.textureStore;
479
483
  export const thickness: typeof TSL.thickness;
480
- export const threshold: typeof TSL.threshold;
481
484
  export const time: typeof TSL.time;
482
485
  export const timerDelta: typeof TSL.timerDelta;
483
486
  export const timerGlobal: typeof TSL.timerGlobal;
484
487
  export const timerLocal: typeof TSL.timerLocal;
485
- export const toOutputColorSpace: typeof TSL.toOutputColorSpace;
486
- export const toWorkingColorSpace: typeof TSL.toWorkingColorSpace;
487
488
  export const toneMapping: typeof TSL.toneMapping;
488
489
  export const toneMappingExposure: typeof TSL.toneMappingExposure;
489
490
  export const toonOutlinePass: typeof TSL.toonOutlinePass;
490
491
  export const transformDirection: typeof TSL.transformDirection;
491
492
  export const transformNormal: typeof TSL.transformNormal;
492
493
  export const transformNormalToView: typeof TSL.transformNormalToView;
493
- export const transformedBentNormalView: typeof TSL.transformedBentNormalView;
494
- export const transformedBitangentView: typeof TSL.transformedBitangentView;
495
- export const transformedBitangentWorld: typeof TSL.transformedBitangentWorld;
496
494
  export const transformedClearcoatNormalView: typeof TSL.transformedClearcoatNormalView;
497
495
  export const transformedNormalView: typeof TSL.transformedNormalView;
498
496
  export const transformedNormalWorld: typeof TSL.transformedNormalWorld;
499
- export const transformedTangentView: typeof TSL.transformedTangentView;
500
- export const transformedTangentWorld: typeof TSL.transformedTangentWorld;
501
497
  export const transmission: typeof TSL.transmission;
502
498
  export const transpose: typeof TSL.transpose;
503
- export const tri: typeof TSL.tri;
504
- export const tri3: typeof TSL.tri3;
505
499
  export const triNoise3D: typeof TSL.triNoise3D;
506
500
  export const triplanarTexture: typeof TSL.triplanarTexture;
507
501
  export const triplanarTextures: typeof TSL.triplanarTextures;
508
502
  export const trunc: typeof TSL.trunc;
509
- export const tslFn: typeof TSL.tslFn;
510
503
  export const uint: typeof TSL.uint;
511
504
  export const uniform: typeof TSL.uniform;
505
+ export const uniformCubeTexture: typeof TSL.uniformCubeTexture;
512
506
  export const uniformArray: typeof TSL.uniformArray;
513
507
  export const uniformGroup: typeof TSL.uniformGroup;
514
- export const uniforms: typeof TSL.uniforms;
508
+ export const uniformTexture: typeof TSL.uniformTexture;
509
+ export const unpremultiplyAlpha: typeof TSL.unpremultiplyAlpha;
515
510
  export const userData: typeof TSL.userData;
516
511
  export const uv: typeof TSL.uv;
517
512
  export const uvec2: typeof TSL.uvec2;
@@ -532,7 +527,6 @@ export const viewZToLogarithmicDepth: typeof TSL.viewZToLogarithmicDepth;
532
527
  export const viewZToOrthographicDepth: typeof TSL.viewZToOrthographicDepth;
533
528
  export const viewZToPerspectiveDepth: typeof TSL.viewZToPerspectiveDepth;
534
529
  export const viewport: typeof TSL.viewport;
535
- export const viewportBottomLeft: typeof TSL.viewportBottomLeft;
536
530
  export const viewportCoordinate: typeof TSL.viewportCoordinate;
537
531
  export const viewportDepthTexture: typeof TSL.viewportDepthTexture;
538
532
  export const viewportLinearDepth: typeof TSL.viewportLinearDepth;
@@ -542,7 +536,6 @@ export const viewportSafeUV: typeof TSL.viewportSafeUV;
542
536
  export const viewportSharedTexture: typeof TSL.viewportSharedTexture;
543
537
  export const viewportSize: typeof TSL.viewportSize;
544
538
  export const viewportTexture: typeof TSL.viewportTexture;
545
- export const viewportTopLeft: typeof TSL.viewportTopLeft;
546
539
  export const viewportUV: typeof TSL.viewportUV;
547
540
  export const wgsl: typeof TSL.wgsl;
548
541
  export const wgslFn: typeof TSL.wgslFn;
@@ -552,4 +545,4 @@ export const workgroupId: typeof TSL.workgroupId;
552
545
  export const workingToColorSpace: typeof TSL.workingToColorSpace;
553
546
  export const xor: typeof TSL.xor;
554
547
 
555
- export type { NodeRepresentation, ProxiedObject, ShaderNodeObject, Swizzable } from "./nodes/TSL.js";
548
+ export type { ProxiedObject, ShaderNodeObject, Swizzable } from "./nodes/TSL.js";
@@ -11,6 +11,7 @@ export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.Nod
11
11
  import * as RendererUtils from "./renderers/common/RendererUtils.js";
12
12
  export { RendererUtils };
13
13
  export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
14
+ export { default as ProjectorLight } from "./lights/webgpu/ProjectorLight.js";
14
15
  export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
15
16
  export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
16
17
  export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
@@ -11,6 +11,7 @@ export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.js"
11
11
  import * as RendererUtils from "./renderers/common/RendererUtils.js";
12
12
  export { RendererUtils };
13
13
  export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
14
+ export { default as ProjectorLight } from "./lights/webgpu/ProjectorLight.js";
14
15
  export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
15
16
  export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
16
17
  export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
@@ -19,6 +20,8 @@ import * as TSL from "./nodes/TSL.js";
19
20
  export { TSL };
20
21
  export { ClippingGroup } from "./objects/ClippingGroup.js";
21
22
  export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
23
+ export { default as Storage3DTexture } from "./renderers/common/Storage3DTexture.js";
24
+ export { default as StorageArrayTexture } from "./renderers/common/StorageArrayTexture.js";
22
25
  export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
23
26
  export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
24
27
  export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
@@ -13,5 +13,5 @@ export class NumberKeyframeTrack extends KeyframeTrack {
13
13
  * @param {Array<number>} values - A list of keyframe values.
14
14
  * @param {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} [interpolation] - The interpolation type.
15
15
  */
16
- constructor(name: string, times: Array<number>, values: Array<number>, interpolation?: InterpolationModes);
16
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>, interpolation?: InterpolationModes);
17
17
  }
@@ -13,5 +13,5 @@ export class QuaternionKeyframeTrack extends KeyframeTrack {
13
13
  * @param {Array<number>} values - A list of keyframe values.
14
14
  * @param {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} [interpolation] - The interpolation type.
15
15
  */
16
- constructor(name: string, times: Array<number>, values: Array<number>, interpolation?: InterpolationModes);
16
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>, interpolation?: InterpolationModes);
17
17
  }
@@ -14,5 +14,5 @@ export class StringKeyframeTrack extends KeyframeTrack {
14
14
  * @param {Array<number>} times - A list of keyframe times.
15
15
  * @param {Array<number>} values - A list of keyframe values.
16
16
  */
17
- constructor(name: string, times: Array<number>, values: Array<number>);
17
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>);
18
18
  }
@@ -13,5 +13,5 @@ export class VectorKeyframeTrack extends KeyframeTrack {
13
13
  * @param {Array<number>} values - A list of keyframe values.
14
14
  * @param {(InterpolateLinear|InterpolateDiscrete|InterpolateSmooth)} [interpolation] - The interpolation type.
15
15
  */
16
- constructor(name: string, times: Array<number>, values: Array<number>, interpolation?: InterpolationModes);
16
+ constructor(name: string, times: ArrayLike<number>, values: ArrayLike<number>, interpolation?: InterpolationModes);
17
17
  }
three/src/constants.d.ts CHANGED
@@ -780,23 +780,31 @@ export const TimestampQuery: {
780
780
  COMPUTE: "compute";
781
781
  RENDER: "render";
782
782
  };
783
- export type TimestampQuery = "compute" | "render";
783
+ export type TimestampQuery = typeof TimestampQuery.COMPUTE | typeof TimestampQuery.RENDER;
784
784
 
785
785
  export const InterpolationSamplingType: {
786
786
  PERSPECTIVE: "perspective";
787
787
  LINEAR: "linear";
788
788
  FLAT: "flat";
789
789
  };
790
- export type InterpolationSamplingType = "perspective" | "linear" | "flat";
790
+ export type InterpolationSamplingType =
791
+ | typeof InterpolationSamplingType.PERSPECTIVE
792
+ | typeof InterpolationSamplingType.LINEAR
793
+ | typeof InterpolationSamplingType.FLAT;
791
794
 
792
795
  export const InterpolationSamplingMode: {
793
796
  NORMAL: "normal";
794
797
  CENTROID: "centroid";
795
798
  SAMPLE: "sample";
796
- FLAT_FIRST: "flat first";
797
- FLAT_EITHER: "flat either";
799
+ FIRST: "first";
800
+ EITHER: "either";
798
801
  };
799
- export type InterpolationSamplingMode = "normal" | "centroid" | "sample" | "flat first" | "flat either";
802
+ export type InterpolationSamplingMode =
803
+ | typeof InterpolationSamplingMode.NORMAL
804
+ | typeof InterpolationSamplingMode.CENTROID
805
+ | typeof InterpolationSamplingMode.SAMPLE
806
+ | typeof InterpolationSamplingMode.FIRST
807
+ | typeof InterpolationSamplingMode.EITHER;
800
808
 
801
809
  ///////////////////////////////////////////////////////////////////////////////
802
810
  // Texture - Internal Pixel Formats
@@ -57,6 +57,10 @@ export interface GeometryGroup {
57
57
  materialIndex?: number | undefined;
58
58
  }
59
59
 
60
+ export interface BufferGeometryEventMap {
61
+ dispose: {};
62
+ }
63
+
60
64
  /**
61
65
  * A representation of mesh, line, or point geometry
62
66
  * Includes vertex positions, face indices, normals, colors, UVs, and custom attributes within buffers, reducing the cost of passing all this data to the GPU.
@@ -117,7 +121,8 @@ export interface GeometryGroup {
117
121
  */
118
122
  export class BufferGeometry<
119
123
  Attributes extends NormalOrGLBufferAttributes = NormalBufferAttributes,
120
- > extends EventDispatcher<{ dispose: {} }> {
124
+ TEventMap extends BufferGeometryEventMap = BufferGeometryEventMap,
125
+ > extends EventDispatcher<TEventMap> {
121
126
  /**
122
127
  * This creates a new {@link THREE.BufferGeometry | BufferGeometry} object.
123
128
  */
@@ -172,7 +177,11 @@ export class BufferGeometry<
172
177
  * You will have to call {@link dispose | .dispose}(), and create a new instance of {@link THREE.BufferGeometry | BufferGeometry}.
173
178
  * @defaultValue `{}`
174
179
  */
175
- morphAttributes: Record<"position" | "normal" | "color", Array<BufferAttribute | InterleavedBufferAttribute>>;
180
+ morphAttributes: {
181
+ position?: Array<BufferAttribute | InterleavedBufferAttribute> | undefined;
182
+ normal?: Array<BufferAttribute | InterleavedBufferAttribute> | undefined;
183
+ color?: Array<BufferAttribute | InterleavedBufferAttribute> | undefined;
184
+ };
176
185
 
177
186
  /**
178
187
  * Used to control the morph target behavior; when set to true, the morph target data is treated as relative offsets, rather than as absolute positions/normals.
@@ -18,8 +18,16 @@ export class GLBufferAttribute {
18
18
  * @param itemSize How many values make up each item (vertex). See {@link GLBufferAttribute.itemSize | .itemSize}
19
19
  * @param elementSize `1`, `2` or `4`. The corresponding size (in bytes) for the given {@link type} param. See {@link GLBufferAttribute.elementSize | .elementSize}
20
20
  * @param count The expected number of vertices in VBO. See {@link GLBufferAttribute.count | .count}
21
+ * @param {boolean} [normalized=false] - Whether the data are normalized or not.
21
22
  */
22
- constructor(buffer: WebGLBuffer, type: GLenum, itemSize: number, elementSize: 1 | 2 | 4, count: number);
23
+ constructor(
24
+ buffer: WebGLBuffer,
25
+ type: GLenum,
26
+ itemSize: number,
27
+ elementSize: 1 | 2 | 4,
28
+ count: number,
29
+ normalized?: boolean,
30
+ );
23
31
 
24
32
  /**
25
33
  * Read-only flag to check if a given object is of type {@link GLBufferAttribute}.
@@ -87,6 +95,15 @@ export class GLBufferAttribute {
87
95
  */
88
96
  count: number;
89
97
 
98
+ /**
99
+ * Applies to integer data only. Indicates how the underlying data in the buffer maps to
100
+ * the values in the GLSL code. For instance, if `buffer` contains data of `gl.UNSIGNED_SHORT`,
101
+ * and `normalized` is `true`, the values `0 - +65535` in the buffer data will be mapped to
102
+ * `0.0f - +1.0f` in the GLSL attribute. If `normalized` is `false`, the values will be converted
103
+ * to floats unmodified, i.e. `65535` becomes `65535.0f`.
104
+ */
105
+ normalized: boolean;
106
+
90
107
  /**
91
108
  * A version number, incremented every time the needsUpdate property is set to true.
92
109
  * @remarks Expects a `Integer`
@@ -1,27 +1,9 @@
1
- import {
2
- MagnificationTextureFilter,
3
- MinificationTextureFilter,
4
- PixelFormatGPU,
5
- TextureDataType,
6
- Wrapping,
7
- } from "../constants.js";
8
1
  import { Vector4 } from "../math/Vector4.js";
9
2
  import { DepthTexture } from "../textures/DepthTexture.js";
10
- import { Texture } from "../textures/Texture.js";
3
+ import { Texture, TextureParameters } from "../textures/Texture.js";
11
4
  import { EventDispatcher } from "./EventDispatcher.js";
12
5
 
13
- export interface RenderTargetOptions {
14
- depth?: number | undefined;
15
- wrapS?: Wrapping | undefined;
16
- wrapT?: Wrapping | undefined;
17
- magFilter?: MagnificationTextureFilter | undefined;
18
- minFilter?: MinificationTextureFilter | undefined;
19
- generateMipmaps?: boolean | undefined; // true
20
- format?: number | undefined; // RGBAFormat
21
- type?: TextureDataType | undefined; // UnsignedByteType
22
- anisotropy?: number | undefined; // 1
23
- colorSpace?: string | undefined;
24
- internalFormat?: PixelFormatGPU | null | undefined; // null
6
+ export interface RenderTargetOptions extends TextureParameters {
25
7
  depthBuffer?: boolean | undefined; // true
26
8
  stencilBuffer?: boolean | undefined; // false
27
9
  resolveDepthBuffer?: boolean | undefined; // true
@@ -33,6 +15,7 @@ export interface RenderTargetOptions {
33
15
  */
34
16
  samples?: number | undefined;
35
17
  count?: number | undefined;
18
+ depth?: number | undefined;
36
19
  multiview?: boolean | undefined;
37
20
  }
38
21
 
@@ -14,9 +14,9 @@ declare function toHalfFloat(val: number): number;
14
14
  */
15
15
  declare function fromHalfFloat(val: number): number;
16
16
 
17
- declare const DataUtils: {
18
- toHalfFloat: typeof toHalfFloat;
19
- fromHalfFloat: typeof fromHalfFloat;
20
- };
17
+ declare class DataUtils {
18
+ static toHalfFloat(val: number): number;
19
+ static fromHalfFloat(val: number): number;
20
+ }
21
21
 
22
22
  export { DataUtils, fromHalfFloat, toHalfFloat };
@@ -48,6 +48,7 @@ export class CapsuleGeometry extends BufferGeometry {
48
48
  readonly height: number;
49
49
  readonly capSegments: number;
50
50
  readonly radialSegments: number;
51
+ readonly heightSegments: number;
51
52
  };
52
53
 
53
54
  /** @internal */
@@ -1,3 +1,5 @@
1
+ import { BufferGeometry } from "../core/BufferGeometry.js";
2
+ import { LineBasicMaterial } from "../materials/LineBasicMaterial.js";
1
3
  import { ColorRepresentation } from "../math/Color.js";
2
4
  import { LineSegments } from "../objects/LineSegments.js";
3
5
 
@@ -18,7 +20,7 @@ import { LineSegments } from "../objects/LineSegments.js";
18
20
  * @see {@link https://threejs.org/docs/index.html#api/en/helpers/AxesHelper | Official Documentation}
19
21
  * @see {@link https://github.com/mrdoob/three.js/blob/master/src/helpers/AxesHelper.js | Source}
20
22
  */
21
- export class AxesHelper extends LineSegments {
23
+ export class AxesHelper extends LineSegments<BufferGeometry, LineBasicMaterial> {
22
24
  /**
23
25
  * Create a new instance of {@link AxesHelper}
24
26
  * @param size Size of the lines representing the axes. Default `1`
@@ -69,4 +69,6 @@ export class SpotLightShadow extends LightShadow<PerspectiveCamera> {
69
69
  * @defaultValue `1`
70
70
  */
71
71
  focus: number;
72
+
73
+ aspect: number;
72
74
  }