@types/three 0.161.2 → 0.163.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 (382) hide show
  1. three/README.md +2 -2
  2. three/build/three.d.cts +0 -1
  3. three/build/three.module.d.ts +0 -1
  4. three/build/three.module.min.d.ts +0 -1
  5. three/examples/jsm/animation/AnimationClipCreator.d.ts +1 -1
  6. three/examples/jsm/animation/CCDIKSolver.d.ts +1 -1
  7. three/examples/jsm/animation/MMDAnimationHelper.d.ts +1 -11
  8. three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
  9. three/examples/jsm/cameras/CinematicCamera.d.ts +1 -8
  10. three/examples/jsm/controls/ArcballControls.d.ts +1 -1
  11. three/examples/jsm/controls/DragControls.d.ts +80 -10
  12. three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
  13. three/examples/jsm/controls/FlyControls.d.ts +1 -1
  14. three/examples/jsm/controls/MapControls.d.ts +1 -1
  15. three/examples/jsm/controls/OrbitControls.d.ts +2 -2
  16. three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
  17. three/examples/jsm/controls/TrackballControls.d.ts +1 -1
  18. three/examples/jsm/controls/TransformControls.d.ts +6 -1
  19. three/examples/jsm/csm/CSM.d.ts +1 -1
  20. three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
  21. three/examples/jsm/csm/CSMHelper.d.ts +1 -1
  22. three/examples/jsm/curves/CurveExtras.d.ts +1 -1
  23. three/examples/jsm/curves/NURBSCurve.d.ts +1 -1
  24. three/examples/jsm/curves/NURBSSurface.d.ts +1 -1
  25. three/examples/jsm/curves/NURBSUtils.d.ts +1 -1
  26. three/examples/jsm/curves/NURBSVolume.d.ts +1 -1
  27. three/examples/jsm/deprecated/Geometry.d.ts +1 -1
  28. three/examples/jsm/effects/AnaglyphEffect.d.ts +1 -1
  29. three/examples/jsm/effects/AsciiEffect.d.ts +1 -1
  30. three/examples/jsm/effects/OutlineEffect.d.ts +1 -9
  31. three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +1 -1
  32. three/examples/jsm/effects/PeppersGhostEffect.d.ts +1 -1
  33. three/examples/jsm/effects/StereoEffect.d.ts +1 -1
  34. three/examples/jsm/environments/DebugEnvironment.d.ts +1 -1
  35. three/examples/jsm/environments/RoomEnvironment.d.ts +1 -1
  36. three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
  37. three/examples/jsm/exporters/EXRExporter.d.ts +1 -1
  38. three/examples/jsm/exporters/GLTFExporter.d.ts +1 -1
  39. three/examples/jsm/exporters/KTX2Exporter.d.ts +1 -1
  40. three/examples/jsm/exporters/MMDExporter.d.ts +1 -1
  41. three/examples/jsm/exporters/OBJExporter.d.ts +1 -1
  42. three/examples/jsm/exporters/PLYExporter.d.ts +1 -1
  43. three/examples/jsm/exporters/STLExporter.d.ts +1 -1
  44. three/examples/jsm/exporters/USDZExporter.d.ts +1 -1
  45. three/examples/jsm/geometries/BoxLineGeometry.d.ts +1 -1
  46. three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
  47. three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
  48. three/examples/jsm/geometries/ParametricGeometries.d.ts +1 -1
  49. three/examples/jsm/geometries/ParametricGeometry.d.ts +1 -1
  50. three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +1 -1
  51. three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +1 -1
  52. three/examples/jsm/geometries/TeapotGeometry.d.ts +1 -1
  53. three/examples/jsm/geometries/TextGeometry.d.ts +9 -1
  54. three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
  55. three/examples/jsm/helpers/OctreeHelper.d.ts +1 -1
  56. three/examples/jsm/helpers/PositionalAudioHelper.d.ts +1 -1
  57. three/examples/jsm/helpers/RectAreaLightHelper.d.ts +1 -1
  58. three/examples/jsm/helpers/TextureHelper.d.ts +1 -1
  59. three/examples/jsm/helpers/VertexNormalsHelper.d.ts +1 -1
  60. three/examples/jsm/helpers/VertexTangentsHelper.d.ts +1 -1
  61. three/examples/jsm/helpers/ViewHelper.d.ts +1 -1
  62. three/examples/jsm/interactive/InteractiveGroup.d.ts +4 -2
  63. three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
  64. three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
  65. three/examples/jsm/libs/tween.module.d.ts +2 -219
  66. three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
  67. three/examples/jsm/lines/LineGeometry.d.ts +1 -1
  68. three/examples/jsm/lines/LineMaterial.d.ts +1 -1
  69. three/examples/jsm/lines/LineSegments2.d.ts +1 -1
  70. three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -8
  71. three/examples/jsm/lines/Wireframe.d.ts +1 -1
  72. three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
  73. three/examples/jsm/loaders/3DMLoader.d.ts +1 -1
  74. three/examples/jsm/loaders/3MFLoader.d.ts +1 -1
  75. three/examples/jsm/loaders/AMFLoader.d.ts +1 -1
  76. three/examples/jsm/loaders/BVHLoader.d.ts +1 -1
  77. three/examples/jsm/loaders/ColladaLoader.d.ts +1 -1
  78. three/examples/jsm/loaders/DDSLoader.d.ts +1 -1
  79. three/examples/jsm/loaders/DRACOLoader.d.ts +1 -1
  80. three/examples/jsm/loaders/EXRLoader.d.ts +2 -8
  81. three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
  82. three/examples/jsm/loaders/FontLoader.d.ts +19 -5
  83. three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
  84. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
  85. three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +1 -1
  86. three/examples/jsm/loaders/KMZLoader.d.ts +1 -1
  87. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
  88. three/examples/jsm/loaders/KTXLoader.d.ts +1 -1
  89. three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
  90. three/examples/jsm/loaders/LUT3dlLoader.d.ts +1 -2
  91. three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -10
  92. three/examples/jsm/loaders/LWOLoader.d.ts +1 -1
  93. three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
  94. three/examples/jsm/loaders/LottieLoader.d.ts +1 -1
  95. three/examples/jsm/loaders/MD2Loader.d.ts +1 -1
  96. three/examples/jsm/loaders/MDDLoader.d.ts +1 -1
  97. three/examples/jsm/loaders/MMDLoader.d.ts +1 -1
  98. three/examples/jsm/loaders/MTLLoader.d.ts +1 -11
  99. three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -1
  100. three/examples/jsm/loaders/NRRDLoader.d.ts +1 -1
  101. three/examples/jsm/loaders/OBJLoader.d.ts +1 -1
  102. three/examples/jsm/loaders/PCDLoader.d.ts +1 -1
  103. three/examples/jsm/loaders/PDBLoader.d.ts +1 -1
  104. three/examples/jsm/loaders/PLYLoader.d.ts +1 -1
  105. three/examples/jsm/loaders/PVRLoader.d.ts +1 -1
  106. three/examples/jsm/loaders/RGBELoader.d.ts +1 -1
  107. three/examples/jsm/loaders/RGBMLoader.d.ts +6 -1
  108. three/examples/jsm/loaders/STLLoader.d.ts +1 -1
  109. three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
  110. three/examples/jsm/loaders/TDSLoader.d.ts +1 -1
  111. three/examples/jsm/loaders/TGALoader.d.ts +1 -1
  112. three/examples/jsm/loaders/TTFLoader.d.ts +6 -4
  113. three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
  114. three/examples/jsm/loaders/USDZLoader.d.ts +2 -2
  115. three/examples/jsm/loaders/VOXLoader.d.ts +1 -1
  116. three/examples/jsm/loaders/VRMLLoader.d.ts +1 -1
  117. three/examples/jsm/loaders/VTKLoader.d.ts +1 -1
  118. three/examples/jsm/loaders/XYZLoader.d.ts +1 -1
  119. three/examples/jsm/materials/MeshGouraudMaterial.d.ts +1 -1
  120. three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +1 -1
  121. three/examples/jsm/math/Capsule.d.ts +1 -1
  122. three/examples/jsm/math/ColorConverter.d.ts +1 -1
  123. three/examples/jsm/math/ConvexHull.d.ts +1 -1
  124. three/examples/jsm/math/Lut.d.ts +1 -1
  125. three/examples/jsm/math/MeshSurfaceSampler.d.ts +1 -1
  126. three/examples/jsm/math/OBB.d.ts +1 -1
  127. three/examples/jsm/math/Octree.d.ts +1 -1
  128. three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
  129. three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -1
  130. three/examples/jsm/misc/Gyroscope.d.ts +1 -1
  131. three/examples/jsm/misc/MD2Character.d.ts +1 -1
  132. three/examples/jsm/misc/MD2CharacterComplex.d.ts +1 -1
  133. three/examples/jsm/misc/MorphAnimMesh.d.ts +1 -1
  134. three/examples/jsm/misc/MorphBlendMesh.d.ts +1 -1
  135. three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
  136. three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
  137. three/examples/jsm/misc/Timer.d.ts +28 -28
  138. three/examples/jsm/misc/TubePainter.d.ts +1 -1
  139. three/examples/jsm/misc/Volume.d.ts +1 -1
  140. three/examples/jsm/misc/VolumeSlice.d.ts +1 -1
  141. three/examples/jsm/modifiers/CurveModifier.d.ts +1 -10
  142. three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +1 -1
  143. three/examples/jsm/modifiers/SimplifyModifier.d.ts +1 -1
  144. three/examples/jsm/modifiers/TessellateModifier.d.ts +1 -1
  145. three/examples/jsm/nodes/Nodes.d.ts +25 -7
  146. three/examples/jsm/nodes/accessors/AccessorsUtils.d.ts +7 -0
  147. three/examples/jsm/nodes/accessors/BatchNode.d.ts +14 -0
  148. three/examples/jsm/nodes/accessors/BufferNode.d.ts +7 -3
  149. three/examples/jsm/nodes/accessors/CameraNode.d.ts +1 -9
  150. three/examples/jsm/nodes/accessors/ClippingNode.d.ts +16 -0
  151. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +1 -1
  152. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -2
  153. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
  154. three/examples/jsm/nodes/accessors/ModelNode.d.ts +2 -2
  155. three/examples/jsm/nodes/accessors/Object3DNode.d.ts +10 -10
  156. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +16 -4
  157. three/examples/jsm/nodes/accessors/RendererReferenceNode.d.ts +16 -0
  158. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +7 -3
  159. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +14 -1
  160. three/examples/jsm/nodes/accessors/TextureNode.d.ts +9 -2
  161. three/examples/jsm/nodes/accessors/UniformsNode.d.ts +25 -0
  162. three/examples/jsm/nodes/core/AssignNode.d.ts +2 -1
  163. three/examples/jsm/nodes/core/Node.d.ts +9 -3
  164. three/examples/jsm/nodes/core/NodeBuilder.d.ts +1 -10
  165. three/examples/jsm/nodes/core/NodeFrame.d.ts +1 -1
  166. three/examples/jsm/nodes/core/NodeUtils.d.ts +2 -2
  167. three/examples/jsm/nodes/core/TempNode.d.ts +1 -1
  168. three/examples/jsm/nodes/display/AnamorphicNode.d.ts +5 -6
  169. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +1 -1
  170. three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +1 -1
  171. three/examples/jsm/nodes/display/NormalMapNode.d.ts +1 -3
  172. three/examples/jsm/nodes/display/PassNode.d.ts +3 -1
  173. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +13 -1
  174. three/examples/jsm/nodes/display/ViewportDepthTextureNode.d.ts +12 -0
  175. three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +1 -1
  176. three/examples/jsm/nodes/fog/FogNode.d.ts +10 -5
  177. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -5
  178. three/examples/jsm/nodes/geometry/RangeNode.d.ts +1 -1
  179. three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +1 -1
  180. three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +1 -1
  181. three/examples/jsm/nodes/lighting/LightsNode.d.ts +1 -1
  182. three/examples/jsm/nodes/lighting/PointLightNode.d.ts +1 -1
  183. three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +1 -1
  184. three/examples/jsm/nodes/loaders/NodeLoader.d.ts +1 -1
  185. three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
  186. three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +1 -1
  187. three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +13 -3
  188. three/examples/jsm/nodes/materials/Materials.d.ts +1 -0
  189. three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +23 -3
  190. three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.d.ts +23 -0
  191. three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +41 -5
  192. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +58 -18
  193. three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +9 -9
  194. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +40 -6
  195. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +48 -15
  196. three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +14 -4
  197. three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +17 -6
  198. three/examples/jsm/nodes/math/MathNode.d.ts +11 -0
  199. three/examples/jsm/nodes/pmrem/PMREMNode.d.ts +20 -0
  200. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +1 -1
  201. three/examples/jsm/nodes/utils/ReflectorNode.d.ts +1 -1
  202. three/examples/jsm/nodes/utils/StoargeArrayElementNode.d.ts +25 -0
  203. three/examples/jsm/objects/GroundedSkybox.d.ts +1 -1
  204. three/examples/jsm/objects/Lensflare.d.ts +1 -1
  205. three/examples/jsm/objects/MarchingCubes.d.ts +1 -1
  206. three/examples/jsm/objects/QuadMesh.d.ts +5 -8
  207. three/examples/jsm/objects/Reflector.d.ts +7 -15
  208. three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -1
  209. three/examples/jsm/objects/Refractor.d.ts +7 -16
  210. three/examples/jsm/objects/ShadowMesh.d.ts +1 -1
  211. three/examples/jsm/objects/Sky.d.ts +1 -1
  212. three/examples/jsm/objects/Water.d.ts +1 -9
  213. three/examples/jsm/objects/Water2.d.ts +13 -22
  214. three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
  215. three/examples/jsm/physics/RapierPhysics.d.ts +1 -1
  216. three/examples/jsm/postprocessing/AfterimagePass.d.ts +1 -1
  217. three/examples/jsm/postprocessing/BloomPass.d.ts +1 -1
  218. three/examples/jsm/postprocessing/BokehPass.d.ts +1 -1
  219. three/examples/jsm/postprocessing/ClearPass.d.ts +1 -1
  220. three/examples/jsm/postprocessing/CubeTexturePass.d.ts +1 -1
  221. three/examples/jsm/postprocessing/DotScreenPass.d.ts +1 -1
  222. three/examples/jsm/postprocessing/EffectComposer.d.ts +1 -1
  223. three/examples/jsm/postprocessing/FilmPass.d.ts +1 -1
  224. three/examples/jsm/postprocessing/GTAOPass.d.ts +1 -1
  225. three/examples/jsm/postprocessing/GlitchPass.d.ts +1 -1
  226. three/examples/jsm/postprocessing/HalftonePass.d.ts +1 -1
  227. three/examples/jsm/postprocessing/LUTPass.d.ts +1 -1
  228. three/examples/jsm/postprocessing/MaskPass.d.ts +1 -1
  229. three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
  230. three/examples/jsm/postprocessing/OutputPass.d.ts +1 -1
  231. three/examples/jsm/postprocessing/Pass.d.ts +1 -1
  232. three/examples/jsm/postprocessing/RenderPass.d.ts +1 -1
  233. three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +1 -1
  234. three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
  235. three/examples/jsm/postprocessing/SMAAPass.d.ts +1 -1
  236. three/examples/jsm/postprocessing/SSAARenderPass.d.ts +1 -1
  237. three/examples/jsm/postprocessing/SSAOPass.d.ts +1 -1
  238. three/examples/jsm/postprocessing/SSRPass.d.ts +1 -1
  239. three/examples/jsm/postprocessing/SavePass.d.ts +1 -1
  240. three/examples/jsm/postprocessing/ShaderPass.d.ts +1 -1
  241. three/examples/jsm/postprocessing/TAARenderPass.d.ts +1 -1
  242. three/examples/jsm/postprocessing/TexturePass.d.ts +1 -1
  243. three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +1 -1
  244. three/examples/jsm/renderers/CSS2DRenderer.d.ts +1 -1
  245. three/examples/jsm/renderers/CSS3DRenderer.d.ts +1 -1
  246. three/examples/jsm/renderers/Projector.d.ts +1 -1
  247. three/examples/jsm/renderers/SVGRenderer.d.ts +1 -1
  248. three/examples/jsm/renderers/common/Backend.d.ts +1 -1
  249. three/examples/jsm/renderers/common/Color4.d.ts +1 -1
  250. three/examples/jsm/renderers/common/Info.d.ts +4 -8
  251. three/examples/jsm/renderers/common/PostProcessing.d.ts +3 -1
  252. three/examples/jsm/renderers/common/Renderer.d.ts +30 -16
  253. three/examples/jsm/renderers/common/StorageTexture.d.ts +1 -1
  254. three/examples/jsm/renderers/common/extras/PMREMGenerator.d.ts +8 -0
  255. three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -1
  256. three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +1 -1
  257. three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +1 -1
  258. three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
  259. three/examples/jsm/shaders/AfterimageShader.d.ts +1 -1
  260. three/examples/jsm/shaders/BleachBypassShader.d.ts +1 -1
  261. three/examples/jsm/shaders/BlendShader.d.ts +1 -1
  262. three/examples/jsm/shaders/BokehShader.d.ts +1 -1
  263. three/examples/jsm/shaders/BokehShader2.d.ts +1 -1
  264. three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -1
  265. three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -1
  266. three/examples/jsm/shaders/ColorifyShader.d.ts +1 -1
  267. three/examples/jsm/shaders/ConvolutionShader.d.ts +1 -1
  268. three/examples/jsm/shaders/CopyShader.d.ts +1 -1
  269. three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -1
  270. three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -1
  271. three/examples/jsm/shaders/DigitalGlitch.d.ts +1 -1
  272. three/examples/jsm/shaders/DotScreenShader.d.ts +1 -1
  273. three/examples/jsm/shaders/ExposureShader.d.ts +1 -1
  274. three/examples/jsm/shaders/FXAAShader.d.ts +1 -1
  275. three/examples/jsm/shaders/FilmShader.d.ts +1 -1
  276. three/examples/jsm/shaders/FocusShader.d.ts +1 -1
  277. three/examples/jsm/shaders/FreiChenShader.d.ts +1 -1
  278. three/examples/jsm/shaders/GTAOShader.d.ts +1 -1
  279. three/examples/jsm/shaders/GammaCorrectionShader.d.ts +1 -1
  280. three/examples/jsm/shaders/GodRaysShader.d.ts +1 -1
  281. three/examples/jsm/shaders/HalftoneShader.d.ts +1 -1
  282. three/examples/jsm/shaders/HorizontalBlurShader.d.ts +1 -1
  283. three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -1
  284. three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -1
  285. three/examples/jsm/shaders/KaleidoShader.d.ts +1 -1
  286. three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -1
  287. three/examples/jsm/shaders/LuminosityShader.d.ts +1 -1
  288. three/examples/jsm/shaders/MMDToonShader.d.ts +1 -1
  289. three/examples/jsm/shaders/MirrorShader.d.ts +1 -1
  290. three/examples/jsm/shaders/NormalMapShader.d.ts +1 -1
  291. three/examples/jsm/shaders/OutputShader.d.ts +1 -1
  292. three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
  293. three/examples/jsm/shaders/RGBShiftShader.d.ts +1 -1
  294. three/examples/jsm/shaders/SAOShader.d.ts +1 -1
  295. three/examples/jsm/shaders/SMAAShader.d.ts +1 -1
  296. three/examples/jsm/shaders/SSAOShader.d.ts +1 -1
  297. three/examples/jsm/shaders/SSRShader.d.ts +1 -1
  298. three/examples/jsm/shaders/SepiaShader.d.ts +1 -1
  299. three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -1
  300. three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -1
  301. three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -1
  302. three/examples/jsm/shaders/ToonShader.d.ts +1 -1
  303. three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -1
  304. three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -1
  305. three/examples/jsm/shaders/VelocityShader.d.ts +1 -1
  306. three/examples/jsm/shaders/VerticalBlurShader.d.ts +1 -1
  307. three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -1
  308. three/examples/jsm/shaders/VignetteShader.d.ts +1 -1
  309. three/examples/jsm/shaders/VolumeShader.d.ts +1 -1
  310. three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -1
  311. three/examples/jsm/utils/BufferGeometryUtils.d.ts +1 -1
  312. three/examples/jsm/utils/CameraUtils.d.ts +1 -1
  313. three/examples/jsm/utils/GeometryCompressionUtils.d.ts +1 -1
  314. three/examples/jsm/utils/GeometryUtils.d.ts +1 -1
  315. three/examples/jsm/utils/LDrawUtils.d.ts +1 -1
  316. three/examples/jsm/utils/PackedPhongMaterial.d.ts +1 -1
  317. three/examples/jsm/utils/SceneUtils.d.ts +1 -1
  318. three/examples/jsm/utils/ShadowMapViewer.d.ts +1 -1
  319. three/examples/jsm/utils/SkeletonUtils.d.ts +1 -1
  320. three/examples/jsm/utils/UVsDebug.d.ts +1 -1
  321. three/examples/jsm/webxr/ARButton.d.ts +1 -1
  322. three/examples/jsm/webxr/OculusHandModel.d.ts +1 -1
  323. three/examples/jsm/webxr/OculusHandPointerModel.d.ts +1 -1
  324. three/examples/jsm/webxr/Text2D.d.ts +1 -1
  325. three/examples/jsm/webxr/VRButton.d.ts +3 -3
  326. three/examples/jsm/webxr/XRButton.d.ts +1 -2
  327. three/examples/jsm/webxr/XRControllerModelFactory.d.ts +6 -5
  328. three/examples/jsm/webxr/XREstimatedLight.d.ts +1 -1
  329. three/examples/jsm/webxr/XRHandMeshModel.d.ts +1 -1
  330. three/examples/jsm/webxr/XRHandModelFactory.d.ts +6 -5
  331. three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +1 -1
  332. three/examples/jsm/webxr/XRPlanes.d.ts +2 -2
  333. three/index.d.ts +1 -3
  334. three/package.json +5 -4
  335. three/src/Three.Legacy.d.ts +20 -1
  336. three/src/Three.d.ts +0 -2
  337. three/src/cameras/Camera.d.ts +3 -0
  338. three/src/constants.d.ts +13 -55
  339. three/src/core/BufferAttribute.d.ts +0 -32
  340. three/src/core/BufferGeometry.d.ts +6 -4
  341. three/src/core/InstancedBufferAttribute.d.ts +7 -0
  342. three/src/core/Object3D.d.ts +17 -0
  343. three/src/core/Raycaster.d.ts +7 -0
  344. three/src/core/RenderTarget.d.ts +8 -7
  345. three/src/extras/PMREMGenerator.d.ts +5 -4
  346. three/src/helpers/SkeletonHelper.d.ts +1 -1
  347. three/src/lights/LightShadow.d.ts +2 -2
  348. three/src/materials/Material.d.ts +46 -23
  349. three/src/materials/MeshBasicMaterial.d.ts +8 -0
  350. three/src/materials/MeshLambertMaterial.d.ts +8 -1
  351. three/src/materials/MeshPhongMaterial.d.ts +7 -0
  352. three/src/materials/MeshStandardMaterial.d.ts +7 -0
  353. three/src/materials/ShaderMaterial.d.ts +2 -17
  354. three/src/objects/BatchedMesh.d.ts +0 -3
  355. three/src/objects/InstancedMesh.d.ts +29 -5
  356. three/src/objects/SkinnedMesh.d.ts +6 -11
  357. three/src/renderers/WebGL3DRenderTarget.d.ts +6 -7
  358. three/src/renderers/WebGLArrayRenderTarget.d.ts +6 -7
  359. three/src/renderers/WebGLCubeRenderTarget.d.ts +7 -3
  360. three/src/renderers/WebGLRenderTarget.d.ts +1 -4
  361. three/src/renderers/WebGLRenderer.d.ts +5 -20
  362. three/src/renderers/shaders/UniformsLib.d.ts +1 -0
  363. three/src/renderers/webgl/WebGLAttributes.d.ts +1 -2
  364. three/src/renderers/webgl/WebGLBindingStates.d.ts +1 -8
  365. three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -3
  366. three/src/renderers/webgl/WebGLCapabilities.d.ts +8 -6
  367. three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +2 -1
  368. three/src/renderers/webgl/WebGLExtensions.d.ts +1 -3
  369. three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +1 -1
  370. three/src/renderers/webgl/WebGLLights.d.ts +1 -2
  371. three/src/renderers/webgl/WebGLPrograms.d.ts +1 -9
  372. three/src/renderers/webgl/WebGLState.d.ts +1 -3
  373. three/src/renderers/webgl/WebGLUtils.d.ts +7 -3
  374. three/src/scenes/Scene.d.ts +20 -1
  375. three/src/textures/Data3DTexture.d.ts +0 -1
  376. three/src/textures/DataArrayTexture.d.ts +0 -1
  377. three/src/textures/DepthTexture.d.ts +0 -3
  378. three/src/textures/Texture.d.ts +13 -22
  379. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
  380. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -12
  381. three/src/renderers/WebGL1Renderer.d.ts +0 -6
  382. three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -15
@@ -1,14 +1,6 @@
1
- import { Object3D } from "../../../../src/Three.js";
1
+ import { Object3D } from "three";
2
2
  import Node from "../core/Node.js";
3
-
4
- export type Object3DNodeScope =
5
- | typeof Object3DNode.VIEW_MATRIX
6
- | typeof Object3DNode.NORMAL_MATRIX
7
- | typeof Object3DNode.WORLD_MATRIX
8
- | typeof Object3DNode.POSITION
9
- | typeof Object3DNode.SCALE
10
- | typeof Object3DNode.VIEW_POSITION
11
- | typeof Object3DNode.DIRECTION;
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
12
4
 
13
5
  export default class Object3DNode extends Node {
14
6
  scope: string;
@@ -24,3 +16,11 @@ export default class Object3DNode extends Node {
24
16
  static VIEW_POSITION: "viewPosition";
25
17
  static DIRECTION: "direction";
26
18
  }
19
+
20
+ export const objectDirection: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
21
+ export const objectViewMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
22
+ export const objectNormalMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
23
+ export const objectWorldMatrix: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
24
+ export const objectPosition: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
25
+ export const objectScale: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
26
+ export const objectViewPosition: (object3d: Object3D) => ShaderNodeObject<Object3DNode>;
@@ -1,16 +1,28 @@
1
1
  import { NodeTypeOption } from "../core/constants.js";
2
2
  import Node from "../core/Node.js";
3
- import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import { NodeOrType, NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class ReferenceNode<T> extends Node {
6
- object: T;
7
6
  property: string;
8
- uniformType: string;
7
+
8
+ uniformType: NodeTypeOption;
9
+
10
+ object: T;
11
+ count: number | null;
12
+
13
+ properties: string[];
14
+ reference: T | null;
9
15
  node: Node | null;
10
16
 
11
- constructor(property: string, uniformType: NodeTypeOption, object?: T | null);
17
+ constructor(property: string, uniformType: NodeTypeOption, object?: T | null, count?: number | null);
12
18
 
13
19
  setNodeType(uniformType: NodeTypeOption): void;
14
20
  }
15
21
 
16
22
  export const reference: <T>(name: string, nodeOrType: NodeOrType, object: T) => ShaderNodeObject<ReferenceNode<T>>;
23
+ export const referenceBuffer: <T>(
24
+ name: string,
25
+ nodeOrType: NodeOrType,
26
+ count: NodeRepresentation,
27
+ object: T,
28
+ ) => ShaderNodeObject<ReferenceNode<T>>;
@@ -0,0 +1,16 @@
1
+ import Renderer from "../../renderers/common/Renderer.js";
2
+ import { NodeTypeOption } from "../core/constants.js";
3
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
+ import ReferenceNode from "./ReferenceNode.js";
5
+
6
+ export default class RendererReferenceNode extends ReferenceNode<Renderer> {
7
+ renderer: Renderer | null;
8
+
9
+ constructor(property: string, inputType: NodeTypeOption, renderer?: Renderer | null);
10
+ }
11
+
12
+ export const rendererReference: (
13
+ name: string,
14
+ type: NodeTypeOption,
15
+ renderer?: Renderer | null,
16
+ ) => ShaderNodeObject<RendererReferenceNode>;
@@ -1,8 +1,11 @@
1
- import { SkinnedMesh } from "../../../../src/Three.js";
1
+ import { SkinnedMesh } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
 
5
5
  export default class SkinningNode extends Node {
6
+ skinnedMesh: SkinnedMesh;
7
+ useReference: boolean;
8
+
6
9
  skinIndexNode: Node;
7
10
  skinWeightNode: Node;
8
11
 
@@ -10,7 +13,8 @@ export default class SkinningNode extends Node {
10
13
  bindMatrixInverseNode: Node;
11
14
  boneMatricesNode: Node;
12
15
 
13
- constructor(skinnedMesh: SkinnedMesh);
16
+ constructor(skinnedMesh: SkinnedMesh, useReference?: boolean);
14
17
  }
15
18
 
16
- export function skinning(skinnedMesh: SkinnedMesh): ShaderNodeObject<SkinningNode>;
19
+ export const skinning: (skinnedMesh: SkinnedMesh) => ShaderNodeObject<SkinningNode>;
20
+ export const skinningReference: (skinnedMesh: SkinnedMesh) => ShaderNodeObject<SkinningNode>;
@@ -1,9 +1,17 @@
1
1
  import { NodeTypeOption } from "../core/constants.js";
2
- import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import { NodeOrType, NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import StorageArrayElementNode from "../utils/StoargeArrayElementNode.js";
3
4
  import BufferNode from "./BufferNode.js";
4
5
 
5
6
  export default class StorageBufferNode extends BufferNode {
7
+ readonly isStorageBufferNode: true;
8
+ bufferObject: boolean;
9
+
6
10
  constructor(value: ArrayLike<number>, bufferType: NodeTypeOption, bufferCount?: number);
11
+
12
+ element(indexNode: NodeRepresentation): ShaderNodeObject<StorageArrayElementNode>;
13
+
14
+ setBufferObject(value: boolean): this;
7
15
  }
8
16
 
9
17
  export const storage: (
@@ -11,3 +19,8 @@ export const storage: (
11
19
  nodeOrType: NodeOrType,
12
20
  count: number,
13
21
  ) => ShaderNodeObject<StorageBufferNode>;
22
+ export const storageObject: (
23
+ value: ArrayLike<number>,
24
+ nodeOrType: NodeOrType,
25
+ count: number,
26
+ ) => ShaderNodeObject<StorageBufferNode>;
@@ -1,13 +1,20 @@
1
- import { Texture } from "../../../../src/Three.js";
1
+ import { Texture } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import UniformNode from "../core/UniformNode.js";
4
4
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
5
5
 
6
6
  export default class TextureNode extends UniformNode<Texture> {
7
- isTextureNode: true;
7
+ readonly isTextureNode: true;
8
8
 
9
9
  uvNode: ShaderNodeObject<Node> | null;
10
10
  levelNode: ShaderNodeObject<Node> | null;
11
+ compareNode: Node | null;
12
+ depthNode: Node | null;
13
+
14
+ sampler: boolean;
15
+ updateMatrix: boolean;
16
+
17
+ referenceNode: Node | null;
11
18
 
12
19
  constructor(value: Texture, uvNode?: ShaderNodeObject<Node>, levelNode?: ShaderNodeObject<Node> | null);
13
20
 
@@ -0,0 +1,25 @@
1
+ import Node from "../core/Node.js";
2
+ import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import ArrayElementNode from "../utils/ArrayElementNode.js";
4
+ import BufferNode from "./BufferNode.js";
5
+
6
+ declare class UniformsElementNode extends ArrayElementNode {
7
+ constructor(arrayBuffer: Node, indexNode: Node);
8
+ }
9
+
10
+ export default class UniformsNode extends BufferNode {
11
+ array: unknown[];
12
+ elementType: string | null;
13
+
14
+ readonly isArrayBufferNode: true;
15
+
16
+ constructor(value: unknown[], elementType?: string | null);
17
+
18
+ getElementType(): string | null;
19
+
20
+ getElementLength(): number;
21
+
22
+ element(indexNode: number): ShaderNodeObject<UniformsElementNode>;
23
+ }
24
+
25
+ export const uniforms: (values: unknown[], nodeType?: string | null) => ShaderNodeObject<UniformsNode>;
@@ -1,11 +1,12 @@
1
1
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
2
  import Node from "./Node.js";
3
+ import NodeBuilder from "./NodeBuilder.js";
3
4
  import TempNode from "./TempNode.js";
4
5
 
5
6
  export default class AssignNode extends TempNode {
6
7
  constructor(targetNode: Node, sourceNode: Node);
7
8
 
8
- hasDependencies(): false;
9
+ needsSplitAssign(builder: NodeBuilder): boolean;
9
10
  }
10
11
 
11
12
  export const assign: (targetNode: NodeRepresentation, sourceNode: NodeRepresentation) => ShaderNodeObject<AssignNode>;
@@ -3,8 +3,6 @@ import NodeBuilder from "./NodeBuilder.js";
3
3
  import NodeFrame from "./NodeFrame.js";
4
4
 
5
5
  export default abstract class Node {
6
- readonly isNode: true;
7
-
8
6
  nodeType: NodeTypeOption | null;
9
7
 
10
8
  updateType: NodeUpdateType;
@@ -12,17 +10,23 @@ export default abstract class Node {
12
10
 
13
11
  uuid: string;
14
12
 
13
+ version: number;
14
+
15
+ readonly isNode: true;
16
+
15
17
  readonly id: number;
16
18
 
17
19
  constructor(nodeType?: NodeTypeOption | null);
18
20
 
21
+ set needsUpdate(value: boolean);
22
+
19
23
  get type(): number;
20
24
 
21
25
  isGlobal(builder: NodeBuilder): boolean;
22
26
 
23
27
  getChildren(): Node[];
24
28
 
25
- getCacheKey(): string;
29
+ getCacheKey(force?: boolean): string;
26
30
 
27
31
  getHash(builder: NodeBuilder): string;
28
32
 
@@ -36,6 +40,8 @@ export default abstract class Node {
36
40
 
37
41
  setup(builder: NodeBuilder): Node | null;
38
42
 
43
+ increaseUsage(builder: NodeBuilder): number;
44
+
39
45
  analyze(builder: NodeBuilder): void;
40
46
 
41
47
  generate(builder: NodeBuilder, output?: string | null): string;
@@ -1,12 +1,4 @@
1
- import {
2
- BufferGeometry,
3
- Material,
4
- Object3D,
5
- Renderer,
6
- Texture,
7
- TextureEncoding,
8
- WebGLRenderTarget,
9
- } from "../../../../src/Three.js";
1
+ import { BufferGeometry, Material, Object3D, Renderer } from "three";
10
2
  import FogNode from "../fog/FogNode.js";
11
3
  import LightsNode from "../lighting/LightsNode.js";
12
4
  import { AnyObject, NodeShaderStage, NodeTypeOption } from "./constants.js";
@@ -97,7 +89,6 @@ export default abstract class NodeBuilder {
97
89
  isMatrix(type: NodeTypeOption): boolean;
98
90
  isReference(type: NodeTypeOption): boolean;
99
91
  isShaderStage(shaderStage: NodeShaderStage): boolean;
100
- getTextureEncodingFromMap(map: Texture | WebGLRenderTarget | unknown): TextureEncoding;
101
92
  getComponentType(type: NodeTypeOption): NodeTypeOption;
102
93
  getVectorType(type: NodeTypeOption): NodeTypeOption;
103
94
  getTypeFromLength(length: number): NodeTypeOption;
@@ -1,4 +1,4 @@
1
- import { Camera, Material, Object3D, Renderer, Scene } from "../../../../src/Three.js";
1
+ import { Camera, Material, Object3D, Renderer, Scene } from "three";
2
2
 
3
3
  import Node from "./Node.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from "../../../../src/Three.js";
1
+ import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from "three";
2
2
  import Node from "./Node.js";
3
3
 
4
4
  export interface NodeChild {
@@ -7,7 +7,7 @@ export interface NodeChild {
7
7
  childNode: Node;
8
8
  }
9
9
 
10
- export function getCacheKey(object: Node): string;
10
+ export function getCacheKey(object: Node, force?: boolean): string;
11
11
  export function getNodeChildren(object: Node): Generator<NodeChild, void>;
12
12
  export function getValueType(value: unknown): string | null;
13
13
  export function getValueFromType(
@@ -7,5 +7,5 @@ export default class TempNode extends Node {
7
7
 
8
8
  constructor(type: NodeTypeOption | null);
9
9
 
10
- hasDependencies(builder: NodeBuilder): void;
10
+ hasDependencies(builder: NodeBuilder): boolean;
11
11
  }
@@ -1,25 +1,24 @@
1
- import { Vector2 } from "../../../../src/Three.js";
2
- import TextureNode from "../accessors/TextureNode.js";
1
+ import { Vector2 } from "three";
3
2
  import Node from "../core/Node.js";
4
3
  import TempNode from "../core/TempNode.js";
5
4
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
6
5
 
7
6
  export default class AnamorphicNode extends TempNode {
8
- textureNode: TextureNode;
7
+ textureNode: Node;
9
8
  thresholdNode: Node;
10
9
  scaleNode: Node;
11
10
  samples: number;
12
11
  resolution: Vector2;
13
12
 
14
- constructor(textureNode: TextureNode, thresholdNode: Node, scaleNode: Node, samples: number);
13
+ constructor(textureNode: Node, thresholdNode: Node, scaleNode: Node, samples: number);
15
14
 
16
- getTextureNode(): TextureNode;
15
+ getTextureNode(): Node;
17
16
 
18
17
  setSize(width: number, height: number): void;
19
18
  }
20
19
 
21
20
  export const anamorphic: (
22
- node: TextureNode,
21
+ node: Node,
23
22
  threshold?: NodeRepresentation,
24
23
  scale?: NodeRepresentation,
25
24
  samples?: NodeRepresentation,
@@ -1,4 +1,4 @@
1
- import { ColorSpace } from "../../../../src/Three.js";
1
+ import { ColorSpace } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import TempNode from "../core/TempNode.js";
4
4
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
@@ -1,4 +1,4 @@
1
- import { Vector2 } from "../../../../src/Three.js";
1
+ import { Vector2 } from "three";
2
2
  import TextureNode from "../accessors/TextureNode.js";
3
3
  import Node from "../core/Node.js";
4
4
  import TempNode from "../core/TempNode.js";
@@ -1,4 +1,4 @@
1
- import { NormalMapTypes } from "../../../../src/Three.js";
1
+ import { NormalMapTypes } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import TempNode from "../core/TempNode.js";
4
4
  import MathNode from "../math/MathNode.js";
@@ -15,8 +15,6 @@ export default class NormalMapNode extends TempNode {
15
15
 
16
16
  export const normalMap: (node: Node, scaleNode?: Node) => ShaderNodeObject<NormalMapNode>;
17
17
 
18
- export const TBNViewMatrix: ShaderNodeObject<MathNode>;
19
-
20
18
  declare module "../shadernode/ShaderNode.js" {
21
19
  interface NodeElements {
22
20
  normalMap: typeof normalMap;
@@ -1,4 +1,4 @@
1
- import { Camera, RenderTarget, Scene, Texture } from "../../../../src/Three.js";
1
+ import { Camera, RenderTarget, Scene, Texture } from "three";
2
2
  import TextureNode from "../accessors/TextureNode.js";
3
3
  import Node from "../core/Node.js";
4
4
  import TempNode from "../core/TempNode.js";
@@ -25,6 +25,8 @@ export default class PassNode extends TempNode {
25
25
 
26
26
  getTextureDepthNode(): ShaderNodeObject<PassTextureNode>;
27
27
 
28
+ getViewZNode(): ShaderNodeObject<Node>;
29
+
28
30
  getDepthNode(): ShaderNodeObject<Node>;
29
31
 
30
32
  setSize(width: number, height: number): void;
@@ -1,4 +1,5 @@
1
- import { ToneMapping } from "../../../../src/Three.js";
1
+ import { ToneMapping } from "three";
2
+ import RendererReferenceNode from "../accessors/RendererReferenceNode.js";
2
3
  import Node from "../core/Node.js";
3
4
  import TempNode from "../core/TempNode.js";
4
5
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
@@ -19,3 +20,14 @@ export const toneMapping: (
19
20
  exposure: NodeRepresentation,
20
21
  color?: NodeRepresentation,
21
22
  ) => ShaderNodeObject<ToneMappingNode>;
23
+ export const toneMappingExposure: ShaderNodeObject<RendererReferenceNode>;
24
+
25
+ declare module "../shadernode/ShaderNode.js" {
26
+ interface NodeElements {
27
+ toneMapping: (
28
+ color: NodeRepresentation,
29
+ mapping?: NodeRepresentation,
30
+ exposure?: NodeRepresentation,
31
+ ) => ShaderNodeObject<ToneMappingNode>;
32
+ }
33
+ }
@@ -0,0 +1,12 @@
1
+ import Node from "../core/Node.js";
2
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
+ import ViewportTextureNode from "./ViewportTextureNode.js";
4
+
5
+ export default class ViewportDepthTextureNode extends ViewportTextureNode {
6
+ constructor(uvNode?: Node, levelNode?: Node | null);
7
+ }
8
+
9
+ export const viewportDepthTexture: (
10
+ uvNode?: NodeRepresentation,
11
+ levelNode?: NodeRepresentation,
12
+ ) => ShaderNodeObject<ViewportDepthTextureNode>;
@@ -1,4 +1,4 @@
1
- import { FramebufferTexture } from "../../../../src/Three.js";
1
+ import { FramebufferTexture } from "three";
2
2
  import TextureNode from "../accessors/TextureNode.js";
3
3
  import { NodeUpdateType } from "../core/constants.js";
4
4
  import Node from "../core/Node.js";
@@ -1,16 +1,21 @@
1
1
  import Node from "../core/Node.js";
2
+ import NodeBuilder from "../core/NodeBuilder.js";
2
3
  import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
4
 
4
5
  export default class FogNode extends Node {
5
6
  isFogNode: true;
6
- colorNode: Node;
7
- factorNode: Node;
7
+ colorNode: Node | null;
8
+ factorNode: Node | null;
8
9
 
9
- constructor(colorNode: Node, factorNode: Node);
10
- mixAssign(outputNode: Node): Node;
10
+ constructor(colorNode: Node | null, factorNode: Node | null);
11
+
12
+ getViewZNode(builder: NodeBuilder): Node;
11
13
  }
12
14
 
13
- export const fog: (colorNode: NodeRepresentation, factorNode: NodeRepresentation) => ShaderNodeObject<FogNode>;
15
+ export const fog: (
16
+ colorNode: NodeRepresentation | null,
17
+ factorNode: NodeRepresentation | null,
18
+ ) => ShaderNodeObject<FogNode>;
14
19
 
15
20
  declare module "../shadernode/ShaderNode.js" {
16
21
  interface NodeElements {
@@ -1,16 +1,20 @@
1
1
  import Node from "../core/Node.js";
2
- import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
2
+ import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
3
3
  import FogNode from "./FogNode.js";
4
4
 
5
5
  export default class FogRangeNode extends FogNode {
6
6
  isFogRangeNode: true;
7
- nearNode: Node;
8
- farNode: Node;
7
+ nearNode: Node | null;
8
+ farNode: Node | null;
9
9
 
10
- constructor(colorNode: Node, nearNode: Node, farNode: Node);
10
+ constructor(colorNode: Node | null, nearNode: Node | null, farNode: Node | null);
11
11
  }
12
12
 
13
- export const rangeFog: (colorNode: Node, nearNode: Node, farNode: Node) => ShaderNodeObject<FogRangeNode>;
13
+ export const rangeFog: (
14
+ colorNode: NodeRepresentation | null,
15
+ nearNode: NodeRepresentation | null,
16
+ farNode: NodeRepresentation | null,
17
+ ) => ShaderNodeObject<FogRangeNode>;
14
18
 
15
19
  declare module "../shadernode/ShaderNode.js" {
16
20
  interface NodeElements {
@@ -1,4 +1,4 @@
1
- import { Color, Vector2, Vector3, Vector4 } from "../../../../src/Three.js";
1
+ import { Color, Vector2, Vector3, Vector4 } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import NodeBuilder from "../core/NodeBuilder.js";
4
4
  import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
@@ -1,4 +1,4 @@
1
- import { Light } from "../../../../src/Three.js";
1
+ import { Light } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import LightingNode from "./LightingNode.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { HemisphereLight } from "../../../../src/Three.js";
1
+ import { HemisphereLight } from "three";
2
2
  import Object3DNode from "../accessors/Object3DNode.js";
3
3
  import Node from "../core/Node.js";
4
4
  import AnalyticLightNode from "./AnalyticLightNode.js";
@@ -1,4 +1,4 @@
1
- import { Light } from "../../../../src/Three.js";
1
+ import { Light } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
4
4
  import LightingNode from "./LightingNode.js";
@@ -1,4 +1,4 @@
1
- import { PointLight } from "../../../../src/Three.js";
1
+ import { PointLight } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import AnalyticLightNode from "./AnalyticLightNode.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { SpotLight } from "../../../../src/Three.js";
1
+ import { SpotLight } from "three";
2
2
  import Node from "../core/Node.js";
3
3
  import AnalyticLightNode from "./AnalyticLightNode.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { Loader, LoadingManager, Texture } from "../../../../src/Three.js";
1
+ import { Loader, LoadingManager, Texture } from "three";
2
2
  import { AnyJson, Node } from "../Nodes.js";
3
3
 
4
4
  export interface NodeLoaderResult {
@@ -1,4 +1,4 @@
1
- import { MaterialLoader } from "../../../../src/Three.js";
1
+ import { MaterialLoader } from "three";
2
2
  import { NodeLoaderResult } from "./NodeLoader.js";
3
3
 
4
4
  export default class NodeMaterialLoader extends MaterialLoader {
@@ -1,4 +1,4 @@
1
- import { Material, ObjectLoader, Texture } from "../../../../src/Three.js";
1
+ import { Material, ObjectLoader, Texture } from "three";
2
2
  import { AnyJson } from "../core/constants.js";
3
3
  import { NodeLoaderResult } from "./NodeLoader.js";
4
4
 
@@ -1,8 +1,18 @@
1
- import { ShaderMaterialParameters } from "../../../../src/Three.js";
2
- import NodeMaterial from "./NodeMaterial.js";
1
+ import { Color, LineBasicMaterialParameters, Texture } from "three";
2
+ import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
3
+
4
+ export interface LineBasicNodeMaterialParameters extends NodeMaterialParameters, LineBasicMaterialParameters {
5
+ }
3
6
 
4
7
  export default class LineBasicNodeMaterial extends NodeMaterial {
5
8
  readonly isLineBasicNodeMaterial: true;
6
9
 
7
- constructor(parameters?: ShaderMaterialParameters);
10
+ // Properties from LineBasicMaterial
11
+ readonly isLineBasicMaterial: true;
12
+ color: Color;
13
+ linecap: string;
14
+ linejoin: string;
15
+ map: Texture | null;
16
+
17
+ constructor(parameters?: LineBasicNodeMaterialParameters);
8
18
  }
@@ -1,5 +1,6 @@
1
1
  export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js";
2
2
  export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js";
3
+ export { default as MeshNormalNodeMaterial } from "./MeshNormalNodeMaterial.js";
3
4
  export { default as MeshPhongNodeMaterial } from "./MeshPhongNodeMaterial.js";
4
5
  export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.js";
5
6
  export { default as MeshSSSPhysicalNodeMaterial } from "./MeshSSSNodeMaterial.js";
@@ -1,8 +1,28 @@
1
- import { ShaderMaterialParameters } from "../../../../src/Three.js";
2
- import NodeMaterial from "./NodeMaterial.js";
1
+ import { Color, Combine, MeshBasicMaterialParameters, Texture } from "three";
2
+ import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
3
+
4
+ export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshBasicMaterialParameters {
5
+ }
3
6
 
4
7
  export default class MeshBasicNodeMaterial extends NodeMaterial {
5
8
  readonly isMeshBasicNodeMaterial: true;
6
9
 
7
- constructor(parameters?: ShaderMaterialParameters);
10
+ // Properties from MeshBasicMaterial
11
+ readonly isMeshBasicMaterial: true;
12
+ color: Color;
13
+ map: Texture | null;
14
+ lightMap: Texture | null;
15
+ lightMapIntensity: number;
16
+ aoMap: Texture | null;
17
+ aoMapIntensity: number;
18
+ specularMap: Texture | null;
19
+ alphaMap: Texture | null;
20
+ envMap: Texture | null;
21
+ combine: Combine;
22
+ reflectivity: number;
23
+ refractionRatio: number;
24
+ wireframeLinecap: string;
25
+ wireframeLinejoin: string;
26
+
27
+ constructor(parameters?: MeshBasicNodeMaterialParameters);
8
28
  }
@@ -0,0 +1,23 @@
1
+ import { MeshNormalMaterialParameters, NormalMapTypes, Texture, Vector2 } from "three";
2
+ import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
3
+
4
+ export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters {
5
+ }
6
+
7
+ export default class MeshNormalNodeMaterial extends NodeMaterial {
8
+ readonly isMeshNormalNodeMaterial: true;
9
+
10
+ // Properties from MeshNormalMaterial
11
+ readonly isMeshNormalMaterial: true;
12
+ bumpMap: Texture | null;
13
+ bumpScale: number;
14
+ normalMap: Texture | null;
15
+ normalMapType: NormalMapTypes;
16
+ normalScale: Vector2;
17
+ displacementMap: Texture | null;
18
+ displacementScale: number;
19
+ displacementBias: number;
20
+ flatShading: boolean;
21
+
22
+ constructor(parameters?: MeshBasicNodeMaterialParameters);
23
+ }