@types/three 0.179.0 → 0.181.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/examples/jsm/Addons.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +0 -30
- three/examples/jsm/controls/PointerLockControls.d.ts +0 -5
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +2 -2
- three/examples/jsm/exporters/KTX2Exporter.d.ts +2 -2
- three/examples/jsm/exporters/STLExporter.d.ts +2 -2
- three/examples/jsm/exporters/USDZExporter.d.ts +2 -2
- three/examples/jsm/geometries/TextGeometry.d.ts +2 -0
- three/examples/jsm/gpgpu/BitonicSort.d.ts +21 -0
- three/examples/jsm/inspector/Inspector.d.ts +10 -0
- three/examples/jsm/inspector/RendererInspector.d.ts +4 -0
- three/examples/jsm/inspector/tabs/Parameters.d.ts +95 -0
- three/examples/jsm/inspector/ui/Tab.d.ts +3 -0
- three/examples/jsm/inspector/ui/Values.d.ts +80 -0
- three/examples/jsm/interactive/SelectionBox.d.ts +9 -9
- three/examples/jsm/lighting/TiledLighting.d.ts +1 -2
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +2 -2
- three/examples/jsm/loaders/HDRLoader.d.ts +22 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +3 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +5 -1
- three/examples/jsm/loaders/RGBELoader.d.ts +9 -15
- three/examples/jsm/materials/WoodNodeMaterial.d.ts +75 -0
- three/examples/jsm/math/ColorSpaces.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +6 -7
- three/examples/jsm/objects/WaterMesh.d.ts +2 -2
- three/examples/jsm/postprocessing/SSRPass.d.ts +6 -29
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +15 -10
- three/examples/jsm/tsl/display/AfterImageNode.d.ts +4 -5
- three/examples/jsm/tsl/display/AnaglyphPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/AnamorphicNode.d.ts +11 -3
- three/examples/jsm/tsl/display/BleachBypass.d.ts +1 -2
- three/examples/jsm/tsl/display/BloomNode.d.ts +2 -3
- three/examples/jsm/tsl/display/ChromaticAberrationNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DenoiseNode.d.ts +1 -2
- three/examples/jsm/tsl/display/DepthOfFieldNode.d.ts +15 -10
- three/examples/jsm/tsl/display/DotScreenNode.d.ts +1 -2
- three/examples/jsm/tsl/display/FXAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/FilmNode.d.ts +1 -2
- three/examples/jsm/tsl/display/GTAONode.d.ts +11 -10
- three/examples/jsm/tsl/display/GaussianBlurNode.d.ts +28 -9
- three/examples/jsm/tsl/display/LensflareNode.d.ts +6 -7
- three/examples/jsm/tsl/display/Lut3DNode.d.ts +2 -3
- three/examples/jsm/tsl/display/MotionBlur.d.ts +1 -2
- three/examples/jsm/tsl/display/OutlineNode.d.ts +6 -7
- three/examples/jsm/tsl/display/ParallaxBarrierPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/PixelationPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/RGBShiftNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SMAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSAAPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/SSGINode.d.ts +30 -0
- three/examples/jsm/tsl/display/SSRNode.d.ts +18 -14
- three/examples/jsm/tsl/display/SSSNode.d.ts +18 -0
- three/examples/jsm/tsl/display/Sepia.d.ts +1 -2
- three/examples/jsm/tsl/display/SobelOperatorNode.d.ts +1 -2
- three/examples/jsm/tsl/display/StereoPassNode.d.ts +1 -2
- three/examples/jsm/tsl/display/TRAANode.d.ts +1 -2
- three/examples/jsm/tsl/display/TransitionNode.d.ts +1 -2
- three/examples/jsm/tsl/display/boxBlur.d.ts +10 -0
- three/examples/jsm/tsl/display/hashBlur.d.ts +2 -3
- three/examples/jsm/tsl/lighting/TiledLightsNode.d.ts +3 -4
- three/examples/jsm/tsl/math/Bayer.d.ts +1 -2
- three/examples/jsm/tsl/utils/Raymarching.d.ts +2 -3
- three/package.json +2 -2
- three/src/Three.Core.d.ts +2 -1
- three/src/Three.TSL.d.ts +36 -5
- three/src/Three.WebGPU.Nodes.d.ts +2 -0
- three/src/Three.WebGPU.d.ts +2 -0
- three/src/animation/AnimationClip.d.ts +5 -0
- three/src/animation/AnimationMixer.d.ts +3 -3
- three/src/constants.d.ts +3 -1
- three/src/lights/DirectionalLight.d.ts +0 -1
- three/src/loaders/ObjectLoader.d.ts +3 -3
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/LineBasicMaterial.d.ts +1 -0
- three/src/materials/LineDashedMaterial.d.ts +1 -0
- three/src/materials/Material.d.ts +2 -2
- three/src/materials/MeshBasicMaterial.d.ts +1 -0
- three/src/materials/MeshDepthMaterial.d.ts +1 -0
- three/src/materials/MeshDistanceMaterial.d.ts +2 -1
- three/src/materials/MeshLambertMaterial.d.ts +2 -1
- three/src/materials/MeshMatcapMaterial.d.ts +15 -0
- three/src/materials/MeshNormalMaterial.d.ts +1 -0
- three/src/materials/MeshPhongMaterial.d.ts +2 -1
- three/src/materials/MeshPhysicalMaterial.d.ts +1 -1
- three/src/materials/MeshStandardMaterial.d.ts +7 -7
- three/src/materials/MeshToonMaterial.d.ts +1 -0
- three/src/materials/PointsMaterial.d.ts +2 -1
- three/src/materials/ShaderMaterial.d.ts +9 -8
- three/src/materials/ShadowMaterial.d.ts +1 -0
- three/src/materials/SpriteMaterial.d.ts +1 -0
- three/src/materials/nodes/Line2NodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshBasicNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshMatcapNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshNormalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhongNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshPhysicalNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshSSSNodeMaterial.d.ts +2 -1
- three/src/materials/nodes/MeshStandardNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/MeshToonNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/NodeMaterial.d.ts +3 -3
- three/src/materials/nodes/PointsNodeMaterial.d.ts +17 -0
- three/src/materials/nodes/ShadowNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/SpriteNodeMaterial.d.ts +1 -0
- three/src/materials/nodes/VolumeNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/manager/NodeMaterialObserver.d.ts +1 -1
- three/src/math/ColorManagement.d.ts +1 -1
- three/src/math/Vector3.d.ts +2 -2
- three/src/nodes/Nodes.d.ts +4 -1
- three/src/nodes/TSL.d.ts +4 -1
- three/src/nodes/accessors/AccessorsUtils.d.ts +4 -5
- three/src/nodes/accessors/Arrays.d.ts +2 -3
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/Bitangent.d.ts +4 -5
- three/src/nodes/accessors/BufferAttributeNode.d.ts +8 -9
- three/src/nodes/accessors/BufferNode.d.ts +2 -2
- three/src/nodes/accessors/BuiltinNode.d.ts +1 -2
- three/src/nodes/accessors/Camera.d.ts +11 -10
- three/src/nodes/accessors/ClippingNode.d.ts +3 -6
- three/src/nodes/accessors/CubeTextureNode.d.ts +8 -9
- three/src/nodes/accessors/InstanceNode.d.ts +1 -2
- three/src/nodes/accessors/InstancedMeshNode.d.ts +1 -2
- three/src/nodes/accessors/Lights.d.ts +6 -7
- three/src/nodes/accessors/MaterialNode.d.ts +38 -39
- three/src/nodes/accessors/MaterialProperties.d.ts +3 -4
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +2 -2
- three/src/nodes/accessors/ModelNode.d.ts +12 -13
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -2
- three/src/nodes/accessors/MorphNode.d.ts +1 -2
- three/src/nodes/accessors/Normal.d.ts +13 -14
- three/src/nodes/accessors/Object3DNode.d.ts +6 -7
- three/src/nodes/accessors/PointUVNode.d.ts +1 -2
- three/src/nodes/accessors/Position.d.ts +7 -8
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +2 -3
- three/src/nodes/accessors/ReferenceNode.d.ts +2 -3
- three/src/nodes/accessors/ReflectVector.d.ts +4 -5
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -2
- three/src/nodes/accessors/SceneNode.d.ts +3 -4
- three/src/nodes/accessors/SkinningNode.d.ts +5 -6
- three/src/nodes/accessors/StorageBufferNode.d.ts +5 -5
- three/src/nodes/accessors/StorageTextureNode.d.ts +7 -4
- three/src/nodes/accessors/Tangent.d.ts +4 -6
- three/src/nodes/accessors/TangentUtils.d.ts +2 -3
- three/src/nodes/accessors/Texture3DNode.d.ts +3 -4
- three/src/nodes/accessors/TextureBicubic.d.ts +2 -3
- three/src/nodes/accessors/TextureNode.d.ts +31 -24
- three/src/nodes/accessors/TextureSizeNode.d.ts +1 -2
- three/src/nodes/accessors/UV.d.ts +1 -2
- three/src/nodes/accessors/UniformArrayNode.d.ts +2 -3
- three/src/nodes/accessors/UserDataNode.d.ts +1 -2
- three/src/nodes/accessors/VelocityNode.d.ts +1 -2
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -2
- three/src/nodes/code/CodeNode.d.ts +4 -5
- three/src/nodes/code/ExpressionNode.d.ts +1 -2
- three/src/nodes/code/FunctionCallNode.d.ts +6 -5
- three/src/nodes/code/FunctionNode.d.ts +4 -6
- three/src/nodes/code/ScriptableNode.d.ts +1 -2
- three/src/nodes/code/ScriptableValueNode.d.ts +1 -2
- three/src/nodes/core/ArrayNode.d.ts +6 -6
- three/src/nodes/core/AssignNode.d.ts +1 -8
- three/src/nodes/core/AttributeNode.d.ts +1 -2
- three/src/nodes/core/BypassNode.d.ts +5 -5
- three/src/nodes/core/ContextNode.d.ts +25 -9
- three/src/nodes/core/IndexNode.d.ts +10 -7
- three/src/nodes/core/InspectorNode.d.ts +16 -0
- three/src/nodes/core/IsolateNode.d.ts +36 -0
- three/src/nodes/core/MRTNode.d.ts +3 -4
- three/src/nodes/core/Node.d.ts +22 -13
- three/src/nodes/core/NodeUtils.d.ts +0 -10
- three/src/nodes/core/OutputStructNode.d.ts +1 -2
- three/src/nodes/core/ParameterNode.d.ts +1 -2
- three/src/nodes/core/PropertyNode.d.ts +30 -31
- three/src/nodes/core/StackNode.d.ts +1 -4
- three/src/nodes/core/StructNode.d.ts +3 -4
- three/src/nodes/core/SubBuildNode.d.ts +1 -2
- three/src/nodes/core/UniformNode.d.ts +5 -8
- three/src/nodes/core/VarNode.d.ts +11 -21
- three/src/nodes/core/VaryingNode.d.ts +12 -10
- three/src/nodes/display/BlendModes.d.ts +11 -12
- three/src/nodes/display/BumpMapNode.d.ts +1 -2
- three/src/nodes/display/ColorAdjustment.d.ts +7 -8
- three/src/nodes/display/ColorSpaceFunctions.d.ts +2 -3
- three/src/nodes/display/ColorSpaceNode.d.ts +19 -9
- three/src/nodes/display/FrontFacingNode.d.ts +3 -4
- three/src/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +20 -11
- three/src/nodes/display/PosterizeNode.d.ts +1 -2
- three/src/nodes/display/RenderOutputNode.d.ts +11 -6
- three/src/nodes/display/ScreenNode.d.ts +12 -10
- three/src/nodes/display/ToneMappingFunctions.d.ts +6 -7
- three/src/nodes/display/ToneMappingNode.d.ts +11 -10
- three/src/nodes/display/ToonOutlinePassNode.d.ts +1 -2
- three/src/nodes/display/ViewportDepthNode.d.ts +3 -4
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportTextureNode.d.ts +6 -3
- three/src/nodes/fog/Fog.d.ts +5 -6
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +4 -5
- three/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.d.ts +14 -0
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -2
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -2
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -2
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -2
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -2
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -2
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -2
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -2
- three/src/nodes/functions/material/getAlphaHashThreshold.d.ts +1 -2
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getParallaxCorrectNormal.d.ts +1 -2
- three/src/nodes/functions/material/getRoughness.d.ts +1 -2
- three/src/nodes/functions/material/getShIrradianceAt.d.ts +1 -2
- three/src/nodes/geometry/RangeNode.d.ts +1 -2
- three/src/nodes/gpgpu/AtomicFunctionNode.d.ts +10 -11
- three/src/nodes/gpgpu/BarrierNode.d.ts +3 -4
- three/src/nodes/gpgpu/ComputeBuiltinNode.d.ts +5 -6
- three/src/nodes/gpgpu/ComputeNode.d.ts +21 -13
- three/src/nodes/gpgpu/SubgroupFunctionNode.d.ts +99 -0
- three/src/nodes/gpgpu/WorkgroupInfoNode.d.ts +1 -2
- three/src/nodes/lighting/AnalyticLightNode.d.ts +1 -2
- three/src/nodes/lighting/LightUtils.d.ts +1 -2
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -2
- three/src/nodes/lighting/LightsNode.d.ts +1 -2
- three/src/nodes/lighting/PointLightNode.d.ts +5 -6
- three/src/nodes/lighting/PointShadowNode.d.ts +4 -5
- three/src/nodes/lighting/ShadowBaseNode.d.ts +1 -2
- three/src/nodes/lighting/ShadowFilterNode.d.ts +4 -5
- three/src/nodes/lighting/ShadowNode.d.ts +1 -2
- three/src/nodes/lighting/SpotLightNode.d.ts +1 -2
- three/src/nodes/materialx/MaterialXNodes.d.ts +41 -42
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -3
- three/src/nodes/materialx/lib/mx_noise.d.ts +73 -74
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -2
- three/src/nodes/math/BitcastNode.d.ts +24 -0
- three/src/nodes/math/ConditionalNode.d.ts +11 -5
- three/src/nodes/math/Hash.d.ts +1 -2
- three/src/nodes/math/MathNode.d.ts +223 -80
- three/src/nodes/math/OperatorNode.d.ts +203 -59
- three/src/nodes/math/TriNoise3D.d.ts +3 -4
- three/src/nodes/pmrem/PMREMNode.d.ts +1 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +3 -4
- three/src/nodes/procedural/Checker.d.ts +1 -2
- three/src/nodes/shapes/Shapes.d.ts +1 -2
- three/src/nodes/tsl/TSLBase.d.ts +2 -1
- three/src/nodes/tsl/TSLCore.d.ts +235 -128
- three/src/nodes/utils/CubeMapNode.d.ts +1 -2
- three/src/nodes/utils/DebugNode.d.ts +9 -5
- three/src/nodes/utils/Discard.d.ts +6 -6
- three/src/nodes/utils/EquirectUV.d.ts +1 -2
- three/src/nodes/utils/EventNode.d.ts +8 -3
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +1 -2
- three/src/nodes/utils/LoopNode.d.ts +7 -6
- three/src/nodes/utils/MatcapUV.d.ts +1 -2
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -2
- three/src/nodes/utils/Oscillators.d.ts +4 -5
- three/src/nodes/utils/Packing.d.ts +2 -3
- three/src/nodes/utils/PostProcessingUtils.d.ts +5 -4
- three/src/nodes/utils/RTTNode.d.ts +2 -3
- three/src/nodes/utils/ReflectorNode.d.ts +18 -4
- three/src/nodes/utils/RemapNode.d.ts +29 -7
- three/src/nodes/utils/RotateNode.d.ts +1 -2
- three/src/nodes/utils/SampleNode.d.ts +3 -3
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -2
- three/src/nodes/utils/SpriteUtils.d.ts +1 -2
- three/src/nodes/utils/StorageArrayElementNode.d.ts +1 -2
- three/src/nodes/utils/Timer.d.ts +3 -19
- three/src/nodes/utils/TriplanarTextures.d.ts +2 -3
- three/src/nodes/utils/UVUtils.d.ts +2 -3
- three/src/nodes/utils/ViewportUtils.d.ts +1 -2
- three/src/objects/InstancedMesh.d.ts +2 -3
- three/src/renderers/WebGLRenderer.d.ts +0 -25
- three/src/renderers/common/Animation.d.ts +4 -1
- three/src/renderers/common/Attributes.d.ts +1 -1
- three/src/renderers/common/Bindings.d.ts +12 -0
- three/src/renderers/common/CanvasTarget.d.ts +142 -0
- three/src/renderers/common/Geometries.d.ts +1 -0
- three/src/renderers/common/InspectorBase.d.ts +105 -0
- three/src/renderers/common/PostProcessing.d.ts +3 -0
- three/src/renderers/common/QuadMesh.d.ts +3 -0
- three/src/renderers/common/RenderContexts.d.ts +3 -1
- three/src/renderers/common/Renderer.d.ts +125 -37
- three/src/renderers/common/SampledTexture.d.ts +2 -0
- three/src/renderers/common/Sampler.d.ts +2 -0
- three/src/renderers/common/Textures.d.ts +21 -1
- three/src/renderers/common/TimestampQueryPool.d.ts +26 -4
- three/src/renderers/common/XRManager.d.ts +10 -0
- three/src/renderers/common/extras/PMREMGenerator.d.ts +19 -1
- three/src/renderers/common/nodes/NodeLibrary.d.ts +8 -12
- three/src/renderers/common/nodes/Nodes.d.ts +13 -14
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +6 -1
- three/src/scenes/Scene.d.ts +2 -2
- three/src/textures/CanvasTexture.d.ts +3 -3
- three/src/textures/CompressedArrayTexture.d.ts +6 -9
- three/src/textures/CompressedCubeTexture.d.ts +3 -3
- three/src/textures/CompressedTexture.d.ts +10 -12
- three/src/textures/CubeTexture.d.ts +4 -11
- three/src/textures/Data3DTexture.d.ts +7 -11
- three/src/textures/DataArrayTexture.d.ts +10 -10
- three/src/textures/DataTexture.d.ts +6 -12
- three/src/textures/DepthTexture.d.ts +7 -8
- three/src/textures/ExternalTexture.d.ts +5 -3
- three/src/textures/FramebufferTexture.d.ts +6 -1
- three/src/textures/Source.d.ts +3 -3
- three/src/textures/Texture.d.ts +9 -9
- three/src/textures/VideoFrameTexture.d.ts +1 -1
- three/src/textures/VideoTexture.d.ts +2 -2
- three/src/utils.d.ts +18 -2
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -37
- three/src/nodes/core/CacheNode.d.ts +0 -21
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Node, TempNode, TextureNode } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
declare class SobelOperatorNode extends TempNode {
|
|
@@ -9,4 +8,4 @@ declare class SobelOperatorNode extends TempNode {
|
|
|
9
8
|
|
|
10
9
|
export default SobelOperatorNode;
|
|
11
10
|
|
|
12
|
-
export const sobel: (node: Node) =>
|
|
11
|
+
export const sobel: (node: Node) => SobelOperatorNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Camera, PassNode, Scene, StereoCamera } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
declare class StereoPassNode extends PassNode {
|
|
@@ -11,4 +10,4 @@ declare class StereoPassNode extends PassNode {
|
|
|
11
10
|
|
|
12
11
|
export default StereoPassNode;
|
|
13
12
|
|
|
14
|
-
export const stereoPass: (scene: Scene, camera: Camera) =>
|
|
13
|
+
export const stereoPass: (scene: Scene, camera: Camera) => StereoPassNode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Camera, Node, TempNode, TextureNode } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
declare class TRAANode extends TempNode {
|
|
@@ -19,4 +18,4 @@ export const traa: (
|
|
|
19
18
|
depthNode: TextureNode,
|
|
20
19
|
velocityNode: TextureNode,
|
|
21
20
|
camera: Camera,
|
|
22
|
-
) =>
|
|
21
|
+
) => TRAANode;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Node, TempNode, TextureNode, UniformNode } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
declare class TransitionNode extends TempNode {
|
|
@@ -29,4 +28,4 @@ export const transition: (
|
|
|
29
28
|
mixRatio: UniformNode<number>,
|
|
30
29
|
threshold: UniformNode<number>,
|
|
31
30
|
useTexture: UniformNode<number>,
|
|
32
|
-
) =>
|
|
31
|
+
) => TransitionNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Node } from "three/webgpu";
|
|
2
|
+
|
|
3
|
+
export interface BoxBlurOptions {
|
|
4
|
+
size?: Node | undefined;
|
|
5
|
+
separation?: Node | undefined;
|
|
6
|
+
mask?: Node | null | undefined;
|
|
7
|
+
premultipliedAlpha?: boolean | undefined;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const boxBlur: (textureNode: Node, options?: BoxBlurOptions) => Node;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Node } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
interface HashBlurOptions {
|
|
5
|
-
|
|
4
|
+
size?: Node | undefined;
|
|
6
5
|
mask?: Node | null | undefined;
|
|
7
6
|
premultipliedAlpha?: boolean | undefined;
|
|
8
7
|
}
|
|
@@ -11,4 +10,4 @@ export const hashBlur: (
|
|
|
11
10
|
textureNode: Node,
|
|
12
11
|
bluramount?: Node | number,
|
|
13
12
|
options?: HashBlurOptions,
|
|
14
|
-
) =>
|
|
13
|
+
) => Node;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { LightsNode, Node } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
export const circleIntersectsAABB: (
|
|
@@ -6,18 +5,18 @@ export const circleIntersectsAABB: (
|
|
|
6
5
|
radius: Node,
|
|
7
6
|
minBounds: Node,
|
|
8
7
|
maxBounds: Node,
|
|
9
|
-
) =>
|
|
8
|
+
) => Node;
|
|
10
9
|
|
|
11
10
|
declare class TiledLightsNode extends LightsNode {
|
|
12
11
|
constructor(maxLights?: number, tileSize?: number);
|
|
13
12
|
|
|
14
13
|
updateLightsTexture(): void;
|
|
15
14
|
|
|
16
|
-
getBlock(block?: number):
|
|
15
|
+
getBlock(block?: number): Node;
|
|
17
16
|
|
|
18
17
|
setSize(width: number, height: number): this;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export default TiledLightsNode;
|
|
22
21
|
|
|
23
|
-
export const tiledLights: (maxLights?: number, tileSize?: number) =>
|
|
22
|
+
export const tiledLights: (maxLights?: number, tileSize?: number) => TiledLightsNode;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { FunctionNode, Node } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
export const RaymarchingBox: (
|
|
5
4
|
steps: number | Node,
|
|
6
5
|
callback:
|
|
7
|
-
| ((params: { positionRay:
|
|
8
|
-
| FunctionNode<{ positionRay:
|
|
6
|
+
| ((params: { positionRay: Node }) => void)
|
|
7
|
+
| FunctionNode<{ positionRay: Node }>,
|
|
9
8
|
) => void;
|
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.181.0",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"meshoptimizer": "~0.22.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {},
|
|
52
|
-
"typesPublisherContentHash": "
|
|
52
|
+
"typesPublisherContentHash": "d4f610987bd76c1162c3a6a2221b72979499c9bc94a8d25712df1534d6b1bb87",
|
|
53
53
|
"typeScriptVersion": "5.2"
|
|
54
54
|
}
|
three/src/Three.Core.d.ts
CHANGED
|
@@ -154,9 +154,10 @@ export * from "./textures/Data3DTexture.js";
|
|
|
154
154
|
export * from "./textures/DataArrayTexture.js";
|
|
155
155
|
export * from "./textures/DataTexture.js";
|
|
156
156
|
export * from "./textures/DepthTexture.js";
|
|
157
|
+
export * from "./textures/ExternalTexture.js";
|
|
157
158
|
export * from "./textures/FramebufferTexture.js";
|
|
158
159
|
export * from "./textures/Source.js";
|
|
159
160
|
export * from "./textures/Texture.js";
|
|
160
161
|
export * from "./textures/VideoFrameTexture.js";
|
|
161
162
|
export * from "./textures/VideoTexture.js";
|
|
162
|
-
export { createCanvasElement } from "./utils.js";
|
|
163
|
+
export { createCanvasElement, error, getConsoleFunction, log, setConsoleFunction, warn, warnOnce } from "./utils.js";
|
three/src/Three.TSL.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export const PCFShadowFilter: typeof TSL.PCFShadowFilter;
|
|
|
24
24
|
export const PCFSoftShadowFilter: typeof TSL.PCFSoftShadowFilter;
|
|
25
25
|
export const PI: typeof TSL.PI;
|
|
26
26
|
export const PI2: typeof TSL.PI2;
|
|
27
|
+
export const TWO_PI: typeof TSL.TWO_PI;
|
|
28
|
+
export const HALF_PI: typeof TSL.HALF_PI;
|
|
27
29
|
export const PointShadowFilter: typeof TSL.PointShadowFilter;
|
|
28
30
|
export const Return: typeof TSL.Return;
|
|
29
31
|
export const Schlick_to_F0: typeof TSL.Schlick_to_F0;
|
|
@@ -97,6 +99,7 @@ export const buffer: typeof TSL.buffer;
|
|
|
97
99
|
export const bufferAttribute: typeof TSL.bufferAttribute;
|
|
98
100
|
export const bumpMap: typeof TSL.bumpMap;
|
|
99
101
|
export const burn: typeof TSL.burn;
|
|
102
|
+
export const builtin: typeof TSL.builtin;
|
|
100
103
|
export const bvec2: typeof TSL.bvec2;
|
|
101
104
|
export const bvec3: typeof TSL.bvec3;
|
|
102
105
|
export const bvec4: typeof TSL.bvec4;
|
|
@@ -111,6 +114,7 @@ export const cameraPosition: typeof TSL.cameraPosition;
|
|
|
111
114
|
export const cameraProjectionMatrix: typeof TSL.cameraProjectionMatrix;
|
|
112
115
|
export const cameraProjectionMatrixInverse: typeof TSL.cameraProjectionMatrixInverse;
|
|
113
116
|
export const cameraViewMatrix: typeof TSL.cameraViewMatrix;
|
|
117
|
+
export const cameraViewport: typeof TSL.cameraViewport;
|
|
114
118
|
export const cameraWorldMatrix: typeof TSL.cameraWorldMatrix;
|
|
115
119
|
export const cbrt: typeof TSL.cbrt;
|
|
116
120
|
export const cdl: typeof TSL.cdl;
|
|
@@ -177,6 +181,8 @@ export const faceDirection: typeof TSL.faceDirection;
|
|
|
177
181
|
export const faceForward: typeof TSL.faceForward;
|
|
178
182
|
export const faceforward: typeof TSL.faceforward;
|
|
179
183
|
export const float: typeof TSL.float;
|
|
184
|
+
export const floatBitsToInt: typeof TSL.floatBitsToInt;
|
|
185
|
+
export const floatBitsToUint: typeof TSL.floatBitsToUint;
|
|
180
186
|
export const floor: typeof TSL.floor;
|
|
181
187
|
export const fog: typeof TSL.fog;
|
|
182
188
|
export const fract: typeof TSL.fract;
|
|
@@ -192,6 +198,7 @@ export const getDirection: typeof TSL.getDirection;
|
|
|
192
198
|
export const getDistanceAttenuation: typeof TSL.getDistanceAttenuation;
|
|
193
199
|
export const getGeometryRoughness: typeof TSL.getGeometryRoughness;
|
|
194
200
|
export const getNormalFromDepth: typeof TSL.getNormalFromDepth;
|
|
201
|
+
export const interleavedGradientNoise: typeof TSL.interleavedGradientNoise;
|
|
195
202
|
export const getParallaxCorrectNormal: typeof TSL.getParallaxCorrectNormal;
|
|
196
203
|
export const getRoughness: typeof TSL.getRoughness;
|
|
197
204
|
export const getScreenPosition: typeof TSL.getScreenPosition;
|
|
@@ -219,6 +226,7 @@ export const instancedBufferAttribute: typeof TSL.instancedBufferAttribute;
|
|
|
219
226
|
export const instancedDynamicBufferAttribute: typeof TSL.instancedDynamicBufferAttribute;
|
|
220
227
|
export const instancedMesh: typeof TSL.instancedMesh;
|
|
221
228
|
export const int: typeof TSL.int;
|
|
229
|
+
export const intBitsToFloat: typeof TSL.intBitsToFloat;
|
|
222
230
|
export const inverse: typeof TSL.inverse;
|
|
223
231
|
export const inverseSqrt: typeof TSL.inverseSqrt;
|
|
224
232
|
export const inversesqrt: typeof TSL.inversesqrt;
|
|
@@ -391,6 +399,8 @@ export const objectRadius: typeof TSL.objectRadius;
|
|
|
391
399
|
export const objectScale: typeof TSL.objectScale;
|
|
392
400
|
export const objectViewPosition: typeof TSL.objectViewPosition;
|
|
393
401
|
export const objectWorldMatrix: typeof TSL.objectWorldMatrix;
|
|
402
|
+
export const OnBeforeObjectUpdate: typeof TSL.OnBeforeObjectUpdate;
|
|
403
|
+
export const OnBeforeMaterialUpdate: typeof TSL.OnBeforeMaterialUpdate;
|
|
394
404
|
export const OnObjectUpdate: typeof TSL.OnObjectUpdate;
|
|
395
405
|
export const OnMaterialUpdate: typeof TSL.OnMaterialUpdate;
|
|
396
406
|
export const oneMinus: typeof TSL.oneMinus;
|
|
@@ -465,6 +475,7 @@ export const saturate: typeof TSL.saturate;
|
|
|
465
475
|
export const saturation: typeof TSL.saturation;
|
|
466
476
|
export const screen: typeof TSL.screen;
|
|
467
477
|
export const screenCoordinate: typeof TSL.screenCoordinate;
|
|
478
|
+
export const screenDPR: typeof TSL.screenDPR;
|
|
468
479
|
export const screenSize: typeof TSL.screenSize;
|
|
469
480
|
export const screenUV: typeof TSL.screenUV;
|
|
470
481
|
export const scriptable: typeof TSL.scriptable;
|
|
@@ -504,15 +515,35 @@ export const storageTexture: typeof TSL.storageTexture;
|
|
|
504
515
|
export const string: typeof TSL.string;
|
|
505
516
|
export const struct: typeof TSL.struct;
|
|
506
517
|
export const sub: typeof TSL.sub;
|
|
518
|
+
export const subgroupAdd: typeof TSL.subgroupAdd;
|
|
519
|
+
export const subgroupAll: typeof TSL.subgroupAll;
|
|
520
|
+
export const subgroupAnd: typeof TSL.subgroupAnd;
|
|
521
|
+
export const subgroupAny: typeof TSL.subgroupAny;
|
|
522
|
+
export const subgroupBallot: typeof TSL.subgroupBallot;
|
|
523
|
+
export const subgroupBroadcast: typeof TSL.subgroupBroadcast;
|
|
524
|
+
export const subgroupBroadcastFirst: typeof TSL.subgroupBroadcastFirst;
|
|
507
525
|
export const subBuild: typeof TSL.subBuild;
|
|
526
|
+
export const subgroupElect: typeof TSL.subgroupElect;
|
|
527
|
+
export const subgroupExclusiveAdd: typeof TSL.subgroupExclusiveAdd;
|
|
528
|
+
export const subgroupExclusiveMul: typeof TSL.subgroupExclusiveMul;
|
|
529
|
+
export const subgroupInclusiveAdd: typeof TSL.subgroupInclusiveAdd;
|
|
530
|
+
export const subgroupInclusiveMul: typeof TSL.subgroupInclusiveMul;
|
|
508
531
|
export const subgroupIndex: typeof TSL.subgroupIndex;
|
|
532
|
+
export const subgroupMax: typeof TSL.subgroupMax;
|
|
533
|
+
export const subgroupMin: typeof TSL.subgroupMin;
|
|
534
|
+
export const subgroupMul: typeof TSL.subgroupMul;
|
|
535
|
+
export const subgroupOr: typeof TSL.subgroupOr;
|
|
536
|
+
export const subgroupShuffle: typeof TSL.subgroupShuffle;
|
|
537
|
+
export const subgroupShuffleDown: typeof TSL.subgroupShuffleDown;
|
|
538
|
+
export const subgroupShuffleUp: typeof TSL.subgroupShuffleUp;
|
|
539
|
+
export const subgroupShuffleXor: typeof TSL.subgroupShuffleXor;
|
|
509
540
|
export const subgroupSize: typeof TSL.subgroupSize;
|
|
541
|
+
export const subgroupXor: typeof TSL.subgroupXor;
|
|
510
542
|
export const tan: typeof TSL.tan;
|
|
511
543
|
export const tangentGeometry: typeof TSL.tangentGeometry;
|
|
512
544
|
export const tangentLocal: typeof TSL.tangentLocal;
|
|
513
545
|
export const tangentView: typeof TSL.tangentView;
|
|
514
546
|
export const tangentWorld: typeof TSL.tangentWorld;
|
|
515
|
-
export const temp: typeof TSL.temp;
|
|
516
547
|
export const texture: typeof TSL.texture;
|
|
517
548
|
export const texture3D: typeof TSL.texture3D;
|
|
518
549
|
export const textureBarrier: typeof TSL.textureBarrier;
|
|
@@ -521,12 +552,10 @@ export const textureBicubicLevel: typeof TSL.textureBicubicLevel;
|
|
|
521
552
|
export const textureCubeUV: typeof TSL.textureCubeUV;
|
|
522
553
|
export const textureLoad: typeof TSL.textureLoad;
|
|
523
554
|
export const textureSize: typeof TSL.textureSize;
|
|
555
|
+
export const textureLevel: typeof TSL.textureLevel;
|
|
524
556
|
export const textureStore: typeof TSL.textureStore;
|
|
525
557
|
export const thickness: typeof TSL.thickness;
|
|
526
558
|
export const time: typeof TSL.time;
|
|
527
|
-
export const timerDelta: typeof TSL.timerDelta;
|
|
528
|
-
export const timerGlobal: typeof TSL.timerGlobal;
|
|
529
|
-
export const timerLocal: typeof TSL.timerLocal;
|
|
530
559
|
export const toneMapping: typeof TSL.toneMapping;
|
|
531
560
|
export const toneMappingExposure: typeof TSL.toneMappingExposure;
|
|
532
561
|
export const toonOutlinePass: typeof TSL.toonOutlinePass;
|
|
@@ -543,10 +572,12 @@ export const triplanarTexture: typeof TSL.triplanarTexture;
|
|
|
543
572
|
export const triplanarTextures: typeof TSL.triplanarTextures;
|
|
544
573
|
export const trunc: typeof TSL.trunc;
|
|
545
574
|
export const uint: typeof TSL.uint;
|
|
575
|
+
export const uintBitsToFloat: typeof TSL.uintBitsToFloat;
|
|
546
576
|
export const uniform: typeof TSL.uniform;
|
|
547
577
|
export const uniformArray: typeof TSL.uniformArray;
|
|
548
578
|
export const uniformCubeTexture: typeof TSL.uniformCubeTexture;
|
|
549
579
|
export const uniformGroup: typeof TSL.uniformGroup;
|
|
580
|
+
export const uniformFlow: typeof TSL.uniformFlow;
|
|
550
581
|
export const uniformTexture: typeof TSL.uniformTexture;
|
|
551
582
|
export const unpremultiplyAlpha: typeof TSL.unpremultiplyAlpha;
|
|
552
583
|
export const userData: typeof TSL.userData;
|
|
@@ -587,4 +618,4 @@ export const workgroupId: typeof TSL.workgroupId;
|
|
|
587
618
|
export const workingToColorSpace: typeof TSL.workingToColorSpace;
|
|
588
619
|
export const xor: typeof TSL.xor;
|
|
589
620
|
|
|
590
|
-
export type { ProxiedObject,
|
|
621
|
+
export type { ProxiedObject, Swizzable } from "./nodes/TSL.js";
|
|
@@ -16,6 +16,8 @@ export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
|
|
|
16
16
|
export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
|
|
17
17
|
export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
|
|
18
18
|
export * from "./nodes/Nodes.js";
|
|
19
|
+
export { default as CanvasTarget } from "./renderers/common/CanvasTarget.js";
|
|
20
|
+
export { default as InspectorBase } from "./renderers/common/InspectorBase.js";
|
|
19
21
|
import * as TSL from "./nodes/TSL.js";
|
|
20
22
|
export { TSL };
|
|
21
23
|
export { ClippingGroup } from "./objects/ClippingGroup.js";
|
three/src/Three.WebGPU.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export { default as NodeLoader } from "./loaders/nodes/NodeLoader.js";
|
|
|
16
16
|
export { default as NodeMaterialLoader } from "./loaders/nodes/NodeMaterialLoader.js";
|
|
17
17
|
export { default as NodeObjectLoader } from "./loaders/nodes/NodeObjectLoader.js";
|
|
18
18
|
export * from "./nodes/Nodes.js";
|
|
19
|
+
export { default as CanvasTarget } from "./renderers/common/CanvasTarget.js";
|
|
20
|
+
export { default as InspectorBase } from "./renderers/common/InspectorBase.js";
|
|
19
21
|
import * as TSL from "./nodes/TSL.js";
|
|
20
22
|
export { TSL };
|
|
21
23
|
export { ClippingGroup } from "./objects/ClippingGroup.js";
|
|
@@ -132,6 +132,11 @@ export class AnimationClip {
|
|
|
132
132
|
* The UUID of the animation clip.
|
|
133
133
|
*/
|
|
134
134
|
readonly uuid: string;
|
|
135
|
+
/**
|
|
136
|
+
* An object that can be used to store custom data about the animation clip.
|
|
137
|
+
* It should not hold references to functions as these will not be cloned.
|
|
138
|
+
*/
|
|
139
|
+
userData: Record<string, unknown>;
|
|
135
140
|
/**
|
|
136
141
|
* Sets the duration of this clip to the duration of its longest keyframe track.
|
|
137
142
|
*
|
|
@@ -74,7 +74,7 @@ export class AnimationMixer extends EventDispatcher<AnimationMixerEventMap> {
|
|
|
74
74
|
/**
|
|
75
75
|
* Deactivates all previously scheduled actions on this mixer.
|
|
76
76
|
*
|
|
77
|
-
* @return {AnimationMixer} A reference to
|
|
77
|
+
* @return {AnimationMixer} A reference to this animation mixer.
|
|
78
78
|
*/
|
|
79
79
|
stopAllAction(): AnimationMixer;
|
|
80
80
|
/**
|
|
@@ -84,7 +84,7 @@ export class AnimationMixer extends EventDispatcher<AnimationMixerEventMap> {
|
|
|
84
84
|
* time from {@link Clock} or {@link Timer}.
|
|
85
85
|
*
|
|
86
86
|
* @param {number} deltaTime - The delta time in seconds.
|
|
87
|
-
* @return {AnimationMixer} A reference to
|
|
87
|
+
* @return {AnimationMixer} A reference to this animation mixer.
|
|
88
88
|
*/
|
|
89
89
|
update(deltaTime: number): AnimationMixer;
|
|
90
90
|
/**
|
|
@@ -94,7 +94,7 @@ export class AnimationMixer extends EventDispatcher<AnimationMixerEventMap> {
|
|
|
94
94
|
* input parameter will be scaled by {@link AnimationMixer#timeScale}
|
|
95
95
|
*
|
|
96
96
|
* @param {number} time - The time to set in seconds.
|
|
97
|
-
* @return {AnimationMixer} A reference to
|
|
97
|
+
* @return {AnimationMixer} A reference to this animation mixer.
|
|
98
98
|
*/
|
|
99
99
|
setTime(time: number): AnimationMixer;
|
|
100
100
|
/**
|
three/src/constants.d.ts
CHANGED
|
@@ -337,6 +337,7 @@ export const UnsignedShort4444Type: 1017;
|
|
|
337
337
|
export const UnsignedShort5551Type: 1018;
|
|
338
338
|
export const UnsignedInt248Type: 1020;
|
|
339
339
|
export const UnsignedInt5999Type: 35902;
|
|
340
|
+
export const UnsignedInt101111Type: 35899;
|
|
340
341
|
|
|
341
342
|
export type AttributeGPUType = typeof FloatType | typeof IntType;
|
|
342
343
|
|
|
@@ -358,7 +359,8 @@ export type TextureDataType =
|
|
|
358
359
|
| typeof UnsignedShort4444Type
|
|
359
360
|
| typeof UnsignedShort5551Type
|
|
360
361
|
| typeof UnsignedInt248Type
|
|
361
|
-
| typeof UnsignedInt5999Type
|
|
362
|
+
| typeof UnsignedInt5999Type
|
|
363
|
+
| typeof UnsignedInt101111Type;
|
|
362
364
|
|
|
363
365
|
///////////////////////////////////////////////////////////////////////////////
|
|
364
366
|
// Pixel formats
|
|
@@ -10,7 +10,6 @@ import { Light } from "./Light.js";
|
|
|
10
10
|
* This light will behave as though it is infinitely far away and the rays produced from it are all parallel
|
|
11
11
|
* The common use case for this is to simulate daylight; the sun is far enough away that its position can be considered to be infinite, and all light rays coming from it are parallel.
|
|
12
12
|
* A common point of confusion for directional lights is that setting the rotation has no effect
|
|
13
|
-
* @remarks
|
|
14
13
|
* This is because three.js's {@link DirectionalLight} is the equivalent to what is often called a 'Target Direct Light' in other applications.
|
|
15
14
|
* This means that its direction is calculated as pointing from the light's {@link THREE.Object3D.position | position} to the {@link THREE.DirectionalLight.target | target}'s
|
|
16
15
|
* position (as opposed to a 'Free Direct Light' that just has a rotation component).
|
|
@@ -23,9 +23,9 @@ export class ObjectLoader extends Loader<Object3D> {
|
|
|
23
23
|
parseGeometries(json: unknown): { [key: string]: InstancedBufferGeometry | BufferGeometry };
|
|
24
24
|
parseMaterials(json: unknown, textures: { [key: string]: Texture }): { [key: string]: Material };
|
|
25
25
|
parseAnimations(json: unknown): { [key: string]: AnimationClip };
|
|
26
|
-
parseImages(json: unknown, onLoad?: () => void): { [key: string]: Source };
|
|
27
|
-
parseImagesAsync(json: unknown): Promise<{ [key: string]: Source }>;
|
|
28
|
-
parseTextures(json: unknown, images: { [key: string]: Source }): { [key: string]: Texture };
|
|
26
|
+
parseImages(json: unknown, onLoad?: () => void): { [key: string]: Source<unknown> };
|
|
27
|
+
parseImagesAsync(json: unknown): Promise<{ [key: string]: Source<unknown> }>;
|
|
28
|
+
parseTextures(json: unknown, images: { [key: string]: Source<unknown> }): { [key: string]: Texture };
|
|
29
29
|
parseObject(
|
|
30
30
|
data: unknown,
|
|
31
31
|
geometries: { [key: string]: InstancedBufferGeometry | BufferGeometry },
|
|
@@ -6,13 +6,13 @@ import { LoadingManager } from "./LoadingManager.js";
|
|
|
6
6
|
* Class for loading a texture.
|
|
7
7
|
* Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.
|
|
8
8
|
*/
|
|
9
|
-
export class TextureLoader extends Loader<Texture
|
|
9
|
+
export class TextureLoader extends Loader<Texture<HTMLImageElement>> {
|
|
10
10
|
constructor(manager?: LoadingManager);
|
|
11
11
|
|
|
12
12
|
load(
|
|
13
13
|
url: string,
|
|
14
|
-
onLoad?: (data: Texture) => void,
|
|
14
|
+
onLoad?: (data: Texture<HTMLImageElement>) => void,
|
|
15
15
|
onProgress?: (event: ProgressEvent) => void,
|
|
16
16
|
onError?: (err: unknown) => void,
|
|
17
|
-
): Texture
|
|
17
|
+
): Texture<HTMLImageElement>;
|
|
18
18
|
}
|
|
@@ -49,6 +49,7 @@ export class LineDashedMaterial extends LineBasicMaterial {
|
|
|
49
49
|
* @default true
|
|
50
50
|
*/
|
|
51
51
|
readonly isLineDashedMaterial: boolean;
|
|
52
|
+
setValues(values?: LineDashedMaterialParameters): void;
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -541,7 +541,7 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
541
541
|
* The type property is used for detecting the object type
|
|
542
542
|
* in context of serialization/deserialization.
|
|
543
543
|
*/
|
|
544
|
-
|
|
544
|
+
type: string;
|
|
545
545
|
/**
|
|
546
546
|
* This starts at `0` and counts how many times {@link Material#needsUpdate} is set to `true`.
|
|
547
547
|
*
|
|
@@ -575,7 +575,7 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
575
575
|
*
|
|
576
576
|
* This method can only be used when rendering with {@link WebGLRenderer}. The
|
|
577
577
|
* recommended approach when customizing materials is to use `WebGPURenderer` with the new
|
|
578
|
-
* Node Material system and [TSL]
|
|
578
|
+
* Node Material system and [TSL](https://github.com/mrdoob/three.js/wiki/Three.js-Shading-Language).
|
|
579
579
|
*
|
|
580
580
|
* @param {{vertexShader:string,fragmentShader:string,uniforms:Object}} shaderobject - The object holds the uniforms and the vertex and fragment shader source.
|
|
581
581
|
* @param {WebGLRenderer} renderer - A reference to the renderer.
|
|
@@ -167,6 +167,7 @@ export class MeshBasicMaterial extends Material {
|
|
|
167
167
|
* @default true
|
|
168
168
|
*/
|
|
169
169
|
readonly isMeshBasicMaterial: boolean;
|
|
170
|
+
setValues(values?: MeshBasicMaterialParameters): void;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -99,6 +99,7 @@ export class MeshDepthMaterial extends Material {
|
|
|
99
99
|
* @default true
|
|
100
100
|
*/
|
|
101
101
|
readonly isMeshDepthMaterial: boolean;
|
|
102
|
+
setValues(values?: MeshDepthMaterialParameters): void;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -63,7 +63,7 @@ export interface MeshDistanceMaterialParameters
|
|
|
63
63
|
* Can also be used to customize the shadow casting of an object by assigning
|
|
64
64
|
* an instance of `MeshDistanceMaterial` to {@link Object3D#customDistanceMaterial}.
|
|
65
65
|
* The following examples demonstrates this approach in order to ensure
|
|
66
|
-
* transparent parts of objects do
|
|
66
|
+
* transparent parts of objects do not cast shadows.
|
|
67
67
|
*/
|
|
68
68
|
export class MeshDistanceMaterial extends Material {
|
|
69
69
|
/**
|
|
@@ -82,6 +82,7 @@ export class MeshDistanceMaterial extends Material {
|
|
|
82
82
|
* @default true
|
|
83
83
|
*/
|
|
84
84
|
readonly isMeshDistanceMaterial: boolean;
|
|
85
|
+
setValues(values?: MeshDistanceMaterialParameters): void;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -241,7 +241,7 @@ export interface MeshLambertMaterialParameters
|
|
|
241
241
|
/**
|
|
242
242
|
* A material for non-shiny surfaces, without specular highlights.
|
|
243
243
|
*
|
|
244
|
-
* The material uses a non-physically based [Lambertian]
|
|
244
|
+
* The material uses a non-physically based [Lambertian](https://en.wikipedia.org/wiki/Lambertian_reflectance)
|
|
245
245
|
* model for calculating reflectance. This can simulate some surfaces (such
|
|
246
246
|
* as untreated wood or stone) well, but cannot simulate shiny surfaces with
|
|
247
247
|
* specular highlights (such as varnished wood). `MeshLambertMaterial` uses per-fragment
|
|
@@ -269,6 +269,7 @@ export class MeshLambertMaterial extends Material {
|
|
|
269
269
|
* @default true
|
|
270
270
|
*/
|
|
271
271
|
readonly isMeshLambertMaterial: boolean;
|
|
272
|
+
setValues(values?: MeshLambertMaterialParameters): void;
|
|
272
273
|
}
|
|
273
274
|
|
|
274
275
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -103,6 +103,20 @@ export interface MeshMatcapMaterialProperties extends MaterialProperties {
|
|
|
103
103
|
* @default null
|
|
104
104
|
*/
|
|
105
105
|
alphaMap: Texture | null;
|
|
106
|
+
/**
|
|
107
|
+
* Renders the geometry as a wireframe.
|
|
108
|
+
*
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
wireframe: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Controls the thickness of the wireframe.
|
|
114
|
+
*
|
|
115
|
+
* Can only be used with {@link SVGRenderer}.
|
|
116
|
+
*
|
|
117
|
+
* @default 1
|
|
118
|
+
*/
|
|
119
|
+
wireframeLinewidth: number;
|
|
106
120
|
/**
|
|
107
121
|
* Whether the material is rendered with flat shading or not.
|
|
108
122
|
*
|
|
@@ -148,6 +162,7 @@ export class MeshMatcapMaterial extends Material {
|
|
|
148
162
|
* @default true
|
|
149
163
|
*/
|
|
150
164
|
readonly isMeshMatcapMaterial: boolean;
|
|
165
|
+
setValues(values?: MeshMatcapMaterialParameters): void;
|
|
151
166
|
}
|
|
152
167
|
|
|
153
168
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -117,6 +117,7 @@ export class MeshNormalMaterial extends Material {
|
|
|
117
117
|
* @default true
|
|
118
118
|
*/
|
|
119
119
|
readonly isMeshNormalMaterial: boolean;
|
|
120
|
+
setValues(values?: MeshNormalMaterialParameters): void;
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -255,7 +255,7 @@ export interface MeshPhongMaterialParameters
|
|
|
255
255
|
/**
|
|
256
256
|
* A material for shiny surfaces with specular highlights.
|
|
257
257
|
*
|
|
258
|
-
* The material uses a non-physically based [Blinn-Phong]
|
|
258
|
+
* The material uses a non-physically based [Blinn-Phong](https://en.wikipedia.org/wiki/Blinn-Phong_shading_model)
|
|
259
259
|
* model for calculating reflectance. Unlike the Lambertian model used in the
|
|
260
260
|
* {@link MeshLambertMaterial} this can simulate shiny surfaces with specular
|
|
261
261
|
* highlights (such as varnished wood). `MeshPhongMaterial` uses per-fragment shading.
|
|
@@ -281,6 +281,7 @@ export class MeshPhongMaterial extends Material {
|
|
|
281
281
|
* @default true
|
|
282
282
|
*/
|
|
283
283
|
readonly isMeshPhongMaterial: boolean;
|
|
284
|
+
setValues(values?: MeshPhongMaterialParameters): void;
|
|
284
285
|
}
|
|
285
286
|
|
|
286
287
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -195,7 +195,7 @@ export interface MeshPhysicalMaterialProperties extends MeshStandardMaterialProp
|
|
|
195
195
|
specularColorMap: Texture | null;
|
|
196
196
|
set anisotropy(value: number);
|
|
197
197
|
/**
|
|
198
|
-
* The anisotropy strength.
|
|
198
|
+
* The anisotropy strength, from `0.0` to `1.0`.
|
|
199
199
|
*
|
|
200
200
|
* @default 0
|
|
201
201
|
*/
|
|
@@ -249,9 +249,9 @@ export interface MeshStandardMaterialParameters
|
|
|
249
249
|
* A standard physically based material, using Metallic-Roughness workflow.
|
|
250
250
|
*
|
|
251
251
|
* Physically based rendering (PBR) has recently become the standard in many
|
|
252
|
-
* 3D applications, such as [Unity]
|
|
253
|
-
* [Unreal]
|
|
254
|
-
* [3D Studio Max]
|
|
252
|
+
* 3D applications, such as [Unity](https://blogs.unity3d.com/2014/10/29/physically-based-shading-in-unity-5-a-primer/),
|
|
253
|
+
* [Unreal](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Materials/PhysicallyBased/) and
|
|
254
|
+
* [3D Studio Max](http://area.autodesk.com/blogs/the-3ds-max-blog/what039s-new-for-rendering-in-3ds-max-2017).
|
|
255
255
|
*
|
|
256
256
|
* This approach differs from older approaches in that instead of using
|
|
257
257
|
* approximations for the way in which light interacts with a surface, a
|
|
@@ -267,13 +267,13 @@ export interface MeshStandardMaterialParameters
|
|
|
267
267
|
* Note that for best results you should always specify an environment map when using this material.
|
|
268
268
|
*
|
|
269
269
|
* For a non-technical introduction to the concept of PBR and how to set up a
|
|
270
|
-
* PBR material, check out these articles by the people at [marmoset]
|
|
270
|
+
* PBR material, check out these articles by the people at [marmoset](https://www.marmoset.co):
|
|
271
271
|
*
|
|
272
|
-
* - [Basic Theory of Physically Based Rendering]
|
|
273
|
-
* - [Physically Based Rendering and You Can Too]
|
|
272
|
+
* - [Basic Theory of Physically Based Rendering](https://www.marmoset.co/posts/basic-theory-of-physically-based-rendering/)
|
|
273
|
+
* - [Physically Based Rendering and You Can Too](https://www.marmoset.co/posts/physically-based-rendering-and-you-can-too/)
|
|
274
274
|
*
|
|
275
275
|
* Technical details of the approach used in three.js (and most other PBR systems) can be found is this
|
|
276
|
-
* [paper from Disney]
|
|
276
|
+
* [paper from Disney](https://media.disneyanimation.com/uploads/production/publication_asset/48/asset/s2012_pbs_disney_brdf_notes_v3.pdf)
|
|
277
277
|
* (pdf), by Brent Burley.
|
|
278
278
|
*/
|
|
279
279
|
export class MeshStandardMaterial extends Material {
|
|
@@ -216,6 +216,7 @@ export class MeshToonMaterial extends Material {
|
|
|
216
216
|
* @default true
|
|
217
217
|
*/
|
|
218
218
|
readonly isMeshToonMaterial: boolean;
|
|
219
|
+
setValues(values?: MeshToonMaterialParameters): void;
|
|
219
220
|
}
|
|
220
221
|
|
|
221
222
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -33,7 +33,7 @@ export interface PointsMaterialProperties extends MaterialProperties {
|
|
|
33
33
|
/**
|
|
34
34
|
* Defines the size of the points in pixels.
|
|
35
35
|
*
|
|
36
|
-
* Might be capped if the value exceeds hardware dependent parameters like [gl.ALIASED_POINT_SIZE_RANGE]
|
|
36
|
+
* Might be capped if the value exceeds hardware dependent parameters like [gl.ALIASED_POINT_SIZE_RANGE](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParamete).
|
|
37
37
|
*
|
|
38
38
|
* @default 1
|
|
39
39
|
*/
|
|
@@ -97,6 +97,7 @@ export class PointsMaterial extends Material {
|
|
|
97
97
|
* @default true
|
|
98
98
|
*/
|
|
99
99
|
readonly isPointsMaterial: boolean;
|
|
100
|
+
setValues(values?: PointsMaterialParameters): void;
|
|
100
101
|
}
|
|
101
102
|
|
|
102
103
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|