@types/three 0.166.0 → 0.167.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.d.ts +1 -0
- three/build/three.webgpu.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +1 -1
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
- three/examples/jsm/csm/CSM.d.ts +3 -4
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
- three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
- three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
- three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
- three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +184 -0
- three/src/Three.d.ts +25 -91
- three/src/animation/AnimationClip.d.ts +12 -4
- three/src/animation/AnimationUtils.d.ts +32 -7
- three/src/animation/KeyframeTrack.d.ts +9 -1
- three/src/animation/PropertyBinding.d.ts +12 -12
- three/src/cameras/OrthographicCamera.d.ts +27 -0
- three/src/cameras/PerspectiveCamera.d.ts +31 -0
- three/src/constants.d.ts +7 -1
- three/src/core/BufferAttribute.d.ts +11 -6
- three/src/core/BufferGeometry.d.ts +26 -3
- three/src/core/InterleavedBufferAttribute.d.ts +3 -3
- three/src/core/Object3D.d.ts +51 -6
- three/src/extras/DataUtils.d.ts +9 -2
- three/src/extras/ImageUtils.d.ts +6 -7
- three/src/extras/core/Curve.d.ts +8 -2
- three/src/extras/core/CurvePath.d.ts +9 -1
- three/src/extras/core/Path.d.ts +9 -2
- three/src/extras/core/Shape.d.ts +9 -1
- three/src/lights/Light.d.ts +19 -2
- three/src/lights/LightShadow.d.ts +13 -2
- three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
- three/src/loaders/Cache.d.ts +13 -8
- three/src/materials/Material.d.ts +164 -2
- three/src/materials/ShaderMaterial.d.ts +49 -2
- three/src/math/ColorManagement.d.ts +3 -0
- three/src/math/Euler.d.ts +4 -2
- three/src/math/Matrix2.d.ts +53 -0
- three/src/math/Matrix3.d.ts +67 -115
- three/src/math/Matrix4.d.ts +48 -100
- three/src/math/Quaternion.d.ts +5 -3
- three/src/math/Vector2.d.ts +1 -1
- three/{examples/jsm → src}/nodes/Nodes.d.ts +28 -5
- three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
- three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
- three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
- three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
- three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
- three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
- three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +1 -3
- three/src/nodes/core/MRTNode.d.ts +19 -0
- three/{examples/jsm → src}/nodes/core/Node.d.ts +3 -10
- three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +7 -1
- three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +2 -1
- three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
- three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
- three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
- three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
- three/src/nodes/display/BloomNode.d.ts +35 -0
- three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
- three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/src/nodes/display/DenoiseNode.d.ts +38 -0
- three/{examples/jsm → src}/nodes/display/DepthOfFieldNode.d.ts +4 -4
- three/{examples/jsm → src}/nodes/display/DotScreenNode.d.ts +3 -8
- three/src/nodes/display/FXAANode.d.ts +19 -0
- three/src/nodes/display/FilmNode.d.ts +25 -0
- three/src/nodes/display/GTAONode.d.ts +46 -0
- three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
- three/src/nodes/display/Lut3DNode.d.ts +30 -0
- three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +62 -0
- three/src/nodes/display/PixelationPassNode.d.ts +67 -0
- three/src/nodes/display/RenderOutputNode.d.ts +28 -0
- three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
- three/src/nodes/display/TransitionNode.d.ts +41 -0
- three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
- three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
- three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
- three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
- three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
- three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
- three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
- three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
- three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
- three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +4 -2
- three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +22 -16
- three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/math/MathNode.d.ts +4 -0
- three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
- three/src/nodes/utils/PackingNode.d.ts +24 -0
- three/src/nodes/utils/RTTNode.d.ts +45 -0
- three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
- three/src/objects/InstancedMesh.d.ts +15 -2
- three/src/objects/LOD.d.ts +17 -1
- three/src/objects/Mesh.d.ts +11 -1
- three/src/objects/Points.d.ts +0 -3
- three/src/objects/Skeleton.d.ts +10 -3
- three/src/objects/SkinnedMesh.d.ts +15 -3
- three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
- three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Geometries.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Info.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -3
- three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
- three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
- three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +16 -13
- three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
- three/{examples/jsm → src}/renderers/common/Renderer.d.ts +30 -29
- three/{examples/jsm → src}/renderers/common/SampledTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Uniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -2
- three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +21 -8
- three/src/renderers/shaders/ShaderLib.d.ts +3 -1
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
- three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +6 -4
- three/src/scenes/Fog.d.ts +7 -24
- three/src/scenes/FogExp2.d.ts +9 -3
- three/src/scenes/Scene.d.ts +21 -5
- three/src/textures/Source.d.ts +15 -1
- three/src/textures/Texture.d.ts +37 -1
- three/examples/jsm/deprecated/Geometry.d.ts +0 -341
- three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
- three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
- three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
- three/examples/jsm/nodes/lighting/RectAreaLightNode.d.ts +0 -10
- /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VarNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/RGBShiftNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/SobelOperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/LTC.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_noise.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BindGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Bindings.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Sampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampledTexture.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.d.ts +0 -0
three/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for three (https://threejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Thu, 25 Jul 2024 16:38:56 GMT
|
|
12
12
|
* Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../src/Three.WebGPU.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../src/Three.WebGPU.js";
|
three/examples/jsm/Addons.d.ts
CHANGED
|
@@ -71,7 +71,6 @@ export * from "./interactive/InteractiveGroup.js";
|
|
|
71
71
|
export * from "./interactive/SelectionBox.js";
|
|
72
72
|
export * from "./interactive/SelectionHelper.js";
|
|
73
73
|
|
|
74
|
-
export { default as IESSpotLight } from "./lights/IESSpotLight.js";
|
|
75
74
|
export * from "./lights/LightProbeGenerator.js";
|
|
76
75
|
export * from "./lights/RectAreaLightUniformsLib.js";
|
|
77
76
|
|
|
@@ -125,6 +124,7 @@ export * from "./loaders/TGALoader.js";
|
|
|
125
124
|
export * from "./loaders/TIFFLoader.js";
|
|
126
125
|
export * from "./loaders/TiltLoader.js";
|
|
127
126
|
export * from "./loaders/TTFLoader.js";
|
|
127
|
+
export * from "./loaders/UltraHDRLoader.js";
|
|
128
128
|
export * from "./loaders/USDZLoader.js";
|
|
129
129
|
export * from "./loaders/VOXLoader.js";
|
|
130
130
|
export * from "./loaders/VRMLLoader.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";
|
|
1
|
+
import { Bone, Euler, Matrix4, MeshBasicMaterial, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export interface MMDPhysicsParameter {
|
|
4
4
|
unitStep?: number | undefined;
|
|
@@ -115,10 +115,10 @@ export class Constraint {
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export class MMDPhysicsHelper extends Object3D {
|
|
118
|
-
mesh:
|
|
118
|
+
mesh: SkinnedMesh;
|
|
119
119
|
physics: MMDPhysics;
|
|
120
|
-
materials: [
|
|
120
|
+
materials: [MeshBasicMaterial, MeshBasicMaterial, MeshBasicMaterial];
|
|
121
121
|
|
|
122
|
-
constructor(mesh:
|
|
122
|
+
constructor(mesh: SkinnedMesh, physics: MMDPhysics);
|
|
123
123
|
dispose(): void;
|
|
124
124
|
}
|
three/examples/jsm/csm/CSM.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Camera, DirectionalLight, Material, Object3D, Vector2, Vector3 } from "three";
|
|
2
|
+
import { CSMFrustum } from "./CSMFrustum.js";
|
|
2
3
|
|
|
3
4
|
export type CSMMode = "uniform" | "logarithmic" | "practical" | "custom";
|
|
4
5
|
|
|
@@ -34,8 +35,8 @@ export class CSM {
|
|
|
34
35
|
lightMargin: number;
|
|
35
36
|
customSplitsCallback: (cascades: number, cameraNear: number, cameraFar: number, breaks: number[]) => void;
|
|
36
37
|
fade: boolean;
|
|
37
|
-
mainFrustum:
|
|
38
|
-
frustums:
|
|
38
|
+
mainFrustum: CSMFrustum;
|
|
39
|
+
frustums: CSMFrustum[];
|
|
39
40
|
breaks: number[];
|
|
40
41
|
lights: DirectionalLight[];
|
|
41
42
|
shaders: Map<unknown, string>;
|
|
@@ -52,5 +53,3 @@ export class CSM {
|
|
|
52
53
|
remove(): void;
|
|
53
54
|
dispose(): void;
|
|
54
55
|
}
|
|
55
|
-
|
|
56
|
-
import CSMFrustrum from "./CSMFrustum.js";
|
|
@@ -10,7 +10,7 @@ export interface CSMFrustumParameters {
|
|
|
10
10
|
maxFar?: number;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export class CSMFrustum {
|
|
14
14
|
constructor(data?: CSMFrustumParameters);
|
|
15
15
|
vertices: CSMFrustumVerticies;
|
|
16
16
|
setFromProjectionMatrix(projectionMatrix: Matrix4, maxFar: number): CSMFrustumVerticies;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Line2NodeMaterial } from "three/webgpu";
|
|
2
|
+
import { LineGeometry } from "../LineGeometry.js";
|
|
3
|
+
import { LineSegments2 } from "./LineSegments2.js";
|
|
4
|
+
|
|
5
|
+
declare class Line2 extends LineSegments2 {
|
|
6
|
+
geometry: LineGeometry;
|
|
7
|
+
material: Line2NodeMaterial;
|
|
8
|
+
|
|
9
|
+
readonly isLine2: true;
|
|
10
|
+
|
|
11
|
+
constructor(geometry?: LineGeometry, material?: Line2NodeMaterial);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { Line2 };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Line2NodeMaterial, Mesh } from "three/webgpu";
|
|
2
|
+
import { LineSegmentsGeometry } from "../LineSegmentsGeometry.js";
|
|
3
|
+
|
|
4
|
+
declare class LineSegments2 extends Mesh {
|
|
5
|
+
geometry: LineSegmentsGeometry;
|
|
6
|
+
material: Line2NodeMaterial;
|
|
7
|
+
|
|
8
|
+
readonly isLineSegments2: true;
|
|
9
|
+
|
|
10
|
+
constructor(geometry?: LineSegmentsGeometry, material?: Line2NodeMaterial);
|
|
11
|
+
|
|
12
|
+
computeLineDistances(): this;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { LineSegments2 };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CompressedTexture, Loader, LoadingManager, WebGLRenderer } from "three";
|
|
2
|
-
import Renderer from "
|
|
3
|
-
import WebGPURenderer from "../renderers/webgpu/WebGPURenderer.js";
|
|
2
|
+
import { Renderer, WebGPURenderer } from "three/webgpu";
|
|
4
3
|
import { WorkerPool } from "../utils/WorkerPool.js";
|
|
5
4
|
|
|
6
5
|
export interface KTX2LoaderWorkerConfig {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Data3DTexture, Loader, Texture } from "three";
|
|
2
|
+
|
|
3
|
+
export interface LUTImageResult {
|
|
4
|
+
size: number;
|
|
5
|
+
texture3D: Data3DTexture;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class LUTImageLoader extends Loader<LUTImageResult> {
|
|
9
|
+
flip: boolean;
|
|
10
|
+
|
|
11
|
+
constructor(flipVertical?: boolean);
|
|
12
|
+
|
|
13
|
+
getImageData(texture: Texture): ImageData;
|
|
14
|
+
|
|
15
|
+
horz2Vert(texture: Texture): ImageData;
|
|
16
|
+
|
|
17
|
+
parse(dataArray: Uint8ClampedArray, size: number): LUTImageResult;
|
|
18
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { Loader, LoadingManager } from "three";
|
|
2
|
-
import { MeshPhysicalNodeMaterial } from "../nodes/Nodes.js";
|
|
1
|
+
import { Loader, LoadingManager, MeshPhysicalNodeMaterial } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
export class MaterialXLoader extends Loader<{ materials: Record<string, MeshPhysicalNodeMaterial> }> {
|
|
5
4
|
constructor(manager?: LoadingManager);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DataTexture, Loader, LoadingManager, RGBAFormat, TextureDataType } from "three";
|
|
2
|
+
|
|
3
|
+
interface UltraHDRLoaderTextureData {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
hdrBuffer: Uint16Array | Float32Array;
|
|
7
|
+
format: typeof RGBAFormat;
|
|
8
|
+
type: TextureDataType;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class UltraHDRLoader extends Loader<DataTexture> {
|
|
12
|
+
type: TextureDataType;
|
|
13
|
+
|
|
14
|
+
constructor(manager?: LoadingManager);
|
|
15
|
+
|
|
16
|
+
setDataType(value: TextureDataType): this;
|
|
17
|
+
|
|
18
|
+
parse(buffer: ArrayBuffer, onLoad: (texData: UltraHDRLoaderTextureData) => void): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { UltraHDRLoader };
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.167.0",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"./addons": "./examples/jsm/Addons.js",
|
|
30
30
|
"./addons/*": "./examples/jsm/*",
|
|
31
31
|
"./src/*": "./src/*",
|
|
32
|
-
"./
|
|
32
|
+
"./webgpu": "./build/three.webgpu.js",
|
|
33
|
+
"./tsl": "./build/three.webgpu.js",
|
|
33
34
|
"./package.json": "./package.json"
|
|
34
35
|
},
|
|
35
36
|
"repository": {
|
|
@@ -45,6 +46,6 @@
|
|
|
45
46
|
"fflate": "~0.8.2",
|
|
46
47
|
"meshoptimizer": "~0.18.1"
|
|
47
48
|
},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "64cc1fbbe012005408aa3b8f80f321515263a64bcadd30466fba345def0de5b1",
|
|
49
50
|
"typeScriptVersion": "4.8"
|
|
50
51
|
}
|
|
@@ -0,0 +1,184 @@
|
|
|
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/core/Curve.js";
|
|
44
|
+
export * from "./extras/core/CurvePath.js";
|
|
45
|
+
export * from "./extras/core/Path.js";
|
|
46
|
+
export * from "./extras/core/Shape.js";
|
|
47
|
+
export * from "./extras/core/ShapePath.js";
|
|
48
|
+
export * from "./extras/curves/Curves.js";
|
|
49
|
+
export { DataUtils } from "./extras/DataUtils.js";
|
|
50
|
+
export * from "./extras/ImageUtils.js";
|
|
51
|
+
// export * from "./extras/PMREMGenerator.js";
|
|
52
|
+
export * from "./extras/ShapeUtils.js";
|
|
53
|
+
export { TextureUtils } from "./extras/TextureUtils.js";
|
|
54
|
+
export * from "./geometries/Geometries.js";
|
|
55
|
+
export * from "./helpers/ArrowHelper.js";
|
|
56
|
+
export * from "./helpers/AxesHelper.js";
|
|
57
|
+
export * from "./helpers/Box3Helper.js";
|
|
58
|
+
export * from "./helpers/BoxHelper.js";
|
|
59
|
+
export * from "./helpers/CameraHelper.js";
|
|
60
|
+
export * from "./helpers/DirectionalLightHelper.js";
|
|
61
|
+
export * from "./helpers/GridHelper.js";
|
|
62
|
+
export * from "./helpers/HemisphereLightHelper.js";
|
|
63
|
+
export * from "./helpers/PlaneHelper.js";
|
|
64
|
+
export * from "./helpers/PointLightHelper.js";
|
|
65
|
+
export * from "./helpers/PolarGridHelper.js";
|
|
66
|
+
export * from "./helpers/SkeletonHelper.js";
|
|
67
|
+
export * from "./helpers/SpotLightHelper.js";
|
|
68
|
+
export * from "./lights/AmbientLight.js";
|
|
69
|
+
export * from "./lights/DirectionalLight.js";
|
|
70
|
+
export * from "./lights/HemisphereLight.js";
|
|
71
|
+
export * from "./lights/Light.js";
|
|
72
|
+
export * from "./lights/LightProbe.js";
|
|
73
|
+
export * from "./lights/PointLight.js";
|
|
74
|
+
export * from "./lights/RectAreaLight.js";
|
|
75
|
+
export * from "./lights/SpotLight.js";
|
|
76
|
+
export * from "./loaders/AnimationLoader.js";
|
|
77
|
+
export * from "./loaders/AudioLoader.js";
|
|
78
|
+
export * from "./loaders/BufferGeometryLoader.js";
|
|
79
|
+
export * from "./loaders/Cache.js";
|
|
80
|
+
export * from "./loaders/CompressedTextureLoader.js";
|
|
81
|
+
export * from "./loaders/CubeTextureLoader.js";
|
|
82
|
+
export * from "./loaders/DataTextureLoader.js";
|
|
83
|
+
export * from "./loaders/FileLoader.js";
|
|
84
|
+
export * from "./loaders/ImageBitmapLoader.js";
|
|
85
|
+
export * from "./loaders/ImageLoader.js";
|
|
86
|
+
export * from "./loaders/Loader.js";
|
|
87
|
+
export * from "./loaders/LoaderUtils.js";
|
|
88
|
+
export * from "./loaders/LoadingManager.js";
|
|
89
|
+
export * from "./loaders/MaterialLoader.js";
|
|
90
|
+
export * from "./loaders/ObjectLoader.js";
|
|
91
|
+
export * from "./loaders/TextureLoader.js";
|
|
92
|
+
export * from "./materials/Materials.js";
|
|
93
|
+
export * from "./math/Box2.js";
|
|
94
|
+
export * from "./math/Box3.js";
|
|
95
|
+
export * from "./math/Color.js";
|
|
96
|
+
export { ColorManagement, DefinedColorSpace, WorkingColorSpace } from "./math/ColorManagement.js";
|
|
97
|
+
export * from "./math/Cylindrical.js";
|
|
98
|
+
export * from "./math/Euler.js";
|
|
99
|
+
export * from "./math/Frustum.js";
|
|
100
|
+
export * from "./math/Interpolant.js";
|
|
101
|
+
export * from "./math/interpolants/CubicInterpolant.js";
|
|
102
|
+
export * from "./math/interpolants/DiscreteInterpolant.js";
|
|
103
|
+
export * from "./math/interpolants/LinearInterpolant.js";
|
|
104
|
+
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
|
|
105
|
+
export * from "./math/Line3.js";
|
|
106
|
+
export { MathUtils } from "./math/MathUtils.js";
|
|
107
|
+
export * from "./math/Matrix2.js";
|
|
108
|
+
export * from "./math/Matrix3.js";
|
|
109
|
+
export * from "./math/Matrix4.js";
|
|
110
|
+
export * from "./math/Plane.js";
|
|
111
|
+
export * from "./math/Quaternion.js";
|
|
112
|
+
export * from "./math/Ray.js";
|
|
113
|
+
export * from "./math/Sphere.js";
|
|
114
|
+
export * from "./math/Spherical.js";
|
|
115
|
+
export * from "./math/SphericalHarmonics3.js";
|
|
116
|
+
export * from "./math/Triangle.js";
|
|
117
|
+
export * from "./math/Vector2.js";
|
|
118
|
+
export * from "./math/Vector3.js";
|
|
119
|
+
export * from "./math/Vector4.js";
|
|
120
|
+
export * from "./objects/BatchedMesh.js";
|
|
121
|
+
export * from "./objects/Bone.js";
|
|
122
|
+
export * from "./objects/Group.js";
|
|
123
|
+
export * from "./objects/InstancedMesh.js";
|
|
124
|
+
export * from "./objects/Line.js";
|
|
125
|
+
export * from "./objects/LineLoop.js";
|
|
126
|
+
export * from "./objects/LineSegments.js";
|
|
127
|
+
export * from "./objects/LOD.js";
|
|
128
|
+
export * from "./objects/Mesh.js";
|
|
129
|
+
export * from "./objects/Points.js";
|
|
130
|
+
export * from "./objects/Skeleton.js";
|
|
131
|
+
export * from "./objects/SkinnedMesh.js";
|
|
132
|
+
export * from "./objects/Sprite.js";
|
|
133
|
+
// export * from "./renderers/shaders/ShaderChunk.js";
|
|
134
|
+
// export * from "./renderers/shaders/ShaderLib.js";
|
|
135
|
+
// export * from "./renderers/shaders/UniformsLib.js";
|
|
136
|
+
// export { UniformsUtils } from './renderers/shaders/UniformsUtils.js';
|
|
137
|
+
export type { WebGLProgramParameters, WebGLProgramParametersWithUniforms } from "./renderers/webgl/WebGLPrograms.js";
|
|
138
|
+
export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
|
|
139
|
+
// export * from "./renderers/webgl/WebGLUtils.js";
|
|
140
|
+
export * from "./renderers/WebGL3DRenderTarget.js";
|
|
141
|
+
export * from "./renderers/WebGLArrayRenderTarget.js";
|
|
142
|
+
export * from "./renderers/WebGLCubeRenderTarget.js";
|
|
143
|
+
// export * from "./renderers/WebGLRenderer.js";
|
|
144
|
+
export * from "./renderers/WebGLRenderTarget.js";
|
|
145
|
+
export type {
|
|
146
|
+
WebXRController,
|
|
147
|
+
WebXRSpaceEventMap,
|
|
148
|
+
XRControllerEventType,
|
|
149
|
+
XRGripSpace,
|
|
150
|
+
XRHandInputState,
|
|
151
|
+
XRHandJoints,
|
|
152
|
+
XRHandSpace,
|
|
153
|
+
XRJointSpace,
|
|
154
|
+
XRTargetRaySpace,
|
|
155
|
+
} from "./renderers/webxr/WebXRController.js";
|
|
156
|
+
export * from "./scenes/Fog.js";
|
|
157
|
+
export * from "./scenes/FogExp2.js";
|
|
158
|
+
export * from "./scenes/Scene.js";
|
|
159
|
+
export * from "./textures/CanvasTexture.js";
|
|
160
|
+
export * from "./textures/CompressedArrayTexture.js";
|
|
161
|
+
export * from "./textures/CompressedCubeTexture.js";
|
|
162
|
+
export * from "./textures/CompressedTexture.js";
|
|
163
|
+
export * from "./textures/CubeTexture.js";
|
|
164
|
+
export * from "./textures/Data3DTexture.js";
|
|
165
|
+
export * from "./textures/DataArrayTexture.js";
|
|
166
|
+
export * from "./textures/DataTexture.js";
|
|
167
|
+
export * from "./textures/DepthTexture.js";
|
|
168
|
+
export * from "./textures/FramebufferTexture.js";
|
|
169
|
+
export * from "./textures/Source.js";
|
|
170
|
+
export * from "./textures/Texture.js";
|
|
171
|
+
export * from "./textures/VideoTexture.js";
|
|
172
|
+
export * from "./Three.Legacy.js";
|
|
173
|
+
export { createCanvasElement } from "./utils.js";
|
|
174
|
+
|
|
175
|
+
export { default as IESSpotLight } from "./lights/webgpu/IESSpotLight.js";
|
|
176
|
+
export * from "./nodes/Nodes.js";
|
|
177
|
+
export { default as PMREMGenerator } from "./renderers/common/extras/PMREMGenerator.js";
|
|
178
|
+
export { default as PostProcessing } from "./renderers/common/PostProcessing.js";
|
|
179
|
+
export { default as QuadMesh } from "./renderers/common/QuadMesh.js";
|
|
180
|
+
export type { default as Renderer } from "./renderers/common/Renderer.js";
|
|
181
|
+
export { default as StorageBufferAttribute } from "./renderers/common/StorageBufferAttribute.js";
|
|
182
|
+
export { default as StorageInstancedBufferAttribute } from "./renderers/common/StorageInstancedBufferAttribute.js";
|
|
183
|
+
export { default as StorageTexture } from "./renderers/common/StorageTexture.js";
|
|
184
|
+
export { default as WebGPURenderer } from "./renderers/webgpu/WebGPURenderer.js";
|
three/src/Three.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
|
|
4
|
-
export * from "./
|
|
5
|
-
export
|
|
6
|
-
/**
|
|
7
|
-
* Animation
|
|
8
|
-
*/
|
|
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";
|
|
9
6
|
export * from "./animation/KeyframeTrack.js";
|
|
10
7
|
export * from "./animation/PropertyBinding.js";
|
|
11
8
|
export * from "./animation/PropertyMixer.js";
|
|
@@ -15,32 +12,18 @@ export * from "./animation/tracks/NumberKeyframeTrack.js";
|
|
|
15
12
|
export * from "./animation/tracks/QuaternionKeyframeTrack.js";
|
|
16
13
|
export * from "./animation/tracks/StringKeyframeTrack.js";
|
|
17
14
|
export * from "./animation/tracks/VectorKeyframeTrack.js";
|
|
18
|
-
import * as AnimationUtils from "./animation/AnimationUtils.js";
|
|
19
|
-
export { AnimationUtils };
|
|
20
|
-
export * from "./animation/AnimationAction.js";
|
|
21
|
-
export * from "./animation/AnimationClip.js";
|
|
22
|
-
export * from "./animation/AnimationMixer.js";
|
|
23
|
-
export * from "./animation/AnimationObjectGroup.js";
|
|
24
|
-
/**
|
|
25
|
-
* Audio
|
|
26
|
-
*/
|
|
27
15
|
export * from "./audio/Audio.js";
|
|
28
16
|
export * from "./audio/AudioAnalyser.js";
|
|
29
17
|
export * from "./audio/AudioContext.js";
|
|
30
18
|
export * from "./audio/AudioListener.js";
|
|
31
19
|
export * from "./audio/PositionalAudio.js";
|
|
32
|
-
/**
|
|
33
|
-
* Cameras
|
|
34
|
-
*/
|
|
35
20
|
export * from "./cameras/ArrayCamera.js";
|
|
36
21
|
export * from "./cameras/Camera.js";
|
|
37
22
|
export * from "./cameras/CubeCamera.js";
|
|
38
23
|
export * from "./cameras/OrthographicCamera.js";
|
|
39
24
|
export * from "./cameras/PerspectiveCamera.js";
|
|
40
25
|
export * from "./cameras/StereoCamera.js";
|
|
41
|
-
|
|
42
|
-
* Core
|
|
43
|
-
*/
|
|
26
|
+
export * from "./constants.js";
|
|
44
27
|
export * from "./core/BufferAttribute.js";
|
|
45
28
|
export * from "./core/BufferGeometry.js";
|
|
46
29
|
export * from "./core/Clock.js";
|
|
@@ -57,28 +40,18 @@ export * from "./core/Raycaster.js";
|
|
|
57
40
|
export * from "./core/RenderTarget.js";
|
|
58
41
|
export * from "./core/Uniform.js";
|
|
59
42
|
export * from "./core/UniformsGroup.js";
|
|
60
|
-
/**
|
|
61
|
-
* Extras
|
|
62
|
-
*/
|
|
63
43
|
export * from "./extras/core/Curve.js";
|
|
64
44
|
export * from "./extras/core/CurvePath.js";
|
|
65
|
-
export * from "./extras/core/Interpolations.js";
|
|
66
45
|
export * from "./extras/core/Path.js";
|
|
67
46
|
export * from "./extras/core/Shape.js";
|
|
68
47
|
export * from "./extras/core/ShapePath.js";
|
|
69
48
|
export * from "./extras/curves/Curves.js";
|
|
70
|
-
export
|
|
49
|
+
export { DataUtils } from "./extras/DataUtils.js";
|
|
71
50
|
export * from "./extras/ImageUtils.js";
|
|
72
51
|
export * from "./extras/PMREMGenerator.js";
|
|
73
52
|
export * from "./extras/ShapeUtils.js";
|
|
74
53
|
export { TextureUtils } from "./extras/TextureUtils.js";
|
|
75
|
-
/**
|
|
76
|
-
* Geometries
|
|
77
|
-
*/
|
|
78
54
|
export * from "./geometries/Geometries.js";
|
|
79
|
-
/**
|
|
80
|
-
* Helpers
|
|
81
|
-
*/
|
|
82
55
|
export * from "./helpers/ArrowHelper.js";
|
|
83
56
|
export * from "./helpers/AxesHelper.js";
|
|
84
57
|
export * from "./helpers/Box3Helper.js";
|
|
@@ -92,24 +65,14 @@ export * from "./helpers/PointLightHelper.js";
|
|
|
92
65
|
export * from "./helpers/PolarGridHelper.js";
|
|
93
66
|
export * from "./helpers/SkeletonHelper.js";
|
|
94
67
|
export * from "./helpers/SpotLightHelper.js";
|
|
95
|
-
/**
|
|
96
|
-
* Lights
|
|
97
|
-
*/
|
|
98
68
|
export * from "./lights/AmbientLight.js";
|
|
99
69
|
export * from "./lights/DirectionalLight.js";
|
|
100
|
-
export * from "./lights/DirectionalLightShadow.js";
|
|
101
70
|
export * from "./lights/HemisphereLight.js";
|
|
102
71
|
export * from "./lights/Light.js";
|
|
103
72
|
export * from "./lights/LightProbe.js";
|
|
104
|
-
export * from "./lights/LightShadow.js";
|
|
105
73
|
export * from "./lights/PointLight.js";
|
|
106
|
-
export * from "./lights/PointLightShadow.js";
|
|
107
74
|
export * from "./lights/RectAreaLight.js";
|
|
108
75
|
export * from "./lights/SpotLight.js";
|
|
109
|
-
export * from "./lights/SpotLightShadow.js";
|
|
110
|
-
/**
|
|
111
|
-
* Loaders
|
|
112
|
-
*/
|
|
113
76
|
export * from "./loaders/AnimationLoader.js";
|
|
114
77
|
export * from "./loaders/AudioLoader.js";
|
|
115
78
|
export * from "./loaders/BufferGeometryLoader.js";
|
|
@@ -126,13 +89,7 @@ export * from "./loaders/LoadingManager.js";
|
|
|
126
89
|
export * from "./loaders/MaterialLoader.js";
|
|
127
90
|
export * from "./loaders/ObjectLoader.js";
|
|
128
91
|
export * from "./loaders/TextureLoader.js";
|
|
129
|
-
/**
|
|
130
|
-
* Materials
|
|
131
|
-
*/
|
|
132
92
|
export * from "./materials/Materials.js";
|
|
133
|
-
/**
|
|
134
|
-
* Math
|
|
135
|
-
*/
|
|
136
93
|
export * from "./math/Box2.js";
|
|
137
94
|
export * from "./math/Box3.js";
|
|
138
95
|
export * from "./math/Color.js";
|
|
@@ -146,6 +103,8 @@ export * from "./math/interpolants/DiscreteInterpolant.js";
|
|
|
146
103
|
export * from "./math/interpolants/LinearInterpolant.js";
|
|
147
104
|
export * from "./math/interpolants/QuaternionLinearInterpolant.js";
|
|
148
105
|
export * from "./math/Line3.js";
|
|
106
|
+
export { MathUtils } from "./math/MathUtils.js";
|
|
107
|
+
export * from "./math/Matrix2.js";
|
|
149
108
|
export * from "./math/Matrix3.js";
|
|
150
109
|
export * from "./math/Matrix4.js";
|
|
151
110
|
export * from "./math/Plane.js";
|
|
@@ -158,11 +117,6 @@ export * from "./math/Triangle.js";
|
|
|
158
117
|
export * from "./math/Vector2.js";
|
|
159
118
|
export * from "./math/Vector3.js";
|
|
160
119
|
export * from "./math/Vector4.js";
|
|
161
|
-
import * as MathUtils from "./math/MathUtils.js";
|
|
162
|
-
export { MathUtils };
|
|
163
|
-
/**
|
|
164
|
-
* Objects
|
|
165
|
-
*/
|
|
166
120
|
export * from "./objects/BatchedMesh.js";
|
|
167
121
|
export * from "./objects/Bone.js";
|
|
168
122
|
export * from "./objects/Group.js";
|
|
@@ -176,50 +130,32 @@ export * from "./objects/Points.js";
|
|
|
176
130
|
export * from "./objects/Skeleton.js";
|
|
177
131
|
export * from "./objects/SkinnedMesh.js";
|
|
178
132
|
export * from "./objects/Sprite.js";
|
|
179
|
-
/**
|
|
180
|
-
* Renderers
|
|
181
|
-
*/
|
|
182
133
|
export * from "./renderers/shaders/ShaderChunk.js";
|
|
183
134
|
export * from "./renderers/shaders/ShaderLib.js";
|
|
184
135
|
export * from "./renderers/shaders/UniformsLib.js";
|
|
185
|
-
export
|
|
186
|
-
export
|
|
187
|
-
export
|
|
188
|
-
export * from "./renderers/webgl/
|
|
189
|
-
export * from "./renderers/webgl/WebGLCubeUVMaps.js";
|
|
190
|
-
export * from "./renderers/webgl/WebGLExtensions.js";
|
|
191
|
-
export * from "./renderers/webgl/WebGLGeometries.js";
|
|
192
|
-
export * from "./renderers/webgl/WebGLIndexedBufferRenderer.js";
|
|
193
|
-
export * from "./renderers/webgl/WebGLInfo.js";
|
|
194
|
-
export * from "./renderers/webgl/WebGLLights.js";
|
|
195
|
-
export * from "./renderers/webgl/WebGLObjects.js";
|
|
196
|
-
export * from "./renderers/webgl/WebGLProgram.js";
|
|
197
|
-
export * from "./renderers/webgl/WebGLPrograms.js";
|
|
198
|
-
export * from "./renderers/webgl/WebGLProperties.js";
|
|
199
|
-
export * from "./renderers/webgl/WebGLRenderLists.js";
|
|
200
|
-
export * from "./renderers/webgl/WebGLShader.js";
|
|
201
|
-
export * from "./renderers/webgl/WebGLShadowMap.js";
|
|
202
|
-
export * from "./renderers/webgl/WebGLState.js";
|
|
203
|
-
export * from "./renderers/webgl/WebGLTextures.js";
|
|
204
|
-
export * from "./renderers/webgl/WebGLUniforms.js";
|
|
205
|
-
export * from "./renderers/webgl/WebGLUniformsGroups.js";
|
|
206
|
-
export { WebGLUtils } from "./renderers/webgl/WebGLUtils.js";
|
|
136
|
+
export { UniformsUtils } from "./renderers/shaders/UniformsUtils.js";
|
|
137
|
+
export type { WebGLProgramParameters, WebGLProgramParametersWithUniforms } from "./renderers/webgl/WebGLPrograms.js";
|
|
138
|
+
export type { WebGLShadowMap } from "./renderers/webgl/WebGLShadowMap.js";
|
|
139
|
+
export * from "./renderers/webgl/WebGLUtils.js";
|
|
207
140
|
export * from "./renderers/WebGL3DRenderTarget.js";
|
|
208
141
|
export * from "./renderers/WebGLArrayRenderTarget.js";
|
|
209
142
|
export * from "./renderers/WebGLCubeRenderTarget.js";
|
|
210
143
|
export * from "./renderers/WebGLRenderer.js";
|
|
211
144
|
export * from "./renderers/WebGLRenderTarget.js";
|
|
212
|
-
export
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
145
|
+
export type {
|
|
146
|
+
WebXRController,
|
|
147
|
+
WebXRSpaceEventMap,
|
|
148
|
+
XRControllerEventType,
|
|
149
|
+
XRGripSpace,
|
|
150
|
+
XRHandInputState,
|
|
151
|
+
XRHandJoints,
|
|
152
|
+
XRHandSpace,
|
|
153
|
+
XRJointSpace,
|
|
154
|
+
XRTargetRaySpace,
|
|
155
|
+
} from "./renderers/webxr/WebXRController.js";
|
|
217
156
|
export * from "./scenes/Fog.js";
|
|
218
157
|
export * from "./scenes/FogExp2.js";
|
|
219
158
|
export * from "./scenes/Scene.js";
|
|
220
|
-
/**
|
|
221
|
-
* Textures
|
|
222
|
-
*/
|
|
223
159
|
export * from "./textures/CanvasTexture.js";
|
|
224
160
|
export * from "./textures/CompressedArrayTexture.js";
|
|
225
161
|
export * from "./textures/CompressedCubeTexture.js";
|
|
@@ -233,7 +169,5 @@ export * from "./textures/FramebufferTexture.js";
|
|
|
233
169
|
export * from "./textures/Source.js";
|
|
234
170
|
export * from "./textures/Texture.js";
|
|
235
171
|
export * from "./textures/VideoTexture.js";
|
|
236
|
-
|
|
237
|
-
* Utils
|
|
238
|
-
*/
|
|
172
|
+
export * from "./Three.Legacy.js";
|
|
239
173
|
export { createCanvasElement } from "./utils.js";
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { AnimationBlendMode } from "../constants.js";
|
|
2
2
|
import { Vector3 } from "../math/Vector3.js";
|
|
3
3
|
import { Bone } from "../objects/Bone.js";
|
|
4
|
-
import { KeyframeTrack } from "./KeyframeTrack.js";
|
|
4
|
+
import { KeyframeTrack, KeyframeTrackJSON } from "./KeyframeTrack.js";
|
|
5
|
+
|
|
6
|
+
export interface AnimationClipJSON {
|
|
7
|
+
name: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
tracks: KeyframeTrackJSON[];
|
|
10
|
+
uuid: string;
|
|
11
|
+
blendMode: AnimationBlendMode;
|
|
12
|
+
}
|
|
5
13
|
|
|
6
14
|
export interface MorphTarget {
|
|
7
15
|
name: string;
|
|
@@ -45,7 +53,7 @@ export class AnimationClip {
|
|
|
45
53
|
fps: number,
|
|
46
54
|
noLoop: boolean,
|
|
47
55
|
): AnimationClip[];
|
|
48
|
-
static parse(json:
|
|
49
|
-
static parseAnimation(animation:
|
|
50
|
-
static toJSON(clip: AnimationClip):
|
|
56
|
+
static parse(json: AnimationClipJSON): AnimationClip;
|
|
57
|
+
static parseAnimation(animation: AnimationClipJSON, bones: Bone[]): AnimationClip;
|
|
58
|
+
static toJSON(clip: AnimationClip): AnimationClipJSON;
|
|
51
59
|
}
|