@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
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: Fri, 31 Oct 2025 16:38:34 GMT
|
|
12
12
|
* Dependencies: [@dimforge/rapier3d-compat](https://npmjs.com/package/@dimforge/rapier3d-compat), [@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), [@webgpu/types](https://npmjs.com/package/@webgpu/types), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
13
13
|
|
|
14
14
|
# Credits
|
three/examples/jsm/Addons.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export * from "./loaders/FontLoader.js";
|
|
|
89
89
|
export * from "./loaders/GCodeLoader.js";
|
|
90
90
|
export * from "./loaders/GLTFLoader.js";
|
|
91
91
|
export * from "./loaders/HDRCubeTextureLoader.js";
|
|
92
|
+
export * from "./loaders/HDRLoader.js";
|
|
92
93
|
export * from "./loaders/IESLoader.js";
|
|
93
94
|
export * from "./loaders/KMZLoader.js";
|
|
94
95
|
export * from "./loaders/KTX2Loader.js";
|
|
@@ -108,7 +109,6 @@ export * from "./loaders/PDBLoader.js";
|
|
|
108
109
|
export * from "./loaders/PLYLoader.js";
|
|
109
110
|
export * from "./loaders/PVRLoader.js";
|
|
110
111
|
export * from "./loaders/RGBELoader.js";
|
|
111
|
-
export * from "./loaders/RGBMLoader.js";
|
|
112
112
|
export * from "./loaders/STLLoader.js";
|
|
113
113
|
export * from "./loaders/SVGLoader.js";
|
|
114
114
|
export * from "./loaders/TDSLoader.js";
|
|
@@ -76,36 +76,6 @@ declare class DragControls extends Controls<DragControlsEventMap> {
|
|
|
76
76
|
* @param domElement The HTML element used for event listeners. (optional)
|
|
77
77
|
*/
|
|
78
78
|
constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement | null);
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns the internal {@link Raycaster} instance that is used for intersection tests.
|
|
82
|
-
* @deprecated getRaycaster() has been deprecated. Use controls.raycaster instead.
|
|
83
|
-
*/
|
|
84
|
-
getRaycaster(): Raycaster;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Sets an array of draggable objects by overwriting the existing one.
|
|
88
|
-
* @deprecated setObjects() has been deprecated. Use controls.objects instead.
|
|
89
|
-
*/
|
|
90
|
-
setObjects(objects: readonly Object3D[]): void;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Returns the array of draggable objects.
|
|
94
|
-
* @deprecated getObjects() has been deprecated. Use controls.objects instead.
|
|
95
|
-
*/
|
|
96
|
-
getObjects(): Object3D[];
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Adds the event listeners of the controls.
|
|
100
|
-
* @deprecated activate() has been renamed to connect().
|
|
101
|
-
*/
|
|
102
|
-
activate(): void;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Removes the event listeners of the controls.
|
|
106
|
-
* @deprecated deactivate() has been renamed to disconnect().
|
|
107
|
-
*/
|
|
108
|
-
deactivate(): void;
|
|
109
79
|
}
|
|
110
80
|
|
|
111
81
|
export { DragControls };
|
|
@@ -49,11 +49,6 @@ declare class PointerLockControls extends Controls<PointerLockControlsEventMap>
|
|
|
49
49
|
*/
|
|
50
50
|
constructor(camera: Camera, domElement?: HTMLElement | null);
|
|
51
51
|
|
|
52
|
-
/**
|
|
53
|
-
* @deprecated getObject() has been deprecated. Use controls.object instead.
|
|
54
|
-
*/
|
|
55
|
-
getObject(): Camera;
|
|
56
|
-
|
|
57
52
|
/**
|
|
58
53
|
* Returns the look direction of the camera.
|
|
59
54
|
* @param v The target vector.
|
|
@@ -22,6 +22,6 @@ export class EXRExporter {
|
|
|
22
22
|
renderer: WebGLRenderer | WebGPURenderer,
|
|
23
23
|
renderTarget: WebGLRenderTarget,
|
|
24
24
|
options?: EXRExporterParseOptions,
|
|
25
|
-
): Promise<Uint8Array
|
|
26
|
-
parse(dataTexture: DataTexture, options?: EXRExporterParseOptions): Promise<Uint8Array
|
|
25
|
+
): Promise<Uint8Array<ArrayBuffer>>;
|
|
26
|
+
parse(dataTexture: DataTexture, options?: EXRExporterParseOptions): Promise<Uint8Array<ArrayBuffer>>;
|
|
27
27
|
}
|
|
@@ -2,6 +2,6 @@ import { Data3DTexture, DataTexture, WebGLRenderer, WebGLRenderTarget } from "th
|
|
|
2
2
|
import { WebGPURenderer } from "three/webgpu";
|
|
3
3
|
|
|
4
4
|
export class KTX2Exporter {
|
|
5
|
-
parse(renderer: WebGLRenderer | WebGPURenderer, rtt?: WebGLRenderTarget): Promise<Uint8Array
|
|
6
|
-
parse(texture: Data3DTexture | DataTexture): Promise<Uint8Array
|
|
5
|
+
parse(renderer: WebGLRenderer | WebGPURenderer, rtt?: WebGLRenderTarget): Promise<Uint8Array<ArrayBuffer>>;
|
|
6
|
+
parse(texture: Data3DTexture | DataTexture): Promise<Uint8Array<ArrayBuffer>>;
|
|
7
7
|
}
|
|
@@ -15,7 +15,7 @@ export interface STLExporterOptions {
|
|
|
15
15
|
export class STLExporter {
|
|
16
16
|
constructor();
|
|
17
17
|
|
|
18
|
-
parse(scene: Object3D, options: STLExporterOptionsBinary): DataView
|
|
18
|
+
parse(scene: Object3D, options: STLExporterOptionsBinary): DataView<ArrayBuffer>;
|
|
19
19
|
parse(scene: Object3D, options?: STLExporterOptionsString): string;
|
|
20
|
-
parse(scene: Object3D, options?: STLExporterOptions): string | DataView
|
|
20
|
+
parse(scene: Object3D, options?: STLExporterOptions): string | DataView<ArrayBuffer>;
|
|
21
21
|
}
|
|
@@ -17,10 +17,10 @@ export class USDZExporter {
|
|
|
17
17
|
|
|
18
18
|
parse(
|
|
19
19
|
scene: Object3D,
|
|
20
|
-
onDone: (result: Uint8Array) => void,
|
|
20
|
+
onDone: (result: Uint8Array<ArrayBuffer>) => void,
|
|
21
21
|
onError: (error: unknown) => void,
|
|
22
22
|
options?: USDZExporterOptions,
|
|
23
23
|
): void;
|
|
24
24
|
|
|
25
|
-
parseAsync(scene: Object3D, options?: USDZExporterOptions): Promise<Uint8Array
|
|
25
|
+
parseAsync(scene: Object3D, options?: USDZExporterOptions): Promise<Uint8Array<ArrayBuffer>>;
|
|
26
26
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Node, Renderer, StorageBufferNode } from "three/webgpu";
|
|
2
|
+
|
|
3
|
+
export const getBitonicFlipIndices: (index: Node, blockHeight: Node) => Node;
|
|
4
|
+
|
|
5
|
+
export const getBitonicDisperseIndices: (index: Node, swapSpan: Node) => Node;
|
|
6
|
+
|
|
7
|
+
export interface BitonicSortOptions {
|
|
8
|
+
workgroupSize?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export class BitonicSort {
|
|
12
|
+
infoStorage: StorageBufferNode;
|
|
13
|
+
|
|
14
|
+
swapOpCount: number;
|
|
15
|
+
stepCount: number;
|
|
16
|
+
|
|
17
|
+
constructor(renderer: Renderer, dataBuffer: StorageBufferNode, options?: BitonicSortOptions);
|
|
18
|
+
|
|
19
|
+
computeStep(renderer: Renderer): Promise<void>;
|
|
20
|
+
compute(renderer: Renderer): Promise<void>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RendererInspector } from "./RendererInspector.js";
|
|
2
|
+
import { ParametersGroup } from "./tabs/Parameters.js";
|
|
3
|
+
|
|
4
|
+
declare class Inspector extends RendererInspector {
|
|
5
|
+
createParameters(name: string): ParametersGroup;
|
|
6
|
+
|
|
7
|
+
get domElement(): HTMLDivElement;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export { Inspector };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Tab } from "../ui/Tab.js";
|
|
2
|
+
import { ValueButton, ValueCheckbox, ValueColor, ValueNumber, ValueSelect, ValueSlider } from "../ui/Values.js";
|
|
3
|
+
|
|
4
|
+
type KeyToValueOfType<T, V> = { [K in keyof T]: T[K] extends V ? K : never }[keyof T];
|
|
5
|
+
|
|
6
|
+
interface ValueSelectWithParameters<T = Record<string, unknown>, K extends keyof T = keyof T>
|
|
7
|
+
extends ValueSelect<T, K>
|
|
8
|
+
{
|
|
9
|
+
name: (name: string) => this;
|
|
10
|
+
listen: () => this;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ValueNumberWithParameters<
|
|
14
|
+
T = Record<string, unknown>,
|
|
15
|
+
K extends KeyToValueOfType<T, number> = KeyToValueOfType<T, number>,
|
|
16
|
+
> extends ValueNumber<T, K> {
|
|
17
|
+
name: (name: string) => this;
|
|
18
|
+
listen: () => this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface ValueSliderWithParameters<
|
|
22
|
+
T = Record<string, unknown>,
|
|
23
|
+
K extends KeyToValueOfType<T, number> = KeyToValueOfType<T, number>,
|
|
24
|
+
> extends ValueSlider<T, K> {
|
|
25
|
+
name: (name: string) => this;
|
|
26
|
+
listen: () => this;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface ValueCheckboxWithParameters<
|
|
30
|
+
T = Record<string, unknown>,
|
|
31
|
+
K extends KeyToValueOfType<T, boolean> = KeyToValueOfType<T, boolean>,
|
|
32
|
+
> extends ValueCheckbox<T, K> {
|
|
33
|
+
name: (name: string) => this;
|
|
34
|
+
listen: () => this;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ValueButtonWithParameters<
|
|
38
|
+
T = Record<string, unknown>,
|
|
39
|
+
K extends KeyToValueOfType<T, (this: T) => void> = KeyToValueOfType<T, (this: T) => void>,
|
|
40
|
+
> extends ValueButton<T, K> {
|
|
41
|
+
name: (name: string) => this;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
interface ValueColorWithParameters<
|
|
45
|
+
T = Record<string, unknown>,
|
|
46
|
+
K extends keyof T = keyof T,
|
|
47
|
+
> extends ValueColor<T, K> {
|
|
48
|
+
name: (name: string) => this;
|
|
49
|
+
listen: () => this;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class ParametersGroup {
|
|
53
|
+
name: string;
|
|
54
|
+
|
|
55
|
+
constructor(parameters: never, name: string);
|
|
56
|
+
|
|
57
|
+
add<T, K extends keyof T>(
|
|
58
|
+
object: T,
|
|
59
|
+
property: K,
|
|
60
|
+
options: ReadonlyArray<T[K]> | Record<string, T[K]>,
|
|
61
|
+
): ValueSelectWithParameters<T, K>;
|
|
62
|
+
add<T, K extends KeyToValueOfType<T, number>>(
|
|
63
|
+
object: T,
|
|
64
|
+
property: K,
|
|
65
|
+
min: number,
|
|
66
|
+
max: number,
|
|
67
|
+
step?: number,
|
|
68
|
+
): ValueSliderWithParameters<T, K>;
|
|
69
|
+
add<T, K extends KeyToValueOfType<T, number>>(
|
|
70
|
+
object: T,
|
|
71
|
+
property: K,
|
|
72
|
+
min?: number,
|
|
73
|
+
): ValueNumberWithParameters<T, K>;
|
|
74
|
+
add<T, K extends KeyToValueOfType<T, boolean>>(
|
|
75
|
+
object: T,
|
|
76
|
+
property: K,
|
|
77
|
+
options?: never,
|
|
78
|
+
): ValueCheckboxWithParameters<T, K>;
|
|
79
|
+
add<T, K extends KeyToValueOfType<T, (this: T) => void>>(
|
|
80
|
+
object: T,
|
|
81
|
+
property: K,
|
|
82
|
+
options?: never,
|
|
83
|
+
): ValueButtonWithParameters<T, K>;
|
|
84
|
+
|
|
85
|
+
addFolder(name: string): ParametersGroup;
|
|
86
|
+
|
|
87
|
+
addColor<T, K extends keyof T>(object: T, property: K, rgbScale?: number): ValueColorWithParameters<T, K>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class Parameters extends Tab {
|
|
91
|
+
createGroup(name: string): ParametersGroup;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export { Parameters };
|
|
95
|
+
export type { ParametersGroup };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { ColorRepresentation, EventDispatcher } from "three";
|
|
2
|
+
|
|
3
|
+
type KeyToValueOfType<T, V> = { [K in keyof T]: T[K] extends V ? K : never }[keyof T];
|
|
4
|
+
|
|
5
|
+
declare class Value<T = Record<string, unknown>, K extends keyof T = keyof T> extends EventDispatcher {
|
|
6
|
+
onChange(callback: (value: T[K]) => void): this;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ValueNumberParams {
|
|
10
|
+
value?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class ValueNumber<
|
|
17
|
+
T = Record<string, unknown>,
|
|
18
|
+
K extends KeyToValueOfType<T, number> = KeyToValueOfType<T, number>,
|
|
19
|
+
> extends Value<T, K> {
|
|
20
|
+
constructor(params: ValueNumberParams);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface ValueCheckboxParams {
|
|
24
|
+
value?: boolean;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class ValueCheckbox<
|
|
28
|
+
T = Record<string, unknown>,
|
|
29
|
+
K extends KeyToValueOfType<T, boolean> = KeyToValueOfType<T, boolean>,
|
|
30
|
+
> extends Value<T, K> {
|
|
31
|
+
constructor(params: ValueCheckboxParams);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ValueSliderParams {
|
|
35
|
+
value?: number;
|
|
36
|
+
min?: number;
|
|
37
|
+
max?: number;
|
|
38
|
+
step?: number;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class ValueSlider<
|
|
42
|
+
T = Record<string, unknown>,
|
|
43
|
+
K extends KeyToValueOfType<T, number> = KeyToValueOfType<T, number>,
|
|
44
|
+
> extends Value<T, K> {
|
|
45
|
+
constructor(params: ValueSliderParams);
|
|
46
|
+
|
|
47
|
+
setValue(val: number): this;
|
|
48
|
+
step(value: number): this;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface ValueSelectParams<T, K extends keyof T> {
|
|
52
|
+
options?: ReadonlyArray<T[K]> | Record<string, T[K]>;
|
|
53
|
+
value?: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class ValueSelect<T = Record<string, unknown>, K extends keyof T = keyof T> extends Value<T, K> {
|
|
57
|
+
constructor(params: ValueSelectParams<T, K>);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface ValueColorParams {
|
|
61
|
+
value?: ColorRepresentation;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare class ValueColor<T = Record<string, unknown>, K extends keyof T = keyof T> extends Value<T, K> {
|
|
65
|
+
constructor(params: ValueColorParams);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface ValueButtonParams {
|
|
69
|
+
text?: string;
|
|
70
|
+
value?: () => void;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class ValueButton<
|
|
74
|
+
T = Record<string, unknown>,
|
|
75
|
+
K extends KeyToValueOfType<T, (this: T) => void> = KeyToValueOfType<T, (this: T) => void>,
|
|
76
|
+
> extends Value<T, K> {
|
|
77
|
+
constructor(params: ValueColorParams);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { Value, ValueButton, ValueCheckbox, ValueColor, ValueNumber, ValueSelect, ValueSlider };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Camera,
|
|
1
|
+
import { Camera, Object3D, Scene, Vector3 } from "three";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
constructor(camera: Camera, scene: Scene, deep?: number);
|
|
3
|
+
declare class SelectionBox {
|
|
5
4
|
camera: Camera;
|
|
6
|
-
collection: Mesh[];
|
|
7
|
-
deep: number;
|
|
8
|
-
endPoint: Vector3;
|
|
9
5
|
scene: Scene;
|
|
10
6
|
startPoint: Vector3;
|
|
7
|
+
endPoint: Vector3;
|
|
8
|
+
collection: Object3D[];
|
|
11
9
|
instances: Record<string, number[]>;
|
|
10
|
+
batches: Record<string, number[]>;
|
|
11
|
+
deep: number;
|
|
12
|
+
|
|
13
|
+
constructor(camera: Camera, scene: Scene, deep?: number);
|
|
12
14
|
|
|
13
|
-
select(startPoint?: Vector3, endPoint?: Vector3):
|
|
14
|
-
updateFrustum(startPoint: Vector3, endPoint: Vector3): void;
|
|
15
|
-
searchChildInFrustum(frustum: Frustum, object: Object3D): void;
|
|
15
|
+
select(startPoint?: Vector3, endPoint?: Vector3): Object3D[];
|
|
16
16
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { Lighting } from "three/webgpu";
|
|
3
2
|
import { Light } from "../../../src/lights/Light.js";
|
|
4
3
|
import TiledLightsNode from "../tsl/lighting/TiledLightsNode.js";
|
|
@@ -6,5 +5,5 @@ import TiledLightsNode from "../tsl/lighting/TiledLightsNode.js";
|
|
|
6
5
|
export class TiledLighting extends Lighting {
|
|
7
6
|
constructor();
|
|
8
7
|
|
|
9
|
-
createNode(lights?: Light[]):
|
|
8
|
+
createNode(lights?: Light[]): TiledLightsNode;
|
|
10
9
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CubeTexture, Loader, LoadingManager, TextureDataType } from "three";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { HDRLoader } from "./HDRLoader.js";
|
|
4
4
|
|
|
5
5
|
export class HDRCubeTextureLoader extends Loader<CubeTexture, readonly string[]> {
|
|
6
6
|
constructor(manager?: LoadingManager);
|
|
7
|
-
hdrLoader:
|
|
7
|
+
hdrLoader: HDRLoader;
|
|
8
8
|
type: TextureDataType;
|
|
9
9
|
|
|
10
10
|
load(
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DataTextureLoader, LoadingManager, TextureDataType } from "three";
|
|
2
|
+
|
|
3
|
+
export interface HDR {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
data: Float32Array | Uint8Array;
|
|
7
|
+
header: string;
|
|
8
|
+
gamma: number;
|
|
9
|
+
exposure: number;
|
|
10
|
+
type: TextureDataType;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class HDRLoader extends DataTextureLoader {
|
|
14
|
+
type: TextureDataType;
|
|
15
|
+
|
|
16
|
+
constructor(manager?: LoadingManager);
|
|
17
|
+
|
|
18
|
+
parse(buffer: ArrayBuffer): HDR;
|
|
19
|
+
setDataType(type: TextureDataType): this;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { HDRLoader };
|
|
@@ -35,6 +35,9 @@ export class KTX2Loader extends Loader<CompressedTexture> {
|
|
|
35
35
|
*/
|
|
36
36
|
setWorkerLimit(limit: number): this;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* "detectSupportAsync()" has been deprecated. Use "detectSupport()" and "await renderer.init();" when creating the renderer.
|
|
40
|
+
*/
|
|
38
41
|
detectSupportAsync(renderer: Renderer): Promise<this>;
|
|
39
42
|
|
|
40
43
|
/**
|
|
@@ -10,17 +10,21 @@ export class LDrawLoader extends Loader<Group> {
|
|
|
10
10
|
|
|
11
11
|
smoothNormals: boolean;
|
|
12
12
|
|
|
13
|
+
partsLibraryPath: string;
|
|
14
|
+
|
|
13
15
|
ConditionalLineMaterial: typeof LDrawConditionalLineMaterial | typeof LDrawConditionalLineNodeMaterial | null;
|
|
14
16
|
|
|
15
17
|
constructor(manager?: LoadingManager);
|
|
16
18
|
|
|
19
|
+
setPartsLibraryPath(path: string): this;
|
|
20
|
+
|
|
17
21
|
setConditionalLineMaterial(
|
|
18
22
|
type: typeof LDrawConditionalLineMaterial | typeof LDrawConditionalLineNodeMaterial,
|
|
19
23
|
): this;
|
|
20
24
|
|
|
21
25
|
preloadMaterials(url: string): Promise<void>;
|
|
22
26
|
|
|
23
|
-
parse(text: string,
|
|
27
|
+
parse(text: string, onLoad: (data: Group) => void, onError?: (error: unknown) => void): void;
|
|
24
28
|
|
|
25
29
|
setMaterials(materials: Material[]): this;
|
|
26
30
|
clearMaterials(): this;
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HDR, HDRLoader } from "./HDRLoader.js";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
header: string;
|
|
8
|
-
gamma: number;
|
|
9
|
-
exposure: number;
|
|
10
|
-
type: TextureDataType;
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated RGBELoader has been deprecated. Please use HDRLoader instead.
|
|
5
|
+
*/
|
|
6
|
+
export interface RGBE extends HDR {
|
|
11
7
|
}
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
parse(buffer: ArrayBuffer): RGBE;
|
|
18
|
-
setDataType(type: TextureDataType): this;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated RGBELoader has been deprecated. Please use HDRLoader instead.
|
|
11
|
+
*/
|
|
12
|
+
export class RGBELoader extends HDRLoader {
|
|
19
13
|
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
export type WoodGenus =
|
|
4
|
+
| "teak"
|
|
5
|
+
| "walnut"
|
|
6
|
+
| "white_oak"
|
|
7
|
+
| "pine"
|
|
8
|
+
| "poplar"
|
|
9
|
+
| "maple"
|
|
10
|
+
| "red_oak"
|
|
11
|
+
| "cherry"
|
|
12
|
+
| "cedar"
|
|
13
|
+
| "mahogany";
|
|
14
|
+
export type WoodFinish = "raw" | "matte" | "semigloss" | "gloss";
|
|
15
|
+
|
|
16
|
+
export const WoodGenuses: WoodGenus[];
|
|
17
|
+
export const Finishes: WoodFinish[];
|
|
18
|
+
|
|
19
|
+
export interface WoodParameters {
|
|
20
|
+
transformationMatrix: THREE.Matrix4;
|
|
21
|
+
centerSize: number;
|
|
22
|
+
largeWarpScale: number;
|
|
23
|
+
largeGrainStretch: number;
|
|
24
|
+
smallWarpStrength: number;
|
|
25
|
+
smallWarpScale: number;
|
|
26
|
+
fineWarpStrength: number;
|
|
27
|
+
fineWarpScale: number;
|
|
28
|
+
ringThickness: number;
|
|
29
|
+
ringBias: number;
|
|
30
|
+
ringSizeVariance: number;
|
|
31
|
+
ringVarianceScale: number;
|
|
32
|
+
barkThickness: number;
|
|
33
|
+
splotchScale: number;
|
|
34
|
+
splotchIntensity: number;
|
|
35
|
+
cellScale: number;
|
|
36
|
+
cellSize: number;
|
|
37
|
+
darkGrainColor: string | THREE.Color;
|
|
38
|
+
lightGrainColor: string | THREE.Color;
|
|
39
|
+
genus: WoodGenus;
|
|
40
|
+
finish: WoodFinish;
|
|
41
|
+
clearcoat: number;
|
|
42
|
+
clearcoatRoughness: number;
|
|
43
|
+
clearcoatDarken: number;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function GetWoodPreset(genus: WoodGenus, finish: WoodFinish): WoodParameters;
|
|
47
|
+
|
|
48
|
+
export class WoodNodeMaterial extends THREE.MeshPhysicalMaterial {
|
|
49
|
+
readonly isWoodNodeMaterial: true;
|
|
50
|
+
|
|
51
|
+
transformationMatrix: THREE.Matrix4;
|
|
52
|
+
centerSize: number;
|
|
53
|
+
largeWarpScale: number;
|
|
54
|
+
largeGrainStretch: number;
|
|
55
|
+
smallWarpStrength: number;
|
|
56
|
+
smallWarpScale: number;
|
|
57
|
+
fineWarpStrength: number;
|
|
58
|
+
fineWarpScale: number;
|
|
59
|
+
ringThickness: number;
|
|
60
|
+
ringBias: number;
|
|
61
|
+
ringSizeVariance: number;
|
|
62
|
+
ringVarianceScale: number;
|
|
63
|
+
barkThickness: number;
|
|
64
|
+
splotchScale: number;
|
|
65
|
+
splotchIntensity: number;
|
|
66
|
+
cellScale: number;
|
|
67
|
+
cellSize: number;
|
|
68
|
+
darkGrainColor: THREE.Color;
|
|
69
|
+
lightGrainColor: THREE.Color;
|
|
70
|
+
clearcoatDarken: number;
|
|
71
|
+
|
|
72
|
+
constructor(params?: Partial<WoodParameters>);
|
|
73
|
+
|
|
74
|
+
static fromPreset(genus?: WoodGenus, finish?: WoodFinish): WoodNodeMaterial;
|
|
75
|
+
}
|
|
@@ -9,3 +9,7 @@ export const LinearDisplayP3ColorSpaceImpl: ColorSpaceDefinition;
|
|
|
9
9
|
export const LinearRec2020ColorSpace: "rec2020-linear";
|
|
10
10
|
|
|
11
11
|
export const LinearRec2020ColorSpaceImpl: ColorSpaceDefinition;
|
|
12
|
+
|
|
13
|
+
export const ExtendedSRGBColorSpace: "extended-srgb";
|
|
14
|
+
|
|
15
|
+
export const ExtendedSRGBColorSpaceImpl: ColorSpaceDefinition;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { ShaderNodeObject } from "three/tsl";
|
|
2
1
|
import { BoxGeometry, Mesh, NodeMaterial, UniformNode, Vector3 } from "three/webgpu";
|
|
3
2
|
|
|
4
3
|
declare class SkyMesh extends Mesh<BoxGeometry, NodeMaterial> {
|
|
5
|
-
turbidity:
|
|
6
|
-
rayleigh:
|
|
7
|
-
mieCoefficient:
|
|
8
|
-
mieDirectionalG:
|
|
9
|
-
sunPosition:
|
|
10
|
-
upUniform:
|
|
4
|
+
turbidity: UniformNode<number>;
|
|
5
|
+
rayleigh: UniformNode<number>;
|
|
6
|
+
mieCoefficient: UniformNode<number>;
|
|
7
|
+
mieDirectionalG: UniformNode<number>;
|
|
8
|
+
sunPosition: UniformNode<Vector3>;
|
|
9
|
+
upUniform: UniformNode<Vector3>;
|
|
11
10
|
|
|
12
11
|
readonly isSky: true;
|
|
13
12
|
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "three/webgpu";
|
|
12
12
|
|
|
13
13
|
export interface WaterMeshOptions {
|
|
14
|
-
|
|
14
|
+
resolutionScale?: number | undefined;
|
|
15
15
|
waterNormals: Texture;
|
|
16
16
|
alpha?: number | undefined;
|
|
17
17
|
size?: number | undefined;
|
|
@@ -24,7 +24,7 @@ export interface WaterMeshOptions {
|
|
|
24
24
|
declare class WaterMesh extends Mesh<BufferGeometry, NodeMaterial> {
|
|
25
25
|
readonly isWater: true;
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
resolutionScale: number;
|
|
28
28
|
|
|
29
29
|
waterNormals: TextureNode;
|
|
30
30
|
alpha: UniformNode<number>;
|