@types/three 0.173.0 → 0.174.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/animation/CCDIKSolver.d.ts +3 -2
  3. three/examples/jsm/loaders/MTLLoader.d.ts +2 -1
  4. three/examples/jsm/misc/Timer.d.ts +13 -2
  5. three/examples/jsm/objects/Reflector.d.ts +1 -0
  6. three/examples/jsm/tsl/math/Bayer.d.ts +4 -0
  7. three/examples/jsm/tsl/utils/Raymarching.d.ts +9 -0
  8. three/package.json +2 -2
  9. three/src/Three.TSL.d.ts +4 -0
  10. three/src/Three.d.ts +6 -1
  11. three/src/core/Raycaster.d.ts +4 -0
  12. three/src/extras/PMREMGenerator.d.ts +15 -2
  13. three/src/geometries/TorusGeometry.d.ts +5 -6
  14. three/src/materials/nodes/NodeMaterial.d.ts +2 -1
  15. three/src/materials/nodes/VolumeNodeMaterial.d.ts +14 -2
  16. three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +4 -4
  17. three/src/nodes/Nodes.d.ts +1 -2
  18. three/src/nodes/TSL.d.ts +1 -0
  19. three/src/nodes/accessors/BufferAttributeNode.d.ts +25 -22
  20. three/src/nodes/accessors/Lights.d.ts +1 -1
  21. three/src/nodes/accessors/MaterialProperties.d.ts +5 -0
  22. three/src/nodes/accessors/ModelNode.d.ts +1 -0
  23. three/src/nodes/accessors/Object3DNode.d.ts +7 -5
  24. three/src/nodes/accessors/Texture3DNode.d.ts +2 -2
  25. three/src/nodes/core/LightingModel.d.ts +13 -28
  26. three/src/nodes/core/Node.d.ts +24 -24
  27. three/src/nodes/core/NodeAttribute.d.ts +3 -3
  28. three/src/nodes/core/NodeCache.d.ts +2 -2
  29. three/src/nodes/core/NodeParser.d.ts +1 -1
  30. three/src/nodes/core/NodeUniform.d.ts +4 -4
  31. three/src/nodes/core/NodeVar.d.ts +4 -4
  32. three/src/nodes/core/NodeVarying.d.ts +2 -2
  33. three/src/nodes/core/StructTypeNode.d.ts +2 -2
  34. three/src/nodes/core/UniformNode.d.ts +7 -7
  35. three/src/nodes/core/constants.d.ts +0 -1
  36. three/src/nodes/display/PassNode.d.ts +10 -1
  37. three/src/nodes/functions/BSDF/LTC.d.ts +5 -1
  38. three/src/nodes/functions/VolumetricLightingModel.d.ts +6 -0
  39. three/src/nodes/lighting/AnalyticLightNode.d.ts +13 -1
  40. three/src/nodes/lighting/LightingContextNode.d.ts +18 -4
  41. three/src/nodes/lighting/LightsNode.d.ts +24 -0
  42. three/src/nodes/lighting/PointLightNode.d.ts +8 -7
  43. three/src/nodes/lighting/ShadowBaseNode.d.ts +3 -0
  44. three/src/nodes/tsl/TSLCore.d.ts +3 -0
  45. three/src/nodes/utils/ReflectorNode.d.ts +1 -0
  46. three/src/objects/LOD.d.ts +4 -3
  47. three/src/renderers/common/Animation.d.ts +4 -4
  48. three/src/renderers/common/Attributes.d.ts +1 -1
  49. three/src/renderers/common/BindGroup.d.ts +2 -2
  50. three/src/renderers/common/Binding.d.ts +2 -2
  51. three/src/renderers/common/Buffer.d.ts +3 -3
  52. three/src/renderers/common/BufferUtils.d.ts +7 -8
  53. three/src/renderers/common/BundleGroup.d.ts +2 -2
  54. three/src/renderers/common/ChainMap.d.ts +3 -3
  55. three/src/renderers/common/ClippingContext.d.ts +3 -3
  56. three/src/renderers/common/Color4.d.ts +8 -8
  57. three/src/renderers/common/ComputePipeline.d.ts +1 -1
  58. three/src/renderers/common/DataMap.d.ts +2 -2
  59. three/src/renderers/common/Geometries.d.ts +4 -4
  60. three/src/renderers/common/Info.d.ts +2 -2
  61. three/src/renderers/common/Pipeline.d.ts +1 -1
  62. three/src/renderers/common/Pipelines.d.ts +9 -9
  63. three/src/renderers/common/ProgrammableStage.d.ts +4 -4
  64. three/src/renderers/common/RenderContext.d.ts +2 -2
  65. three/src/renderers/common/RenderContexts.d.ts +3 -3
  66. three/src/renderers/common/RenderList.d.ts +11 -11
  67. three/src/renderers/common/RenderObject.d.ts +13 -13
  68. three/src/renderers/common/RenderObjects.d.ts +3 -3
  69. three/src/renderers/common/RenderPipeline.d.ts +1 -1
  70. three/src/renderers/common/Renderer.d.ts +117 -91
  71. three/src/renderers/common/Textures.d.ts +6 -6
  72. three/src/renderers/common/TimestampQueryPool.d.ts +13 -1
  73. three/src/renderers/common/Uniform.d.ts +13 -13
  74. three/src/renderers/common/UniformBuffer.d.ts +1 -1
  75. three/src/renderers/common/UniformsGroup.d.ts +13 -13
  76. three/src/renderers/common/XRManager.d.ts +13 -15
  77. three/src/renderers/common/XRRenderTarget.d.ts +4 -4
  78. three/src/renderers/common/extras/PMREMGenerator.d.ts +9 -2
  79. three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -3
  80. three/src/renderers/common/nodes/NodeLibrary.d.ts +11 -11
  81. three/src/renderers/common/nodes/NodeUniform.d.ts +9 -9
  82. three/src/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -1
  83. three/src/renderers/common/nodes/Nodes.d.ts +11 -11
  84. three/src/renderers/webgl/WebGLState.d.ts +7 -6
@@ -11,14 +11,14 @@ import { Vector4 } from "../../math/Vector4.js";
11
11
  import { WebGLRenderTarget } from "../WebGLRenderTarget.js";
12
12
  import { WebGLExtensions } from "./WebGLExtensions.js";
13
13
 
14
- declare class ColorBuffer {
14
+ declare class WebGLColorBuffer {
15
15
  setMask(colorMask: boolean): void;
16
16
  setLocked(lock: boolean): void;
17
17
  setClear(r: number, g: number, b: number, a: number, premultipliedAlpha: boolean): void;
18
18
  reset(): void;
19
19
  }
20
20
 
21
- declare class DepthBuffer {
21
+ declare class WebGLDepthBuffer {
22
22
  constructor();
23
23
 
24
24
  setReversed(value: boolean): void;
@@ -31,7 +31,7 @@ declare class DepthBuffer {
31
31
  reset(): void;
32
32
  }
33
33
 
34
- declare class StencilBuffer {
34
+ declare class WebGLStencilBuffer {
35
35
  constructor();
36
36
 
37
37
  setTest(stencilTest: boolean): void;
@@ -47,9 +47,9 @@ declare class WebGLState {
47
47
  constructor(gl: WebGLRenderingContext, extensions: WebGLExtensions);
48
48
 
49
49
  buffers: {
50
- color: ColorBuffer;
51
- depth: DepthBuffer;
52
- stencil: StencilBuffer;
50
+ color: WebGLColorBuffer;
51
+ depth: WebGLDepthBuffer;
52
+ stencil: WebGLStencilBuffer;
53
53
  };
54
54
 
55
55
  enable(id: number): void;
@@ -117,3 +117,4 @@ declare class WebGLState {
117
117
  }
118
118
 
119
119
  export { WebGLState };
120
+ export type { WebGLColorBuffer, WebGLDepthBuffer, WebGLStencilBuffer };