@types/three 0.168.0 → 0.170.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 (213) hide show
  1. three/README.md +1 -1
  2. three/build/three.webgpu.nodes.d.ts +1 -0
  3. three/build/three.webgpu.nodes.min.d.ts +1 -0
  4. three/examples/jsm/Addons.d.ts +3 -10
  5. three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
  6. three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
  7. three/examples/jsm/controls/ArcballControls.d.ts +1 -1
  8. three/examples/jsm/controls/DragControls.d.ts +0 -15
  9. three/examples/jsm/controls/TransformControls.d.ts +195 -24
  10. three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
  11. three/examples/jsm/csm/CSMHelper.d.ts +2 -1
  12. three/examples/jsm/csm/CSMShadowNode.d.ts +46 -0
  13. three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
  14. three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
  15. three/examples/jsm/exporters/GLTFExporter.d.ts +20 -3
  16. three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
  17. three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
  18. three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
  19. three/examples/jsm/geometries/DecalGeometry.d.ts +9 -3
  20. three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
  21. three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
  22. three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
  23. three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
  24. three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
  25. three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
  26. three/examples/jsm/lines/Line2.d.ts +15 -1
  27. three/examples/jsm/lines/LineGeometry.d.ts +18 -1
  28. three/examples/jsm/lines/LineMaterial.d.ts +65 -12
  29. three/examples/jsm/lines/LineSegments2.d.ts +25 -2
  30. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
  31. three/examples/jsm/lines/Wireframe.d.ts +5 -2
  32. three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
  33. three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
  34. three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
  35. three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
  36. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
  37. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
  38. three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
  39. three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
  40. three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
  41. three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
  42. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
  43. three/examples/jsm/math/ColorSpaces.d.ts +11 -0
  44. three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
  45. three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
  46. three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
  47. three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
  48. three/examples/jsm/objects/Lensflare.d.ts +13 -9
  49. three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
  50. three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
  51. three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +1 -5
  52. three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
  53. three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
  54. three/examples/jsm/tsl/display/BleachBypass.d.ts +3 -0
  55. three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +1 -5
  56. three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +2 -6
  57. three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +1 -5
  58. three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
  59. three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +1 -3
  60. three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +1 -3
  61. three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +2 -8
  62. three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
  63. three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
  64. three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
  65. three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +1 -2
  66. three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
  67. three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
  68. three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
  69. three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +1 -4
  70. three/examples/jsm/tsl/display/SMAANode.d.ts +17 -0
  71. three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
  72. three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
  73. three/examples/jsm/tsl/display/Sepia.d.ts +3 -0
  74. three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +1 -3
  75. three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +2 -5
  76. three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
  77. three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
  78. three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +1 -5
  79. three/examples/jsm/tsl/display/hashBlur.d.ts +7 -0
  80. three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +22 -0
  81. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
  82. three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
  83. three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
  84. three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
  85. three/examples/jsm/utils/WebGPUTextureUtils.d.ts +3 -0
  86. three/package.json +4 -3
  87. three/src/Three.WebGPU.Nodes.d.ts +205 -0
  88. three/src/Three.WebGPU.d.ts +7 -2
  89. three/src/Three.d.ts +2 -7
  90. three/src/audio/Audio.d.ts +4 -1
  91. three/src/constants.d.ts +1 -9
  92. three/src/core/BufferAttribute.d.ts +0 -15
  93. three/src/core/BufferGeometry.d.ts +13 -2
  94. three/src/core/InterleavedBuffer.d.ts +0 -12
  95. three/src/core/Object3D.d.ts +1 -1
  96. three/src/core/Raycaster.d.ts +2 -1
  97. three/src/core/RenderTarget.d.ts +1 -2
  98. three/src/extras/Controls.d.ts +3 -3
  99. three/src/loaders/FileLoader.d.ts +3 -3
  100. three/src/loaders/MaterialLoader.d.ts +2 -0
  101. three/src/loaders/nodes/NodeLoader.d.ts +5 -0
  102. three/src/loaders/nodes/NodeMaterialLoader.d.ts +3 -0
  103. three/src/loaders/nodes/NodeObjectLoader.d.ts +12 -0
  104. three/src/materials/LineBasicMaterial.d.ts +0 -5
  105. three/src/materials/LineDashedMaterial.d.ts +0 -5
  106. three/src/materials/Material.d.ts +4 -6
  107. three/src/materials/MeshBasicMaterial.d.ts +0 -5
  108. three/src/materials/MeshDepthMaterial.d.ts +0 -5
  109. three/src/materials/MeshDistanceMaterial.d.ts +0 -5
  110. three/src/materials/MeshLambertMaterial.d.ts +0 -5
  111. three/src/materials/MeshMatcapMaterial.d.ts +0 -5
  112. three/src/materials/MeshNormalMaterial.d.ts +0 -5
  113. three/src/materials/MeshPhongMaterial.d.ts +0 -5
  114. three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
  115. three/src/materials/MeshStandardMaterial.d.ts +0 -5
  116. three/src/materials/MeshToonMaterial.d.ts +0 -5
  117. three/src/materials/PointsMaterial.d.ts +0 -5
  118. three/src/materials/RawShaderMaterial.d.ts +0 -2
  119. three/src/materials/ShaderMaterial.d.ts +0 -5
  120. three/src/materials/ShadowMaterial.d.ts +0 -5
  121. three/src/materials/SpriteMaterial.d.ts +0 -5
  122. three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
  123. three/src/materials/nodes/NodeMaterial.d.ts +4 -4
  124. three/src/materials/nodes/NodeMaterials.d.ts +19 -16
  125. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +96 -0
  126. three/src/math/Color.d.ts +39 -22
  127. three/src/math/ColorManagement.d.ts +24 -24
  128. three/src/math/Quaternion.d.ts +4 -3
  129. three/src/math/Triangle.d.ts +24 -0
  130. three/src/math/Vector4.d.ts +2 -0
  131. three/src/nodes/Nodes.d.ts +3 -23
  132. three/src/nodes/TSL.d.ts +75 -187
  133. three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -0
  134. three/src/nodes/accessors/Camera.d.ts +0 -1
  135. three/src/nodes/accessors/MaterialNode.d.ts +0 -1
  136. three/src/nodes/accessors/ModelNode.d.ts +7 -3
  137. three/src/nodes/accessors/Normal.d.ts +6 -0
  138. three/src/nodes/accessors/Object3DNode.d.ts +1 -5
  139. three/src/nodes/accessors/SceneNode.d.ts +2 -0
  140. three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
  141. three/src/nodes/accessors/VelocityNode.d.ts +6 -1
  142. three/src/nodes/code/ScriptableNode.d.ts +1 -1
  143. three/src/nodes/core/Node.d.ts +3 -12
  144. three/src/nodes/core/NodeUtils.d.ts +5 -1
  145. three/src/nodes/core/StackNode.d.ts +4 -4
  146. three/src/nodes/core/StructTypeNode.d.ts +1 -0
  147. three/src/nodes/core/UniformNode.d.ts +1 -0
  148. three/src/nodes/core/VarNode.d.ts +12 -1
  149. three/src/nodes/display/ColorAdjustment.d.ts +29 -0
  150. three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
  151. three/src/nodes/display/ColorSpaceNode.d.ts +33 -8
  152. three/src/nodes/display/RenderOutputNode.d.ts +4 -4
  153. three/src/nodes/display/ScreenNode.d.ts +48 -0
  154. three/src/nodes/display/ToneMappingFunctions.d.ts +6 -6
  155. three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
  156. three/src/nodes/display/ViewportDepthNode.d.ts +2 -0
  157. three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
  158. three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
  159. three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
  160. three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
  161. three/src/nodes/lighting/LightsNode.d.ts +7 -2
  162. three/src/nodes/lighting/PointLightNode.d.ts +11 -1
  163. three/src/nodes/lighting/ShadowNode.d.ts +12 -0
  164. three/src/nodes/utils/Discard.d.ts +1 -1
  165. three/src/nodes/utils/Oscillators.d.ts +7 -0
  166. three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
  167. three/src/nodes/utils/ReflectorNode.d.ts +17 -4
  168. three/src/nodes/utils/Timer.d.ts +21 -0
  169. three/src/objects/BatchedMesh.d.ts +78 -0
  170. three/src/objects/Group.d.ts +0 -6
  171. three/src/objects/LOD.d.ts +7 -0
  172. three/src/renderers/WebGLRenderer.d.ts +24 -23
  173. three/src/renderers/common/BundleGroup.d.ts +10 -0
  174. three/src/renderers/common/ClippingContext.d.ts +1 -1
  175. three/src/renderers/common/Constants.d.ts +2 -1
  176. three/src/renderers/common/Geometries.d.ts +1 -0
  177. three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
  178. three/src/renderers/common/Lighting.d.ts +15 -0
  179. three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
  180. three/src/renderers/common/RenderBundles.d.ts +3 -3
  181. three/src/renderers/common/RenderContext.d.ts +2 -2
  182. three/src/renderers/common/RenderList.d.ts +7 -3
  183. three/src/renderers/common/RenderLists.d.ts +3 -1
  184. three/src/renderers/common/RenderObject.d.ts +20 -1
  185. three/src/renderers/common/Renderer.d.ts +43 -10
  186. three/src/renderers/common/extras/PMREMGenerator.d.ts +5 -1
  187. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
  188. three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -7
  189. three/src/renderers/common/nodes/Nodes.d.ts +8 -0
  190. three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
  191. three/src/renderers/webgl/WebGLPrograms.d.ts +4 -10
  192. three/src/renderers/webgl/WebGLState.d.ts +13 -10
  193. three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
  194. three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
  195. three/src/renderers/webgpu/WebGPURenderer.d.ts +7 -3
  196. three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
  197. three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
  198. three/src/textures/CompressedTexture.d.ts +1 -2
  199. three/src/textures/CubeTexture.d.ts +1 -2
  200. three/src/textures/DataTexture.d.ts +1 -2
  201. three/src/textures/Texture.d.ts +3 -4
  202. three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
  203. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
  204. three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
  205. three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
  206. three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
  207. three/src/nodes/display/BleachBypass.d.ts +0 -4
  208. three/src/nodes/display/Sepia.d.ts +0 -4
  209. three/src/nodes/display/ViewportNode.d.ts +0 -38
  210. three/src/nodes/utils/OscNode.d.ts +0 -25
  211. three/src/nodes/utils/TimerNode.d.ts +0 -25
  212. three/src/renderers/common/StandardRenderer.d.ts +0 -12
  213. /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
@@ -1,12 +1,4 @@
1
- import {
2
- ColorSpace,
3
- Combine,
4
- DepthPackingStrategies,
5
- GLSLVersion,
6
- Mapping,
7
- ShadowMapType,
8
- ToneMapping,
9
- } from "../../constants.js";
1
+ import { Combine, DepthPackingStrategies, GLSLVersion, Mapping, ShadowMapType, ToneMapping } from "../../constants.js";
10
2
  import { Object3D } from "../../core/Object3D.js";
11
3
  import { Light } from "../../lights/Light.js";
12
4
  import { Material } from "../../materials/Material.js";
@@ -45,7 +37,7 @@ export interface WebGLProgramParameters {
45
37
  instancingMorph: boolean;
46
38
 
47
39
  supportsVertexTextures: boolean;
48
- outputColorSpace: ColorSpace;
40
+ outputColorSpace: string;
49
41
  alphaToCoverage: boolean;
50
42
 
51
43
  map: boolean;
@@ -155,6 +147,7 @@ export interface WebGLProgramParameters {
155
147
 
156
148
  sizeAttenuation: boolean;
157
149
  logarithmicDepthBuffer: boolean;
150
+ reverseDepthBuffer: boolean;
158
151
 
159
152
  skinning: boolean;
160
153
 
@@ -189,6 +182,7 @@ export interface WebGLProgramParameters {
189
182
  toneMapping: ToneMapping;
190
183
 
191
184
  decodeVideoTexture: boolean;
185
+ decodeVideoTextureEmissive: boolean;
192
186
 
193
187
  premultipliedAlpha: boolean;
194
188
 
@@ -9,19 +9,20 @@ import {
9
9
  import { Material } from "../../materials/Material.js";
10
10
  import { Vector4 } from "../../math/Vector4.js";
11
11
  import { WebGLRenderTarget } from "../WebGLRenderTarget.js";
12
+ import { WebGLExtensions } from "./WebGLExtensions.js";
12
13
 
13
- export class WebGLColorBuffer {
14
- constructor();
15
-
14
+ declare class ColorBuffer {
16
15
  setMask(colorMask: boolean): void;
17
16
  setLocked(lock: boolean): void;
18
17
  setClear(r: number, g: number, b: number, a: number, premultipliedAlpha: boolean): void;
19
18
  reset(): void;
20
19
  }
21
20
 
22
- export class WebGLDepthBuffer {
21
+ declare class DepthBuffer {
23
22
  constructor();
24
23
 
24
+ setReversed(value: boolean): void;
25
+ getReversed(): boolean;
25
26
  setTest(depthTest: boolean): void;
26
27
  setMask(depthMask: boolean): void;
27
28
  setFunc(depthFunc: DepthModes): void;
@@ -30,7 +31,7 @@ export class WebGLDepthBuffer {
30
31
  reset(): void;
31
32
  }
32
33
 
33
- export class WebGLStencilBuffer {
34
+ declare class StencilBuffer {
34
35
  constructor();
35
36
 
36
37
  setTest(stencilTest: boolean): void;
@@ -42,13 +43,13 @@ export class WebGLStencilBuffer {
42
43
  reset(): void;
43
44
  }
44
45
 
45
- export class WebGLState {
46
- constructor(gl: WebGLRenderingContext);
46
+ declare class WebGLState {
47
+ constructor(gl: WebGLRenderingContext, extensions: WebGLExtensions);
47
48
 
48
49
  buffers: {
49
- color: WebGLColorBuffer;
50
- depth: WebGLDepthBuffer;
51
- stencil: WebGLStencilBuffer;
50
+ color: ColorBuffer;
51
+ depth: DepthBuffer;
52
+ stencil: StencilBuffer;
52
53
  };
53
54
 
54
55
  enable(id: number): void;
@@ -114,3 +115,5 @@ export class WebGLState {
114
115
  viewport(viewport: Vector4): void;
115
116
  reset(): void;
116
117
  }
118
+
119
+ export { WebGLState };
@@ -1,4 +1,4 @@
1
- import { ColorSpace, CompressedPixelFormat, PixelFormat, TextureDataType } from "../../constants.js";
1
+ import { CompressedPixelFormat, PixelFormat, TextureDataType } from "../../constants.js";
2
2
  import { WebGLExtensions } from "./WebGLExtensions.js";
3
3
 
4
4
  export class WebGLUtils {
@@ -7,5 +7,5 @@ export class WebGLUtils {
7
7
  extensions: WebGLExtensions,
8
8
  );
9
9
 
10
- convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?: ColorSpace): number | null;
10
+ convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?: string): number | null;
11
11
  }
@@ -0,0 +1,12 @@
1
+ import Renderer, { RendererParameters } from "../common/Renderer.js";
2
+ import { WebGPUBackendParameters } from "./WebGPUBackend.js";
3
+
4
+ export interface WebGPURendererParameters extends RendererParameters, WebGPUBackendParameters {
5
+ forceWebGL?: boolean | undefined;
6
+ }
7
+
8
+ export default class WebGPURenderer extends Renderer {
9
+ readonly isWebGPURenderer: true;
10
+
11
+ constructor(parameters?: WebGPURendererParameters);
12
+ }
@@ -1,10 +1,14 @@
1
- import StandardRenderer, { StandardRendererParameters } from "../common/StandardRenderer.js";
1
+ import Renderer, { RendererParameters } from "../common/Renderer.js";
2
2
  import { WebGPUBackendParameters } from "./WebGPUBackend.js";
3
3
 
4
- export interface WebGPURendererParameters extends StandardRendererParameters, WebGPUBackendParameters {
4
+ export interface WebGPURendererParameters extends RendererParameters, WebGPUBackendParameters {
5
5
  forceWebGL?: boolean | undefined;
6
6
  }
7
7
 
8
- export default class WebGPURenderer extends StandardRenderer {
8
+ declare class WebGPURenderer extends Renderer {
9
+ readonly isWebGPURenderer: true;
10
+
9
11
  constructor(parameters?: WebGPURendererParameters);
10
12
  }
13
+
14
+ export default WebGPURenderer;
@@ -0,0 +1,5 @@
1
+ import NodeLibrary from "../../common/nodes/NodeLibrary.js";
2
+ declare class BasicNodeLibrary extends NodeLibrary {
3
+ constructor();
4
+ }
5
+ export default BasicNodeLibrary;
@@ -0,0 +1,5 @@
1
+ import NodeLibrary from "../../common/nodes/NodeLibrary.js";
2
+ declare class StandardNodeLibrary extends NodeLibrary {
3
+ constructor();
4
+ }
5
+ export default StandardNodeLibrary;
@@ -1,5 +1,4 @@
1
1
  import {
2
- ColorSpace,
3
2
  CompressedPixelFormat,
4
3
  MagnificationTextureFilter,
5
4
  Mapping,
@@ -51,7 +50,7 @@ export class CompressedTexture extends Texture {
51
50
  magFilter?: MagnificationTextureFilter,
52
51
  minFilter?: MinificationTextureFilter,
53
52
  anisotropy?: number,
54
- colorSpace?: ColorSpace,
53
+ colorSpace?: string,
55
54
  );
56
55
 
57
56
  /**
@@ -1,5 +1,4 @@
1
1
  import {
2
- ColorSpace,
3
2
  CubeTextureMapping,
4
3
  MagnificationTextureFilter,
5
4
  MinificationTextureFilter,
@@ -52,7 +51,7 @@ export class CubeTexture extends Texture {
52
51
  format?: PixelFormat,
53
52
  type?: TextureDataType,
54
53
  anisotropy?: number,
55
- colorSpace?: ColorSpace,
54
+ colorSpace?: string,
56
55
  );
57
56
 
58
57
  /**
@@ -1,5 +1,4 @@
1
1
  import {
2
- ColorSpace,
3
2
  MagnificationTextureFilter,
4
3
  Mapping,
5
4
  MinificationTextureFilter,
@@ -64,7 +63,7 @@ export class DataTexture extends Texture {
64
63
  magFilter?: MagnificationTextureFilter,
65
64
  minFilter?: MinificationTextureFilter,
66
65
  anisotropy?: number,
67
- colorSpace?: ColorSpace,
66
+ colorSpace?: string,
68
67
  );
69
68
 
70
69
  /**
@@ -1,7 +1,6 @@
1
1
  import {
2
2
  AnyMapping,
3
3
  AnyPixelFormat,
4
- ColorSpace,
5
4
  MagnificationTextureFilter,
6
5
  Mapping,
7
6
  MinificationTextureFilter,
@@ -38,7 +37,7 @@ export interface TextureJSON {
38
37
  format: AnyPixelFormat;
39
38
  internalFormat: PixelFormatGPU | null;
40
39
  type: TextureDataType;
41
- colorSpace: ColorSpace;
40
+ colorSpace: string;
42
41
 
43
42
  minFilter: MinificationTextureFilter;
44
43
  magFilter: MagnificationTextureFilter;
@@ -99,7 +98,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
99
98
  format?: PixelFormat,
100
99
  type?: TextureDataType,
101
100
  anisotropy?: number,
102
- colorSpace?: ColorSpace,
101
+ colorSpace?: string,
103
102
  );
104
103
 
105
104
  /**
@@ -369,7 +368,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
369
368
  * @see {@link THREE.TextureDataType}
370
369
  * @defaultValue {@link THREE.NoColorSpace}
371
370
  */
372
- colorSpace: ColorSpace;
371
+ colorSpace: string;
373
372
 
374
373
  /**
375
374
  * Indicates whether a texture belongs to a render target or not
@@ -1,34 +0,0 @@
1
- import { OrthographicCamera, PerspectiveCamera, Scene, ShaderMaterial, WebGLRenderer, WebGLRenderTarget } from "three";
2
-
3
- import { BokehShaderUniforms } from "../shaders/BokehShader2.js";
4
-
5
- export class CinematicCamera extends PerspectiveCamera {
6
- constructor(fov: number, aspect: number, near: number, far: number);
7
-
8
- postprocessing: {
9
- enabled: boolean;
10
- scene: Scene;
11
- camera: OrthographicCamera;
12
- rtTextureDepth: WebGLRenderTarget;
13
- rtTextureColor: WebGLRenderTarget;
14
- bokeh_uniforms: BokehShaderUniforms;
15
- };
16
- shaderSettings: {
17
- rings: number;
18
- samples: number;
19
- };
20
- materialDepth: ShaderMaterial;
21
- coc: number;
22
- aperture: number;
23
- fNumber: number;
24
- hyperFocal: number;
25
- filmGauge: number;
26
-
27
- linearize(depth: number): number;
28
- smoothstep(near: number, far: number, depth: number): number;
29
- saturate(x: number): number;
30
- focusAt(focusDistance: number): void;
31
- initPostProcessing(): void;
32
- renderCinematic(scene: Scene, renderer: WebGLRenderer): void;
33
- setLens(focalLength: number, frameHeight?: number, fNumber?: number, coc?: number): void;
34
- }
@@ -1,16 +0,0 @@
1
- import { BufferGeometry, WebGLRenderer, WebGLRenderTarget } from "three";
2
-
3
- export class SDFGeometryGenerator {
4
- constructor(renderer: WebGLRenderer);
5
-
6
- generate(res?: number, distFunc?: string, bounds?: number): BufferGeometry;
7
-
8
- computeSDF(
9
- width: number,
10
- height: number,
11
- tilesX: number,
12
- tilesY: number,
13
- bounds: number,
14
- shader: string,
15
- ): WebGLRenderTarget;
16
- }
@@ -1,7 +0,0 @@
1
- import { Group, Loader, LoadingManager } from "three";
2
-
3
- export class TiltLoader extends Loader<Group> {
4
- constructor(manager?: LoadingManager);
5
-
6
- parse(data: ArrayBuffer): Group;
7
- }
@@ -1,12 +0,0 @@
1
- import Stats from "../libs/stats.module.js";
2
-
3
- export class GPUStatsPanel extends Stats.Panel {
4
- context: WebGLRenderingContext | WebGL2RenderingContext;
5
- extension: unknown;
6
- maxTime: number;
7
- activeQueries: number;
8
- startQuery: () => void;
9
- endQuery: () => void;
10
-
11
- constructor(context: WebGLRenderingContext | WebGL2RenderingContext, name?: string);
12
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * `PackedPhongMaterial` inherited from THREE.MeshPhongMaterial
3
- *
4
- * @param {Object} parameters
5
- */
6
- import { MeshPhongMaterial, MeshPhongMaterialParameters } from "three";
7
-
8
- export class PackedPhongMaterial extends MeshPhongMaterial {
9
- constructor(parameters: MeshPhongMaterialParameters);
10
- }
@@ -1,4 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
3
-
4
- export const bleach: (color: NodeRepresentation, opacity?: number) => ShaderNodeObject<Node>;
@@ -1,4 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
3
-
4
- export const sepia: (color: NodeRepresentation) => ShaderNodeObject<Node>;
@@ -1,38 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
-
4
- export type ViewportNodeScope =
5
- | typeof ViewportNode.COORDINATE
6
- | typeof ViewportNode.RESOLUTION
7
- | typeof ViewportNode.VIEWPORT
8
- | typeof ViewportNode.UV;
9
-
10
- declare class ViewportNode extends Node {
11
- scope: ViewportNodeScope;
12
-
13
- readonly isViewportNode: true;
14
-
15
- constructor(scope: ViewportNodeScope);
16
-
17
- static COORDINATE: "coordinate";
18
- static RESOLUTION: "resolution";
19
- static VIEWPORT: "viewport";
20
- static UV: "uv";
21
- }
22
-
23
- export default ViewportNode;
24
-
25
- export const viewportCoordinate: ShaderNodeObject<ViewportNode>;
26
- export const viewportResolution: ShaderNodeObject<ViewportNode>;
27
- export const viewport: ShaderNodeObject<ViewportNode>;
28
- export const viewportUV: ShaderNodeObject<ViewportNode>;
29
-
30
- /**
31
- * @deprecated "viewportTopLeft" is deprecated. Use "viewportUV" instead.
32
- */
33
- export const viewportTopLeft: ShaderNodeObject<ViewportNode>;
34
-
35
- /**
36
- * @deprecated "viewportBottomLeft" is deprecated. Use "viewportUV.flipY()" instead.
37
- */
38
- export const viewportBottomLeft: ShaderNodeObject<ViewportNode>;
@@ -1,25 +0,0 @@
1
- import Node from "../core/Node.js";
2
- import { NodeRepresentation, ShaderNodeObject } from "../tsl/TSLCore.js";
3
-
4
- export type OscNodeMethod =
5
- | typeof OscNode.SINE
6
- | typeof OscNode.SQUARE
7
- | typeof OscNode.TRIANGLE
8
- | typeof OscNode.SAWTOOTH;
9
-
10
- export default class OscNode extends Node {
11
- static SINE: "sine";
12
- static SQUARE: "square";
13
- static TRIANGLE: "triangle";
14
- static SAWTOOTH: "sawtooth";
15
-
16
- method: OscNodeMethod;
17
- timeNode: Node;
18
-
19
- constructor(method: OscNodeMethod, timeNode?: Node);
20
- }
21
-
22
- export const oscSine: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
23
- export const oscSquare: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
24
- export const oscTriangle: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
25
- export const oscSawtooth: (timeNode?: NodeRepresentation) => ShaderNodeObject<OscNode>;
@@ -1,25 +0,0 @@
1
- import UniformNode from "../core/UniformNode.js";
2
- import { ShaderNodeObject } from "../tsl/TSLCore.js";
3
-
4
- export type TimerNodeScope =
5
- | typeof TimerNode.LOCAL
6
- | typeof TimerNode.GLOBAL
7
- | typeof TimerNode.DELTA
8
- | typeof TimerNode.FRAME;
9
-
10
- export default class TimerNode extends UniformNode<number> {
11
- static LOCAL: "local";
12
- static GLOBAL: "global";
13
- static DELTA: "delta";
14
- static FRAME: "frame";
15
-
16
- scope: TimerNodeScope;
17
- scale: number;
18
-
19
- constructor(scope?: TimerNodeScope, scale?: number, value?: number);
20
- }
21
-
22
- export const timerLocal: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
23
- export const timerGlobal: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
24
- export const timerDelta: (timeScale?: number, value?: number) => ShaderNodeObject<TimerNode>;
25
- export const frameId: ShaderNodeObject<TimerNode>;
@@ -1,12 +0,0 @@
1
- import Backend from "./Backend.js";
2
- import Renderer, { RendererParameters } from "./Renderer.js";
3
-
4
- export interface StandardRendererParameters extends RendererParameters {}
5
-
6
- declare class StandardRenderer extends Renderer {
7
- readonly isStandardRenderer: true;
8
-
9
- constructor(backend: Backend, parameters?: StandardRendererParameters);
10
- }
11
-
12
- export default StandardRenderer;