@types/three 0.168.0 → 0.170.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.
- three/README.md +1 -1
- three/build/three.webgpu.nodes.d.ts +1 -0
- three/build/three.webgpu.nodes.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +3 -10
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +4 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -0
- three/examples/jsm/controls/ArcballControls.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +0 -15
- three/examples/jsm/controls/TransformControls.d.ts +195 -24
- three/examples/jsm/csm/CSMFrustum.d.ts +8 -2
- three/examples/jsm/csm/CSMHelper.d.ts +2 -1
- three/examples/jsm/csm/CSMShadowNode.d.ts +46 -0
- three/examples/jsm/curves/NURBSCurve.d.ts +12 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +7 -2
- three/examples/jsm/exporters/GLTFExporter.d.ts +20 -3
- three/examples/jsm/exporters/KTX2Exporter.d.ts +3 -1
- three/examples/jsm/exporters/MMDExporter.d.ts +4 -0
- three/examples/jsm/exporters/USDZExporter.d.ts +4 -0
- three/examples/jsm/geometries/DecalGeometry.d.ts +9 -3
- three/examples/jsm/geometries/TeapotGeometry.d.ts +2 -2
- three/examples/jsm/helpers/LightProbeHelper.d.ts +5 -3
- three/examples/jsm/helpers/LightProbeHelperGPU.d.ts +12 -0
- three/examples/jsm/helpers/TextureHelperGPU.d.ts +10 -0
- three/examples/jsm/lighting/TiledLighting.d.ts +10 -0
- three/examples/jsm/lights/LightProbeGenerator.d.ts +5 -1
- three/examples/jsm/lines/Line2.d.ts +15 -1
- three/examples/jsm/lines/LineGeometry.d.ts +18 -1
- three/examples/jsm/lines/LineMaterial.d.ts +65 -12
- three/examples/jsm/lines/LineSegments2.d.ts +25 -2
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +46 -9
- three/examples/jsm/lines/Wireframe.d.ts +5 -2
- three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
- three/examples/jsm/lines/webgpu/Wireframe.d.ts +13 -0
- three/examples/jsm/loaders/DRACOLoader.d.ts +6 -0
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -2
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +10 -0
- three/examples/jsm/loaders/MMDLoader.d.ts +4 -0
- three/examples/jsm/materials/LDrawConditionalLineMaterial.d.ts +9 -0
- three/examples/jsm/materials/LDrawConditionalLineNodeMaterial.d.ts +9 -0
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -1
- three/examples/jsm/math/ColorSpaces.d.ts +11 -0
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +8 -10
- three/examples/jsm/misc/ProgressiveLightMapGPU.d.ts +27 -0
- three/examples/jsm/modifiers/CurveModifier.d.ts +7 -3
- three/examples/jsm/modifiers/CurveModifierGPU.d.ts +31 -0
- three/examples/jsm/objects/Lensflare.d.ts +13 -9
- three/examples/jsm/objects/LensflareMesh.d.ts +21 -0
- three/examples/jsm/renderers/SVGRenderer.d.ts +2 -2
- three/{src/nodes → examples/jsm/tsl}/display/AfterImageNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/AnaglyphPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/AnamorphicNode.d.ts +2 -4
- three/examples/jsm/tsl/display/BleachBypass.d.ts +3 -0
- three/{src/nodes → examples/jsm/tsl}/display/BloomNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/DenoiseNode.d.ts +2 -6
- three/{src/nodes → examples/jsm/tsl}/display/DepthOfFieldNode.d.ts +1 -5
- three/{src/nodes → examples/jsm/tsl}/display/DotScreenNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/FXAANode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/FilmNode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/GTAONode.d.ts +2 -8
- three/{src/nodes → examples/jsm/tsl}/display/GaussianBlurNode.d.ts +13 -5
- three/examples/jsm/tsl/display/LensflareNode.d.ts +35 -0
- three/{src/nodes → examples/jsm/tsl}/display/Lut3DNode.d.ts +2 -6
- three/{src/nodes → examples/jsm/tsl}/display/MotionBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +32 -0
- three/{src/nodes → examples/jsm/tsl}/display/ParallaxBarrierPassNode.d.ts +2 -3
- three/{src/nodes → examples/jsm/tsl}/display/PixelationPassNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/RGBShiftNode.d.ts +1 -4
- three/examples/jsm/tsl/display/SMAANode.d.ts +17 -0
- three/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.d.ts +2 -7
- three/examples/jsm/tsl/display/SSRNode.d.ts +38 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +3 -0
- three/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.d.ts +1 -3
- three/{src/nodes → examples/jsm/tsl}/display/StereoCompositePassNode.d.ts +2 -5
- three/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.d.ts +2 -5
- three/examples/jsm/tsl/display/TRAAPassNode.d.ts +15 -0
- three/{src/nodes → examples/jsm/tsl}/display/TransitionNode.d.ts +1 -5
- three/examples/jsm/tsl/display/hashBlur.d.ts +7 -0
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +22 -0
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +20 -4
- three/examples/jsm/utils/ShadowMapViewer.d.ts +8 -6
- three/examples/jsm/utils/ShadowMapViewerGPU.d.ts +26 -0
- three/examples/jsm/utils/SkeletonUtils.d.ts +25 -5
- three/examples/jsm/utils/WebGPUTextureUtils.d.ts +3 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.Nodes.d.ts +205 -0
- three/src/Three.WebGPU.d.ts +7 -2
- three/src/Three.d.ts +2 -7
- three/src/audio/Audio.d.ts +4 -1
- three/src/constants.d.ts +1 -9
- three/src/core/BufferAttribute.d.ts +0 -15
- three/src/core/BufferGeometry.d.ts +13 -2
- three/src/core/InterleavedBuffer.d.ts +0 -12
- three/src/core/Object3D.d.ts +1 -1
- three/src/core/Raycaster.d.ts +2 -1
- three/src/core/RenderTarget.d.ts +1 -2
- three/src/extras/Controls.d.ts +3 -3
- three/src/loaders/FileLoader.d.ts +3 -3
- three/src/loaders/MaterialLoader.d.ts +2 -0
- three/src/loaders/nodes/NodeLoader.d.ts +5 -0
- three/src/loaders/nodes/NodeMaterialLoader.d.ts +3 -0
- three/src/loaders/nodes/NodeObjectLoader.d.ts +12 -0
- three/src/materials/LineBasicMaterial.d.ts +0 -5
- three/src/materials/LineDashedMaterial.d.ts +0 -5
- three/src/materials/Material.d.ts +4 -6
- three/src/materials/MeshBasicMaterial.d.ts +0 -5
- three/src/materials/MeshDepthMaterial.d.ts +0 -5
- three/src/materials/MeshDistanceMaterial.d.ts +0 -5
- three/src/materials/MeshLambertMaterial.d.ts +0 -5
- three/src/materials/MeshMatcapMaterial.d.ts +0 -5
- three/src/materials/MeshNormalMaterial.d.ts +0 -5
- three/src/materials/MeshPhongMaterial.d.ts +0 -5
- three/src/materials/MeshPhysicalMaterial.d.ts +0 -5
- three/src/materials/MeshStandardMaterial.d.ts +0 -5
- three/src/materials/MeshToonMaterial.d.ts +0 -5
- three/src/materials/PointsMaterial.d.ts +0 -5
- three/src/materials/RawShaderMaterial.d.ts +0 -2
- three/src/materials/ShaderMaterial.d.ts +0 -5
- three/src/materials/ShadowMaterial.d.ts +0 -5
- three/src/materials/SpriteMaterial.d.ts +0 -5
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +4 -4
- three/src/materials/nodes/NodeMaterials.d.ts +19 -16
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +96 -0
- three/src/math/Color.d.ts +39 -22
- three/src/math/ColorManagement.d.ts +24 -24
- three/src/math/Quaternion.d.ts +4 -3
- three/src/math/Triangle.d.ts +24 -0
- three/src/math/Vector4.d.ts +2 -0
- three/src/nodes/Nodes.d.ts +3 -23
- three/src/nodes/TSL.d.ts +75 -187
- three/src/nodes/accessors/BufferAttributeNode.d.ts +1 -0
- three/src/nodes/accessors/Camera.d.ts +0 -1
- three/src/nodes/accessors/MaterialNode.d.ts +0 -1
- three/src/nodes/accessors/ModelNode.d.ts +7 -3
- three/src/nodes/accessors/Normal.d.ts +6 -0
- three/src/nodes/accessors/Object3DNode.d.ts +1 -5
- three/src/nodes/accessors/SceneNode.d.ts +2 -0
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -2
- three/src/nodes/accessors/VelocityNode.d.ts +6 -1
- three/src/nodes/code/ScriptableNode.d.ts +1 -1
- three/src/nodes/core/Node.d.ts +3 -12
- three/src/nodes/core/NodeUtils.d.ts +5 -1
- three/src/nodes/core/StackNode.d.ts +4 -4
- three/src/nodes/core/StructTypeNode.d.ts +1 -0
- three/src/nodes/core/UniformNode.d.ts +1 -0
- three/src/nodes/core/VarNode.d.ts +12 -1
- three/src/nodes/display/ColorAdjustment.d.ts +29 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -2
- three/src/nodes/display/ColorSpaceNode.d.ts +33 -8
- three/src/nodes/display/RenderOutputNode.d.ts +4 -4
- three/src/nodes/display/ScreenNode.d.ts +48 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -6
- three/src/nodes/display/ToonOutlinePassNode.d.ts +24 -0
- three/src/nodes/display/ViewportDepthNode.d.ts +2 -0
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +6 -0
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +10 -0
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +6 -0
- three/src/nodes/gpgpu/ComputeNode.d.ts +5 -0
- three/src/nodes/lighting/LightsNode.d.ts +7 -2
- three/src/nodes/lighting/PointLightNode.d.ts +11 -1
- three/src/nodes/lighting/ShadowNode.d.ts +12 -0
- three/src/nodes/utils/Discard.d.ts +1 -1
- three/src/nodes/utils/Oscillators.d.ts +7 -0
- three/src/nodes/utils/PostProcessingUtils.d.ts +45 -0
- three/src/nodes/utils/ReflectorNode.d.ts +17 -4
- three/src/nodes/utils/Timer.d.ts +21 -0
- three/src/objects/BatchedMesh.d.ts +78 -0
- three/src/objects/Group.d.ts +0 -6
- three/src/objects/LOD.d.ts +7 -0
- three/src/renderers/WebGLRenderer.d.ts +24 -23
- three/src/renderers/common/BundleGroup.d.ts +10 -0
- three/src/renderers/common/ClippingContext.d.ts +1 -1
- three/src/renderers/common/Constants.d.ts +2 -1
- three/src/renderers/common/Geometries.d.ts +1 -0
- three/src/renderers/common/IndirectStorageBufferAttribute.d.ts +10 -0
- three/src/renderers/common/Lighting.d.ts +15 -0
- three/src/renderers/common/PostProcessingUtils.d.ts +66 -0
- three/src/renderers/common/RenderBundles.d.ts +3 -3
- three/src/renderers/common/RenderContext.d.ts +2 -2
- three/src/renderers/common/RenderList.d.ts +7 -3
- three/src/renderers/common/RenderLists.d.ts +3 -1
- three/src/renderers/common/RenderObject.d.ts +20 -1
- three/src/renderers/common/Renderer.d.ts +43 -10
- three/src/renderers/common/extras/PMREMGenerator.d.ts +5 -1
- three/src/renderers/common/nodes/NodeBuilderState.d.ts +3 -2
- three/src/renderers/common/nodes/NodeLibrary.d.ts +0 -7
- three/src/renderers/common/nodes/Nodes.d.ts +8 -0
- three/src/renderers/webgl/WebGLCapabilities.d.ts +13 -0
- three/src/renderers/webgl/WebGLPrograms.d.ts +4 -10
- three/src/renderers/webgl/WebGLState.d.ts +13 -10
- three/src/renderers/webgl/WebGLUtils.d.ts +2 -2
- three/src/renderers/webgpu/WebGPURenderer.Nodes.d.ts +12 -0
- three/src/renderers/webgpu/WebGPURenderer.d.ts +7 -3
- three/src/renderers/webgpu/nodes/BasicNodeLibrary.d.ts +5 -0
- three/src/renderers/webgpu/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/textures/CompressedTexture.d.ts +1 -2
- three/src/textures/CubeTexture.d.ts +1 -2
- three/src/textures/DataTexture.d.ts +1 -2
- three/src/textures/Texture.d.ts +3 -4
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -34
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +0 -16
- three/examples/jsm/loaders/TiltLoader.d.ts +0 -7
- three/examples/jsm/utils/GPUStatsPanel.d.ts +0 -12
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -10
- three/src/nodes/display/BleachBypass.d.ts +0 -4
- three/src/nodes/display/Sepia.d.ts +0 -4
- three/src/nodes/display/ViewportNode.d.ts +0 -38
- three/src/nodes/utils/OscNode.d.ts +0 -25
- three/src/nodes/utils/TimerNode.d.ts +0 -25
- three/src/renderers/common/StandardRenderer.d.ts +0 -12
- /three/examples/jsm/utils/{TextureUtils.d.ts → WebGLTextureUtils.d.ts} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
export * from "./animation/AnimationAction.js";
|
|
2
|
+
export * from "./animation/AnimationClip.js";
|
|
3
|
+
export * from "./animation/AnimationMixer.js";
|
|
4
|
+
export * from "./animation/AnimationObjectGroup.js";
|
|
5
|
+
export { AnimationUtils } from "./animation/AnimationUtils.js";
|
|
6
|
+
export * from "./animation/KeyframeTrack.js";
|
|
7
|
+
export * from "./animation/PropertyBinding.js";
|
|
8
|
+
export * from "./animation/PropertyMixer.js";
|
|
9
|
+
export * from "./animation/tracks/BooleanKeyframeTrack.js";
|
|
10
|
+
export * from "./animation/tracks/ColorKeyframeTrack.js";
|
|
11
|
+
export * from "./animation/tracks/NumberKeyframeTrack.js";
|
|
12
|
+
export * from "./animation/tracks/QuaternionKeyframeTrack.js";
|
|
13
|
+
export * from "./animation/tracks/StringKeyframeTrack.js";
|
|
14
|
+
export * from "./animation/tracks/VectorKeyframeTrack.js";
|
|
15
|
+
export * from "./audio/Audio.js";
|
|
16
|
+
export * from "./audio/AudioAnalyser.js";
|
|
17
|
+
export * from "./audio/AudioContext.js";
|
|
18
|
+
export * from "./audio/AudioListener.js";
|
|
19
|
+
export * from "./audio/PositionalAudio.js";
|
|
20
|
+
export * from "./cameras/ArrayCamera.js";
|
|
21
|
+
export * from "./cameras/Camera.js";
|
|
22
|
+
export * from "./cameras/CubeCamera.js";
|
|
23
|
+
export * from "./cameras/OrthographicCamera.js";
|
|
24
|
+
export * from "./cameras/PerspectiveCamera.js";
|
|
25
|
+
export * from "./cameras/StereoCamera.js";
|
|
26
|
+
export * from "./constants.js";
|
|
27
|
+
export * from "./core/BufferAttribute.js";
|
|
28
|
+
export * from "./core/BufferGeometry.js";
|
|
29
|
+
export * from "./core/Clock.js";
|
|
30
|
+
export * from "./core/EventDispatcher.js";
|
|
31
|
+
export * from "./core/GLBufferAttribute.js";
|
|
32
|
+
export * from "./core/InstancedBufferAttribute.js";
|
|
33
|
+
export * from "./core/InstancedBufferGeometry.js";
|
|
34
|
+
export * from "./core/InstancedInterleavedBuffer.js";
|
|
35
|
+
export * from "./core/InterleavedBuffer.js";
|
|
36
|
+
export * from "./core/InterleavedBufferAttribute.js";
|
|
37
|
+
export * from "./core/Layers.js";
|
|
38
|
+
export * from "./core/Object3D.js";
|
|
39
|
+
export * from "./core/Raycaster.js";
|
|
40
|
+
export * from "./core/RenderTarget.js";
|
|
41
|
+
export * from "./core/Uniform.js";
|
|
42
|
+
export * from "./core/UniformsGroup.js";
|
|
43
|
+
export * from "./extras/Controls.js";
|
|
44
|
+
export * from "./extras/core/Curve.js";
|
|
45
|
+
export * from "./extras/core/CurvePath.js";
|
|
46
|
+
export * from "./extras/core/Path.js";
|
|
47
|
+
export * from "./extras/core/Shape.js";
|
|
48
|
+
export * from "./extras/core/ShapePath.js";
|
|
49
|
+
export * from "./extras/curves/Curves.js";
|
|
50
|
+
export { DataUtils } from "./extras/DataUtils.js";
|
|
51
|
+
export * from "./extras/ImageUtils.js";
|
|
52
|
+
// export * from "./extras/PMREMGenerator.js";
|
|
53
|
+
export * from "./extras/ShapeUtils.js";
|
|
54
|
+
export { TextureUtils } from "./extras/TextureUtils.js";
|
|
55
|
+
export * from "./geometries/Geometries.js";
|
|
56
|
+
export * from "./helpers/ArrowHelper.js";
|
|
57
|
+
export * from "./helpers/AxesHelper.js";
|
|
58
|
+
export * from "./helpers/Box3Helper.js";
|
|
59
|
+
export * from "./helpers/BoxHelper.js";
|
|
60
|
+
export * from "./helpers/CameraHelper.js";
|
|
61
|
+
export * from "./helpers/DirectionalLightHelper.js";
|
|
62
|
+
export * from "./helpers/GridHelper.js";
|
|
63
|
+
export * from "./helpers/HemisphereLightHelper.js";
|
|
64
|
+
export * from "./helpers/PlaneHelper.js";
|
|
65
|
+
export * from "./helpers/PointLightHelper.js";
|
|
66
|
+
export * from "./helpers/PolarGridHelper.js";
|
|
67
|
+
export * from "./helpers/SkeletonHelper.js";
|
|
68
|
+
export * from "./helpers/SpotLightHelper.js";
|
|
69
|
+
export * from "./lights/AmbientLight.js";
|
|
70
|
+
export * from "./lights/DirectionalLight.js";
|
|
71
|
+
export type { DirectionalLightShadow } from "./lights/DirectionalLightShadow.js";
|
|
72
|
+
export * from "./lights/HemisphereLight.js";
|
|
73
|
+
export * from "./lights/Light.js";
|
|
74
|
+
export * from "./lights/LightProbe.js";
|
|
75
|
+
export type { LightShadow, LightShadowJSON } from "./lights/LightShadow.js";
|
|
76
|
+
export * from "./lights/PointLight.js";
|
|
77
|
+
export type { PointLightShadow } from "./lights/PointLightShadow.js";
|
|
78
|
+
export * from "./lights/RectAreaLight.js";
|
|
79
|
+
export * from "./lights/SpotLight.js";
|
|
80
|
+
export type { SpotLightShadow } from "./lights/SpotLightShadow.js";
|
|
81
|
+
export * from "./loaders/AnimationLoader.js";
|
|
82
|
+
export * from "./loaders/AudioLoader.js";
|
|
83
|
+
export * from "./loaders/BufferGeometryLoader.js";
|
|
84
|
+
export * from "./loaders/Cache.js";
|
|
85
|
+
export * from "./loaders/CompressedTextureLoader.js";
|
|
86
|
+
export * from "./loaders/CubeTextureLoader.js";
|
|
87
|
+
export * from "./loaders/DataTextureLoader.js";
|
|
88
|
+
export * from "./loaders/FileLoader.js";
|
|
89
|
+
export * from "./loaders/ImageBitmapLoader.js";
|
|
90
|
+
export * from "./loaders/ImageLoader.js";
|
|
91
|
+
export * from "./loaders/Loader.js";
|
|
92
|
+
export * from "./loaders/LoaderUtils.js";
|
|
93
|
+
export * from "./loaders/LoadingManager.js";
|
|
94
|
+
export * from "./loaders/MaterialLoader.js";
|
|
95
|
+
export * from "./loaders/ObjectLoader.js";
|
|
96
|
+
export * from "./loaders/TextureLoader.js";
|
|
97
|
+
export * from "./materials/Materials.js";
|
|
98
|
+
export * from "./materials/nodes/NodeMaterials.js";
|
|
99
|
+
export * from "./math/Box2.js";
|
|
100
|
+
export * from "./math/Box3.js";
|
|
101
|
+
export * from "./math/Color.js";
|
|
102
|
+
export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
|
|
103
|
+
export * from "./math/Cylindrical.js";
|
|
104
|
+
export * from "./math/Euler.js";
|
|
105
|
+
export * from "./math/Frustum.js";
|
|
106
|
+
export * from "./math/Interpolant.js";
|
|
107
|
+
export * from "./math/interpolants/CubicInterpolant.js";
|
|
108
|
+
export * from "./math/interpolants/DiscreteInterpolant.js";
|
|
109
|
+
export * from "./math/interpolants/LinearInterpolant.js";
|
|
110
|
+
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
|
|
111
|
+
export * from "./math/Line3.js";
|
|
112
|
+
export { MathUtils } from "./math/MathUtils.js";
|
|
113
|
+
export * from "./math/Matrix2.js";
|
|
114
|
+
export * from "./math/Matrix3.js";
|
|
115
|
+
export * from "./math/Matrix4.js";
|
|
116
|
+
export * from "./math/Plane.js";
|
|
117
|
+
export * from "./math/Quaternion.js";
|
|
118
|
+
export * from "./math/Ray.js";
|
|
119
|
+
export * from "./math/Sphere.js";
|
|
120
|
+
export * from "./math/Spherical.js";
|
|
121
|
+
export * from "./math/SphericalHarmonics3.js";
|
|
122
|
+
export * from "./math/Triangle.js";
|
|
123
|
+
export * from "./math/Vector2.js";
|
|
124
|
+
export * from "./math/Vector3.js";
|
|
125
|
+
export * from "./math/Vector4.js";
|
|
126
|
+
export * from "./objects/BatchedMesh.js";
|
|
127
|
+
export * from "./objects/Bone.js";
|
|
128
|
+
export * from "./objects/Group.js";
|
|
129
|
+
export * from "./objects/InstancedMesh.js";
|
|
130
|
+
export * from "./objects/Line.js";
|
|
131
|
+
export * from "./objects/LineLoop.js";
|
|
132
|
+
export * from "./objects/LineSegments.js";
|
|
133
|
+
export * from "./objects/LOD.js";
|
|
134
|
+
export * from "./objects/Mesh.js";
|
|
135
|
+
export * from "./objects/Points.js";
|
|
136
|
+
export * from "./objects/Skeleton.js";
|
|
137
|
+
export * from "./objects/SkinnedMesh.js";
|
|
138
|
+
export * from "./objects/Sprite.js";
|
|
139
|
+
// export * from "./renderers/shaders/ShaderChunk.js";
|
|
140
|
+
// export * from "./renderers/shaders/ShaderLib.js";
|
|
141
|
+
// export * from "./renderers/shaders/UniformsLib.js";
|
|
142
|
+
// export { UniformsUtils } from './renderers/shaders/UniformsUtils.js';
|
|
143
|
+
export type { WebGLProgramParameters, WebGLProgramParametersWithUniforms } from "./renderers/webgl/WebGLPrograms.js";
|
|
144
|
+
export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
|
|
145
|
+
// export * from "./renderers/webgl/WebGLUtils.js";
|
|
146
|
+
export * from "./renderers/WebGL3DRenderTarget.js";
|
|
147
|
+
export * from "./renderers/WebGLArrayRenderTarget.js";
|
|
148
|
+
export * from "./renderers/WebGLCubeRenderTarget.js";
|
|
149
|
+
// export * from "./renderers/WebGLRenderer.js";
|
|
150
|
+
export * from "./renderers/WebGLRenderTarget.js";
|
|
151
|
+
export type {
|
|
152
|
+
WebXRController,
|
|
153
|
+
WebXRSpaceEventMap,
|
|
154
|
+
XRControllerEventType,
|
|
155
|
+
XRGripSpace,
|
|
156
|
+
XRHandInputState,
|
|
157
|
+
XRHandJoints,
|
|
158
|
+
XRHandSpace,
|
|
159
|
+
XRJointSpace,
|
|
160
|
+
XRTargetRaySpace,
|
|
161
|
+
} from "./renderers/webxr/WebXRController.js";
|
|
162
|
+
export type { WebXRDepthSensing } from "./renderers/webxr/WebXRDepthSensing.js";
|
|
163
|
+
export type {
|
|
164
|
+
WebXRArrayCamera,
|
|
165
|
+
WebXRCamera,
|
|
166
|
+
WebXRManager,
|
|
167
|
+
WebXRManagerEventMap,
|
|
168
|
+
} from "./renderers/webxr/WebXRManager.js";
|
|
169
|
+
export * from "./scenes/Fog.js";
|
|
170
|
+
export * from "./scenes/FogExp2.js";
|
|
171
|
+
export * from "./scenes/Scene.js";
|
|
172
|
+
export * from "./textures/CanvasTexture.js";
|
|
173
|
+
export * from "./textures/CompressedArrayTexture.js";
|
|
174
|
+
export * from "./textures/CompressedCubeTexture.js";
|
|
175
|
+
export * from "./textures/CompressedTexture.js";
|
|
176
|
+
export * from "./textures/CubeTexture.js";
|
|
177
|
+
export * from "./textures/Data3DTexture.js";
|
|
178
|
+
export * from "./textures/DataArrayTexture.js";
|
|
179
|
+
export * from "./textures/DataTexture.js";
|
|
180
|
+
export * from "./textures/DepthTexture.js";
|
|
181
|
+
export * from "./textures/FramebufferTexture.js";
|
|
182
|
+
export * from "./textures/Source.js";
|
|
183
|
+
export * from "./textures/Texture.js";
|
|
184
|
+
export * from "./textures/VideoTexture.js";
|
|
185
|
+
export * from "./Three.Legacy.js";
|
|
186
|
+
export { createCanvasElement } from "./utils.js";
|
|
187
|
+
|
|
188
|
+
export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
|
|
189
|
+
export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
|
|
190
|
+
export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
|
|
191
|
+
export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
|
|
192
|
+
export * from "./nodes/Nodes.js";
|
|
193
|
+
export * from "./nodes/TSL.js";
|
|
194
|
+
export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
|
|
195
|
+
export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
|
|
196
|
+
import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
|
|
197
|
+
export { PostProcessingUtils };
|
|
198
|
+
export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
|
|
199
|
+
export { default as Lighting } from "./renderers/common/Lighting.js";
|
|
200
|
+
export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
|
|
201
|
+
export type { default as Renderer } from "./renderers/common/Renderer.js";
|
|
202
|
+
export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
|
|
203
|
+
export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
|
|
204
|
+
export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
|
|
205
|
+
export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.Nodes.js";
|
three/src/Three.WebGPU.d.ts
CHANGED
|
@@ -95,11 +95,10 @@ export * from "./loaders/MaterialLoader.js";
|
|
|
95
95
|
export * from "./loaders/ObjectLoader.js";
|
|
96
96
|
export * from "./loaders/TextureLoader.js";
|
|
97
97
|
export * from "./materials/Materials.js";
|
|
98
|
-
export * from "./materials/nodes/NodeMaterials.js";
|
|
99
98
|
export * from "./math/Box2.js";
|
|
100
99
|
export * from "./math/Box3.js";
|
|
101
100
|
export * from "./math/Color.js";
|
|
102
|
-
export { ColorManagement,
|
|
101
|
+
export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
|
|
103
102
|
export * from "./math/Cylindrical.js";
|
|
104
103
|
export * from "./math/Euler.js";
|
|
105
104
|
export * from "./math/Frustum.js";
|
|
@@ -189,10 +188,16 @@ export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
|
|
|
189
188
|
export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
|
|
190
189
|
export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
|
|
191
190
|
export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
|
|
191
|
+
export * from "./materials/nodes/NodeMaterials.js";
|
|
192
192
|
export * from "./nodes/Nodes.js";
|
|
193
193
|
export * from "./nodes/TSL.js";
|
|
194
|
+
export { default as BundleGroup } from "./renderers/common/BundleGroup.js";
|
|
194
195
|
export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
|
|
195
196
|
export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
|
|
197
|
+
import * as PostProcessingUtils from "./renderers/common/PostProcessingUtils.js";
|
|
198
|
+
export { PostProcessingUtils };
|
|
199
|
+
export { default as IndirectStorageBufferAttribute } from "./renderers/common/IndirectStorageBufferAttribute.js";
|
|
200
|
+
export { default as Lighting } from "./renderers/common/Lighting.js";
|
|
196
201
|
export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
|
|
197
202
|
export type { default as Renderer } from "./renderers/common/Renderer.js";
|
|
198
203
|
export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
|
three/src/Three.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export * from "./materials/Materials.js";
|
|
|
98
98
|
export * from "./math/Box2.js";
|
|
99
99
|
export * from "./math/Box3.js";
|
|
100
100
|
export * from "./math/Color.js";
|
|
101
|
-
export { ColorManagement,
|
|
101
|
+
export { ColorManagement, ColorSpaceDefinition } from "./math/ColorManagement.js";
|
|
102
102
|
export * from "./math/Cylindrical.js";
|
|
103
103
|
export * from "./math/Euler.js";
|
|
104
104
|
export * from "./math/Frustum.js";
|
|
@@ -162,12 +162,7 @@ export type { WebGLProperties } from "./renderers/webgl/WebGLProperties.js";
|
|
|
162
162
|
export type { RenderItem, WebGLRenderList, WebGLRenderLists } from "./renderers/webgl/WebGLRenderLists.js";
|
|
163
163
|
export type { WebGLShader } from "./renderers/webgl/WebGLShader.js";
|
|
164
164
|
export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
|
|
165
|
-
export type {
|
|
166
|
-
WebGLColorBuffer,
|
|
167
|
-
WebGLDepthBuffer,
|
|
168
|
-
WebGLState,
|
|
169
|
-
WebGLStencilBuffer,
|
|
170
|
-
} from "./renderers/webgl/WebGLState.js";
|
|
165
|
+
export type { WebGLState } from "./renderers/webgl/WebGLState.js";
|
|
171
166
|
export type { WebGLTextures } from "./renderers/webgl/WebGLTextures.js";
|
|
172
167
|
export type { WebGLUniforms } from "./renderers/webgl/WebGLUniforms.js";
|
|
173
168
|
export * from "./renderers/webgl/WebGLUtils.js";
|
three/src/audio/Audio.d.ts
CHANGED
|
@@ -173,14 +173,17 @@ export class Audio<NodeType extends AudioNode = GainNode> extends Object3D {
|
|
|
173
173
|
* If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, starts playback.
|
|
174
174
|
*/
|
|
175
175
|
play(delay?: number): this;
|
|
176
|
+
|
|
176
177
|
/**
|
|
177
178
|
* If {@link Audio.hasPlaybackControl | hasPlaybackControl} is true, pauses playback.
|
|
178
179
|
*/
|
|
179
180
|
pause(): this;
|
|
181
|
+
|
|
180
182
|
/**
|
|
181
183
|
* If {@link Audio.hasPlaybackControl | hasPlaybackControl} is enabled, stops playback.
|
|
184
|
+
* @param delay (optional) - The delay, in seconds, at which the audio should start playing.
|
|
182
185
|
*/
|
|
183
|
-
stop(): this;
|
|
186
|
+
stop(delay?: number): this;
|
|
184
187
|
|
|
185
188
|
/**
|
|
186
189
|
* Called automatically when playback finished.
|
three/src/constants.d.ts
CHANGED
|
@@ -697,23 +697,15 @@ export type NormalMapTypes = typeof TangentSpaceNormalMap | typeof ObjectSpaceNo
|
|
|
697
697
|
export const NoColorSpace: "";
|
|
698
698
|
export const SRGBColorSpace: "srgb";
|
|
699
699
|
export const LinearSRGBColorSpace: "srgb-linear";
|
|
700
|
-
export const DisplayP3ColorSpace: "display-p3";
|
|
701
|
-
export const LinearDisplayP3ColorSpace = "display-p3-linear";
|
|
702
700
|
export type ColorSpace =
|
|
703
701
|
| typeof NoColorSpace
|
|
704
702
|
| typeof SRGBColorSpace
|
|
705
|
-
| typeof LinearSRGBColorSpace
|
|
706
|
-
| typeof DisplayP3ColorSpace
|
|
707
|
-
| typeof LinearDisplayP3ColorSpace;
|
|
703
|
+
| typeof LinearSRGBColorSpace;
|
|
708
704
|
|
|
709
705
|
export const LinearTransfer: "linear";
|
|
710
706
|
export const SRGBTransfer: "srgb";
|
|
711
707
|
export type ColorSpaceTransfer = typeof LinearTransfer | typeof SRGBTransfer;
|
|
712
708
|
|
|
713
|
-
export const Rec709Primaries: "rec709";
|
|
714
|
-
export const P3Primaries: "p3";
|
|
715
|
-
export type ColorSpacePrimaries = typeof Rec709Primaries | typeof P3Primaries;
|
|
716
|
-
|
|
717
709
|
// Stencil Op types
|
|
718
710
|
export const ZeroStencilOp: 0;
|
|
719
711
|
export const KeepStencilOp: 7680;
|
|
@@ -95,21 +95,6 @@ export class BufferAttribute {
|
|
|
95
95
|
*/
|
|
96
96
|
gpuType: AttributeGPUType;
|
|
97
97
|
|
|
98
|
-
/**
|
|
99
|
-
* This can be used to only update some components of stored vectors (for example, just the component related to color).
|
|
100
|
-
* @defaultValue `{ offset: number = 0; count: number = -1 }`
|
|
101
|
-
* @deprecated Will be removed in r169. Use "addUpdateRange()" instead.
|
|
102
|
-
*/
|
|
103
|
-
updateRange: {
|
|
104
|
-
/**
|
|
105
|
-
* Position at which to start update.
|
|
106
|
-
* @defaultValue `0`
|
|
107
|
-
*/
|
|
108
|
-
offset: number;
|
|
109
|
-
/** @defaultValue `-1`, which means don't use update ranges. */
|
|
110
|
-
count: number;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
98
|
/**
|
|
114
99
|
* This can be used to only update some components of stored vectors (for example, just the component related to
|
|
115
100
|
* color). Use the {@link .addUpdateRange} function to add ranges to this array.
|
|
@@ -4,6 +4,7 @@ import { Quaternion } from "../math/Quaternion.js";
|
|
|
4
4
|
import { Sphere } from "../math/Sphere.js";
|
|
5
5
|
import { Vector2 } from "../math/Vector2.js";
|
|
6
6
|
import { Vector3, Vector3Tuple } from "../math/Vector3.js";
|
|
7
|
+
import IndirectStorageBufferAttribute from "../renderers/common/IndirectStorageBufferAttribute.js";
|
|
7
8
|
import { BufferAttribute, BufferAttributeJSON } from "./BufferAttribute.js";
|
|
8
9
|
import { EventDispatcher } from "./EventDispatcher.js";
|
|
9
10
|
import { GLBufferAttribute } from "./GLBufferAttribute.js";
|
|
@@ -155,6 +156,8 @@ export class BufferGeometry<
|
|
|
155
156
|
*/
|
|
156
157
|
index: BufferAttribute | null;
|
|
157
158
|
|
|
159
|
+
indirect: IndirectStorageBufferAttribute | null;
|
|
160
|
+
|
|
158
161
|
/**
|
|
159
162
|
* This hashmap has as id the name of the attribute to be set and as value the {@link THREE.BufferAttribute | buffer} to set it to. Rather than accessing this property directly,
|
|
160
163
|
* use {@link setAttribute | .setAttribute} and {@link getAttribute | .getAttribute} to access attributes of this geometry.
|
|
@@ -233,6 +236,10 @@ export class BufferGeometry<
|
|
|
233
236
|
*/
|
|
234
237
|
setIndex(index: BufferAttribute | number[] | null): this;
|
|
235
238
|
|
|
239
|
+
setIndirect(indirect: IndirectStorageBufferAttribute | null): this;
|
|
240
|
+
|
|
241
|
+
getIndirect(): IndirectStorageBufferAttribute | null;
|
|
242
|
+
|
|
236
243
|
/**
|
|
237
244
|
* Sets an {@link attributes | attribute} to this geometry with the specified name.
|
|
238
245
|
* @remarks
|
|
@@ -352,8 +359,12 @@ export class BufferGeometry<
|
|
|
352
359
|
center(): this;
|
|
353
360
|
|
|
354
361
|
/**
|
|
355
|
-
*
|
|
356
|
-
* @
|
|
362
|
+
* Defines a geometry by creating a `position` attribute based on the given array of points. The array can hold
|
|
363
|
+
* instances of {@link Vector2} or {@link Vector3}. When using two-dimensional data, the `z` coordinate for all
|
|
364
|
+
* vertices is set to `0`.
|
|
365
|
+
*
|
|
366
|
+
* If the method is used with an existing `position` attribute, the vertex data are overwritten with the data from
|
|
367
|
+
* the array. The length of the array must match the vertex count.
|
|
357
368
|
*/
|
|
358
369
|
setFromPoints(points: Vector3[] | Vector2[]): this;
|
|
359
370
|
|
|
@@ -42,18 +42,6 @@ export class InterleavedBuffer {
|
|
|
42
42
|
*/
|
|
43
43
|
usage: Usage;
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* Object containing offset and count.
|
|
47
|
-
* @defaultValue `{ offset: number = 0; count: number = -1 }`
|
|
48
|
-
* @deprecated Will be removed in r169. Use "addUpdateRange()" instead.
|
|
49
|
-
*/
|
|
50
|
-
updateRange: {
|
|
51
|
-
/** @defaultValue `0` */
|
|
52
|
-
offset: number;
|
|
53
|
-
/** @defaultValue `-1` */
|
|
54
|
-
count: number;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
45
|
/**
|
|
58
46
|
* This can be used to only update some components of stored data. Use the {@link .addUpdateRange} function to add
|
|
59
47
|
* ranges to this array.
|
three/src/core/Object3D.d.ts
CHANGED
|
@@ -127,7 +127,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
127
127
|
* Sub-classes will update this value.
|
|
128
128
|
* @defaultValue `Object3D`
|
|
129
129
|
*/
|
|
130
|
-
readonly type: string
|
|
130
|
+
readonly type: string;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* Object's parent in the {@link https://en.wikipedia.org/wiki/Scene_graph | scene graph}.
|
three/src/core/Raycaster.d.ts
CHANGED
|
@@ -24,7 +24,8 @@ export interface Intersection<TIntersected extends Object3D = Object3D> {
|
|
|
24
24
|
/** Intersected face */
|
|
25
25
|
face?: Face | null | undefined;
|
|
26
26
|
/** Index of the intersected face */
|
|
27
|
-
faceIndex?: number | undefined;
|
|
27
|
+
faceIndex?: number | null | undefined;
|
|
28
|
+
barycoord?: Vector3 | null;
|
|
28
29
|
/** The intersected object */
|
|
29
30
|
object: TIntersected;
|
|
30
31
|
uv?: Vector2 | undefined;
|
three/src/core/RenderTarget.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
ColorSpace,
|
|
3
2
|
MagnificationTextureFilter,
|
|
4
3
|
MinificationTextureFilter,
|
|
5
4
|
PixelFormatGPU,
|
|
@@ -20,7 +19,7 @@ export interface RenderTargetOptions {
|
|
|
20
19
|
format?: number | undefined; // RGBAFormat
|
|
21
20
|
type?: TextureDataType | undefined; // UnsignedByteType
|
|
22
21
|
anisotropy?: number | undefined; // 1
|
|
23
|
-
colorSpace?:
|
|
22
|
+
colorSpace?: string | undefined;
|
|
24
23
|
internalFormat?: PixelFormatGPU | null | undefined; // null
|
|
25
24
|
depthBuffer?: boolean | undefined; // true
|
|
26
25
|
stencilBuffer?: boolean | undefined; // false
|
three/src/extras/Controls.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Camera } from "../cameras/Camera.js";
|
|
2
1
|
import { EventDispatcher } from "../core/EventDispatcher.js";
|
|
2
|
+
import { Object3D } from "../core/Object3D.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Abstract base class for controls.
|
|
@@ -8,7 +8,7 @@ declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TE
|
|
|
8
8
|
/**
|
|
9
9
|
* The 3D object that is managed by the controls.
|
|
10
10
|
*/
|
|
11
|
-
object:
|
|
11
|
+
object: Object3D;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* The HTML element used for event listeners. If not provided via the constructor, {@link .connect} must be called
|
|
@@ -26,7 +26,7 @@ declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TE
|
|
|
26
26
|
* @param object The object the controls should manage (usually the camera).
|
|
27
27
|
* @param domElement The HTML element used for event listeners. (optional)
|
|
28
28
|
*/
|
|
29
|
-
constructor(object:
|
|
29
|
+
constructor(object: Object3D, domElement?: HTMLElement | null);
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* Connects the controls to the DOM. This method has so called "side effects" since it adds the module's event
|
|
@@ -11,9 +11,9 @@ export class FileLoader extends Loader<string | ArrayBuffer> {
|
|
|
11
11
|
onError?: (err: unknown) => void,
|
|
12
12
|
): void;
|
|
13
13
|
|
|
14
|
-
mimeType:
|
|
15
|
-
responseType:
|
|
14
|
+
mimeType: string | undefined;
|
|
15
|
+
responseType: string | undefined;
|
|
16
16
|
|
|
17
|
-
setMimeType(mimeType:
|
|
17
|
+
setMimeType(mimeType: string): FileLoader;
|
|
18
18
|
setResponseType(responseType: string): FileLoader;
|
|
19
19
|
}
|
|
@@ -8,9 +8,14 @@ export interface NodeLoaderResult {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export default class NodeLoader extends Loader<NodeLoaderResult> {
|
|
11
|
+
textures: { [key: string]: Texture };
|
|
12
|
+
nodes: { [type: string]: Node };
|
|
13
|
+
|
|
11
14
|
constructor(manager?: LoadingManager);
|
|
12
15
|
|
|
13
16
|
parseNodes(json: unknown): NodeLoaderResult;
|
|
14
17
|
parse(json: unknown): Node;
|
|
15
18
|
setTextures(textures: { [key: string]: Texture }): this;
|
|
19
|
+
setNodes(value: { [type: string]: Node }): this;
|
|
20
|
+
createNodeFromType(type: string): Node;
|
|
16
21
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
|
|
1
2
|
import { MaterialLoader } from "../MaterialLoader.js";
|
|
2
3
|
import { NodeLoaderResult } from "./NodeLoader.js";
|
|
3
4
|
|
|
4
5
|
export default class NodeMaterialLoader extends MaterialLoader {
|
|
5
6
|
nodes: NodeLoaderResult;
|
|
7
|
+
nodeMaterials: { [type: string]: NodeMaterial };
|
|
6
8
|
|
|
7
9
|
setNodes(value: NodeLoaderResult): this;
|
|
10
|
+
setNodeMaterials(value: { [type: string]: NodeMaterial }): this;
|
|
8
11
|
}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { Material } from "../../materials/Material.js";
|
|
2
|
+
import NodeMaterial from "../../materials/nodes/NodeMaterial.js";
|
|
3
|
+
import { Node } from "../../nodes/Nodes.js";
|
|
2
4
|
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import { LoadingManager } from "../LoadingManager.js";
|
|
3
6
|
import { ObjectLoader } from "../ObjectLoader.js";
|
|
4
7
|
import { NodeLoaderResult } from "./NodeLoader.js";
|
|
5
8
|
|
|
6
9
|
export default class NodeObjectLoader extends ObjectLoader {
|
|
10
|
+
nodes: { [type: string]: Node };
|
|
11
|
+
nodeMaterials: { [type: string]: NodeMaterial };
|
|
12
|
+
|
|
13
|
+
constructor(manager?: LoadingManager);
|
|
14
|
+
|
|
15
|
+
setNodes(value: { [type: string]: Node }): this;
|
|
16
|
+
|
|
17
|
+
setNodeMaterials(value: { [type: string]: NodeMaterial }): this;
|
|
18
|
+
|
|
7
19
|
parseNodes(json: unknown, textures: { [key: string]: Texture }): NodeLoaderResult;
|
|
8
20
|
|
|
9
21
|
parseMaterials(json: unknown, textures: { [key: string]: Texture }): { [key: string]: Material };
|
|
@@ -234,6 +234,10 @@ export interface MaterialJSON {
|
|
|
234
234
|
* Materials describe the appearance of objects. They are defined in a (mostly) renderer-independent way, so you don't have to rewrite materials if you decide to use a different renderer.
|
|
235
235
|
*/
|
|
236
236
|
export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
237
|
+
static get type(): string;
|
|
238
|
+
|
|
239
|
+
get type(): string;
|
|
240
|
+
|
|
237
241
|
constructor();
|
|
238
242
|
|
|
239
243
|
/**
|
|
@@ -509,12 +513,6 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
509
513
|
*/
|
|
510
514
|
transparent: boolean;
|
|
511
515
|
|
|
512
|
-
/**
|
|
513
|
-
* Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a scene.
|
|
514
|
-
* @default 'Material'
|
|
515
|
-
*/
|
|
516
|
-
type: string;
|
|
517
|
-
|
|
518
516
|
/**
|
|
519
517
|
* UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.
|
|
520
518
|
*/
|