@types/three 0.159.0 → 0.160.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 (129) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/loaders/KTX2Loader.d.ts +2 -8
  3. three/examples/jsm/loaders/MaterialXLoader.d.ts +6 -0
  4. three/examples/jsm/misc/Timer.d.ts +80 -0
  5. three/examples/jsm/nodes/Nodes.d.ts +238 -60
  6. three/examples/jsm/nodes/accessors/BitangentNode.d.ts +9 -0
  7. three/examples/jsm/nodes/accessors/BufferNode.d.ts +4 -1
  8. three/examples/jsm/nodes/accessors/CameraNode.d.ts +7 -0
  9. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +9 -2
  10. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -0
  11. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +12 -0
  12. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +7 -0
  13. three/examples/jsm/nodes/accessors/ModelNode.d.ts +7 -1
  14. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +3 -0
  15. three/examples/jsm/nodes/accessors/NormalNode.d.ts +8 -0
  16. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +3 -0
  17. three/examples/jsm/nodes/accessors/PositionNode.d.ts +8 -0
  18. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +4 -1
  19. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -0
  20. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +3 -0
  21. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +8 -1
  22. three/examples/jsm/nodes/accessors/TangentNode.d.ts +9 -0
  23. three/examples/jsm/nodes/accessors/TextureNode.d.ts +10 -2
  24. three/examples/jsm/nodes/accessors/UVNode.d.ts +3 -0
  25. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  26. three/examples/jsm/nodes/code/CodeNode.d.ts +4 -0
  27. three/examples/jsm/nodes/code/ExpressionNode.d.ts +3 -0
  28. three/examples/jsm/nodes/code/FunctionCallNode.d.ts +7 -1
  29. three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
  30. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +1 -1
  31. three/examples/jsm/nodes/core/AttributeNode.d.ts +3 -0
  32. three/examples/jsm/nodes/core/BypassNode.d.ts +3 -0
  33. three/examples/jsm/nodes/core/CacheNode.d.ts +3 -0
  34. three/examples/jsm/nodes/core/ConstNode.d.ts +3 -3
  35. three/examples/jsm/nodes/core/ContextNode.d.ts +3 -0
  36. three/examples/jsm/nodes/core/InputNode.d.ts +4 -4
  37. three/examples/jsm/nodes/core/NodeBuilder.d.ts +6 -3
  38. three/examples/jsm/nodes/core/NodeUniform.d.ts +12 -8
  39. three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -3
  40. three/examples/jsm/nodes/core/PropertyNode.d.ts +9 -0
  41. three/examples/jsm/nodes/core/UniformNode.d.ts +12 -4
  42. three/examples/jsm/nodes/core/VarNode.d.ts +4 -0
  43. three/examples/jsm/nodes/core/VaryingNode.d.ts +3 -0
  44. three/examples/jsm/nodes/core/constants.d.ts +9 -5
  45. three/examples/jsm/nodes/display/BlendModeNode.d.ts +7 -2
  46. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +18 -1
  47. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +4 -0
  48. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +4 -0
  49. three/examples/jsm/nodes/display/NormalMapNode.d.ts +7 -1
  50. three/examples/jsm/nodes/display/PosterizeNode.d.ts +6 -0
  51. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +8 -1
  52. three/examples/jsm/nodes/display/ViewportNode.d.ts +8 -0
  53. three/examples/jsm/nodes/fog/FogExp2Node.d.ts +3 -0
  54. three/examples/jsm/nodes/fog/FogNode.d.ts +3 -0
  55. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +3 -0
  56. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
  57. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
  58. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
  59. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +1 -1
  60. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
  61. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
  62. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +1 -1
  63. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
  64. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +1 -1
  65. three/examples/jsm/nodes/geometry/RangeNode.d.ts +3 -0
  66. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +7 -0
  67. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +6 -1
  68. three/examples/jsm/nodes/lighting/LightsNode.d.ts +3 -0
  69. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +18 -5
  70. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -3
  71. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +25 -2
  72. three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +43 -34
  73. three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +5 -3
  74. three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +7 -5
  75. three/examples/jsm/nodes/math/CondNode.d.ts +7 -0
  76. three/examples/jsm/nodes/math/MathNode.d.ts +134 -1
  77. three/examples/jsm/nodes/math/OperatorNode.d.ts +51 -0
  78. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +3 -0
  79. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +75 -33
  80. three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +4 -2
  81. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +3 -0
  82. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +6 -3
  83. three/examples/jsm/nodes/utils/OscNode.d.ts +6 -0
  84. three/examples/jsm/nodes/utils/RemapNode.d.ts +4 -0
  85. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +3 -0
  86. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +5 -1
  87. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +7 -0
  88. three/examples/jsm/nodes/utils/TimerNode.d.ts +7 -1
  89. three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -7
  90. three/examples/jsm/objects/QuadMesh.d.ts +13 -0
  91. three/examples/jsm/postprocessing/{HBAOPass.d.ts → GTAOPass.d.ts} +22 -10
  92. three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +3 -0
  93. three/examples/jsm/shaders/{HBAOShader.d.ts → GTAOShader.d.ts} +23 -8
  94. three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
  95. three/package.json +2 -2
  96. three/src/Three.d.ts +1 -0
  97. three/src/constants.d.ts +3 -1
  98. three/src/core/UniformsGroup.d.ts +3 -3
  99. three/src/lights/PointLight.d.ts +7 -0
  100. three/src/loaders/MaterialLoader.d.ts +6 -3
  101. three/src/materials/LineBasicMaterial.d.ts +7 -0
  102. three/src/materials/LineDashedMaterial.d.ts +7 -1
  103. three/src/materials/Material.d.ts +14 -14
  104. three/src/materials/MeshBasicMaterial.d.ts +7 -0
  105. three/src/materials/MeshDepthMaterial.d.ts +6 -0
  106. three/src/materials/MeshDistanceMaterial.d.ts +7 -0
  107. three/src/materials/MeshLambertMaterial.d.ts +7 -0
  108. three/src/materials/MeshMatcapMaterial.d.ts +7 -0
  109. three/src/materials/MeshNormalMaterial.d.ts +7 -0
  110. three/src/materials/MeshPhongMaterial.d.ts +7 -0
  111. three/src/materials/MeshPhysicalMaterial.d.ts +6 -1
  112. three/src/materials/MeshStandardMaterial.d.ts +7 -2
  113. three/src/materials/MeshToonMaterial.d.ts +7 -0
  114. three/src/materials/PointsMaterial.d.ts +7 -0
  115. three/src/materials/RawShaderMaterial.d.ts +9 -0
  116. three/src/materials/ShaderMaterial.d.ts +9 -3
  117. three/src/materials/ShadowMaterial.d.ts +7 -0
  118. three/src/materials/SpriteMaterial.d.ts +7 -2
  119. three/src/math/Matrix4.d.ts +30 -30
  120. three/src/math/Sphere.d.ts +5 -0
  121. three/src/math/Triangle.d.ts +8 -8
  122. three/src/objects/SkinnedMesh.d.ts +1 -2
  123. three/src/renderers/shaders/ShaderLib.d.ts +18 -18
  124. three/src/renderers/shaders/UniformsUtils.d.ts +3 -2
  125. three/src/renderers/webgl/WebGLLights.d.ts +39 -37
  126. three/src/renderers/webgl/WebGLPrograms.d.ts +224 -9
  127. three/src/textures/CompressedCubeTexture.d.ts +13 -0
  128. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
  129. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
@@ -1,166 +0,0 @@
1
- import Node from '../core/Node.js';
2
- import RangeNode, { RangeModeBound } from '../geometry/RangeNode.js';
3
- import { NodeRepresentation, Swizzable } from './ShaderNode.js';
4
- import {
5
- CubeTexture,
6
- InstancedMesh,
7
- Light,
8
- SkinnedMesh,
9
- Texture,
10
- TextureEncoding,
11
- ToneMapping,
12
- } from '../../../../src/Three.js';
13
- import LightingContextNode, { LightingModelNode } from '../lighting/LightingContextNode.js';
14
- import {
15
- BlendModeNode,
16
- CheckerNode,
17
- ColorAdjustmentNode,
18
- ColorSpaceNode,
19
- CubeTextureNode,
20
- EquirectUVNode,
21
- FogNode,
22
- FogRangeNode,
23
- FogExp2Node,
24
- InstanceNode,
25
- LightsNode,
26
- MatcapUVNode,
27
- NormalMapNode,
28
- OscNode,
29
- PosterizeNode,
30
- RemapNode,
31
- ReflectVectorNode,
32
- RotateUVNode,
33
- SkinningNode,
34
- SpriteSheetUVNode,
35
- TimerNode,
36
- ToneMappingNode,
37
- TriplanarTexturesNode,
38
- SpecularMIPLevelNode,
39
- ViewportNode,
40
- } from '../Nodes.js';
41
-
42
- //
43
- // Node Material Shader Syntax
44
- //
45
-
46
- // shader node base
47
-
48
- export * from './ShaderNodeBaseElements.js';
49
-
50
- // functions
51
-
52
- export { default as BRDF_GGX } from '../functions/BSDF/BRDF_GGX.js'; // see https://github.com/tc39/proposal-export-default-from
53
- export { default as BRDF_Lambert } from '../functions/BSDF/BRDF_Lambert.js';
54
- export { default as D_GGX } from '../functions/BSDF/D_GGX.js';
55
- export { default as DFGApprox } from '../functions/BSDF/DFGApprox.js';
56
- export { default as F_Schlick } from '../functions/BSDF/F_Schlick.js';
57
- export { default as V_GGX_SmithCorrelated } from '../functions/BSDF/V_GGX_SmithCorrelated.js';
58
-
59
- export { default as getGeometryRoughness } from '../functions/material/getGeometryRoughness.js';
60
- export { default as getRoughness } from '../functions/material/getRoughness.js';
61
-
62
- export { default as PhysicalLightingModel } from '../functions/PhysicalLightingModel.js';
63
-
64
- // accessors
65
-
66
- export function cubeTexture(
67
- value: CubeTexture,
68
- uvNode?: NodeRepresentation,
69
- levelNode?: NodeRepresentation,
70
- ): Swizzable<CubeTextureNode>;
71
- export function instance(instanceMesh: InstancedMesh): Swizzable<InstanceNode>;
72
- export const reflectVector: Swizzable<ReflectVectorNode>;
73
- export function skinning(skinnedMesh: SkinnedMesh): Swizzable<SkinningNode>;
74
-
75
- // display
76
-
77
- export function burn(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
78
- export function dodge(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
79
- export function overlay(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
80
- export function screen(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
81
-
82
- export function saturation(
83
- colorNode: NodeRepresentation,
84
- adjustmentNode?: NodeRepresentation,
85
- ): Swizzable<ColorAdjustmentNode>;
86
- export function vibrance(
87
- colorNode: NodeRepresentation,
88
- adjustmentNode?: NodeRepresentation,
89
- ): Swizzable<ColorAdjustmentNode>;
90
- export function hue(colorNode: NodeRepresentation, adjustmentNode?: NodeRepresentation): Swizzable<ColorAdjustmentNode>;
91
-
92
- export function colorSpace(node: NodeRepresentation, encoding: TextureEncoding): Swizzable<ColorSpaceNode>;
93
- export function normalMap(node: Node, scaleNode?: Node): Swizzable<NormalMapNode>;
94
- export function toneMapping(
95
- mapping: ToneMapping,
96
- exposure: NodeRepresentation,
97
- color: NodeRepresentation,
98
- ): Swizzable<ToneMappingNode>;
99
-
100
- export function posterize(sourceNode: NodeRepresentation, stepsNode: NodeRepresentation): Swizzable<PosterizeNode>;
101
-
102
- export const viewportCoordinate: Swizzable<ViewportNode>;
103
- export const viewportResolution: Swizzable<ViewportNode>;
104
- export const viewportTopLeft: Swizzable<ViewportNode>;
105
- export const viewportBottomLeft: Swizzable<ViewportNode>;
106
- export const viewportTopRight: Swizzable<ViewportNode>;
107
- export const viewportBottomRight: Swizzable<ViewportNode>;
108
-
109
- // lighting
110
-
111
- export function lights(lights: Light[]): Swizzable<LightsNode>;
112
- export function lightingContext(node: Node, lightingModelNode?: LightingModelNode): Swizzable<LightingContextNode>;
113
-
114
- // utils
115
-
116
- export const matcapUV: Swizzable<MatcapUVNode>;
117
- export const equirectUV: Swizzable<EquirectUVNode>;
118
-
119
- export function specularMIPLevel(): Swizzable<SpecularMIPLevelNode>;
120
-
121
- export function oscSine(timeNode?: NodeRepresentation): Swizzable<OscNode>;
122
- export function oscSquare(timeNode?: NodeRepresentation): Swizzable<OscNode>;
123
- export function oscTriangle(timeNode?: NodeRepresentation): Swizzable<OscNode>;
124
- export function oscSawtooth(timeNode?: NodeRepresentation): Swizzable<OscNode>;
125
-
126
- export function remap(node: Node, inLowNode: Node): Swizzable<RemapNode>;
127
- export function remapClamp(node: Node, inLowNode: Node): Swizzable<RemapNode>;
128
-
129
- export function rotateUV(uvNode: Node, rotationNode: Node, centerNode?: Node): Swizzable<RotateUVNode>;
130
-
131
- export function spritesheetUV(
132
- countNode: NodeRepresentation,
133
- uvNode?: NodeRepresentation,
134
- frameNode?: NodeRepresentation,
135
- ): Swizzable<SpriteSheetUVNode>;
136
-
137
- export function timerLocal(timeScale: number, value?: number): Swizzable<TimerNode>;
138
- export function timerGlobal(timeScale: number, value?: number): Swizzable<TimerNode>;
139
- export function timerDelta(timeScale: number, value?: number): Swizzable<TimerNode>;
140
- export const frameId: Swizzable<TimerNode>;
141
- export function triplanarTextures(
142
- textureXNode: NodeRepresentation,
143
- textureYNode?: NodeRepresentation,
144
- textureZNode?: NodeRepresentation,
145
- scaleNode?: NodeRepresentation,
146
- positionNode?: NodeRepresentation,
147
- normalNode?: NodeRepresentation,
148
- ): Swizzable<TriplanarTexturesNode>;
149
- export function triplanarTexture(
150
- texture: NodeRepresentation,
151
- ...params: NodeRepresentation[]
152
- ): Swizzable<TriplanarTexturesNode>;
153
-
154
- // geometry
155
-
156
- export function range(min: RangeModeBound, max: RangeModeBound): Swizzable<RangeNode>;
157
-
158
- // procedural
159
-
160
- export function checker(uvNode?: NodeRepresentation): Swizzable<CheckerNode>;
161
-
162
- // fog
163
-
164
- export function fog(colorNode: NodeRepresentation, factorNode: NodeRepresentation): Swizzable<FogNode>;
165
- export function rangeFog(colorNode: Node, nearNode: Node, farNode: Node): Swizzable<FogRangeNode>;
166
- export function exp2Fog(colorNode: Node, densityNode: Node): Swizzable<FogExp2Node>;