@types/three 0.158.3 → 0.160.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (230) hide show
  1. three/README.md +1 -1
  2. three/examples/jsm/Addons.d.ts +2 -1
  3. three/examples/jsm/cameras/CinematicCamera.d.ts +1 -1
  4. three/examples/jsm/helpers/TextureHelper.d.ts +10 -0
  5. three/examples/jsm/lines/LineMaterial.d.ts +2 -2
  6. three/examples/jsm/loaders/ColladaLoader.d.ts +1 -3
  7. three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
  8. three/examples/jsm/loaders/KTX2Loader.d.ts +2 -8
  9. three/examples/jsm/loaders/MaterialXLoader.d.ts +6 -0
  10. three/examples/jsm/loaders/SVGLoader.d.ts +1 -5
  11. three/examples/jsm/math/Octree.d.ts +7 -3
  12. three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
  13. three/examples/jsm/misc/Timer.d.ts +80 -0
  14. three/examples/jsm/nodes/Nodes.d.ts +238 -60
  15. three/examples/jsm/nodes/accessors/BitangentNode.d.ts +9 -0
  16. three/examples/jsm/nodes/accessors/BufferNode.d.ts +4 -1
  17. three/examples/jsm/nodes/accessors/CameraNode.d.ts +7 -0
  18. three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +9 -2
  19. three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -0
  20. three/examples/jsm/nodes/accessors/MaterialNode.d.ts +12 -0
  21. three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +7 -0
  22. three/examples/jsm/nodes/accessors/ModelNode.d.ts +7 -1
  23. three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +3 -0
  24. three/examples/jsm/nodes/accessors/NormalNode.d.ts +8 -0
  25. three/examples/jsm/nodes/accessors/PointUVNode.d.ts +3 -0
  26. three/examples/jsm/nodes/accessors/PositionNode.d.ts +8 -0
  27. three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +4 -1
  28. three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -0
  29. three/examples/jsm/nodes/accessors/SkinningNode.d.ts +3 -0
  30. three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +8 -1
  31. three/examples/jsm/nodes/accessors/TangentNode.d.ts +9 -0
  32. three/examples/jsm/nodes/accessors/TextureNode.d.ts +10 -2
  33. three/examples/jsm/nodes/accessors/UVNode.d.ts +3 -0
  34. three/examples/jsm/nodes/accessors/UserDataNode.d.ts +7 -0
  35. three/examples/jsm/nodes/code/CodeNode.d.ts +4 -0
  36. three/examples/jsm/nodes/code/ExpressionNode.d.ts +3 -0
  37. three/examples/jsm/nodes/code/FunctionCallNode.d.ts +7 -1
  38. three/examples/jsm/nodes/code/FunctionNode.d.ts +17 -0
  39. three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +1 -1
  40. three/examples/jsm/nodes/core/AttributeNode.d.ts +3 -0
  41. three/examples/jsm/nodes/core/BypassNode.d.ts +3 -0
  42. three/examples/jsm/nodes/core/CacheNode.d.ts +3 -0
  43. three/examples/jsm/nodes/core/ConstNode.d.ts +3 -3
  44. three/examples/jsm/nodes/core/ContextNode.d.ts +3 -0
  45. three/examples/jsm/nodes/core/InputNode.d.ts +4 -4
  46. three/examples/jsm/nodes/core/NodeBuilder.d.ts +6 -3
  47. three/examples/jsm/nodes/core/NodeUniform.d.ts +12 -8
  48. three/examples/jsm/nodes/core/NodeUtils.d.ts +6 -3
  49. three/examples/jsm/nodes/core/PropertyNode.d.ts +9 -0
  50. three/examples/jsm/nodes/core/UniformNode.d.ts +12 -4
  51. three/examples/jsm/nodes/core/VarNode.d.ts +4 -0
  52. three/examples/jsm/nodes/core/VaryingNode.d.ts +3 -0
  53. three/examples/jsm/nodes/core/constants.d.ts +10 -8
  54. three/examples/jsm/nodes/display/BlendModeNode.d.ts +7 -2
  55. three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +18 -1
  56. three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +4 -0
  57. three/examples/jsm/nodes/display/FrontFacingNode.d.ts +4 -0
  58. three/examples/jsm/nodes/display/NormalMapNode.d.ts +7 -1
  59. three/examples/jsm/nodes/display/PosterizeNode.d.ts +6 -0
  60. three/examples/jsm/nodes/display/ToneMappingNode.d.ts +8 -1
  61. three/examples/jsm/nodes/display/ViewportNode.d.ts +8 -0
  62. three/examples/jsm/nodes/fog/FogExp2Node.d.ts +3 -0
  63. three/examples/jsm/nodes/fog/FogNode.d.ts +3 -0
  64. three/examples/jsm/nodes/fog/FogRangeNode.d.ts +3 -0
  65. three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
  66. three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
  67. three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
  68. three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +1 -1
  69. three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
  70. three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
  71. three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +1 -1
  72. three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
  73. three/examples/jsm/nodes/functions/material/getRoughness.d.ts +1 -1
  74. three/examples/jsm/nodes/geometry/RangeNode.d.ts +3 -0
  75. three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +7 -0
  76. three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +6 -1
  77. three/examples/jsm/nodes/lighting/LightsNode.d.ts +3 -0
  78. three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +18 -5
  79. three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -3
  80. three/examples/jsm/nodes/materials/NodeMaterial.d.ts +25 -2
  81. three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +43 -34
  82. three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +5 -3
  83. three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +7 -5
  84. three/examples/jsm/nodes/math/CondNode.d.ts +7 -0
  85. three/examples/jsm/nodes/math/MathNode.d.ts +134 -1
  86. three/examples/jsm/nodes/math/OperatorNode.d.ts +51 -0
  87. three/examples/jsm/nodes/procedural/CheckerNode.d.ts +3 -0
  88. three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +75 -33
  89. three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +4 -2
  90. three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +3 -0
  91. three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +6 -3
  92. three/examples/jsm/nodes/utils/OscNode.d.ts +6 -0
  93. three/examples/jsm/nodes/utils/RemapNode.d.ts +4 -0
  94. three/examples/jsm/nodes/utils/RotateUVNode.d.ts +3 -0
  95. three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +5 -1
  96. three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +7 -0
  97. three/examples/jsm/nodes/utils/TimerNode.d.ts +7 -1
  98. three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +22 -7
  99. three/examples/jsm/objects/QuadMesh.d.ts +13 -0
  100. three/examples/jsm/postprocessing/GTAOPass.d.ts +118 -0
  101. three/examples/jsm/renderers/common/Info.d.ts +7 -2
  102. three/examples/jsm/renderers/common/Renderer.d.ts +2 -2
  103. three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +3 -0
  104. three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +1 -0
  105. three/examples/jsm/shaders/GTAOShader.d.ts +59 -0
  106. three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +28 -0
  107. three/examples/jsm/utils/SortUtils.d.ts +7 -0
  108. three/package.json +3 -3
  109. three/src/Three.d.ts +2 -0
  110. three/src/animation/AnimationClip.d.ts +2 -2
  111. three/src/animation/AnimationMixer.d.ts +1 -1
  112. three/src/animation/KeyframeTrack.d.ts +3 -3
  113. three/src/animation/tracks/BooleanKeyframeTrack.d.ts +1 -1
  114. three/src/animation/tracks/ColorKeyframeTrack.d.ts +1 -1
  115. three/src/animation/tracks/NumberKeyframeTrack.d.ts +1 -1
  116. three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +1 -1
  117. three/src/animation/tracks/StringKeyframeTrack.d.ts +1 -1
  118. three/src/animation/tracks/VectorKeyframeTrack.d.ts +1 -1
  119. three/src/audio/Audio.d.ts +1 -1
  120. three/src/audio/AudioListener.d.ts +1 -1
  121. three/src/constants.d.ts +3 -1
  122. three/src/core/BufferAttribute.d.ts +27 -0
  123. three/src/core/BufferGeometry.d.ts +1 -1
  124. three/src/core/InterleavedBuffer.d.ts +27 -0
  125. three/src/core/InterleavedBufferAttribute.d.ts +2 -2
  126. three/src/core/Object3D.d.ts +48 -14
  127. three/src/core/Raycaster.d.ts +1 -0
  128. three/src/core/UniformsGroup.d.ts +3 -3
  129. three/src/extras/core/Curve.d.ts +2 -2
  130. three/src/extras/core/Path.d.ts +1 -1
  131. three/src/extras/core/Shape.d.ts +1 -1
  132. three/src/extras/core/ShapePath.d.ts +1 -1
  133. three/src/extras/curves/CatmullRomCurve3.d.ts +2 -2
  134. three/src/extras/curves/CubicBezierCurve.d.ts +2 -2
  135. three/src/extras/curves/CubicBezierCurve3.d.ts +2 -2
  136. three/src/extras/curves/EllipseCurve.d.ts +1 -1
  137. three/src/extras/curves/LineCurve.d.ts +2 -2
  138. three/src/extras/curves/LineCurve3.d.ts +2 -2
  139. three/src/extras/curves/QuadraticBezierCurve.d.ts +2 -2
  140. three/src/extras/curves/QuadraticBezierCurve3.d.ts +2 -2
  141. three/src/extras/curves/SplineCurve.d.ts +2 -2
  142. three/src/geometries/ExtrudeGeometry.d.ts +5 -5
  143. three/src/geometries/LatheGeometry.d.ts +2 -2
  144. three/src/geometries/PlaneGeometry.d.ts +1 -1
  145. three/src/geometries/PolyhedronGeometry.d.ts +1 -1
  146. three/src/geometries/RingGeometry.d.ts +1 -1
  147. three/src/geometries/ShapeGeometry.d.ts +2 -2
  148. three/src/geometries/SphereGeometry.d.ts +1 -1
  149. three/src/geometries/TorusGeometry.d.ts +1 -1
  150. three/src/geometries/TorusKnotGeometry.d.ts +1 -1
  151. three/src/geometries/TubeGeometry.d.ts +3 -3
  152. three/src/geometries/WireframeGeometry.d.ts +1 -1
  153. three/src/helpers/ArrowHelper.d.ts +4 -4
  154. three/src/helpers/AxesHelper.d.ts +1 -1
  155. three/src/helpers/Box3Helper.d.ts +3 -3
  156. three/src/helpers/CameraHelper.d.ts +2 -2
  157. three/src/helpers/DirectionalLightHelper.d.ts +6 -4
  158. three/src/helpers/GridHelper.d.ts +1 -1
  159. three/src/helpers/HemisphereLightHelper.d.ts +4 -4
  160. three/src/helpers/PlaneHelper.d.ts +2 -2
  161. three/src/helpers/PointLightHelper.d.ts +3 -3
  162. three/src/helpers/SkeletonHelper.d.ts +4 -4
  163. three/src/helpers/SpotLightHelper.d.ts +3 -3
  164. three/src/lights/DirectionalLight.d.ts +1 -1
  165. three/src/lights/DirectionalLightShadow.d.ts +1 -1
  166. three/src/lights/HemisphereLight.d.ts +1 -1
  167. three/src/lights/LightProbe.d.ts +1 -1
  168. three/src/lights/LightShadow.d.ts +5 -5
  169. three/src/lights/PointLight.d.ts +7 -0
  170. three/src/lights/PointLightShadow.d.ts +1 -1
  171. three/src/lights/SpotLight.d.ts +1 -1
  172. three/src/lights/SpotLightShadow.d.ts +1 -1
  173. three/src/loaders/MaterialLoader.d.ts +6 -3
  174. three/src/materials/LineBasicMaterial.d.ts +7 -0
  175. three/src/materials/LineDashedMaterial.d.ts +7 -1
  176. three/src/materials/Material.d.ts +16 -16
  177. three/src/materials/MeshBasicMaterial.d.ts +9 -2
  178. three/src/materials/MeshDepthMaterial.d.ts +7 -1
  179. three/src/materials/MeshDistanceMaterial.d.ts +9 -2
  180. three/src/materials/MeshLambertMaterial.d.ts +9 -2
  181. three/src/materials/MeshMatcapMaterial.d.ts +10 -3
  182. three/src/materials/MeshNormalMaterial.d.ts +9 -2
  183. three/src/materials/MeshPhongMaterial.d.ts +10 -3
  184. three/src/materials/MeshPhysicalMaterial.d.ts +6 -1
  185. three/src/materials/MeshStandardMaterial.d.ts +10 -5
  186. three/src/materials/MeshToonMaterial.d.ts +10 -3
  187. three/src/materials/PointsMaterial.d.ts +9 -2
  188. three/src/materials/RawShaderMaterial.d.ts +9 -0
  189. three/src/materials/ShaderMaterial.d.ts +9 -3
  190. three/src/materials/ShadowMaterial.d.ts +8 -1
  191. three/src/materials/SpriteMaterial.d.ts +9 -4
  192. three/src/math/Box3.d.ts +2 -2
  193. three/src/math/Frustum.d.ts +2 -2
  194. three/src/math/Matrix4.d.ts +30 -30
  195. three/src/math/Sphere.d.ts +5 -0
  196. three/src/math/Triangle.d.ts +8 -8
  197. three/src/math/Vector2.d.ts +1 -1
  198. three/src/math/Vector4.d.ts +1 -1
  199. three/src/objects/BatchedMesh.d.ts +169 -0
  200. three/src/objects/Bone.d.ts +1 -1
  201. three/src/objects/LOD.d.ts +2 -4
  202. three/src/objects/Line.d.ts +2 -4
  203. three/src/objects/LineLoop.d.ts +1 -1
  204. three/src/objects/LineSegments.d.ts +1 -1
  205. three/src/objects/Skeleton.d.ts +2 -8
  206. three/src/objects/SkinnedMesh.d.ts +1 -2
  207. three/src/renderers/WebGL3DRenderTarget.d.ts +7 -5
  208. three/src/renderers/WebGLArrayRenderTarget.d.ts +7 -5
  209. three/src/renderers/WebGLCubeRenderTarget.d.ts +2 -2
  210. three/src/renderers/WebGLRenderTarget.d.ts +1 -1
  211. three/src/renderers/shaders/ShaderChunk.d.ts +1 -0
  212. three/src/renderers/shaders/ShaderLib.d.ts +18 -18
  213. three/src/renderers/shaders/UniformsUtils.d.ts +3 -2
  214. three/src/renderers/webgl/WebGLAttributes.d.ts +1 -0
  215. three/src/renderers/webgl/WebGLBindingStates.d.ts +4 -4
  216. three/src/renderers/webgl/WebGLBufferRenderer.d.ts +4 -3
  217. three/src/renderers/webgl/WebGLClipping.d.ts +2 -2
  218. three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +5 -4
  219. three/src/renderers/webgl/WebGLLights.d.ts +39 -37
  220. three/src/renderers/webgl/WebGLPrograms.d.ts +225 -10
  221. three/src/renderers/webgl/WebGLRenderLists.d.ts +5 -5
  222. three/src/renderers/webgl/WebGLShadowMap.d.ts +2 -2
  223. three/src/scenes/Fog.d.ts +1 -1
  224. three/src/scenes/FogExp2.d.ts +1 -1
  225. three/src/textures/CompressedCubeTexture.d.ts +13 -0
  226. three/src/textures/Texture.d.ts +1 -1
  227. three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -310
  228. three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -166
  229. three/examples/jsm/objects/BatchedMesh.d.ts +0 -57
  230. three/examples/jsm/renderers/common/Animation.d.ts +0 -16
@@ -1,166 +0,0 @@
1
- import Node from '../core/Node.js';
2
- import RangeNode, { RangeModeBound } from '../geometry/RangeNode.js';
3
- import { NodeRepresentation, Swizzable } from './ShaderNode.js';
4
- import {
5
- CubeTexture,
6
- InstancedMesh,
7
- Light,
8
- SkinnedMesh,
9
- Texture,
10
- TextureEncoding,
11
- ToneMapping,
12
- } from '../../../../src/Three.js';
13
- import LightingContextNode, { LightingModelNode } from '../lighting/LightingContextNode.js';
14
- import {
15
- BlendModeNode,
16
- CheckerNode,
17
- ColorAdjustmentNode,
18
- ColorSpaceNode,
19
- CubeTextureNode,
20
- EquirectUVNode,
21
- FogNode,
22
- FogRangeNode,
23
- FogExp2Node,
24
- InstanceNode,
25
- LightsNode,
26
- MatcapUVNode,
27
- NormalMapNode,
28
- OscNode,
29
- PosterizeNode,
30
- RemapNode,
31
- ReflectVectorNode,
32
- RotateUVNode,
33
- SkinningNode,
34
- SpriteSheetUVNode,
35
- TimerNode,
36
- ToneMappingNode,
37
- TriplanarTexturesNode,
38
- SpecularMIPLevelNode,
39
- ViewportNode,
40
- } from '../Nodes.js';
41
-
42
- //
43
- // Node Material Shader Syntax
44
- //
45
-
46
- // shader node base
47
-
48
- export * from './ShaderNodeBaseElements.js';
49
-
50
- // functions
51
-
52
- export { default as BRDF_GGX } from '../functions/BSDF/BRDF_GGX.js'; // see https://github.com/tc39/proposal-export-default-from
53
- export { default as BRDF_Lambert } from '../functions/BSDF/BRDF_Lambert.js';
54
- export { default as D_GGX } from '../functions/BSDF/D_GGX.js';
55
- export { default as DFGApprox } from '../functions/BSDF/DFGApprox.js';
56
- export { default as F_Schlick } from '../functions/BSDF/F_Schlick.js';
57
- export { default as V_GGX_SmithCorrelated } from '../functions/BSDF/V_GGX_SmithCorrelated.js';
58
-
59
- export { default as getGeometryRoughness } from '../functions/material/getGeometryRoughness.js';
60
- export { default as getRoughness } from '../functions/material/getRoughness.js';
61
-
62
- export { default as PhysicalLightingModel } from '../functions/PhysicalLightingModel.js';
63
-
64
- // accessors
65
-
66
- export function cubeTexture(
67
- value: CubeTexture,
68
- uvNode?: NodeRepresentation,
69
- levelNode?: NodeRepresentation,
70
- ): Swizzable<CubeTextureNode>;
71
- export function instance(instanceMesh: InstancedMesh): Swizzable<InstanceNode>;
72
- export const reflectVector: Swizzable<ReflectVectorNode>;
73
- export function skinning(skinnedMesh: SkinnedMesh): Swizzable<SkinningNode>;
74
-
75
- // display
76
-
77
- export function burn(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
78
- export function dodge(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
79
- export function overlay(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
80
- export function screen(baseNode: NodeRepresentation, blendNode?: NodeRepresentation): Swizzable<BlendModeNode>;
81
-
82
- export function saturation(
83
- colorNode: NodeRepresentation,
84
- adjustmentNode?: NodeRepresentation,
85
- ): Swizzable<ColorAdjustmentNode>;
86
- export function vibrance(
87
- colorNode: NodeRepresentation,
88
- adjustmentNode?: NodeRepresentation,
89
- ): Swizzable<ColorAdjustmentNode>;
90
- export function hue(colorNode: NodeRepresentation, adjustmentNode?: NodeRepresentation): Swizzable<ColorAdjustmentNode>;
91
-
92
- export function colorSpace(node: NodeRepresentation, encoding: TextureEncoding): Swizzable<ColorSpaceNode>;
93
- export function normalMap(node: Node, scaleNode?: Node): Swizzable<NormalMapNode>;
94
- export function toneMapping(
95
- mapping: ToneMapping,
96
- exposure: NodeRepresentation,
97
- color: NodeRepresentation,
98
- ): Swizzable<ToneMappingNode>;
99
-
100
- export function posterize(sourceNode: NodeRepresentation, stepsNode: NodeRepresentation): Swizzable<PosterizeNode>;
101
-
102
- export const viewportCoordinate: Swizzable<ViewportNode>;
103
- export const viewportResolution: Swizzable<ViewportNode>;
104
- export const viewportTopLeft: Swizzable<ViewportNode>;
105
- export const viewportBottomLeft: Swizzable<ViewportNode>;
106
- export const viewportTopRight: Swizzable<ViewportNode>;
107
- export const viewportBottomRight: Swizzable<ViewportNode>;
108
-
109
- // lighting
110
-
111
- export function lights(lights: Light[]): Swizzable<LightsNode>;
112
- export function lightingContext(node: Node, lightingModelNode?: LightingModelNode): Swizzable<LightingContextNode>;
113
-
114
- // utils
115
-
116
- export const matcapUV: Swizzable<MatcapUVNode>;
117
- export const equirectUV: Swizzable<EquirectUVNode>;
118
-
119
- export function specularMIPLevel(): Swizzable<SpecularMIPLevelNode>;
120
-
121
- export function oscSine(timeNode?: NodeRepresentation): Swizzable<OscNode>;
122
- export function oscSquare(timeNode?: NodeRepresentation): Swizzable<OscNode>;
123
- export function oscTriangle(timeNode?: NodeRepresentation): Swizzable<OscNode>;
124
- export function oscSawtooth(timeNode?: NodeRepresentation): Swizzable<OscNode>;
125
-
126
- export function remap(node: Node, inLowNode: Node): Swizzable<RemapNode>;
127
- export function remapClamp(node: Node, inLowNode: Node): Swizzable<RemapNode>;
128
-
129
- export function rotateUV(uvNode: Node, rotationNode: Node, centerNode?: Node): Swizzable<RotateUVNode>;
130
-
131
- export function spritesheetUV(
132
- countNode: NodeRepresentation,
133
- uvNode?: NodeRepresentation,
134
- frameNode?: NodeRepresentation,
135
- ): Swizzable<SpriteSheetUVNode>;
136
-
137
- export function timerLocal(timeScale: number, value?: number): Swizzable<TimerNode>;
138
- export function timerGlobal(timeScale: number, value?: number): Swizzable<TimerNode>;
139
- export function timerDelta(timeScale: number, value?: number): Swizzable<TimerNode>;
140
- export const frameId: Swizzable<TimerNode>;
141
- export function triplanarTextures(
142
- textureXNode: NodeRepresentation,
143
- textureYNode?: NodeRepresentation,
144
- textureZNode?: NodeRepresentation,
145
- scaleNode?: NodeRepresentation,
146
- positionNode?: NodeRepresentation,
147
- normalNode?: NodeRepresentation,
148
- ): Swizzable<TriplanarTexturesNode>;
149
- export function triplanarTexture(
150
- texture: NodeRepresentation,
151
- ...params: NodeRepresentation[]
152
- ): Swizzable<TriplanarTexturesNode>;
153
-
154
- // geometry
155
-
156
- export function range(min: RangeModeBound, max: RangeModeBound): Swizzable<RangeNode>;
157
-
158
- // procedural
159
-
160
- export function checker(uvNode?: NodeRepresentation): Swizzable<CheckerNode>;
161
-
162
- // fog
163
-
164
- export function fog(colorNode: NodeRepresentation, factorNode: NodeRepresentation): Swizzable<FogNode>;
165
- export function rangeFog(colorNode: Node, nearNode: Node, farNode: Node): Swizzable<FogRangeNode>;
166
- export function exp2Fog(colorNode: Node, densityNode: Node): Swizzable<FogExp2Node>;
@@ -1,57 +0,0 @@
1
- import { Matrix4, Mesh, BufferGeometry, Material, DataTexture, IUniform } from '../../../src/Three.js';
2
-
3
- declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
4
- _vertexStarts: number[];
5
- _vertexCounts: number[];
6
- _indexStarts: number[];
7
- _indexCounts: number[];
8
-
9
- _visible: boolean[];
10
- _active: boolean[];
11
-
12
- _maxGeometryCount: number;
13
- _maxVertexCount: number;
14
- _maxIndexCount: number;
15
-
16
- _geometryInitialized: boolean;
17
- _geometryCount: number;
18
- _vertexCount: number;
19
- _indexCount: number;
20
-
21
- _matrices: Matrix4[];
22
- _matricesTexture: DataTexture | null;
23
-
24
- _customUniforms: Record<string, IUniform>;
25
-
26
- constructor(maxGeometryCount: number, maxVertexCount: number, maxIndexCount?: number, material?: Material);
27
-
28
- _initMatricesTexture(): void;
29
-
30
- _initShader(): void;
31
-
32
- _initializeGeometry(reference: BufferGeometry): void;
33
-
34
- getGeometryCount(): number;
35
-
36
- getVertexCount(): number;
37
-
38
- getIndexCount(): number;
39
-
40
- applyGeometry(geometry: BufferGeometry): number;
41
-
42
- deleteGeometry(geometryId: number): this;
43
-
44
- optimize(): never;
45
-
46
- setMatrixAt(geometryId: number, matrix: Matrix4): this;
47
-
48
- getMatrixAt(geometryId: number, matrix: Matrix4): Matrix4;
49
-
50
- setVisibleAt(geometryId: number, value: boolean): this;
51
-
52
- getVisibleAt(geometryId: number): boolean;
53
-
54
- dispose(): this;
55
- }
56
-
57
- export { BatchedMesh };
@@ -1,16 +0,0 @@
1
- export default class Animation {
2
- animationLoop: ((time: DOMHighResTimeStamp) => void) | null;
3
- requestId: number | null;
4
-
5
- isAnimating: boolean;
6
-
7
- context: Window;
8
-
9
- constructor();
10
-
11
- start(): void;
12
-
13
- stop(): void;
14
-
15
- setAnimationLoop(callback: ((time: DOMHighResTimeStamp) => void) | null): void;
16
- }