@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
three/src/constants.d.ts CHANGED
@@ -39,11 +39,6 @@ export const FrontSide: Side;
39
39
  export const BackSide: Side;
40
40
  export const DoubleSide: Side;
41
41
 
42
- // shading
43
- export enum Shading {}
44
- export const FlatShading: Shading;
45
- export const SmoothShading: Shading;
46
-
47
42
  // blending modes
48
43
  export enum Blending {}
49
44
  export const NoBlending: Blending;
@@ -51,10 +51,6 @@ export class BufferAttribute {
51
51
  copy(source: BufferAttribute): this;
52
52
  copyAt(index1: number, attribute: BufferAttribute, index2: number): this;
53
53
  copyArray(array: ArrayLike<number>): this;
54
- copyColorsArray(colors: Array<{ r: number; g: number; b: number }>): this;
55
- copyVector2sArray(vectors: Array<{ x: number; y: number }>): this;
56
- copyVector3sArray(vectors: Array<{ x: number; y: number; z: number }>): this;
57
- copyVector4sArray(vectors: Array<{ x: number; y: number; z: number; w: number }>): this;
58
54
  applyMatrix3(m: Matrix3): this;
59
55
  applyMatrix4(m: Matrix4): this;
60
56
  applyNormalMatrix(m: Matrix3): this;
@@ -143,7 +143,6 @@ export class BufferGeometry extends EventDispatcher {
143
143
  */
144
144
  computeVertexNormals(): void;
145
145
 
146
- merge(geometry: BufferGeometry, offset?: number): BufferGeometry;
147
146
  normalizeNormals(): void;
148
147
 
149
148
  toNonIndexed(): BufferGeometry;
@@ -324,7 +324,8 @@ export class Object3D<E extends BaseEvent = Event> extends EventDispatcher<E> {
324
324
  * This method does not support objects having non-uniformly-scaled parent(s).
325
325
  * @param vector A world vector to look at.
326
326
  */
327
- lookAt(vector: Vector3 | number, y?: number, z?: number): void;
327
+ lookAt(vector: Vector3): void;
328
+ lookAt(x: number, y: number, z: number): void;
328
329
 
329
330
  /**
330
331
  * Adds object as child of this object.
@@ -30,5 +30,5 @@ export class ShapePath {
30
30
  quadraticCurveTo(aCPx: number, aCPy: number, aX: number, aY: number): this;
31
31
  bezierCurveTo(aCP1x: number, aCP1y: number, aCP2x: number, aCP2y: number, aX: number, aY: number): this;
32
32
  splineThru(pts: Vector2[]): this;
33
- toShapes(isCCW: boolean, noHoles?: boolean): Shape[];
33
+ toShapes(isCCW: boolean): Shape[];
34
34
  }
@@ -34,5 +34,3 @@ export class BoxGeometry extends BufferGeometry {
34
34
 
35
35
  static fromJSON(data: any): BoxGeometry;
36
36
  }
37
-
38
- export { BoxGeometry as BoxBufferGeometry };
@@ -23,5 +23,3 @@ export class CapsuleGeometry extends BufferGeometry {
23
23
 
24
24
  static fromJSON(data: any): CapsuleGeometry;
25
25
  }
26
-
27
- export { CapsuleGeometry as CapsuleBufferGeometry };
@@ -23,5 +23,3 @@ export class CircleGeometry extends BufferGeometry {
23
23
 
24
24
  static fromJSON(data: any): CircleGeometry;
25
25
  }
26
-
27
- export { CircleGeometry as CircleBufferGeometry };
@@ -27,5 +27,3 @@ export class ConeGeometry extends CylinderGeometry {
27
27
 
28
28
  static fromJSON(data: any): ConeGeometry;
29
29
  }
30
-
31
- export { ConeGeometry as ConeBufferGeometry };
@@ -40,5 +40,3 @@ export class CylinderGeometry extends BufferGeometry {
40
40
 
41
41
  static fromJSON(data: any): CylinderGeometry;
42
42
  }
43
-
44
- export { CylinderGeometry as CylinderBufferGeometry };
@@ -14,5 +14,3 @@ export class DodecahedronGeometry extends PolyhedronGeometry {
14
14
 
15
15
  static fromJSON(data: any): DodecahedronGeometry;
16
16
  }
17
-
18
- export { DodecahedronGeometry as DodecahedronBufferGeometry };
@@ -69,5 +69,3 @@ export class ExtrudeGeometry extends BufferGeometry {
69
69
 
70
70
  static fromJSON(data: any): ExtrudeGeometry;
71
71
  }
72
-
73
- export { ExtrudeGeometry as ExtrudeBufferGeometry };
@@ -14,5 +14,3 @@ export class IcosahedronGeometry extends PolyhedronGeometry {
14
14
 
15
15
  static fromJSON(data: any): IcosahedronGeometry;
16
16
  }
17
-
18
- export { IcosahedronGeometry as IcosahedronBufferGeometry };
@@ -24,5 +24,3 @@ export class LatheGeometry extends BufferGeometry {
24
24
 
25
25
  static fromJSON(data: any): LatheGeometry;
26
26
  }
27
-
28
- export { LatheGeometry as LatheBufferGeometry };
@@ -14,5 +14,3 @@ export class OctahedronGeometry extends PolyhedronGeometry {
14
14
 
15
15
  static fromJSON(data: any): OctahedronGeometry;
16
16
  }
17
-
18
- export { OctahedronGeometry as OctahedronBufferGeometry };
@@ -23,5 +23,3 @@ export class PlaneGeometry extends BufferGeometry {
23
23
 
24
24
  static fromJSON(data: any): PlaneGeometry;
25
25
  }
26
-
27
- export { PlaneGeometry as PlaneBufferGeometry };
@@ -23,5 +23,3 @@ export class PolyhedronGeometry extends BufferGeometry {
23
23
 
24
24
  static fromJSON(data: any): PolyhedronGeometry;
25
25
  }
26
-
27
- export { PolyhedronGeometry as PolyhedronBufferGeometry };
@@ -34,5 +34,3 @@ export class RingGeometry extends BufferGeometry {
34
34
 
35
35
  static fromJSON(data: any): RingGeometry;
36
36
  }
37
-
38
- export { RingGeometry as RingBufferGeometry };
@@ -11,5 +11,3 @@ export class ShapeGeometry extends BufferGeometry {
11
11
 
12
12
  static fromJSON(data: any): ShapeGeometry;
13
13
  }
14
-
15
- export { ShapeGeometry as ShapeBufferGeometry };
@@ -37,5 +37,3 @@ export class SphereGeometry extends BufferGeometry {
37
37
 
38
38
  static fromJSON(data: any): SphereGeometry;
39
39
  }
40
-
41
- export { SphereGeometry as SphereBufferGeometry };
@@ -14,5 +14,3 @@ export class TetrahedronGeometry extends PolyhedronGeometry {
14
14
 
15
15
  static fromJSON(data: any): TetrahedronGeometry;
16
16
  }
17
-
18
- export { TetrahedronGeometry as TetrahedronBufferGeometry };
@@ -25,5 +25,3 @@ export class TorusGeometry extends BufferGeometry {
25
25
 
26
26
  static fromJSON(data: any): TorusGeometry;
27
27
  }
28
-
29
- export { TorusGeometry as TorusBufferGeometry };
@@ -34,5 +34,3 @@ export class TorusKnotGeometry extends BufferGeometry {
34
34
 
35
35
  static fromJSON(data: any): TorusKnotGeometry;
36
36
  }
37
-
38
- export { TorusKnotGeometry as TorusKnotBufferGeometry };
@@ -36,5 +36,3 @@ export class TubeGeometry extends BufferGeometry {
36
36
 
37
37
  static fromJSON(data: any): TubeGeometry;
38
38
  }
39
-
40
- export { TubeGeometry as TubeBufferGeometry };
@@ -4,6 +4,7 @@ import { MaterialParameters, Material } from './Material';
4
4
 
5
5
  export interface LineBasicMaterialParameters extends MaterialParameters {
6
6
  color?: ColorRepresentation | undefined;
7
+ fog?: boolean | undefined;
7
8
  linewidth?: number | undefined;
8
9
  linecap?: string | undefined;
9
10
  linejoin?: string | undefined;
@@ -22,6 +23,12 @@ export class LineBasicMaterial extends Material {
22
23
  */
23
24
  color: Color;
24
25
 
26
+ /**
27
+ * Whether the material is affected by fog. Default is true.
28
+ * @default true
29
+ */
30
+ fog: boolean;
31
+
25
32
  /**
26
33
  * @default 1
27
34
  */
@@ -1,17 +1,26 @@
1
1
  import { Color } from './../math/Color';
2
2
  import { Texture } from './../textures/Texture';
3
3
  import { MaterialParameters, Material } from './Material';
4
- import { Combine } from '../constants';
4
+ import { Combine, NormalMapTypes } from '../constants';
5
5
  import { ColorRepresentation } from '../utils';
6
+ import { Vector2 } from '../Three';
6
7
 
7
8
  export interface MeshLambertMaterialParameters extends MaterialParameters {
9
+ bumpMap?: Texture | undefined;
10
+ bumpScale?: number | undefined;
8
11
  color?: ColorRepresentation | undefined;
12
+ displacementMap?: Texture | undefined;
13
+ displacementScale?: number | undefined;
14
+ displacementBias?: number | undefined;
9
15
  emissive?: ColorRepresentation | undefined;
10
16
  emissiveIntensity?: number | undefined;
11
17
  emissiveMap?: Texture | null | undefined;
18
+ flatShading?: boolean | undefined;
12
19
  map?: Texture | null | undefined;
13
20
  lightMap?: Texture | null | undefined;
14
21
  lightMapIntensity?: number | undefined;
22
+ normalMap?: Texture | undefined;
23
+ normalScale?: Vector2 | undefined;
15
24
  aoMap?: Texture | null | undefined;
16
25
  aoMapIntensity?: number | undefined;
17
26
  specularMap?: Texture | null | undefined;
@@ -40,6 +49,31 @@ export class MeshLambertMaterial extends Material {
40
49
  */
41
50
  color: Color;
42
51
 
52
+ /**
53
+ * @default null
54
+ */
55
+ bumpMap: Texture | null;
56
+
57
+ /**
58
+ * @default 1
59
+ */
60
+ bumpScale: number;
61
+
62
+ /**
63
+ * @default null
64
+ */
65
+ displacementMap: Texture | null;
66
+
67
+ /**
68
+ * @default 1
69
+ */
70
+ dispalcementScale: number;
71
+
72
+ /**
73
+ * @default 0
74
+ */
75
+ displacementBias: number;
76
+
43
77
  /**
44
78
  * @default new THREE.Color( 0x000000 )
45
79
  */
@@ -55,6 +89,11 @@ export class MeshLambertMaterial extends Material {
55
89
  */
56
90
  emissiveMap: Texture | null;
57
91
 
92
+ /**
93
+ * @default false
94
+ */
95
+ flatShading: boolean;
96
+
58
97
  /**
59
98
  * @default null
60
99
  */
@@ -70,6 +109,18 @@ export class MeshLambertMaterial extends Material {
70
109
  */
71
110
  lightMapIntensity: number;
72
111
 
112
+ /**
113
+ * @default null
114
+ */
115
+ normalMap: Texture | null;
116
+
117
+ normalMapType: NormalMapTypes;
118
+
119
+ /**
120
+ * @default new THREE.Vector2( 1, 1 )
121
+ */
122
+ normalScale: Vector2;
123
+
73
124
  /**
74
125
  * @default null
75
126
  */
@@ -167,6 +167,11 @@ export class MeshPhysicalMaterial extends MeshStandardMaterial {
167
167
  */
168
168
  iridescenceIOR: number;
169
169
 
170
+ /**
171
+ * @default 0
172
+ */
173
+ iridescence: number;
174
+
170
175
  /**
171
176
  * @default [100, 400]
172
177
  */
@@ -11,7 +11,7 @@ export interface ShaderMaterialParameters extends MaterialParameters {
11
11
  wireframeLinewidth?: number | undefined;
12
12
  lights?: boolean | undefined;
13
13
  clipping?: boolean | undefined;
14
-
14
+ fog?: boolean | undefined;
15
15
  extensions?:
16
16
  | {
17
17
  derivatives?: boolean | undefined;
@@ -168,11 +168,6 @@ export class Quaternion {
168
168
  */
169
169
  multiplyVector3(v: any): any;
170
170
 
171
- /**
172
- * @deprecated Use {@link Quaternion#invert .invert()} instead.
173
- */
174
- inverse(): Quaternion;
175
-
176
171
  random(): Quaternion;
177
172
 
178
173
  [Symbol.iterator](): Generator<number, void>;
@@ -1,4 +1,3 @@
1
- import { Uniform } from '../../core/Uniform';
2
1
  import { UniformsGroup } from '../../core/UniformsGroup';
3
2
 
4
3
  export function cloneUniforms(uniforms_src: any): any;