@types/three 0.170.0 → 0.171.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 (106) hide show
  1. three/README.md +1 -1
  2. three/build/three.core.d.ts +1 -0
  3. three/build/three.core.min.d.ts +1 -0
  4. three/build/three.tsl.d.ts +1 -0
  5. three/build/three.tsl.min.d.ts +1 -0
  6. three/examples/jsm/controls/ArcballControls.d.ts +5 -0
  7. three/examples/jsm/controls/TransformControls.d.ts +1 -1
  8. three/examples/jsm/csm/CSMShadowNode.d.ts +1 -2
  9. three/examples/jsm/exporters/GLTFExporter.d.ts +23 -7
  10. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  11. three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +1 -1
  12. three/examples/jsm/objects/SkyMesh.d.ts +2 -2
  13. three/examples/jsm/objects/Water2Mesh.d.ts +13 -2
  14. three/examples/jsm/objects/WaterMesh.d.ts +11 -2
  15. three/examples/jsm/tsl/display/AfterImageNode.d.ts +2 -1
  16. three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -1
  17. three/examples/jsm/tsl/display/AnamorphicNode.d.ts +2 -2
  18. three/examples/jsm/tsl/display/BleachBypass.d.ts +2 -1
  19. three/examples/jsm/tsl/display/BloomNode.d.ts +2 -1
  20. three/examples/jsm/tsl/display/DenoiseNode.d.ts +3 -4
  21. three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +2 -1
  22. three/examples/jsm/tsl/display/DotScreenNode.d.ts +2 -2
  23. three/examples/jsm/tsl/display/FXAANode.d.ts +2 -1
  24. three/examples/jsm/tsl/display/FilmNode.d.ts +2 -1
  25. three/examples/jsm/tsl/display/GTAONode.d.ts +5 -8
  26. three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +2 -2
  27. three/examples/jsm/tsl/display/LensflareNode.d.ts +2 -2
  28. three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -2
  29. three/examples/jsm/tsl/display/MotionBlur.d.ts +2 -1
  30. three/examples/jsm/tsl/display/OutlineNode.d.ts +2 -2
  31. three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -1
  32. three/examples/jsm/tsl/display/PixelationPassNode.d.ts +2 -2
  33. three/examples/jsm/tsl/display/RGBShiftNode.d.ts +2 -1
  34. three/examples/jsm/tsl/display/SMAANode.d.ts +2 -1
  35. three/examples/jsm/tsl/display/SSAAPassNode.d.ts +2 -2
  36. three/examples/jsm/tsl/display/SSRNode.d.ts +2 -2
  37. three/examples/jsm/tsl/display/Sepia.d.ts +2 -1
  38. three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +2 -1
  39. three/examples/jsm/tsl/display/StereoCompositePassNode.d.ts +1 -2
  40. three/examples/jsm/tsl/display/StereoPassNode.d.ts +2 -2
  41. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +2 -2
  42. three/examples/jsm/tsl/display/TransitionNode.d.ts +2 -1
  43. three/examples/jsm/tsl/display/hashBlur.d.ts +2 -1
  44. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +2 -1
  45. three/package.json +4 -4
  46. three/src/Three.Core.d.ts +158 -0
  47. three/src/Three.TSL.d.ts +528 -0
  48. three/src/Three.WebGPU.Nodes.d.ts +14 -195
  49. three/src/Three.WebGPU.d.ts +13 -195
  50. three/src/Three.d.ts +2 -158
  51. three/src/animation/AnimationClip.d.ts +3 -1
  52. three/src/core/Clock.d.ts +4 -6
  53. three/src/core/InterleavedBuffer.d.ts +12 -0
  54. three/src/materials/Material.d.ts +6 -4
  55. three/src/materials/nodes/LineDashedNodeMaterial.d.ts +3 -0
  56. three/src/materials/nodes/NodeMaterial.d.ts +4 -1
  57. three/src/nodes/Nodes.d.ts +1 -1
  58. three/src/nodes/TSL.d.ts +8 -2
  59. three/src/nodes/accessors/Arrays.d.ts +6 -0
  60. three/src/nodes/accessors/BuiltinNode.d.ts +14 -0
  61. three/src/nodes/accessors/ClippingNode.d.ts +6 -0
  62. three/src/nodes/accessors/InstanceNode.d.ts +15 -3
  63. three/src/nodes/accessors/InstancedMeshNode.d.ts +11 -0
  64. three/src/nodes/accessors/Lights.d.ts +15 -0
  65. three/src/nodes/accessors/StorageBufferNode.d.ts +20 -11
  66. three/src/nodes/accessors/StorageTextureNode.d.ts +5 -3
  67. three/src/nodes/core/IndexNode.d.ts +2 -0
  68. three/src/nodes/core/NodeUtils.d.ts +7 -0
  69. three/src/nodes/core/StackNode.d.ts +6 -1
  70. three/src/nodes/core/constants.d.ts +6 -0
  71. three/src/nodes/display/BlendModes.d.ts +32 -0
  72. three/src/nodes/display/ScreenNode.d.ts +5 -0
  73. three/src/nodes/display/ViewportDepthNode.d.ts +3 -1
  74. three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +88 -0
  75. three/src/nodes/gpgpu/BarrierNode.d.ts +12 -0
  76. three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +13 -0
  77. three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +17 -0
  78. three/src/nodes/lighting/AnalyticLightNode.d.ts +11 -0
  79. three/src/nodes/lighting/LightsNode.d.ts +2 -2
  80. three/src/nodes/lighting/PointLightNode.d.ts +3 -0
  81. three/src/nodes/lighting/PointShadowNode.d.ts +30 -0
  82. three/src/nodes/lighting/ShadowNode.d.ts +26 -3
  83. three/src/nodes/math/OperatorNode.d.ts +3 -0
  84. three/src/nodes/tsl/TSLBase.d.ts +5 -0
  85. three/src/nodes/tsl/TSLCore.d.ts +3 -0
  86. three/src/nodes/utils/SplitNode.d.ts +1 -1
  87. three/src/objects/BatchedMesh.d.ts +4 -4
  88. three/src/objects/ClippingGroup.d.ts +41 -0
  89. three/src/renderers/WebGLRenderer.d.ts +2 -0
  90. three/src/renderers/common/Animation.d.ts +11 -4
  91. three/src/renderers/common/ClippingContext.d.ts +16 -14
  92. three/src/renderers/common/RenderList.d.ts +5 -0
  93. three/src/renderers/common/RenderObject.d.ts +8 -4
  94. three/src/renderers/common/RenderObjects.d.ts +3 -0
  95. three/src/renderers/common/Renderer.d.ts +14 -1
  96. three/src/renderers/common/UniformsGroup.d.ts +1 -0
  97. three/src/renderers/common/extras/PMREMGenerator.d.ts +15 -1
  98. three/src/renderers/common/nodes/NodeLibrary.d.ts +2 -4
  99. three/src/renderers/common/nodes/NodeUniform.d.ts +7 -0
  100. three/src/renderers/webgl/WebGLState.d.ts +1 -1
  101. three/src/textures/Data3DTexture.d.ts +4 -2
  102. three/src/textures/DataArrayTexture.d.ts +1 -1
  103. three/src/textures/DataTexture.d.ts +6 -1
  104. three/src/nodes/display/BlendMode.d.ts +0 -10
  105. three/src/nodes/lighting/LightNode.d.ts +0 -18
  106. three/src/textures/types.d.ts +0 -9
three/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for three (https://threejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Tue, 12 Nov 2024 10:02:27 GMT
11
+ * Last updated: Sun, 15 Dec 2024 01:30:13 GMT
12
12
  * Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [@webgpu/types](https://npmjs.com/package/@webgpu/types), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
13
13
 
14
14
  # Credits
@@ -0,0 +1 @@
1
+ export * from "../src/Three.Core.js";
@@ -0,0 +1 @@
1
+ export * from "../src/Three.Core.js";
@@ -0,0 +1 @@
1
+ export * from "../src/Three.TSL.js";
@@ -0,0 +1 @@
1
+ export * from "../src/Three.TSL.js";
@@ -69,6 +69,11 @@ declare class ArcballControls extends Controls<ArcballControlsEventMap> {
69
69
  */
70
70
  enableAnimations: boolean;
71
71
 
72
+ /**
73
+ * Enable or disable camera focusing on double-tap (or click) operations. Default is true.
74
+ */
75
+ enableFocus: boolean;
76
+
72
77
  /**
73
78
  * When set to true, a grid will appear when panning operation is being performed (desktop interaction only). Default is false.
74
79
  */
@@ -1,6 +1,6 @@
1
1
  import { Camera, Controls, Mesh, Object3D, Quaternion, Raycaster, Vector3 } from "three";
2
2
 
3
- type TransformControlsMode = "translate" | "rotate" | "scale";
3
+ export type TransformControlsMode = "translate" | "rotate" | "scale";
4
4
 
5
5
  export interface TransformControlsEventMap {
6
6
  /**
@@ -1,5 +1,4 @@
1
- import { Camera, DirectionalLightShadow, Light, Object3D } from "three";
2
- import { Node } from "three/tsl";
1
+ import { Camera, DirectionalLightShadow, Light, Node, Object3D } from "three/webgpu";
3
2
  import { CSMFrustum } from "./CSMFrustum.js";
4
3
 
5
4
  export type CSMShadowNodeMode = "uniform" | "logarithmic" | "practical" | "custom";
@@ -87,7 +87,7 @@ declare class GLTFExporter {
87
87
  */
88
88
  parse(
89
89
  input: Object3D | Object3D[],
90
- onDone: (gltf: ArrayBuffer | { [key: string]: any }) => void,
90
+ onDone: (gltf: ArrayBuffer | { [key: string]: unknown }) => void,
91
91
  onError: (error: ErrorEvent) => void,
92
92
  options?: GLTFExporterOptions,
93
93
  ): void;
@@ -101,18 +101,34 @@ declare class GLTFExporter {
101
101
  parseAsync(
102
102
  input: Object3D | Object3D[],
103
103
  options?: GLTFExporterOptions,
104
- ): Promise<ArrayBuffer | { [key: string]: any }>;
104
+ ): Promise<ArrayBuffer | { [key: string]: unknown }>;
105
105
  }
106
106
 
107
107
  declare class GLTFWriter {
108
108
  textureUtils: TextureUtils | null;
109
109
 
110
+ extensionsUsed: { [name: string]: boolean };
111
+ extensionsRequired: { [name: string]: boolean };
112
+
110
113
  constructor();
111
114
 
112
115
  setPlugins(plugins: GLTFExporterPlugin[]): void;
113
116
 
114
117
  setTextureUtils(utils: TextureUtils | null): this;
115
118
 
119
+ /**
120
+ * Process texture
121
+ * @param map Map to process
122
+ * @return Index of the processed texture in the "textures" array
123
+ */
124
+ processTextureAsync(map: Texture): Promise<number>;
125
+
126
+ /**
127
+ * Applies a texture transform, if present, to the map definition. Requires
128
+ * the KHR_texture_transform extension.
129
+ */
130
+ applyTextureTransform(mapDef: { [key: string]: unknown }, texture: Texture): void;
131
+
116
132
  /**
117
133
  * Parse scenes and generate GLTF output
118
134
  *
@@ -122,16 +138,16 @@ declare class GLTFWriter {
122
138
  */
123
139
  writeAsync(
124
140
  input: Object3D | Object3D[],
125
- onDone: (gltf: ArrayBuffer | { [key: string]: any }) => void,
141
+ onDone: (gltf: ArrayBuffer | { [key: string]: unknown }) => void,
126
142
  options?: GLTFExporterOptions,
127
143
  ): Promise<void>;
128
144
  }
129
145
 
130
146
  export interface GLTFExporterPlugin {
131
- writeTexture?: (map: Texture, textureDef: { [key: string]: any }) => void;
132
- writeMaterial?: (material: Material, materialDef: { [key: string]: any }) => void;
133
- writeMesh?: (mesh: Mesh, meshDef: { [key: string]: any }) => void;
134
- writeNode?: (object: Object3D, nodeDef: { [key: string]: any }) => void;
147
+ writeTexture?: (map: Texture, textureDef: { [key: string]: unknown }) => void;
148
+ writeMaterialAsync?: (material: Material, materialDef: { [key: string]: unknown }) => Promise<void>;
149
+ writeMesh?: (mesh: Mesh, meshDef: { [key: string]: unknown }) => void;
150
+ writeNode?: (object: Object3D, nodeDef: { [key: string]: unknown }) => void;
135
151
  beforeParse?: (input: Object3D | Object3D[]) => void;
136
152
  afterParse?: (input: Object3D | Object3D[]) => void;
137
153
  }
@@ -1,7 +1,7 @@
1
1
  import { BufferGeometry, Euler, Mesh, Vector3 } from "three";
2
2
 
3
3
  declare class DecalGeometry extends BufferGeometry {
4
- constructor(mesh: Mesh, position: Vector3, orientation: Euler, size: Vector3);
4
+ constructor(mesh?: Mesh, position?: Vector3, orientation?: Euler, size?: Vector3);
5
5
  }
6
6
 
7
7
  declare class DecalVertex {
@@ -1,4 +1,4 @@
1
- import { NodeMaterial, NodeMaterialParameters } from "three/tsl";
1
+ import { NodeMaterial, NodeMaterialParameters } from "three/webgpu";
2
2
 
3
3
  declare class LDrawConditionalLineMaterial extends NodeMaterial {
4
4
  readonly isLDrawConditionalLineMaterial: true;
@@ -1,5 +1,5 @@
1
- import { ShaderNodeObject, UniformNode } from "three/tsl";
2
- import { BoxGeometry, Mesh, NodeMaterial, Vector3 } from "three/webgpu";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { BoxGeometry, Mesh, NodeMaterial, UniformNode, Vector3 } from "three/webgpu";
3
3
 
4
4
  declare class SkyMesh extends Mesh<BoxGeometry, NodeMaterial> {
5
5
  turbidity: ShaderNodeObject<UniformNode<number>>;
@@ -1,5 +1,16 @@
1
- import { TempNode, TextureNode, UniformNode, Vector2, Vector3 } from "three/tsl";
2
- import { BufferGeometry, Color, ColorRepresentation, Mesh, NodeMaterial, Texture } from "three/webgpu";
1
+ import {
2
+ BufferGeometry,
3
+ Color,
4
+ ColorRepresentation,
5
+ Mesh,
6
+ NodeMaterial,
7
+ TempNode,
8
+ Texture,
9
+ TextureNode,
10
+ UniformNode,
11
+ Vector2,
12
+ Vector3,
13
+ } from "three/webgpu";
3
14
 
4
15
  export interface WaterMeshOptions {
5
16
  normalMap0: Texture;
@@ -1,5 +1,14 @@
1
- import { TextureNode, UniformNode } from "three/tsl";
2
- import { BufferGeometry, Color, ColorRepresentation, Mesh, NodeMaterial, Texture, Vector3 } from "three/webgpu";
1
+ import {
2
+ BufferGeometry,
3
+ Color,
4
+ ColorRepresentation,
5
+ Mesh,
6
+ NodeMaterial,
7
+ Texture,
8
+ TextureNode,
9
+ UniformNode,
10
+ Vector3,
11
+ } from "three/webgpu";
3
12
 
4
13
  export interface WaterMeshOptions {
5
14
  resolution?: number | undefined;
@@ -1,4 +1,5 @@
1
- import { Node, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
2
3
 
3
4
  export default class AfterImageNode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,5 +1,5 @@
1
- import { Camera, Scene } from "three";
2
1
  import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Scene } from "three/webgpu";
3
3
  import StereoCompositePassNode from "./StereoCompositePassNode.js";
4
4
 
5
5
  declare class AnaglyphPassNode extends StereoCompositePassNode {
@@ -1,5 +1,5 @@
1
- import { Vector2 } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, Vector2 } from "three/webgpu";
3
3
 
4
4
  export default class AnamorphicNode extends TempNode {
5
5
  textureNode: Node;
@@ -1,3 +1,4 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node } from "three/webgpu";
2
3
 
3
4
  export const bleach: (color: NodeRepresentation, opacity?: number) => ShaderNodeObject<Node>;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
2
3
 
3
4
  declare class BloomNode extends TempNode {
4
5
  inputNode: Node;
@@ -1,13 +1,13 @@
1
- import { Camera, Matrix4 } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Node, TempNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class DenoiseNode extends TempNode {
5
5
  textureNode: Node;
6
6
  depthNode: Node;
7
7
  normalNode: Node;
8
+
8
9
  noiseNode: Node;
9
10
 
10
- cameraProjectionMatrixInversion: UniformNode<Matrix4>;
11
11
  lumaPhi: UniformNode<number>;
12
12
  depthPhi: UniformNode<number>;
13
13
  normalPhi: UniformNode<number>;
@@ -23,6 +23,5 @@ export const denoise: (
23
23
  node: NodeRepresentation,
24
24
  depthNode: NodeRepresentation,
25
25
  normalNode: NodeRepresentation,
26
- noiseNode: NodeRepresentation,
27
26
  camera: Camera,
28
27
  ) => ShaderNodeObject<DenoiseNode>;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
2
3
 
3
4
  declare class DepthOfFieldNode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,5 +1,5 @@
1
- import { Vector2 } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, UniformNode, Vector2 } from "three/webgpu";
3
3
 
4
4
  declare class DotScreenNode extends TempNode {
5
5
  inputNode: Node;
@@ -1,4 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject, TempNode, TextureNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { TempNode, TextureNode } from "three/webgpu";
2
3
 
3
4
  declare class FXAANode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode } from "three/webgpu";
2
3
 
3
4
  declare class FilmNode extends TempNode {
4
5
  inputNode: Node;
@@ -1,22 +1,19 @@
1
- import { Camera, Matrix4, Vector2 } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Node, TempNode, TextureNode, UniformNode, Vector2 } from "three/webgpu";
3
3
 
4
4
  declare class GTAONode extends TempNode {
5
5
  depthNode: Node;
6
6
  normalNode: Node;
7
7
 
8
+ resolutionScale: number;
9
+
8
10
  radius: ShaderNodeObject<UniformNode<number>>;
9
11
  resolution: ShaderNodeObject<UniformNode<Vector2>>;
10
12
  thickness: ShaderNodeObject<UniformNode<number>>;
11
13
  distanceExponent: ShaderNodeObject<UniformNode<number>>;
12
14
  distanceFallOff: ShaderNodeObject<UniformNode<number>>;
13
15
  scale: ShaderNodeObject<UniformNode<number>>;
14
- noiseNode: ShaderNodeObject<TextureNode>;
15
-
16
- cameraProjectionMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
17
- cameraProjectionMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;
18
-
19
- SAMPLES: ShaderNodeObject<UniformNode<number>>;
16
+ samples: ShaderNodeObject<UniformNode<number>>;
20
17
 
21
18
  constructor(depthNode: Node, normalNode: Node, camera: Camera);
22
19
 
@@ -1,5 +1,5 @@
1
- import { Vector2 } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, Vector2 } from "three/webgpu";
3
3
 
4
4
  declare class GaussianBlurNode extends TempNode {
5
5
  textureNode: TextureNode;
@@ -1,5 +1,5 @@
1
- import { Vector3 } from "three";
2
- import { NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { TempNode, TextureNode, UniformNode, Vector3 } from "three/webgpu";
3
3
 
4
4
  interface LensflareNodeParams {
5
5
  ghostTint?: NodeRepresentation | undefined;
@@ -1,5 +1,5 @@
1
- import { Data3DTexture } from "three";
2
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, Texture3DNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Data3DTexture, Node, TempNode, Texture3DNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class Lut3DNode extends TempNode {
5
5
  inputNode: Node;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node } from "three/webgpu";
2
3
 
3
4
  export const motionBlur: (
4
5
  inputNode: NodeRepresentation,
@@ -1,5 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
2
- import { Camera, Object3D, Scene } from "three/webgpu";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Node, Object3D, Scene, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  export interface OutlineNodeParams {
5
5
  selectedObjects?: Object3D[] | undefined;
@@ -1,5 +1,5 @@
1
- import { Camera, Scene } from "three";
2
1
  import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Scene } from "three/webgpu";
3
3
  import StereoCompositePassNode from "./StereoCompositePassNode.js";
4
4
 
5
5
  declare class ParallaxBarrierPassNode extends StereoCompositePassNode {
@@ -1,5 +1,5 @@
1
- import { Camera, Scene } from "three";
2
- import { PassNode, ShaderNodeObject, UniformNode } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, PassNode, Scene, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class PixelationPassNode extends PassNode {
5
5
  pixelSize: UniformNode<number>;
@@ -1,4 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { TempNode, TextureNode, UniformNode } from "three/webgpu";
2
3
 
3
4
  export default class RGBShiftNode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,4 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject, TempNode, TextureNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { TempNode, TextureNode } from "three/webgpu";
2
3
 
3
4
  declare class SMAANode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,5 +1,5 @@
1
- import { Camera, Color, RenderTarget, Scene } from "three";
2
- import { PassNode, ShaderNodeObject, UniformNode } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Color, PassNode, RenderTarget, Scene, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class SSAAPassNode extends PassNode {
5
5
  readonly isSSAAPassNode: boolean;
@@ -1,5 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
2
- import { Camera } from "three/webgpu";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Camera, Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
3
3
 
4
4
  declare class SSRNode extends TempNode {
5
5
  colorNode: ShaderNodeObject<Node>;
@@ -1,3 +1,4 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node } from "three/webgpu";
2
3
 
3
4
  export const sepia: (color: NodeRepresentation) => ShaderNodeObject<Node>;
@@ -1,4 +1,5 @@
1
- import { NodeRepresentation, ShaderNodeObject, TempNode, TextureNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { TempNode, TextureNode } from "three/webgpu";
2
3
 
3
4
  declare class SobelOperatorNode extends TempNode {
4
5
  textureNode: TextureNode;
@@ -1,5 +1,4 @@
1
- import { Camera, CoordinateSystem, Scene, StereoCamera } from "three";
2
- import { PassNode } from "three/tsl";
1
+ import { Camera, CoordinateSystem, PassNode, Scene, StereoCamera } from "three/webgpu";
3
2
 
4
3
  declare class StereoCompositePassNode extends PassNode {
5
4
  readonly isStereoCompositePassNode: true;
@@ -1,5 +1,5 @@
1
- import { Camera, Scene, StereoCamera } from "three";
2
- import { PassNode, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, PassNode, Scene, StereoCamera } from "three/webgpu";
3
3
 
4
4
  declare class StereoPassNode extends PassNode {
5
5
  readonly isStereoPassNode: true;
@@ -1,5 +1,5 @@
1
- import { Camera, ColorRepresentation, Scene } from "three";
2
- import { PassNode, ShaderNodeObject } from "three/tsl";
1
+ import { ShaderNodeObject } from "three/tsl";
2
+ import { Camera, ColorRepresentation, PassNode, Scene } from "three/webgpu";
3
3
 
4
4
  declare class TRAAPassNode extends PassNode {
5
5
  readonly isTRAAPassNode: true;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject, TempNode, TextureNode, UniformNode } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
2
3
 
3
4
  declare class TransitionNode extends TempNode {
4
5
  textureNodeA: TextureNode;
@@ -1,4 +1,5 @@
1
- import { Node, NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { Node } from "three/webgpu";
2
3
 
3
4
  export const hashBlur: (
4
5
  textureNode: NodeRepresentation,
@@ -1,4 +1,5 @@
1
- import { LightsNode, Node, NodeRepresentation, ShaderNodeObject } from "three/tsl";
1
+ import { NodeRepresentation, ShaderNodeObject } from "three/tsl";
2
+ import { LightsNode, Node } from "three/webgpu";
2
3
 
3
4
  export const circleIntersectsAABB: (
4
5
  circleCenter: NodeRepresentation,
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.170.0",
3
+ "version": "0.171.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "./addons/*": "./examples/jsm/*",
31
31
  "./src/*": "./src/*",
32
32
  "./webgpu": "./build/three.webgpu.js",
33
- "./tsl": "./build/three.webgpu.js",
33
+ "./tsl": "./build/three.tsl.js",
34
34
  "./package.json": "./package.json"
35
35
  },
36
36
  "repository": {
@@ -48,6 +48,6 @@
48
48
  "meshoptimizer": "~0.18.1"
49
49
  },
50
50
  "peerDependencies": {},
51
- "typesPublisherContentHash": "943f8157acfa9033e8e899a7ffe93172eb51ec72456ae0060fc93bd214da1770",
52
- "typeScriptVersion": "4.9"
51
+ "typesPublisherContentHash": "96378b7c9c51d7d450e3a352e0282faee14373ce68b57df6a1afc567d6dd16f9",
52
+ "typeScriptVersion": "5.0"
53
53
  }