@types/three 0.143.0 → 0.144.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 (206) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/controls/FirstPersonControls.d.ts +4 -1
  3. three/examples/jsm/csm/CSM.d.ts +1 -1
  4. three/examples/jsm/environments/RoomEnvironment.d.ts +1 -0
  5. three/examples/jsm/interactive/SelectionHelper.d.ts +1 -3
  6. three/examples/jsm/libs/stats.module.d.ts +1 -1
  7. three/examples/jsm/loaders/TIFFLoader.d.ts +16 -0
  8. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +17 -0
  9. three/examples/jsm/math/ColorConverter.d.ts +0 -2
  10. three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -0
  11. three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -2
  12. three/examples/jsm/misc/Volume.d.ts +1 -1
  13. three/examples/jsm/modifiers/CurveModifier.d.ts +6 -6
  14. three/examples/jsm/nodes/Nodes.d.ts +216 -0
  15. three/examples/jsm/nodes/accessors/BufferNode.d.ts +11 -0
  16. three/examples/jsm/nodes/accessors/CameraNode.d.ts +12 -0
  17. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +11 -0
  18. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +9 -0
  19. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +23 -0
  20. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +6 -0
  21. three/examples/jsm/nodes/accessors/ModelNode.d.ts +9 -0
  22. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +6 -0
  23. three/examples/jsm/nodes/accessors/NormalNode.d.ts +17 -0
  24. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +22 -0
  25. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +7 -0
  26. three/examples/jsm/nodes/accessors/PositionNode.d.ts +19 -0
  27. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +13 -0
  28. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +8 -0
  29. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +13 -0
  30. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +6 -0
  31. three/examples/jsm/nodes/accessors/TextureNode.d.ts +12 -0
  32. three/examples/jsm/nodes/accessors/UVNode.d.ts +8 -0
  33. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  34. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +8 -0
  35. three/examples/jsm/nodes/core/AttributeNode.d.ts +9 -0
  36. three/examples/jsm/nodes/core/BypassNode.d.ts +9 -0
  37. three/examples/jsm/nodes/core/CodeNode.d.ts +16 -0
  38. three/examples/jsm/nodes/core/ConstNode.d.ts +10 -0
  39. three/examples/jsm/nodes/core/ContextNode.d.ts +10 -0
  40. three/examples/jsm/nodes/core/ExpressionNode.d.ts +7 -0
  41. three/examples/jsm/nodes/core/FunctionCallNode.d.ts +13 -0
  42. three/examples/jsm/nodes/core/FunctionNode.d.ts +17 -0
  43. three/examples/jsm/nodes/core/InputNode.d.ts +12 -0
  44. three/examples/jsm/nodes/core/InstanceIndexNode.d.ts +6 -0
  45. three/examples/jsm/nodes/core/Node.d.ts +31 -0
  46. three/examples/jsm/nodes/core/NodeAttribute.d.ts +6 -0
  47. three/examples/jsm/nodes/core/NodeBuilder.d.ts +134 -0
  48. three/examples/jsm/nodes/core/NodeCode.d.ts +4 -0
  49. three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -0
  50. three/examples/jsm/nodes/core/NodeFunction.d.ts +13 -0
  51. three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +7 -0
  52. three/examples/jsm/nodes/core/NodeKeywords.d.ts +14 -0
  53. three/examples/jsm/nodes/core/NodeParser.d.ts +5 -0
  54. three/examples/jsm/nodes/core/NodeUniform.d.ts +13 -0
  55. three/examples/jsm/nodes/core/NodeUtils.d.ts +7 -0
  56. three/examples/jsm/nodes/core/NodeVar.d.ts +6 -0
  57. three/examples/jsm/nodes/core/NodeVary.d.ts +6 -0
  58. three/examples/jsm/nodes/core/PropertyNode.d.ts +6 -0
  59. three/examples/jsm/nodes/core/TempNode.d.ts +8 -0
  60. three/examples/jsm/nodes/core/UniformNode.d.ts +10 -0
  61. three/examples/jsm/nodes/core/VarNode.d.ts +16 -0
  62. three/examples/jsm/nodes/core/VaryNode.d.ts +8 -0
  63. three/examples/jsm/nodes/core/constants.d.ts +77 -0
  64. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +20 -0
  65. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +15 -0
  66. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +6 -0
  67. three/examples/jsm/nodes/display/NormalMapNode.d.ts +12 -0
  68. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +14 -0
  69. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -0
  70. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +10 -0
  71. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +6 -0
  72. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +6 -0
  73. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +10 -0
  74. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +9 -0
  75. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +6 -0
  76. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +6 -0
  77. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +11 -0
  78. three/examples/jsm/nodes/functions/light/getDistanceAttenuation.d.ts +5 -0
  79. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +5 -0
  80. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +6 -0
  81. three/examples/jsm/nodes/geometry/RangeNode.d.ts +12 -0
  82. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +11 -0
  83. three/examples/jsm/nodes/lighting/AONode.d.ts +8 -0
  84. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +10 -0
  85. three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +8 -0
  86. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +13 -0
  87. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +15 -0
  88. three/examples/jsm/nodes/lighting/LightingNode.d.ts +5 -0
  89. three/examples/jsm/nodes/lighting/LightsNode.d.ts +19 -0
  90. three/examples/jsm/nodes/lighting/PunctualLightNode.d.ts +12 -0
  91. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +21 -0
  92. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +8 -0
  93. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +11 -0
  94. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +16 -0
  95. three/examples/jsm/nodes/materials/Materials.d.ts +17 -0
  96. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +19 -0
  97. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +22 -0
  98. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +27 -0
  99. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +22 -0
  100. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +15 -0
  101. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +23 -0
  102. three/examples/jsm/nodes/materialx/functions/lib/mx_hsv.d.ts +4 -0
  103. three/examples/jsm/nodes/materialx/functions/lib/mx_noise.d.ts +6 -0
  104. three/examples/jsm/nodes/math/CondNode.d.ts +9 -0
  105. three/examples/jsm/nodes/math/MathNode.d.ts +116 -0
  106. three/examples/jsm/nodes/math/OperatorNode.d.ts +31 -0
  107. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +6 -0
  108. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +157 -0
  109. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +285 -0
  110. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +128 -0
  111. three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +9 -0
  112. three/examples/jsm/nodes/utils/ConvertNode.d.ts +8 -0
  113. three/examples/jsm/nodes/utils/JoinNode.d.ts +10 -0
  114. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +5 -0
  115. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +7 -0
  116. three/examples/jsm/nodes/utils/OscNode.d.ts +19 -0
  117. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +10 -0
  118. three/examples/jsm/nodes/utils/SplitNode.d.ts +16 -0
  119. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +9 -0
  120. three/examples/jsm/nodes/utils/TimerNode.d.ts +14 -0
  121. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +4 -4
  122. three/examples/jsm/postprocessing/SSRPass.d.ts +3 -3
  123. three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +17 -0
  124. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +56 -0
  125. three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +3 -0
  126. three/examples/jsm/shaders/AfterimageShader.d.ts +4 -4
  127. three/examples/jsm/shaders/BleachBypassShader.d.ts +3 -3
  128. three/examples/jsm/shaders/BlendShader.d.ts +5 -5
  129. three/examples/jsm/shaders/BokehShader.d.ts +9 -9
  130. three/examples/jsm/shaders/BokehShader2.d.ts +26 -26
  131. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +4 -4
  132. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +5 -5
  133. three/examples/jsm/shaders/ColorifyShader.d.ts +3 -3
  134. three/examples/jsm/shaders/ConvolutionShader.d.ts +4 -4
  135. three/examples/jsm/shaders/CopyShader.d.ts +3 -3
  136. three/examples/jsm/shaders/DOFMipMapShader.d.ts +5 -5
  137. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +9 -9
  138. three/examples/jsm/shaders/DigitalGlitch.d.ts +12 -12
  139. three/examples/jsm/shaders/DotScreenShader.d.ts +6 -6
  140. three/examples/jsm/shaders/FXAAShader.d.ts +3 -3
  141. three/examples/jsm/shaders/FilmShader.d.ts +7 -7
  142. three/examples/jsm/shaders/FocusShader.d.ts +6 -6
  143. three/examples/jsm/shaders/FreiChenShader.d.ts +3 -3
  144. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +2 -2
  145. three/examples/jsm/shaders/GodRaysShader.d.ts +12 -12
  146. three/examples/jsm/shaders/HalftoneShader.d.ts +14 -14
  147. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +3 -3
  148. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +4 -4
  149. three/examples/jsm/shaders/HueSaturationShader.d.ts +4 -4
  150. three/examples/jsm/shaders/KaleidoShader.d.ts +4 -4
  151. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +6 -6
  152. three/examples/jsm/shaders/LuminosityShader.d.ts +2 -2
  153. three/examples/jsm/shaders/MirrorShader.d.ts +3 -3
  154. three/examples/jsm/shaders/NormalMapShader.d.ts +5 -5
  155. three/examples/jsm/shaders/PixelShader.d.ts +4 -4
  156. three/examples/jsm/shaders/RGBShiftShader.d.ts +4 -4
  157. three/examples/jsm/shaders/SAOShader.d.ts +15 -15
  158. three/examples/jsm/shaders/SMAAShader.d.ts +10 -10
  159. three/examples/jsm/shaders/SSAOShader.d.ts +19 -19
  160. three/examples/jsm/shaders/SepiaShader.d.ts +3 -3
  161. three/examples/jsm/shaders/SobelOperatorShader.d.ts +3 -3
  162. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +30 -30
  163. three/examples/jsm/shaders/TechnicolorShader.d.ts +2 -2
  164. three/examples/jsm/shaders/ToneMapShader.d.ts +7 -7
  165. three/examples/jsm/shaders/ToonShader.d.ts +26 -26
  166. three/examples/jsm/shaders/TriangleBlurShader.d.ts +3 -3
  167. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +3 -3
  168. three/examples/jsm/shaders/VerticalBlurShader.d.ts +3 -3
  169. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +4 -4
  170. three/examples/jsm/shaders/VignetteShader.d.ts +4 -4
  171. three/examples/jsm/shaders/VolumeShader.d.ts +7 -7
  172. three/examples/jsm/shaders/WaterRefractionShader.d.ts +6 -6
  173. three/examples/jsm/utils/CameraUtils.d.ts +1 -1
  174. three/index.d.ts +2 -2
  175. three/package.json +3 -3
  176. three/src/Three.d.ts +1 -1
  177. three/src/constants.d.ts +0 -5
  178. three/src/core/BufferAttribute.d.ts +0 -4
  179. three/src/core/BufferGeometry.d.ts +0 -1
  180. three/src/core/Object3D.d.ts +2 -1
  181. three/src/extras/core/ShapePath.d.ts +1 -1
  182. three/src/geometries/BoxGeometry.d.ts +0 -2
  183. three/src/geometries/CapsuleGeometry.d.ts +0 -2
  184. three/src/geometries/CircleGeometry.d.ts +0 -2
  185. three/src/geometries/ConeGeometry.d.ts +0 -2
  186. three/src/geometries/CylinderGeometry.d.ts +0 -2
  187. three/src/geometries/DodecahedronGeometry.d.ts +0 -2
  188. three/src/geometries/ExtrudeGeometry.d.ts +0 -2
  189. three/src/geometries/IcosahedronGeometry.d.ts +0 -2
  190. three/src/geometries/LatheGeometry.d.ts +0 -2
  191. three/src/geometries/OctahedronGeometry.d.ts +0 -2
  192. three/src/geometries/PlaneGeometry.d.ts +0 -2
  193. three/src/geometries/PolyhedronGeometry.d.ts +0 -2
  194. three/src/geometries/RingGeometry.d.ts +0 -2
  195. three/src/geometries/ShapeGeometry.d.ts +0 -2
  196. three/src/geometries/SphereGeometry.d.ts +0 -2
  197. three/src/geometries/TetrahedronGeometry.d.ts +0 -2
  198. three/src/geometries/TorusGeometry.d.ts +0 -2
  199. three/src/geometries/TorusKnotGeometry.d.ts +0 -2
  200. three/src/geometries/TubeGeometry.d.ts +0 -2
  201. three/src/materials/LineBasicMaterial.d.ts +7 -0
  202. three/src/materials/MeshLambertMaterial.d.ts +52 -1
  203. three/src/materials/MeshPhysicalMaterial.d.ts +5 -0
  204. three/src/materials/ShaderMaterial.d.ts +1 -1
  205. three/src/math/Quaternion.d.ts +0 -5
  206. three/src/renderers/shaders/UniformsUtils.d.ts +0 -1
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const HueSaturationShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- hue: Uniform;
7
- saturation: Uniform;
5
+ tDiffuse: IUniform;
6
+ hue: IUniform;
7
+ saturation: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const KaleidoShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- sides: Uniform;
7
- angle: Uniform;
5
+ tDiffuse: IUniform;
6
+ sides: IUniform;
7
+ angle: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,13 +1,13 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const LuminosityHighPassShader: {
4
4
  shaderID: string;
5
5
  uniforms: {
6
- tDiffuse: Uniform;
7
- luminosityThreshold: Uniform;
8
- smoothWidth: Uniform;
9
- defaultColor: Uniform;
10
- defaultOpacity: Uniform;
6
+ tDiffuse: IUniform;
7
+ luminosityThreshold: IUniform;
8
+ smoothWidth: IUniform;
9
+ defaultColor: IUniform;
10
+ defaultOpacity: IUniform;
11
11
  };
12
12
  vertexShader: string;
13
13
  fragmentShader: string;
@@ -1,8 +1,8 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const LuminosityShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
5
+ tDiffuse: IUniform;
6
6
  };
7
7
  vertexShader: string;
8
8
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const MirrorShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- side: Uniform;
5
+ tDiffuse: IUniform;
6
+ side: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,11 +1,11 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const NormalMapShader: {
4
4
  uniforms: {
5
- heightMap: Uniform;
6
- resolution: Uniform;
7
- scale: Uniform;
8
- height: Uniform;
5
+ heightMap: IUniform;
6
+ resolution: IUniform;
7
+ scale: IUniform;
8
+ height: IUniform;
9
9
  };
10
10
  vertexShader: string;
11
11
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const PixelShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- resolution: Uniform;
7
- pixelSize: Uniform;
5
+ tDiffuse: IUniform;
6
+ resolution: IUniform;
7
+ pixelSize: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const RGBShiftShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- amount: Uniform;
7
- angle: Uniform;
5
+ tDiffuse: IUniform;
6
+ amount: IUniform;
7
+ angle: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SAOShader: {
4
4
  defines: {
@@ -10,20 +10,20 @@ export const SAOShader: {
10
10
  PERSPECTIVE_CAMERA: number;
11
11
  };
12
12
  uniforms: {
13
- tDepth: Uniform;
14
- tDiffuse: Uniform;
15
- tNormal: Uniform;
16
- size: Uniform;
17
- cameraNear: Uniform;
18
- cameraFar: Uniform;
19
- cameraProjectionMatrix: Uniform;
20
- cameraInverseProjectionMatrix: Uniform;
21
- scale: Uniform;
22
- intensity: Uniform;
23
- bias: Uniform;
24
- minResolution: Uniform;
25
- kernelRadius: Uniform;
26
- randomSeed: Uniform;
13
+ tDepth: IUniform;
14
+ tDiffuse: IUniform;
15
+ tNormal: IUniform;
16
+ size: IUniform;
17
+ cameraNear: IUniform;
18
+ cameraFar: IUniform;
19
+ cameraProjectionMatrix: IUniform;
20
+ cameraInverseProjectionMatrix: IUniform;
21
+ scale: IUniform;
22
+ intensity: IUniform;
23
+ bias: IUniform;
24
+ minResolution: IUniform;
25
+ kernelRadius: IUniform;
26
+ randomSeed: IUniform;
27
27
  };
28
28
  vertexShader: string;
29
29
  fragmentShader: string;
@@ -1,12 +1,12 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SMAAEdgesShader: {
4
4
  defines: {
5
5
  SMAA_THRESHOLD: string;
6
6
  };
7
7
  uniforms: {
8
- tDiffuse: Uniform;
9
- resolution: Uniform;
8
+ tDiffuse: IUniform;
9
+ resolution: IUniform;
10
10
  };
11
11
  vertexShader: string;
12
12
  fragmentShader: string;
@@ -20,10 +20,10 @@ export const SMAAWeightsShader: {
20
20
  SMAA_AREATEX_SUBTEX_SIZE: string;
21
21
  };
22
22
  uniforms: {
23
- tDiffuse: Uniform;
24
- tArea: Uniform;
25
- tSearch: Uniform;
26
- resolution: Uniform;
23
+ tDiffuse: IUniform;
24
+ tArea: IUniform;
25
+ tSearch: IUniform;
26
+ resolution: IUniform;
27
27
  };
28
28
  vertexShader: string;
29
29
  fragmentShader: string;
@@ -31,9 +31,9 @@ export const SMAAWeightsShader: {
31
31
 
32
32
  export const SMAABlendShader: {
33
33
  uniforms: {
34
- tDiffuse: Uniform;
35
- tColor: Uniform;
36
- resolution: Uniform;
34
+ tDiffuse: IUniform;
35
+ tColor: IUniform;
36
+ resolution: IUniform;
37
37
  };
38
38
  vertexShader: string;
39
39
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SSAOShader: {
4
4
  defines: {
@@ -6,19 +6,19 @@ export const SSAOShader: {
6
6
  KERNEL_SIZE: number;
7
7
  };
8
8
  uniforms: {
9
- tDiffuse: Uniform;
10
- tNormal: Uniform;
11
- tDepth: Uniform;
12
- tNoise: Uniform;
13
- kernel: Uniform;
14
- cameraNear: Uniform;
15
- cameraFar: Uniform;
16
- resolution: Uniform;
17
- cameraProjectionMatrix: Uniform;
18
- cameraInverseProjectionMatrix: Uniform;
19
- kernelRadius: Uniform;
20
- minDistance: Uniform;
21
- maxDistance: Uniform;
9
+ tDiffuse: IUniform;
10
+ tNormal: IUniform;
11
+ tDepth: IUniform;
12
+ tNoise: IUniform;
13
+ kernel: IUniform;
14
+ cameraNear: IUniform;
15
+ cameraFar: IUniform;
16
+ resolution: IUniform;
17
+ cameraProjectionMatrix: IUniform;
18
+ cameraInverseProjectionMatrix: IUniform;
19
+ kernelRadius: IUniform;
20
+ minDistance: IUniform;
21
+ maxDistance: IUniform;
22
22
  };
23
23
  vertexShader: string;
24
24
  fragmentShader: string;
@@ -29,9 +29,9 @@ export const SSAODepthShader: {
29
29
  PERSPECTIVE_CAMERA: number;
30
30
  };
31
31
  uniforms: {
32
- tDepth: Uniform;
33
- cameraNear: Uniform;
34
- cameraFar: Uniform;
32
+ tDepth: IUniform;
33
+ cameraNear: IUniform;
34
+ cameraFar: IUniform;
35
35
  };
36
36
  vertexShader: string;
37
37
  fragmentShader: string;
@@ -39,8 +39,8 @@ export const SSAODepthShader: {
39
39
 
40
40
  export const SSAOBlurShader: {
41
41
  uniforms: {
42
- tDiffuse: Uniform;
43
- resolution: Uniform;
42
+ tDiffuse: IUniform;
43
+ resolution: IUniform;
44
44
  };
45
45
  vertexShader: string;
46
46
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SepiaShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- amount: Uniform;
5
+ tDiffuse: IUniform;
6
+ amount: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SobelOperatorShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- resolution: Uniform;
5
+ tDiffuse: IUniform;
6
+ resolution: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,36 +1,36 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const SubsurfaceScatteringShader: {
4
4
  uniforms: {
5
- alphaMap: Uniform;
6
- ambientLightColor: Uniform;
7
- color: Uniform;
8
- diffuse: Uniform;
9
- directionalLights: Uniform;
10
- directionalShadowMap: Uniform;
11
- directionalShadowMatrix: Uniform;
12
- emissive: Uniform;
13
- hemisphereLights: Uniform;
14
- lightProbe: Uniform;
15
- map: Uniform;
16
- opacity: Uniform;
17
- pointLights: Uniform;
18
- pointShadowMap: Uniform;
19
- pointShadowMatrix: Uniform;
20
- rectAreaLights: Uniform;
21
- shininess: Uniform;
22
- specular: Uniform;
23
- spotLights: Uniform;
24
- spotShadowMap: Uniform;
25
- spotShadowMatrix: Uniform;
26
- thicknessAmbient: Uniform;
27
- thicknessAttenuation: Uniform;
28
- thicknessColor: Uniform;
29
- thicknessDistortion: Uniform;
30
- thicknessMap: Uniform;
31
- thicknessPower: Uniform;
32
- thicknessScale: Uniform;
33
- uvTransform: Uniform;
5
+ alphaMap: IUniform;
6
+ ambientLightColor: IUniform;
7
+ color: IUniform;
8
+ diffuse: IUniform;
9
+ directionalLights: IUniform;
10
+ directionalShadowMap: IUniform;
11
+ directionalShadowMatrix: IUniform;
12
+ emissive: IUniform;
13
+ hemisphereLights: IUniform;
14
+ lightProbe: IUniform;
15
+ map: IUniform;
16
+ opacity: IUniform;
17
+ pointLights: IUniform;
18
+ pointShadowMap: IUniform;
19
+ pointShadowMatrix: IUniform;
20
+ rectAreaLights: IUniform;
21
+ shininess: IUniform;
22
+ specular: IUniform;
23
+ spotLights: IUniform;
24
+ spotShadowMap: IUniform;
25
+ spotShadowMatrix: IUniform;
26
+ thicknessAmbient: IUniform;
27
+ thicknessAttenuation: IUniform;
28
+ thicknessColor: IUniform;
29
+ thicknessDistortion: IUniform;
30
+ thicknessMap: IUniform;
31
+ thicknessPower: IUniform;
32
+ thicknessScale: IUniform;
33
+ uvTransform: IUniform;
34
34
  };
35
35
  vertexShader: string;
36
36
  fragmentShader: string;
@@ -1,8 +1,8 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const TechnicolorShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
5
+ tDiffuse: IUniform;
6
6
  };
7
7
  vertexShader: string;
8
8
  fragmentShader: string;
@@ -1,13 +1,13 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const ToneMapShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- averageLuminance: Uniform;
7
- luminanceMap: Uniform;
8
- maxLuminance: Uniform;
9
- minLuminance: Uniform;
10
- middleGrey: Uniform;
5
+ tDiffuse: IUniform;
6
+ averageLuminance: IUniform;
7
+ luminanceMap: IUniform;
8
+ maxLuminance: IUniform;
9
+ minLuminance: IUniform;
10
+ middleGrey: IUniform;
11
11
  };
12
12
  vertexShader: string;
13
13
  fragmentShader: string;
@@ -1,11 +1,11 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const ToonShader1: {
4
4
  uniforms: {
5
- uDirLightPos: Uniform;
6
- uDirLightColor: Uniform;
7
- uAmbientLightColor: Uniform;
8
- uBaseColor: Uniform;
5
+ uDirLightPos: IUniform;
6
+ uDirLightColor: IUniform;
7
+ uAmbientLightColor: IUniform;
8
+ uBaseColor: IUniform;
9
9
  };
10
10
  vertexShader: string;
11
11
  fragmentShader: string;
@@ -13,14 +13,14 @@ export const ToonShader1: {
13
13
 
14
14
  export const ToonShader2: {
15
15
  uniforms: {
16
- uDirLightPos: Uniform;
17
- uDirLightColor: Uniform;
18
- uAmbientLightColor: Uniform;
19
- uBaseColor: Uniform;
20
- uLineColor1: Uniform;
21
- uLineColor2: Uniform;
22
- uLineColor3: Uniform;
23
- uLineColor4: Uniform;
16
+ uDirLightPos: IUniform;
17
+ uDirLightColor: IUniform;
18
+ uAmbientLightColor: IUniform;
19
+ uBaseColor: IUniform;
20
+ uLineColor1: IUniform;
21
+ uLineColor2: IUniform;
22
+ uLineColor3: IUniform;
23
+ uLineColor4: IUniform;
24
24
  };
25
25
  vertexShader: string;
26
26
  fragmentShader: string;
@@ -28,14 +28,14 @@ export const ToonShader2: {
28
28
 
29
29
  export const ToonShaderHatching: {
30
30
  uniforms: {
31
- uDirLightPos: Uniform;
32
- uDirLightColor: Uniform;
33
- uAmbientLightColor: Uniform;
34
- uBaseColor: Uniform;
35
- uLineColor1: Uniform;
36
- uLineColor2: Uniform;
37
- uLineColor3: Uniform;
38
- uLineColor4: Uniform;
31
+ uDirLightPos: IUniform;
32
+ uDirLightColor: IUniform;
33
+ uAmbientLightColor: IUniform;
34
+ uBaseColor: IUniform;
35
+ uLineColor1: IUniform;
36
+ uLineColor2: IUniform;
37
+ uLineColor3: IUniform;
38
+ uLineColor4: IUniform;
39
39
  };
40
40
  vertexShader: string;
41
41
  fragmentShader: string;
@@ -43,11 +43,11 @@ export const ToonShaderHatching: {
43
43
 
44
44
  export const ToonShaderDotted: {
45
45
  uniforms: {
46
- uDirLightPos: Uniform;
47
- uDirLightColor: Uniform;
48
- uAmbientLightColor: Uniform;
49
- uBaseColor: Uniform;
50
- uLineColor1: Uniform;
46
+ uDirLightPos: IUniform;
47
+ uDirLightColor: IUniform;
48
+ uAmbientLightColor: IUniform;
49
+ uBaseColor: IUniform;
50
+ uLineColor1: IUniform;
51
51
  };
52
52
  vertexShader: string;
53
53
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const TriangleBlurShader: {
4
4
  uniforms: {
5
- texture: Uniform;
6
- delta: Uniform;
5
+ texture: IUniform;
6
+ delta: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const UnpackDepthRGBAShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- opacity: Uniform;
5
+ tDiffuse: IUniform;
6
+ opacity: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,9 +1,9 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const VerticalBlurShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- v: Uniform;
5
+ tDiffuse: IUniform;
6
+ v: IUniform;
7
7
  };
8
8
  vertexShader: string;
9
9
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const VerticalTiltShiftShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- v: Uniform;
7
- r: Uniform;
5
+ tDiffuse: IUniform;
6
+ v: IUniform;
7
+ r: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,10 +1,10 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const VignetteShader: {
4
4
  uniforms: {
5
- tDiffuse: Uniform;
6
- offset: Uniform;
7
- darkness: Uniform;
5
+ tDiffuse: IUniform;
6
+ offset: IUniform;
7
+ darkness: IUniform;
8
8
  };
9
9
  vertexShader: string;
10
10
  fragmentShader: string;
@@ -1,13 +1,13 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const VolumeRenderShader1: {
4
4
  uniforms: {
5
- u_size: Uniform;
6
- u_renderstyle: Uniform;
7
- u_renderthreshold: Uniform;
8
- u_clim: Uniform;
9
- u_data: Uniform;
10
- u_cmdata: Uniform;
5
+ u_size: IUniform;
6
+ u_renderstyle: IUniform;
7
+ u_renderthreshold: IUniform;
8
+ u_clim: IUniform;
9
+ u_data: IUniform;
10
+ u_cmdata: IUniform;
11
11
  };
12
12
  vertexShader: string;
13
13
  fragmentShader: string;
@@ -1,12 +1,12 @@
1
- import { Uniform } from '../../../src/Three';
1
+ import { IUniform } from '../../../src/Three';
2
2
 
3
3
  export const WaterRefractionShader: {
4
4
  uniforms: {
5
- color: Uniform;
6
- time: Uniform;
7
- tDiffuse: Uniform;
8
- tDudv: Uniform;
9
- textureMatrix: Uniform;
5
+ color: IUniform;
6
+ time: IUniform;
7
+ tDiffuse: IUniform;
8
+ tDudv: IUniform;
9
+ textureMatrix: IUniform;
10
10
  };
11
11
  vertexShader: string;
12
12
  fragmentShader: string;
@@ -1,4 +1,4 @@
1
- import { PerspectiveCamera, Vector3 } from '../../../src/Three.js';
1
+ import { PerspectiveCamera, Vector3 } from '../../../src/Three';
2
2
 
3
3
  export function frameCorners(
4
4
  camera: PerspectiveCamera,
three/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- // Type definitions for three 0.143
1
+ // Type definitions for three 0.144
2
2
  // Project: https://threejs.org/
3
3
  // Definitions by: Josh Ellis <https://github.com/joshuaellis>
4
4
  // Nathan Bierema <https://github.com/Methuselah96>
5
5
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
- // Minimum TypeScript Version: 3.6
6
+ // Minimum TypeScript Version: 4.0
7
7
 
8
8
  // To update three.js type definition, please make changes to the repository at:
9
9
  // https://github.com/three-types/three-ts-types.
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.143.0",
3
+ "version": "0.144.0",
4
4
  "description": "TypeScript definitions for three",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
6
6
  "license": "MIT",
@@ -27,6 +27,6 @@
27
27
  "dependencies": {
28
28
  "@types/webxr": "*"
29
29
  },
30
- "typesPublisherContentHash": "2bd0a51b5f45c12a91bfe51f4e168b8c1ee7815e8f870ba4861a9e839d92d8f2",
31
- "typeScriptVersion": "4.0"
30
+ "typesPublisherContentHash": "fd44eeaf35ec2ad7992d39b9da4bfde0290790e3cec4fb679df94f09e35c72dd",
31
+ "typeScriptVersion": "4.1"
32
32
  }
three/src/Three.d.ts CHANGED
@@ -212,7 +212,7 @@ export * from './renderers/webgl/WebGLUniforms';
212
212
  export * from './renderers/webgl/WebGLUniformsGroups';
213
213
  export * from './renderers/webxr/WebXRController';
214
214
  export * from './renderers/webxr/WebXRManager';
215
- export { WebGLUtils } from './renderers/webgl/WebGLUtils.js';
215
+ export { WebGLUtils } from './renderers/webgl/WebGLUtils';
216
216
  /**
217
217
  * Scenes
218
218
  */