@types/three 0.166.0 → 0.167.1

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 (309) hide show
  1. three/README.md +1 -1
  2. three/build/three.webgpu.d.ts +1 -0
  3. three/build/three.webgpu.min.d.ts +1 -0
  4. three/examples/jsm/Addons.d.ts +1 -1
  5. three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
  6. three/examples/jsm/csm/CSM.d.ts +3 -4
  7. three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
  8. three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
  9. three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
  10. three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
  11. three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
  12. three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
  13. three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
  14. three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
  15. three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
  16. three/package.json +4 -3
  17. three/src/Three.WebGPU.d.ts +188 -0
  18. three/src/Three.d.ts +29 -91
  19. three/src/animation/AnimationClip.d.ts +12 -4
  20. three/src/animation/AnimationUtils.d.ts +32 -7
  21. three/src/animation/KeyframeTrack.d.ts +9 -1
  22. three/src/animation/PropertyBinding.d.ts +12 -12
  23. three/src/cameras/OrthographicCamera.d.ts +27 -0
  24. three/src/cameras/PerspectiveCamera.d.ts +31 -0
  25. three/src/constants.d.ts +7 -1
  26. three/src/core/BufferAttribute.d.ts +11 -6
  27. three/src/core/BufferGeometry.d.ts +26 -3
  28. three/src/core/InterleavedBufferAttribute.d.ts +3 -3
  29. three/src/core/Object3D.d.ts +51 -6
  30. three/src/extras/DataUtils.d.ts +9 -2
  31. three/src/extras/ImageUtils.d.ts +6 -7
  32. three/src/extras/core/Curve.d.ts +8 -2
  33. three/src/extras/core/CurvePath.d.ts +9 -1
  34. three/src/extras/core/Path.d.ts +9 -2
  35. three/src/extras/core/Shape.d.ts +9 -1
  36. three/src/lights/Light.d.ts +19 -2
  37. three/src/lights/LightShadow.d.ts +13 -2
  38. three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
  39. three/src/loaders/Cache.d.ts +13 -8
  40. three/src/materials/Material.d.ts +164 -2
  41. three/src/materials/ShaderMaterial.d.ts +49 -2
  42. three/src/math/ColorManagement.d.ts +3 -0
  43. three/src/math/Euler.d.ts +4 -2
  44. three/src/math/Matrix2.d.ts +53 -0
  45. three/src/math/Matrix3.d.ts +70 -113
  46. three/src/math/Matrix4.d.ts +51 -98
  47. three/src/math/Quaternion.d.ts +5 -3
  48. three/src/math/Vector2.d.ts +1 -1
  49. three/{examples/jsm → src}/nodes/Nodes.d.ts +28 -5
  50. three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
  51. three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +4 -1
  52. three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
  53. three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
  54. three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
  55. three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
  56. three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
  57. three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
  58. three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
  59. three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
  60. three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
  61. three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
  62. three/{examples/jsm → src}/nodes/accessors/StorageTextureNode.d.ts +1 -1
  63. three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
  64. three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
  65. three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
  66. three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +1 -3
  67. three/src/nodes/core/MRTNode.d.ts +19 -0
  68. three/{examples/jsm → src}/nodes/core/Node.d.ts +3 -10
  69. three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +7 -1
  70. three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +2 -1
  71. three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
  72. three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
  73. three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
  74. three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
  75. three/src/nodes/display/BloomNode.d.ts +35 -0
  76. three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
  77. three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
  78. three/src/nodes/display/DenoiseNode.d.ts +38 -0
  79. three/{examples/jsm → src}/nodes/display/DepthOfFieldNode.d.ts +4 -4
  80. three/{examples/jsm → src}/nodes/display/DotScreenNode.d.ts +3 -8
  81. three/src/nodes/display/FXAANode.d.ts +19 -0
  82. three/src/nodes/display/FilmNode.d.ts +25 -0
  83. three/src/nodes/display/GTAONode.d.ts +46 -0
  84. three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
  85. three/src/nodes/display/Lut3DNode.d.ts +30 -0
  86. three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
  87. three/src/nodes/display/PassNode.d.ts +62 -0
  88. three/src/nodes/display/PixelationPassNode.d.ts +67 -0
  89. three/src/nodes/display/RenderOutputNode.d.ts +28 -0
  90. three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
  91. three/src/nodes/display/TransitionNode.d.ts +41 -0
  92. three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
  93. three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
  94. three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
  95. three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
  96. three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
  97. three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
  98. three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
  99. three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
  100. three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
  101. three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
  102. three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
  103. three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
  104. three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
  105. three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
  106. three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
  107. three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
  108. three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
  109. three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
  110. three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
  111. three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
  112. three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
  113. three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
  114. three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
  115. three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +6 -1
  116. three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +4 -2
  117. three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +6 -1
  118. three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
  119. three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +22 -16
  120. three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
  121. three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
  122. three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +3 -1
  123. three/{examples/jsm → src}/nodes/math/MathNode.d.ts +4 -0
  124. three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
  125. three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
  126. three/src/nodes/utils/PackingNode.d.ts +24 -0
  127. three/src/nodes/utils/RTTNode.d.ts +45 -0
  128. three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
  129. three/src/objects/InstancedMesh.d.ts +15 -2
  130. three/src/objects/LOD.d.ts +17 -1
  131. three/src/objects/Mesh.d.ts +11 -1
  132. three/src/objects/Points.d.ts +0 -3
  133. three/src/objects/Skeleton.d.ts +10 -3
  134. three/src/objects/SkinnedMesh.d.ts +15 -3
  135. three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
  136. three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
  137. three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
  138. three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
  139. three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
  140. three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
  141. three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
  142. three/{examples/jsm → src}/renderers/common/Geometries.d.ts +4 -1
  143. three/{examples/jsm → src}/renderers/common/Info.d.ts +1 -1
  144. three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -3
  145. three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
  146. three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
  147. three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
  148. three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
  149. three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
  150. three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
  151. three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
  152. three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +16 -13
  153. three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
  154. three/{examples/jsm → src}/renderers/common/Renderer.d.ts +30 -29
  155. three/{examples/jsm → src}/renderers/common/SampledTexture.d.ts +1 -1
  156. three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
  157. three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
  158. three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
  159. three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
  160. three/{examples/jsm → src}/renderers/common/Uniform.d.ts +6 -1
  161. three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
  162. three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +6 -1
  163. three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -2
  164. three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +21 -8
  165. three/src/renderers/shaders/ShaderLib.d.ts +3 -1
  166. three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
  167. three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
  168. three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
  169. three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +6 -4
  170. three/src/scenes/Fog.d.ts +7 -24
  171. three/src/scenes/FogExp2.d.ts +9 -3
  172. three/src/scenes/Scene.d.ts +21 -5
  173. three/src/textures/Source.d.ts +15 -1
  174. three/src/textures/Texture.d.ts +37 -1
  175. three/examples/jsm/deprecated/Geometry.d.ts +0 -341
  176. three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
  177. three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
  178. three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
  179. three/examples/jsm/nodes/lighting/RectAreaLightNode.d.ts +0 -10
  180. /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
  181. /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
  182. /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
  183. /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
  184. /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
  185. /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
  186. /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
  187. /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
  188. /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
  189. /three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +0 -0
  190. /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
  191. /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
  192. /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
  193. /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
  194. /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
  195. /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
  196. /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
  197. /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
  198. /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
  199. /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
  200. /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
  201. /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
  202. /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
  203. /three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +0 -0
  204. /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
  205. /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
  206. /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
  207. /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
  208. /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
  209. /three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +0 -0
  210. /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
  211. /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
  212. /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
  213. /three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +0 -0
  214. /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
  215. /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
  216. /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
  217. /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
  218. /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
  219. /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
  220. /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
  221. /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
  222. /three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +0 -0
  223. /three/{examples/jsm → src}/nodes/core/VarNode.d.ts +0 -0
  224. /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
  225. /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
  226. /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
  227. /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
  228. /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
  229. /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
  230. /three/{examples/jsm → src}/nodes/display/RGBShiftNode.d.ts +0 -0
  231. /three/{examples/jsm → src}/nodes/display/SobelOperatorNode.d.ts +0 -0
  232. /three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +0 -0
  233. /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
  234. /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
  235. /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
  236. /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
  237. /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
  238. /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
  239. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
  240. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
  241. /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
  242. /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
  243. /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
  244. /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
  245. /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
  246. /three/{examples/jsm → src}/nodes/functions/BSDF/LTC.d.ts +0 -0
  247. /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
  248. /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
  249. /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
  250. /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
  251. /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
  252. /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
  253. /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
  254. /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
  255. /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
  256. /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
  257. /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
  258. /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
  259. /three/{examples/jsm → src}/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -0
  260. /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
  261. /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
  262. /three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +0 -0
  263. /three/{examples/jsm → src}/nodes/materialx/lib/mx_noise.d.ts +0 -0
  264. /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
  265. /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
  266. /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
  267. /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
  268. /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
  269. /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
  270. /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
  271. /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
  272. /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
  273. /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
  274. /three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +0 -0
  275. /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
  276. /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
  277. /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
  278. /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
  279. /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
  280. /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
  281. /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
  282. /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
  283. /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
  284. /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
  285. /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
  286. /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
  287. /three/{examples/jsm → src}/renderers/common/BindGroup.d.ts +0 -0
  288. /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
  289. /three/{examples/jsm → src}/renderers/common/Bindings.d.ts +0 -0
  290. /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
  291. /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
  292. /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
  293. /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
  294. /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
  295. /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
  296. /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
  297. /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
  298. /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
  299. /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
  300. /three/{examples/jsm → src}/renderers/common/Sampler.d.ts +0 -0
  301. /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
  302. /three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +0 -0
  303. /three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +0 -0
  304. /three/{examples/jsm → src}/renderers/common/nodes/NodeSampledTexture.d.ts +0 -0
  305. /three/{examples/jsm → src}/renderers/common/nodes/NodeSampler.d.ts +0 -0
  306. /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
  307. /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -0
  308. /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -0
  309. /three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.d.ts +0 -0
@@ -1,5 +1,19 @@
1
1
  import { Camera } from "../cameras/Camera.js";
2
- import { Object3D, Object3DEventMap } from "../core/Object3D.js";
2
+ import { JSONMeta, Object3D, Object3DEventMap, Object3DJSON, Object3DJSONObject } from "../core/Object3D.js";
3
+
4
+ export interface LODJSONObject extends Object3DJSONObject {
5
+ autoUpdate?: boolean;
6
+
7
+ levels: Array<{
8
+ object: string;
9
+ distance: number;
10
+ hysteresis: number;
11
+ }>;
12
+ }
13
+
14
+ export interface LODJSON extends Object3DJSON {
15
+ object: LODJSONObject;
16
+ }
3
17
 
4
18
  /**
5
19
  * Every level is associated with an object, and rendering can be switched between them at the distances specified
@@ -85,4 +99,6 @@ export class LOD<TEventMap extends Object3DEventMap = Object3DEventMap> extends
85
99
  * @param camera
86
100
  */
87
101
  update(camera: Camera): void;
102
+
103
+ toJSON(meta?: JSONMeta): LODJSON;
88
104
  }
@@ -1,8 +1,16 @@
1
1
  import { BufferGeometry } from "../core/BufferGeometry.js";
2
- import { Object3D, Object3DEventMap } from "../core/Object3D.js";
2
+ import { JSONMeta, Object3D, Object3DEventMap, Object3DJSON, Object3DJSONObject } from "../core/Object3D.js";
3
3
  import { Material } from "../materials/Material.js";
4
4
  import { Vector3 } from "../math/Vector3.js";
5
5
 
6
+ export interface MeshJSONObject extends Object3DJSONObject {
7
+ geometry: string;
8
+ }
9
+
10
+ export interface MeshJSON extends Object3DJSON {
11
+ object: MeshJSONObject;
12
+ }
13
+
6
14
  /**
7
15
  * Class representing triangular {@link https://en.wikipedia.org/wiki/Polygon_mesh | polygon mesh} based objects.
8
16
  * @remarks
@@ -81,4 +89,6 @@ export class Mesh<
81
89
  * @param target
82
90
  */
83
91
  getVertexPosition(index: number, target: Vector3): Vector3;
92
+
93
+ toJSON(meta?: JSONMeta): MeshJSON;
84
94
  }
@@ -1,7 +1,4 @@
1
- import { BufferAttribute } from "../core/BufferAttribute.js";
2
1
  import { BufferGeometry, NormalOrGLBufferAttributes } from "../core/BufferGeometry.js";
3
- import { GLBufferAttribute } from "../core/GLBufferAttribute.js";
4
- import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js";
5
2
  import { Object3D, Object3DEventMap } from "../core/Object3D.js";
6
3
  import { Material } from "../materials/Material.js";
7
4
 
@@ -1,7 +1,14 @@
1
- import { Matrix4 } from "../math/Matrix4.js";
1
+ import { Matrix4, Matrix4Tuple } from "../math/Matrix4.js";
2
2
  import { DataTexture } from "../textures/DataTexture.js";
3
3
  import { Bone } from "./Bone.js";
4
4
 
5
+ export interface SkeletonJSON {
6
+ metadata: { version: number; type: string; generator: string };
7
+ bones: string[];
8
+ boneInverses: Matrix4Tuple[];
9
+ uuid: string;
10
+ }
11
+
5
12
  /**
6
13
  * Use an array of {@link Bone | bones} to create a {@link Skeleton} that can be used by a {@link THREE.SkinnedMesh | SkinnedMesh}.
7
14
  * @example
@@ -107,7 +114,7 @@ export class Skeleton {
107
114
  */
108
115
  dispose(): void;
109
116
 
110
- toJSON(): unknown;
117
+ toJSON(): SkeletonJSON;
111
118
 
112
- fromJSON(json: unknown, bones: Record<string, Bone>): void;
119
+ fromJSON(json: SkeletonJSON, bones: Record<string, Bone>): void;
113
120
  }
@@ -1,14 +1,24 @@
1
1
  import { BindMode } from "../constants.js";
2
2
  import { BufferGeometry } from "../core/BufferGeometry.js";
3
- import { Object3DEventMap } from "../core/Object3D.js";
3
+ import { JSONMeta, Object3DEventMap } from "../core/Object3D.js";
4
4
  import { Material } from "../materials/Material.js";
5
5
  import { Box3 } from "../math/Box3.js";
6
- import { Matrix4 } from "../math/Matrix4.js";
6
+ import { Matrix4, Matrix4Tuple } from "../math/Matrix4.js";
7
7
  import { Sphere } from "../math/Sphere.js";
8
8
  import { Vector3 } from "../math/Vector3.js";
9
- import { Mesh } from "./Mesh.js";
9
+ import { Mesh, MeshJSON, MeshJSONObject } from "./Mesh.js";
10
10
  import { Skeleton } from "./Skeleton.js";
11
11
 
12
+ export interface SkinnedMeshJSONObject extends MeshJSONObject {
13
+ bindMode: BindMode;
14
+ bindMatrix: Matrix4Tuple;
15
+ skeleton?: string;
16
+ }
17
+
18
+ export interface SkinnedMeshJSON extends MeshJSON {
19
+ object: SkinnedMeshJSONObject;
20
+ }
21
+
12
22
  /**
13
23
  * A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry.
14
24
  * @example
@@ -145,4 +155,6 @@ export class SkinnedMesh<
145
155
  * @param vector
146
156
  */
147
157
  applyBoneTransform(index: number, vector: Vector3): Vector3;
158
+
159
+ toJSON(meta?: JSONMeta): SkinnedMeshJSON;
148
160
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="webxr" />
2
1
  import Info from "./Info.js";
3
2
  import Nodes from "./nodes/Nodes.js";
4
3
  declare class Animation {
@@ -1,4 +1,6 @@
1
- import { BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute } from "three";
1
+ import { BufferAttribute } from "../../core/BufferAttribute.js";
2
+ import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
3
+ import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
2
4
  import Backend from "./Backend.js";
3
5
  import { AttributeType } from "./Constants.js";
4
6
  import DataMap from "./DataMap.js";
@@ -15,6 +17,6 @@ declare class Attributes extends DataMap<{
15
17
  constructor(backend: Backend);
16
18
  delete(attribute: BufferAttribute | InterleavedBufferAttribute): Data;
17
19
  update(attribute: BufferAttribute | InterleavedBufferAttribute, type: AttributeType): void;
18
- _getBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute): InterleavedBuffer | BufferAttribute;
20
+ _getBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute): BufferAttribute | InterleavedBuffer;
19
21
  }
20
22
  export default Attributes;
@@ -1,4 +1,4 @@
1
- import { CoordinateSystem } from "three";
1
+ import { CoordinateSystem } from "../../constants.js";
2
2
  import Renderer from "./Renderer.js";
3
3
 
4
4
  export interface BackendParameters {
@@ -1,4 +1,5 @@
1
- import { Mesh, Scene } from "three";
1
+ import { Mesh } from "../../objects/Mesh.js";
2
+ import { Scene } from "../../scenes/Scene.js";
2
3
  import DataMap from "./DataMap.js";
3
4
  import Nodes from "./nodes/Nodes.js";
4
5
  import RenderContext from "./RenderContext.js";
@@ -1,4 +1,9 @@
1
- import { Camera, Material, Matrix3, Matrix4, Plane, Vector4 } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Material } from "../../materials/Material.js";
3
+ import { Matrix3 } from "../../math/Matrix3.js";
4
+ import { Matrix4 } from "../../math/Matrix4.js";
5
+ import { Plane } from "../../math/Plane.js";
6
+ import { Vector4 } from "../../math/Vector4.js";
2
7
  import Renderer from "./Renderer.js";
3
8
  declare class ClippingContext {
4
9
  version: number;
@@ -1,4 +1,4 @@
1
- import { Color, ColorRepresentation } from "three";
1
+ import { Color, ColorRepresentation } from "../../math/Color.js";
2
2
  declare class Color4 extends Color {
3
3
  a: number;
4
4
  constructor(color?: ColorRepresentation);
@@ -1,4 +1,7 @@
1
- import { RenderTargetOptions, Texture, WebGLCubeRenderTarget, WebGLRenderer } from "three";
1
+ import { RenderTargetOptions } from "../../core/RenderTarget.js";
2
+ import { WebGLCubeRenderTarget } from "../../renderers/WebGLCubeRenderTarget.js";
3
+ import { Texture } from "../../textures/Texture.js";
4
+ import { WebGLRenderer } from "../WebGLRenderer.js";
2
5
  declare class CubeRenderTarget extends WebGLCubeRenderTarget {
3
6
  readonly isCubeRenderTarget: true;
4
7
  constructor(size?: number, options?: RenderTargetOptions);
@@ -1,4 +1,7 @@
1
- import { BufferAttribute, BufferGeometry, InterleavedBuffer, InterleavedBufferAttribute } from "three";
1
+ import { BufferAttribute } from "../../core/BufferAttribute.js";
2
+ import { BufferGeometry } from "../../core/BufferGeometry.js";
3
+ import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
4
+ import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
2
5
  import Attributes from "./Attributes.js";
3
6
  import { AttributeType } from "./Constants.js";
4
7
  import DataMap from "./DataMap.js";
@@ -1,4 +1,4 @@
1
- import { Object3D } from "three";
1
+ import { Object3D } from "../../core/Object3D.js";
2
2
  declare class Info {
3
3
  autoReset: boolean;
4
4
  frame: number;
@@ -1,15 +1,21 @@
1
1
  import { Node } from "../../nodes/Nodes.js";
2
2
  import Renderer from "./Renderer.js";
3
3
 
4
- export default class PostProcessing {
4
+ declare class PostProcessing {
5
5
  renderer: Renderer;
6
6
  outputNode: Node;
7
7
 
8
+ outputColorTransform: boolean;
9
+
10
+ needsUpdate: boolean;
11
+
8
12
  constructor(renderer: Renderer, outputNode?: Node);
9
13
 
10
14
  render(): void;
11
15
 
12
- renderAsync(): Promise<void>;
16
+ update(): void;
13
17
 
14
- set needsUpdate(value: boolean);
18
+ renderAsync(): Promise<void>;
15
19
  }
20
+
21
+ export default PostProcessing;
@@ -1,5 +1,7 @@
1
- import { Material, Mesh, OrthographicCamera } from "three";
2
- import Renderer from "../renderers/common/Renderer.js";
1
+ import { OrthographicCamera } from "../../cameras/OrthographicCamera.js";
2
+ import { Material } from "../../materials/Material.js";
3
+ import { Mesh } from "../../objects/Mesh.js";
4
+ import Renderer from "./Renderer.js";
3
5
 
4
6
  export default class QuadMesh extends Mesh {
5
7
  camera: OrthographicCamera;
@@ -1,4 +1,5 @@
1
- import { Camera, Object3D } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Object3D } from "../../core/Object3D.js";
2
3
  declare class RenderBundle {
3
4
  scene: Object3D;
4
5
  camera: Camera;
@@ -1,4 +1,5 @@
1
- import { Camera, Object3D } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Object3D } from "../../core/Object3D.js";
2
3
  import ChainMap from "./ChainMap.js";
3
4
  import RenderBundle from "./RenderBundle.js";
4
5
  declare class RenderBundles {
@@ -1,4 +1,7 @@
1
- import { DepthTexture, RenderTarget, Texture, Vector4 } from "three";
1
+ import { RenderTarget } from "../../core/RenderTarget.js";
2
+ import { Vector4 } from "../../math/Vector4.js";
3
+ import { DepthTexture } from "../../textures/DepthTexture.js";
4
+ import { Texture } from "../../textures/Texture.js";
2
5
  import ClippingContext from "./ClippingContext.js";
3
6
  declare class RenderContext {
4
7
  id: number;
@@ -1,4 +1,6 @@
1
- import { Camera, RenderTarget, Scene } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { RenderTarget } from "../../core/RenderTarget.js";
3
+ import { Scene } from "../../scenes/Scene.js";
2
4
  import ChainMap from "./ChainMap.js";
3
5
  import RenderContext from "./RenderContext.js";
4
6
  declare class RenderContexts {
@@ -1,4 +1,8 @@
1
- import { BufferGeometry, Camera, GeometryGroup, Light, Material, Object3D } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { BufferGeometry, GeometryGroup } from "../../core/BufferGeometry.js";
3
+ import { Object3D } from "../../core/Object3D.js";
4
+ import { Light } from "../../lights/Light.js";
5
+ import { Material } from "../../materials/Material.js";
2
6
  import { LightsNode } from "../../nodes/Nodes.js";
3
7
  export interface Bundle {
4
8
  object: Object3D;
@@ -1,4 +1,5 @@
1
- import { Camera, Object3D } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Object3D } from "../../core/Object3D.js";
2
3
  import ChainMap from "./ChainMap.js";
3
4
  import RenderList from "./RenderList.js";
4
5
  declare class RenderLists {
@@ -1,14 +1,12 @@
1
- import {
2
- BufferAttribute,
3
- BufferGeometry,
4
- Camera,
5
- InterleavedBuffer,
6
- InterleavedBufferAttribute,
7
- Material,
8
- Object3D,
9
- Scene,
10
- } from "three";
11
- import LightsNode from "../../nodes/lighting/LightsNode.js";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { BufferAttribute } from "../../core/BufferAttribute.js";
3
+ import { BufferGeometry } from "../../core/BufferGeometry.js";
4
+ import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
5
+ import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
6
+ import { Object3D } from "../../core/Object3D.js";
7
+ import { Material } from "../../materials/Material.js";
8
+ import { LightsNode } from "../../nodes/Nodes.js";
9
+ import { Scene } from "../../scenes/Scene.js";
12
10
  import BindGroup from "./BindGroup.js";
13
11
  import ClippingContext from "./ClippingContext.js";
14
12
  import Geometries from "./Geometries.js";
@@ -62,12 +60,17 @@ export default class RenderObject {
62
60
  getNodeBuilderState(): NodeBuilderState;
63
61
  getBindings(): BindGroup[];
64
62
  getIndex(): BufferAttribute | null;
65
- getChainArray(): readonly [Object3D<import("three").Object3DEventMap>, Material, RenderContext, LightsNode];
63
+ getChainArray(): readonly [
64
+ Object3D<import("../../core/Object3D.js").Object3DEventMap>,
65
+ Material,
66
+ RenderContext,
67
+ LightsNode,
68
+ ];
66
69
  getAttributes(): (InterleavedBufferAttribute | BufferAttribute)[];
67
70
  getVertexBuffers(): (InterleavedBuffer | BufferAttribute)[] | null;
68
71
  getMaterialCacheKey(): string;
69
72
  get needsUpdate(): boolean;
70
- getNodesCacheKey(): string;
73
+ getDynamicCacheKey(): string;
71
74
  getCacheKey(): string;
72
75
  dispose(): void;
73
76
  }
@@ -1,5 +1,8 @@
1
- import { Camera, Material, Object3D, Scene } from "three";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { Object3D } from "../../core/Object3D.js";
3
+ import { Material } from "../../materials/Material.js";
2
4
  import LightsNode from "../../nodes/lighting/LightsNode.js";
5
+ import { Scene } from "../../scenes/Scene.js";
3
6
  import Bindings from "./Bindings.js";
4
7
  import ChainMap from "./ChainMap.js";
5
8
  import Geometries from "./Geometries.js";
@@ -39,7 +42,7 @@ declare class RenderObjects {
39
42
  getChainMap(
40
43
  passId?: string,
41
44
  ): ChainMap<
42
- readonly [Object3D<import("three").Object3DEventMap>, Material, RenderContext, LightsNode],
45
+ readonly [Object3D<import("../../core/Object3D.js").Object3DEventMap>, Material, RenderContext, LightsNode],
43
46
  RenderObject
44
47
  >;
45
48
  dispose(): void;
@@ -1,27 +1,19 @@
1
- /// <reference types="webxr" />
2
- import {
3
- Box2,
4
- BufferAttribute,
5
- BufferGeometry,
6
- Camera,
7
- Color,
8
- ColorSpace,
9
- FramebufferTexture,
10
- GeometryGroup,
11
- Material,
12
- Object3D,
13
- Plane,
14
- RenderTarget,
15
- Scene,
16
- ShadowMapType,
17
- Texture,
18
- ToneMapping,
19
- Vector2,
20
- Vector4,
21
- } from "three";
22
- import Node from "../../nodes/core/Node.js";
23
- import ComputeNode from "../../nodes/gpgpu/ComputeNode.js";
24
- import LightsNode from "../../nodes/lighting/LightsNode.js";
1
+ import { Camera } from "../../cameras/Camera.js";
2
+ import { ColorSpace, ShadowMapType, ToneMapping } from "../../constants.js";
3
+ import { BufferAttribute } from "../../core/BufferAttribute.js";
4
+ import { BufferGeometry, GeometryGroup } from "../../core/BufferGeometry.js";
5
+ import { Object3D } from "../../core/Object3D.js";
6
+ import { RenderTarget } from "../../core/RenderTarget.js";
7
+ import { Material } from "../../materials/Material.js";
8
+ import { Box2 } from "../../math/Box2.js";
9
+ import { Color } from "../../math/Color.js";
10
+ import { Plane } from "../../math/Plane.js";
11
+ import { Vector2 } from "../../math/Vector2.js";
12
+ import { Vector4 } from "../../math/Vector4.js";
13
+ import { ComputeNode, LightsNode, MRTNode } from "../../nodes/Nodes.js";
14
+ import { Scene } from "../../scenes/Scene.js";
15
+ import { FramebufferTexture } from "../../textures/FramebufferTexture.js";
16
+ import { Texture } from "../../textures/Texture.js";
25
17
  import Animation from "./Animation.js";
26
18
  import Attributes from "./Attributes.js";
27
19
  import Backend from "./Backend.js";
@@ -32,6 +24,7 @@ import Geometries from "./Geometries.js";
32
24
  import Info from "./Info.js";
33
25
  import Nodes from "./nodes/Nodes.js";
34
26
  import Pipelines from "./Pipelines.js";
27
+ import QuadMesh from "./QuadMesh.js";
35
28
  import RenderBundle from "./RenderBundle.js";
36
29
  import RenderBundles from "./RenderBundles.js";
37
30
  import RenderContext from "./RenderContext.js";
@@ -43,11 +36,14 @@ import Textures from "./Textures.js";
43
36
  export interface RendererParameters {
44
37
  logarithmicDepthBuffer?: boolean | undefined;
45
38
  alpha?: boolean | undefined;
39
+ antialias?: boolean | undefined;
40
+ samples?: number | undefined;
46
41
  }
47
42
  declare class Renderer {
48
43
  readonly isRenderer: true;
49
44
  domElement: HTMLCanvasElement;
50
45
  backend: Backend;
46
+ samples: number;
51
47
  autoClear: boolean;
52
48
  autoClearColor: boolean;
53
49
  autoClearDepth: boolean;
@@ -62,7 +58,6 @@ declare class Renderer {
62
58
  stencil: boolean;
63
59
  clippingPlanes: readonly Plane[];
64
60
  info: Info;
65
- toneMappingNode: Node | null;
66
61
  _pixelRatio: number;
67
62
  _width: number;
68
63
  _height: number;
@@ -81,6 +76,7 @@ declare class Renderer {
81
76
  _renderContexts: RenderContexts | null;
82
77
  _textures: Textures | null;
83
78
  _background: Background | null;
79
+ _quad: QuadMesh;
84
80
  _currentRenderContext: RenderContext | null;
85
81
  _opaqueSort: ((a: RenderItem, b: RenderItem) => number) | null;
86
82
  _transparentSort: ((a: RenderItem, b: RenderItem) => number) | null;
@@ -91,6 +87,7 @@ declare class Renderer {
91
87
  _renderTarget: RenderTarget | null;
92
88
  _activeCubeFace: number;
93
89
  _activeMipmapLevel: number;
90
+ _mrt: MRTNode | null;
94
91
  _renderObjectFunction:
95
92
  | ((
96
93
  object: Object3D,
@@ -126,6 +123,8 @@ declare class Renderer {
126
123
  _initialized: boolean;
127
124
  _initPromise: Promise<void> | null;
128
125
  _compilationPromises: Promise<void>[] | null;
126
+ transparent: boolean;
127
+ opaque: boolean;
129
128
  shadowMap: {
130
129
  enabled: boolean;
131
130
  type: ShadowMapType | null;
@@ -147,9 +146,11 @@ declare class Renderer {
147
146
  localClippingEnabled?: boolean | undefined;
148
147
  constructor(backend: Backend, parameters?: RendererParameters);
149
148
  init(): Promise<void>;
150
- get coordinateSystem(): import("three").CoordinateSystem;
149
+ get coordinateSystem(): import("../../constants.js").CoordinateSystem;
151
150
  compileAsync(scene: Scene, camera: Camera, targetScene?: Scene | null): Promise<void>;
152
151
  renderAsync(scene: Scene, camera: Camera): Promise<void>;
152
+ setMRT(mrt: MRTNode | null): this;
153
+ getMRT(): MRTNode | null;
153
154
  _renderBundle(bundle: Bundle, sceneRef: Scene, lightsNode: LightsNode): void;
154
155
  render(scene: Scene, camera: Camera): Promise<void> | undefined;
155
156
  _getFrameBufferTarget(): RenderTarget<Texture> | null;
@@ -212,10 +213,10 @@ declare class Renderer {
212
213
  ): void;
213
214
  getRenderObjectFunction():
214
215
  | ((
215
- object: Object3D<import("three").Object3DEventMap>,
216
+ object: Object3D,
216
217
  scene: Scene,
217
218
  camera: Camera,
218
- geometry: BufferGeometry<import("three").NormalBufferAttributes>,
219
+ geometry: BufferGeometry,
219
220
  material: Material,
220
221
  group: GeometryGroup,
221
222
  lightsNode: LightsNode,
@@ -239,7 +240,7 @@ declare class Renderer {
239
240
  width: number,
240
241
  height: number,
241
242
  index?: number,
242
- ): Promise<import("three").TypedArray>;
243
+ ): Promise<import("../../core/BufferAttribute.js").TypedArray>;
243
244
  _projectObject(object: Object3D, camera: Camera, groupOrder: number, renderList: RenderList): void;
244
245
  _renderBundles(bundles: Bundle[], sceneRef: Scene, lightsNode: LightsNode): void;
245
246
  _renderObjects(renderList: RenderItem[], camera: Camera, scene: Scene, lightsNode: LightsNode): void;
@@ -1,4 +1,4 @@
1
- import { Texture } from "three";
1
+ import { Texture } from "../../textures/Texture.js";
2
2
  import Binding from "./Binding.js";
3
3
 
4
4
  declare class SampledTexture extends Binding {
@@ -1,4 +1,4 @@
1
- import { BufferAttribute, TypedArray } from "three";
1
+ import { BufferAttribute, TypedArray } from "../../core/BufferAttribute.js";
2
2
 
3
3
  export default class StorageBufferAttribute extends BufferAttribute {
4
4
  readonly isStorageBufferAttribute: true;
@@ -1,4 +1,5 @@
1
- import { InstancedBufferAttribute, TypedArray } from "three";
1
+ import { TypedArray } from "../../core/BufferAttribute.js";
2
+ import { InstancedBufferAttribute } from "../../core/InstancedBufferAttribute.js";
2
3
 
3
4
  export default class StorageInstancedBufferAttribute extends InstancedBufferAttribute {
4
5
  readonly isStorageInstancedBufferAttribute: true;
@@ -1,4 +1,4 @@
1
- import { Texture } from "three";
1
+ import { Texture } from "../../textures/Texture.js";
2
2
 
3
3
  export default class StorageTexture extends Texture {
4
4
  constructor(width?: number, height?: number);
@@ -1,4 +1,7 @@
1
- import { DepthTexture, RenderTarget, Texture, Vector3 } from "three";
1
+ import { RenderTarget } from "../../core/RenderTarget.js";
2
+ import { Vector3 } from "../../math/Vector3.js";
3
+ import { DepthTexture } from "../../textures/DepthTexture.js";
4
+ import { Texture } from "../../textures/Texture.js";
2
5
  import Backend from "./Backend.js";
3
6
  import DataMap from "./DataMap.js";
4
7
  import Info from "./Info.js";
@@ -1,4 +1,9 @@
1
- import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from "three";
1
+ import { Color } from "../../math/Color.js";
2
+ import { Matrix3 } from "../../math/Matrix3.js";
3
+ import { Matrix4 } from "../../math/Matrix4.js";
4
+ import { Vector2 } from "../../math/Vector2.js";
5
+ import { Vector3 } from "../../math/Vector3.js";
6
+ import { Vector4 } from "../../math/Vector4.js";
2
7
  declare class Uniform<TValue> {
3
8
  name: string;
4
9
  value: TValue;
@@ -1,4 +1,5 @@
1
- import { RenderTarget, Scene } from "three";
1
+ import { RenderTarget } from "../../../core/RenderTarget.js";
2
+ import { Scene } from "../../../scenes/Scene.js";
2
3
  import Renderer from "../Renderer.js";
3
4
 
4
5
  export default class PMREMGenerator {
@@ -1,4 +1,9 @@
1
- import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from "three";
1
+ import { Color } from "../../../math/Color.js";
2
+ import { Matrix3 } from "../../../math/Matrix3.js";
3
+ import { Matrix4 } from "../../../math/Matrix4.js";
4
+ import { Vector2 } from "../../../math/Vector2.js";
5
+ import { Vector3 } from "../../../math/Vector3.js";
6
+ import { Vector4 } from "../../../math/Vector4.js";
2
7
  import NodeUniform from "../../../nodes/core/NodeUniform.js";
3
8
  import {
4
9
  ColorUniform,
@@ -1,5 +1,4 @@
1
- import UniformGroupNode from "../../../nodes/core/UniformGroupNode.js";
2
- import UniformNode from "../../../nodes/core/UniformNode.js";
1
+ import { UniformGroupNode, UniformNode } from "../../../nodes/Nodes.js";
3
2
  import UniformsGroup from "../UniformsGroup.js";
4
3
  declare class NodeUniformsGroup extends UniformsGroup {
5
4
  id: number;
@@ -1,10 +1,21 @@
1
- import { Camera, Color, CubeTexture, FogBase, Material, Object3D, Scene, Texture } from "three";
2
- import Node from "../../../nodes/core/Node.js";
3
- import NodeBuilder from "../../../nodes/core/NodeBuilder.js";
4
- import UniformGroupNode from "../../../nodes/core/UniformGroupNode.js";
5
- import ComputeNode from "../../../nodes/gpgpu/ComputeNode.js";
6
- import LightsNode from "../../../nodes/lighting/LightsNode.js";
7
- import { NodeFrame, ShaderNodeObject } from "../../../nodes/Nodes.js";
1
+ import { Camera } from "../../../cameras/Camera.js";
2
+ import { Object3D } from "../../../core/Object3D.js";
3
+ import { Material } from "../../../materials/Material.js";
4
+ import { Color } from "../../../math/Color.js";
5
+ import {
6
+ ComputeNode,
7
+ LightsNode,
8
+ Node,
9
+ NodeBuilder,
10
+ NodeFrame,
11
+ ShaderNodeObject,
12
+ UniformGroupNode,
13
+ } from "../../../nodes/Nodes.js";
14
+ import { Fog } from "../../../scenes/Fog.js";
15
+ import { FogExp2 } from "../../../scenes/FogExp2.js";
16
+ import { Scene } from "../../../scenes/Scene.js";
17
+ import { CubeTexture } from "../../../textures/CubeTexture.js";
18
+ import { Texture } from "../../../textures/Texture.js";
8
19
  import Backend from "../Backend.js";
9
20
  import ChainMap from "../ChainMap.js";
10
21
  import DataMap from "../DataMap.js";
@@ -25,7 +36,7 @@ interface ComputeNodeData {
25
36
  interface SceneData {
26
37
  background?: Color | Texture | CubeTexture | undefined;
27
38
  backgroundNode?: Node | undefined;
28
- fog?: FogBase | undefined;
39
+ fog?: Fog | FogExp2 | undefined;
29
40
  fogNode?: Node | undefined;
30
41
  environment?: Texture | undefined;
31
42
  environmentNode?: Node | undefined;
@@ -85,6 +96,8 @@ declare class Nodes extends DataMap<{
85
96
  material?: Material | null,
86
97
  ): NodeFrame;
87
98
  getNodeFrameForRender(renderObject: RenderObject): NodeFrame;
99
+ getOutputCacheKey(): string;
100
+ hasOutputChange(outputTarget: Texture): boolean;
88
101
  getOutputNode(outputTexture: Texture): ShaderNodeObject<Node>;
89
102
  updateBefore(renderObject: RenderObject): void;
90
103
  updateAfter(renderObject: RenderObject): void;