@types/three 0.166.0 → 0.167.1
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 +188 -0
- three/src/Three.d.ts +29 -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 +70 -113
- three/src/math/Matrix4.d.ts +51 -98
- 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/src/math/Matrix4.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { CoordinateSystem } from "../constants.js";
|
|
2
2
|
import { Euler } from "./Euler.js";
|
|
3
|
-
import {
|
|
3
|
+
import { Matrix3 } from "./Matrix3.js";
|
|
4
4
|
import { Quaternion } from "./Quaternion.js";
|
|
5
5
|
import { Vector3 } from "./Vector3.js";
|
|
6
6
|
|
|
7
7
|
export type Matrix4Tuple = [
|
|
8
|
-
number,
|
|
9
|
-
number,
|
|
10
|
-
number,
|
|
11
|
-
number,
|
|
12
|
-
number,
|
|
13
|
-
number,
|
|
14
|
-
number,
|
|
15
|
-
number,
|
|
16
|
-
number,
|
|
17
|
-
number,
|
|
18
|
-
number,
|
|
19
|
-
number,
|
|
20
|
-
number,
|
|
21
|
-
number,
|
|
22
|
-
number,
|
|
23
|
-
number,
|
|
8
|
+
n11: number,
|
|
9
|
+
n12: number,
|
|
10
|
+
n13: number,
|
|
11
|
+
n14: number,
|
|
12
|
+
n21: number,
|
|
13
|
+
n22: number,
|
|
14
|
+
n23: number,
|
|
15
|
+
n24: number,
|
|
16
|
+
n31: number,
|
|
17
|
+
n32: number,
|
|
18
|
+
n33: number,
|
|
19
|
+
n34: number,
|
|
20
|
+
n41: number,
|
|
21
|
+
n42: number,
|
|
22
|
+
n43: number,
|
|
23
|
+
n44: number,
|
|
24
24
|
];
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -41,9 +41,15 @@ export type Matrix4Tuple = [
|
|
|
41
41
|
* m.multiplyMatrices( m1, m2 );
|
|
42
42
|
* m.multiply( m3 );
|
|
43
43
|
*/
|
|
44
|
-
export class Matrix4
|
|
44
|
+
export class Matrix4 {
|
|
45
45
|
readonly isMatrix4: true;
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Array with matrix values.
|
|
49
|
+
* @default [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
|
|
50
|
+
*/
|
|
51
|
+
elements: Matrix4Tuple;
|
|
52
|
+
|
|
47
53
|
/**
|
|
48
54
|
* Creates an identity matrix.
|
|
49
55
|
*/
|
|
@@ -70,12 +76,6 @@ export class Matrix4 implements Matrix {
|
|
|
70
76
|
n44: number,
|
|
71
77
|
);
|
|
72
78
|
|
|
73
|
-
/**
|
|
74
|
-
* Array with matrix values.
|
|
75
|
-
* @default [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
|
|
76
|
-
*/
|
|
77
|
-
elements: number[];
|
|
78
|
-
|
|
79
79
|
/**
|
|
80
80
|
* Sets all fields of this matrix.
|
|
81
81
|
*/
|
|
@@ -102,18 +102,31 @@ export class Matrix4 implements Matrix {
|
|
|
102
102
|
* Resets this matrix to identity.
|
|
103
103
|
*/
|
|
104
104
|
identity(): this;
|
|
105
|
+
|
|
105
106
|
clone(): Matrix4;
|
|
107
|
+
|
|
106
108
|
copy(m: Matrix4): this;
|
|
109
|
+
|
|
107
110
|
copyPosition(m: Matrix4): this;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Set the upper 3x3 elements of this matrix to the values of the Matrix3 m.
|
|
114
|
+
*/
|
|
115
|
+
setFromMatrix3(m: Matrix3): this;
|
|
116
|
+
|
|
108
117
|
extractBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
118
|
+
|
|
109
119
|
makeBasis(xAxis: Vector3, yAxis: Vector3, zAxis: Vector3): this;
|
|
110
120
|
|
|
111
121
|
/**
|
|
112
122
|
* Copies the rotation component of the supplied matrix m into this matrix rotation component.
|
|
113
123
|
*/
|
|
114
124
|
extractRotation(m: Matrix4): this;
|
|
125
|
+
|
|
115
126
|
makeRotationFromEuler(euler: Euler): this;
|
|
127
|
+
|
|
116
128
|
makeRotationFromQuaternion(q: Quaternion): this;
|
|
129
|
+
|
|
117
130
|
/**
|
|
118
131
|
* Constructs a rotation matrix, looking from eye towards center with defined up vector.
|
|
119
132
|
*/
|
|
@@ -131,14 +144,6 @@ export class Matrix4 implements Matrix {
|
|
|
131
144
|
*/
|
|
132
145
|
multiplyMatrices(a: Matrix4, b: Matrix4): this;
|
|
133
146
|
|
|
134
|
-
/**
|
|
135
|
-
* Sets this matrix to a x b and stores the result into the flat array r.
|
|
136
|
-
* r can be either a regular Array or a TypedArray.
|
|
137
|
-
*
|
|
138
|
-
* @deprecated This method has been removed completely.
|
|
139
|
-
*/
|
|
140
|
-
multiplyToArray(a: Matrix4, b: Matrix4, r: number[]): Matrix4;
|
|
141
|
-
|
|
142
147
|
/**
|
|
143
148
|
* Multiplies this matrix by s.
|
|
144
149
|
*/
|
|
@@ -172,6 +177,7 @@ export class Matrix4 implements Matrix {
|
|
|
172
177
|
scale(v: Vector3): this;
|
|
173
178
|
|
|
174
179
|
getMaxScaleOnAxis(): number;
|
|
180
|
+
|
|
175
181
|
/**
|
|
176
182
|
* Sets this matrix as translation transform.
|
|
177
183
|
*/
|
|
@@ -204,7 +210,7 @@ export class Matrix4 implements Matrix {
|
|
|
204
210
|
* Based on http://www.gamedev.net/reference/articles/article1199.asp.
|
|
205
211
|
*
|
|
206
212
|
* @param axis Rotation axis.
|
|
207
|
-
* @param
|
|
213
|
+
* @param angle Rotation angle in radians.
|
|
208
214
|
*/
|
|
209
215
|
makeRotationAxis(axis: Vector3, angle: number): this;
|
|
210
216
|
|
|
@@ -221,12 +227,12 @@ export class Matrix4 implements Matrix {
|
|
|
221
227
|
/**
|
|
222
228
|
* Sets this matrix to the transformation composed of translation, rotation and scale.
|
|
223
229
|
*/
|
|
224
|
-
compose(
|
|
230
|
+
compose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
225
231
|
|
|
226
232
|
/**
|
|
227
233
|
* Decomposes this matrix into it's position, quaternion and scale components.
|
|
228
234
|
*/
|
|
229
|
-
decompose(
|
|
235
|
+
decompose(position: Vector3, quaternion: Quaternion, scale: Vector3): this;
|
|
230
236
|
|
|
231
237
|
/**
|
|
232
238
|
* Creates a perspective projection matrix.
|
|
@@ -253,6 +259,7 @@ export class Matrix4 implements Matrix {
|
|
|
253
259
|
far: number,
|
|
254
260
|
coordinateSystem?: CoordinateSystem,
|
|
255
261
|
): this;
|
|
262
|
+
|
|
256
263
|
equals(matrix: Matrix4): boolean;
|
|
257
264
|
|
|
258
265
|
/**
|
|
@@ -260,72 +267,18 @@ export class Matrix4 implements Matrix {
|
|
|
260
267
|
* @param array the source array or array-like.
|
|
261
268
|
* @param offset (optional) offset into the array-like. Default is 0.
|
|
262
269
|
*/
|
|
263
|
-
fromArray(array:
|
|
270
|
+
fromArray(array: ArrayLike<number>, offset?: number): this;
|
|
264
271
|
|
|
265
272
|
/**
|
|
266
|
-
*
|
|
267
|
-
* @
|
|
268
|
-
* @param offset (optional) optional offset into the array.
|
|
269
|
-
* @return The created or provided array.
|
|
273
|
+
* Writes the elements of this matrix to an array in
|
|
274
|
+
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
270
275
|
*/
|
|
271
|
-
toArray(
|
|
272
|
-
toArray(array?: Matrix4Tuple, offset?: 0): Matrix4Tuple;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* Copies he values of this matrix into the provided array-like.
|
|
276
|
-
* @param array array-like to store the matrix to.
|
|
277
|
-
* @param offset (optional) optional offset into the array-like.
|
|
278
|
-
* @return The provided array-like.
|
|
279
|
-
*/
|
|
280
|
-
toArray(array?: ArrayLike<number>, offset?: number): ArrayLike<number>;
|
|
281
|
-
|
|
282
|
-
/**
|
|
283
|
-
* Set the upper 3x3 elements of this matrix to the values of the Matrix3 m.
|
|
284
|
-
*/
|
|
285
|
-
setFromMatrix3(m: Matrix3): this;
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @deprecated Use {@link Matrix4#copyPosition .copyPosition()} instead.
|
|
289
|
-
*/
|
|
290
|
-
extractPosition(m: Matrix4): Matrix4;
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* @deprecated Use {@link Matrix4#makeRotationFromQuaternion .makeRotationFromQuaternion()} instead.
|
|
294
|
-
*/
|
|
295
|
-
setRotationFromQuaternion(q: Quaternion): Matrix4;
|
|
296
|
-
|
|
297
|
-
/**
|
|
298
|
-
* @deprecated Use {@link Vector3#applyMatrix4 vector.applyMatrix4( matrix )} instead.
|
|
299
|
-
*/
|
|
300
|
-
multiplyVector3(v: any): any;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @deprecated Use {@link Vector4#applyMatrix4 vector.applyMatrix4( matrix )} instead.
|
|
304
|
-
*/
|
|
305
|
-
multiplyVector4(v: any): any;
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* @deprecated This method has been removed completely.
|
|
309
|
-
*/
|
|
310
|
-
multiplyVector3Array(array: number[]): number[];
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @deprecated Use {@link Vector3#transformDirection Vector3.transformDirection( matrix )} instead.
|
|
314
|
-
*/
|
|
315
|
-
rotateAxis(v: any): void;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* @deprecated Use {@link Vector3#applyMatrix4 vector.applyMatrix4( matrix )} instead.
|
|
319
|
-
*/
|
|
320
|
-
crossVector(v: any): void;
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* @deprecated Use {@link Matrix4#toArray .toArray()} instead.
|
|
324
|
-
*/
|
|
325
|
-
flattenToArrayOffset(array: number[], offset: number): number[];
|
|
326
|
-
|
|
276
|
+
toArray(): Matrix4Tuple;
|
|
327
277
|
/**
|
|
328
|
-
*
|
|
278
|
+
* Writes the elements of this matrix to an array in
|
|
279
|
+
* {@link https://en.wikipedia.org/wiki/Row-_and_column-major_order#Column-major_order column-major} format.
|
|
280
|
+
* @param array array to store the resulting vector in.
|
|
281
|
+
* @param offset (optional) offset in the array at which to put the result.
|
|
329
282
|
*/
|
|
330
|
-
|
|
283
|
+
toArray<TArray extends ArrayLike<number>>(array: TArray, offset?: number): TArray;
|
|
331
284
|
}
|
three/src/math/Quaternion.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export interface QuaternionLike {
|
|
|
11
11
|
readonly w: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export type QuaternionTuple = [x: number, y: number, z: number, w: number];
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* Implementation of a quaternion. This is used for rotating things without incurring in the dreaded gimbal lock issue, amongst other advantages.
|
|
16
18
|
*
|
|
@@ -127,7 +129,7 @@ export class Quaternion {
|
|
|
127
129
|
* @param array the source array or array-like.
|
|
128
130
|
* @param offset (optional) offset into the array. Default is 0.
|
|
129
131
|
*/
|
|
130
|
-
fromArray(array:
|
|
132
|
+
fromArray(array: QuaternionTuple, offset?: number): this;
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
|
|
@@ -135,7 +137,7 @@ export class Quaternion {
|
|
|
135
137
|
* @param offset (optional) optional offset into the array.
|
|
136
138
|
* @return The created or provided array.
|
|
137
139
|
*/
|
|
138
|
-
toArray(array?: number[], offset?: number):
|
|
140
|
+
toArray(array?: number[], offset?: number): QuaternionTuple;
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* Copies x, y, z and w into the provided array-like.
|
|
@@ -143,7 +145,7 @@ export class Quaternion {
|
|
|
143
145
|
* @param offset (optional) optional offset into the array.
|
|
144
146
|
* @return The provided array-like.
|
|
145
147
|
*/
|
|
146
|
-
toArray(array: ArrayLike<number>, offset?: number):
|
|
148
|
+
toArray(array: ArrayLike<number>, offset?: number): QuaternionTuple;
|
|
147
149
|
|
|
148
150
|
/**
|
|
149
151
|
* This method defines the serialization result of Quaternion.
|
three/src/math/Vector2.d.ts
CHANGED
|
@@ -8,13 +8,14 @@ export { bypass, default as BypassNode } from "./core/BypassNode.js";
|
|
|
8
8
|
export { cache, default as CacheNode } from "./core/CacheNode.js";
|
|
9
9
|
export { default as ConstNode } from "./core/ConstNode.js";
|
|
10
10
|
export { context, default as ContextNode, label } from "./core/ContextNode.js";
|
|
11
|
-
export { default as IndexNode, IndexNodeScope, instanceIndex, vertexIndex } from "./core/IndexNode.js";
|
|
11
|
+
export { default as IndexNode, drawIndex, IndexNodeScope, instanceIndex, vertexIndex } from "./core/IndexNode.js";
|
|
12
12
|
export {
|
|
13
13
|
default as LightingModel,
|
|
14
14
|
LightingModelDirectInput,
|
|
15
15
|
LightingModelIndirectInput,
|
|
16
16
|
LightingModelReflectedLight,
|
|
17
17
|
} from "./core/LightingModel.js";
|
|
18
|
+
export { default as MRTNode, mrt } from "./core/MRTNode.js";
|
|
18
19
|
export { default as Node } from "./core/Node.js";
|
|
19
20
|
export { default as NodeAttribute } from "./core/NodeAttribute.js";
|
|
20
21
|
export { default as NodeBuilder } from "./core/NodeBuilder.js";
|
|
@@ -37,6 +38,7 @@ export {
|
|
|
37
38
|
dashSize,
|
|
38
39
|
default as PropertyNode,
|
|
39
40
|
diffuseColor,
|
|
41
|
+
emissive,
|
|
40
42
|
gapSize,
|
|
41
43
|
iridescence,
|
|
42
44
|
iridescenceIOR,
|
|
@@ -54,6 +56,13 @@ export {
|
|
|
54
56
|
} from "./core/PropertyNode.js";
|
|
55
57
|
export { default as StackNode } from "./core/StackNode.js";
|
|
56
58
|
export { default as TempNode } from "./core/TempNode.js";
|
|
59
|
+
export {
|
|
60
|
+
default as UniformGroupNode,
|
|
61
|
+
frameGroup,
|
|
62
|
+
objectGroup,
|
|
63
|
+
renderGroup,
|
|
64
|
+
uniformGroup,
|
|
65
|
+
} from "./core/UniformGroupNode.js";
|
|
57
66
|
export { default as UniformNode, uniform } from "./core/UniformNode.js";
|
|
58
67
|
export { default as VarNode, temp } from "./core/VarNode.js";
|
|
59
68
|
export { default as VaryingNode, varying } from "./core/VaryingNode.js";
|
|
@@ -115,6 +124,7 @@ export {
|
|
|
115
124
|
pow3,
|
|
116
125
|
pow4,
|
|
117
126
|
radians,
|
|
127
|
+
rand,
|
|
118
128
|
reciprocal,
|
|
119
129
|
reflect,
|
|
120
130
|
refract,
|
|
@@ -171,10 +181,12 @@ export { default as JoinNode } from "./utils/JoinNode.js";
|
|
|
171
181
|
export { default as MatcapUVNode, matcapUV } from "./utils/MatcapUVNode.js";
|
|
172
182
|
export { default as MaxMipLevelNode, maxMipLevel } from "./utils/MaxMipLevelNode.js";
|
|
173
183
|
export { default as OscNode, OscNodeMethod, oscSawtooth, oscSine, oscSquare, oscTriangle } from "./utils/OscNode.js";
|
|
184
|
+
export { colorToDirection, default as PackingNode, directionToColor } from "./utils/PackingNode.js";
|
|
174
185
|
export { default as ReflectorNode, reflector, ReflectorNodeParameters } from "./utils/ReflectorNode.js";
|
|
175
186
|
export { default as RemapNode, remap, remapClamp } from "./utils/RemapNode.js";
|
|
176
187
|
export { default as RotateNode, rotate } from "./utils/RotateNode.js";
|
|
177
188
|
export { default as RotateUVNode, rotateUV } from "./utils/RotateUVNode.js";
|
|
189
|
+
export { default as RTTNode, rtt, RTTNodeOptions } from "./utils/RTTNode.js";
|
|
178
190
|
export { default as SplitNode } from "./utils/SplitNode.js";
|
|
179
191
|
export { default as SpriteSheetUVNode, spritesheetUV } from "./utils/SpriteSheetUVNode.js";
|
|
180
192
|
export { default as StorageArrayElementNode } from "./utils/SpriteSheetUVNode.js";
|
|
@@ -208,6 +220,7 @@ export {
|
|
|
208
220
|
materialAlphaTest,
|
|
209
221
|
materialAnisotropy,
|
|
210
222
|
materialAnisotropyVector,
|
|
223
|
+
materialAOMap,
|
|
211
224
|
materialClearcoat,
|
|
212
225
|
materialClearcoatNormal,
|
|
213
226
|
materialClearcoatRoughness,
|
|
@@ -217,6 +230,7 @@ export {
|
|
|
217
230
|
materialIridescence,
|
|
218
231
|
materialIridescenceIOR,
|
|
219
232
|
materialIridescenceThickness,
|
|
233
|
+
materialLightMap,
|
|
220
234
|
materialLineDashOffset,
|
|
221
235
|
materialLineDashSize,
|
|
222
236
|
materialLineGapSize,
|
|
@@ -265,7 +279,7 @@ export * from "./accessors/PositionNode.js";
|
|
|
265
279
|
export { default as ReferenceNode, reference, referenceBuffer } from "./accessors/ReferenceNode.js";
|
|
266
280
|
export * from "./accessors/ReflectVectorNode.js";
|
|
267
281
|
export { default as RendererReferenceNode, rendererReference } from "./accessors/RendererReferenceNode.js";
|
|
268
|
-
export { default as SkinningNode, skinning } from "./accessors/SkinningNode.js";
|
|
282
|
+
export { default as SkinningNode, skinning, skinningReference } from "./accessors/SkinningNode.js";
|
|
269
283
|
export { default as StorageBufferNode, storage, storageObject } from "./accessors/StorageBufferNode.js";
|
|
270
284
|
export { default as StorageTextureNode, storageTexture, textureStore } from "./accessors/StorageTextureNode.js";
|
|
271
285
|
export * from "./accessors/TangentNode.js";
|
|
@@ -281,11 +295,11 @@ export { default as VertexColorNode, vertexColor } from "./accessors/VertexColor
|
|
|
281
295
|
export { afterImage, default as AfterImageNode } from "./display/AfterImageNode.js";
|
|
282
296
|
export { anamorphic, default as AnamorphicNode } from "./display/AnamorphicNode.js";
|
|
283
297
|
export { BlendMode, burn, default as BlendModeNode, dodge, overlay, screen } from "./display/BlendModeNode.js";
|
|
298
|
+
export { bloom, default as BloomNode } from "./display/BloomNode.js";
|
|
284
299
|
export {
|
|
285
300
|
ColorAdjustmentMethod,
|
|
286
301
|
default as ColorAdjustmentNode,
|
|
287
302
|
hue,
|
|
288
|
-
lumaCoeffs,
|
|
289
303
|
luminance,
|
|
290
304
|
saturation,
|
|
291
305
|
threshold,
|
|
@@ -299,15 +313,23 @@ export {
|
|
|
299
313
|
linearTosRGB,
|
|
300
314
|
sRGBToLinear,
|
|
301
315
|
} from "./display/ColorSpaceNode.js";
|
|
316
|
+
export { default as DenoiseNode, denoise } from "./display/DenoiseNode.js";
|
|
302
317
|
export { default as DepthOfFieldNode, dof } from "./display/DepthOfFieldNode.js";
|
|
303
318
|
export { default as DotScreenNode, dotScreen } from "./display/DotScreenNode.js";
|
|
319
|
+
export { default as FilmNode, film } from "./display/FilmNode.js";
|
|
304
320
|
export { default as FrontFacingNode, faceDirection, frontFacing } from "./display/FrontFacingNode.js";
|
|
321
|
+
export { default as FXAANode, fxaa } from "./display/FXAANode.js";
|
|
305
322
|
export { default as GaussianBlurNode, gaussianBlur } from "./display/GaussianBlurNode.js";
|
|
323
|
+
export { ao, default as GTAONode } from "./display/GTAONode.js";
|
|
324
|
+
export { default as Lut3DNode, lut3D } from "./display/Lut3DNode.js";
|
|
306
325
|
export { default as NormalMapNode, normalMap } from "./display/NormalMapNode.js";
|
|
326
|
+
export { default as PixelationPassNode, pixelationPass } from "./display/PixelationPassNode.js";
|
|
307
327
|
export { default as PosterizeNode, posterize } from "./display/PosterizeNode.js";
|
|
328
|
+
export { default as RenderOutputNode, renderOutput } from "./display/RenderOutputNode.js";
|
|
308
329
|
export { default as RGBShiftNode, rgbShift } from "./display/RGBShiftNode.js";
|
|
309
330
|
export { default as SobelOperatorNode, sobel } from "./display/SobelOperatorNode.js";
|
|
310
331
|
export { default as ToneMappingNode, toneMapping } from "./display/ToneMappingNode.js";
|
|
332
|
+
export { default as TransitionNode, transition } from "./display/TransitionNode.js";
|
|
311
333
|
export {
|
|
312
334
|
default as ViewportDepthNode,
|
|
313
335
|
depth,
|
|
@@ -332,7 +354,7 @@ export {
|
|
|
332
354
|
export { default as ViewportSharedTextureNode, viewportSharedTexture } from "./display/ViewportSharedTextureNode.js";
|
|
333
355
|
export { default as ViewportTextureNode, viewportMipTexture, viewportTexture } from "./display/ViewportTextureNode.js";
|
|
334
356
|
|
|
335
|
-
export { default as PassNode, depthPass, pass, PassNodeScope,
|
|
357
|
+
export { default as PassNode, depthPass, pass, PassNodeScope, passTexture } from "./display/PassNode.js";
|
|
336
358
|
|
|
337
359
|
// code
|
|
338
360
|
export { code, CodeNodeInclude, default as CodeNode, glsl, js, wgsl } from "./code/CodeNode.js";
|
|
@@ -354,6 +376,7 @@ export { compute, default as ComputeNode } from "./gpgpu/ComputeNode.js";
|
|
|
354
376
|
// lighting
|
|
355
377
|
export { default as AnalyticLightNode } from "./lighting/AnalyticLightNode.js";
|
|
356
378
|
export { default as AONode } from "./lighting/AONode.js";
|
|
379
|
+
export { default as BasicEnvironmentNode } from "./lighting/BasicEnvironmentNode.js";
|
|
357
380
|
export { default as EnvironmentNode } from "./lighting/EnvironmentNode.js";
|
|
358
381
|
export { default as HemisphereLightNode } from "./lighting/HemisphereLightNode.js";
|
|
359
382
|
export { default as IrradianceNode } from "./lighting/IrradianceNode.js";
|
|
@@ -361,7 +384,7 @@ export { default as LightingContextNode, lightingContext } from "./lighting/Ligh
|
|
|
361
384
|
export { default as LightingNode } from "./lighting/LightingNode.js";
|
|
362
385
|
export { default as LightsNode, lights } from "./lighting/LightsNode.js";
|
|
363
386
|
export { default as PointLightNode } from "./lighting/PointLightNode.js";
|
|
364
|
-
export { default as RectAreaLightNode } from "./lighting/RectAreaLightNode.js";
|
|
387
|
+
export { default as RectAreaLightNode, RectAreaLightTexturesLib } from "./lighting/RectAreaLightNode.js";
|
|
365
388
|
export { default as SpotLightNode } from "./lighting/SpotLightNode.js";
|
|
366
389
|
|
|
367
390
|
// pmrem
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Usage } from "../../constants.js";
|
|
2
|
+
import { BufferAttribute, TypedArray } from "../../core/BufferAttribute.js";
|
|
3
|
+
import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
|
|
4
|
+
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
|
|
2
5
|
import InputNode from "../core/InputNode.js";
|
|
3
6
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
7
|
declare class BufferAttributeNode extends InputNode<TypedArray | InterleavedBuffer | BufferAttribute> {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Matrix3
|
|
1
|
+
import { Matrix3 } from "../../math/Matrix3.js";
|
|
2
|
+
import { Matrix4 } from "../../math/Matrix4.js";
|
|
3
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
2
4
|
import UniformNode from "../core/UniformNode.js";
|
|
3
5
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
6
|
|
|
@@ -1,22 +1,30 @@
|
|
|
1
|
-
import { CubeTexture } from "
|
|
1
|
+
import { CubeTexture } from "../../textures/CubeTexture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
4
|
import TextureNode from "./TextureNode.js";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
declare class CubeTextureNode extends TextureNode {
|
|
7
7
|
isCubeTextureNode: boolean;
|
|
8
8
|
uvNode: ShaderNodeObject<Node> | null;
|
|
9
9
|
levelNode: ShaderNodeObject<Node> | null;
|
|
10
10
|
|
|
11
|
-
constructor(
|
|
11
|
+
constructor(
|
|
12
|
+
value: CubeTexture,
|
|
13
|
+
uvNode?: ShaderNodeObject<Node> | null,
|
|
14
|
+
levelNode?: ShaderNodeObject<Node> | null,
|
|
15
|
+
biasNode?: ShaderNodeObject<Node> | null,
|
|
16
|
+
);
|
|
12
17
|
|
|
13
18
|
getDefaultUV(): Node;
|
|
14
19
|
}
|
|
15
20
|
|
|
21
|
+
export default CubeTextureNode;
|
|
22
|
+
|
|
16
23
|
export const cubeTexture: (
|
|
17
24
|
value: CubeTexture,
|
|
18
25
|
uvNode?: NodeRepresentation,
|
|
19
26
|
levelNode?: NodeRepresentation,
|
|
27
|
+
biasNode?: NodeRepresentation,
|
|
20
28
|
) => ShaderNodeObject<CubeTextureNode>;
|
|
21
29
|
|
|
22
30
|
declare module "../shadernode/ShaderNode.js" {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vector2 } from "
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import UniformNode from "../core/UniformNode.js";
|
|
4
4
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
@@ -38,7 +38,10 @@ export type MaterialNodeScope =
|
|
|
38
38
|
| typeof MaterialNode.LINE_WIDTH
|
|
39
39
|
| typeof MaterialNode.LINE_DASH_OFFSET
|
|
40
40
|
| typeof MaterialNode.POINT_WIDTH
|
|
41
|
-
| typeof MaterialNode.DISPERSION
|
|
41
|
+
| typeof MaterialNode.DISPERSION
|
|
42
|
+
| typeof MaterialNode.LIGHT_MAP
|
|
43
|
+
| typeof MaterialNode.AO_MAP
|
|
44
|
+
| typeof MaterialNode.REFRACTION_RATIO;
|
|
42
45
|
|
|
43
46
|
export default class MaterialNode extends Node {
|
|
44
47
|
static ALPHA_TEST: "alphaTest";
|
|
@@ -76,6 +79,9 @@ export default class MaterialNode extends Node {
|
|
|
76
79
|
static LINE_DASH_OFFSET: "dashOffset";
|
|
77
80
|
static POINT_WIDTH: "pointWidth";
|
|
78
81
|
static DISPERSION: "dispersion";
|
|
82
|
+
static LIGHT_MAP: "light";
|
|
83
|
+
static AO_MAP: "ao";
|
|
84
|
+
static REFRACTION_RATIO: "refractionRatio";
|
|
79
85
|
|
|
80
86
|
scope: MaterialNodeScope;
|
|
81
87
|
constructor(scope?: MaterialNodeScope);
|
|
@@ -118,4 +124,7 @@ export const materialLineWidth: ShaderNodeObject<MaterialNode>;
|
|
|
118
124
|
export const materialLineDashOffset: ShaderNodeObject<MaterialNode>;
|
|
119
125
|
export const materialPointWidth: ShaderNodeObject<MaterialNode>;
|
|
120
126
|
export const materialDispersion: ShaderNodeObject<MaterialNode>;
|
|
127
|
+
export const materialLightMap: ShaderNodeObject<MaterialNode>;
|
|
128
|
+
export const materialAOMap: ShaderNodeObject<MaterialNode>;
|
|
129
|
+
export const materialRefractionRatio: ShaderNodeObject<MaterialNode>;
|
|
121
130
|
export const materialAnisotropyVector: ShaderNodeObject<UniformNode<Vector2>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import AttributeNode from "../core/AttributeNode.js";
|
|
2
2
|
import PropertyNode from "../core/PropertyNode.js";
|
|
3
3
|
import VarNode from "../core/VarNode.js";
|
|
4
|
-
import MathNode from "../math/MathNode.js";
|
|
5
4
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
6
5
|
|
|
7
6
|
export const normalGeometry: ShaderNodeObject<AttributeNode>;
|
|
8
7
|
export const normalLocal: ShaderNodeObject<VarNode>;
|
|
9
|
-
export const normalView: ShaderNodeObject<
|
|
10
|
-
export const normalWorld: ShaderNodeObject<
|
|
8
|
+
export const normalView: ShaderNodeObject<VarNode>;
|
|
9
|
+
export const normalWorld: ShaderNodeObject<VarNode>;
|
|
11
10
|
export const transformedNormalView: ShaderNodeObject<PropertyNode>;
|
|
11
|
+
export const transformedNormalWorld: ShaderNodeObject<VarNode>;
|
|
12
12
|
export const transformedClearcoatNormalView: ShaderNodeObject<PropertyNode>;
|
|
@@ -3,4 +3,7 @@ import VarNode from "../core/VarNode.js";
|
|
|
3
3
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
4
|
|
|
5
5
|
export const reflectView: ShaderNodeObject<Node>;
|
|
6
|
+
export const refractView: ShaderNodeObject<Node>;
|
|
7
|
+
|
|
6
8
|
export const reflectVector: ShaderNodeObject<VarNode>;
|
|
9
|
+
export const refractVector: ShaderNodeObject<VarNode>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Texture } from "three";
|
|
2
1
|
import { GPUStorageTextureAccess } from "../../renderers/webgpu/utils/WebGPUConstants.js";
|
|
2
|
+
import { Texture } from "../../textures/Texture.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
5
5
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CubeTexture
|
|
1
|
+
import { CubeTexture } from "../../textures/CubeTexture.js";
|
|
2
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
3
|
import Node from "../core/Node.js";
|
|
3
4
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
5
|
import TextureNode from "./TextureNode.js";
|
|
@@ -10,7 +11,7 @@ export default class Texture3DNode extends TextureNode {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export const texture3D: (
|
|
13
|
-
value:
|
|
14
|
+
value: Texture,
|
|
14
15
|
uvNode?: NodeRepresentation,
|
|
15
16
|
levelNode?: NodeRepresentation,
|
|
16
17
|
) => ShaderNodeObject<Texture3DNode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Texture } from "
|
|
1
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import UniformNode from "../core/UniformNode.js";
|
|
4
4
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
@@ -8,6 +8,7 @@ export default class TextureNode extends UniformNode<Texture> {
|
|
|
8
8
|
|
|
9
9
|
uvNode: ShaderNodeObject<Node> | null;
|
|
10
10
|
levelNode: ShaderNodeObject<Node> | null;
|
|
11
|
+
biasNode: ShaderNodeObject<Node> | null;
|
|
11
12
|
compareNode: Node | null;
|
|
12
13
|
depthNode: Node | null;
|
|
13
14
|
gradNode: Node | null;
|
|
@@ -17,7 +18,12 @@ export default class TextureNode extends UniformNode<Texture> {
|
|
|
17
18
|
|
|
18
19
|
referenceNode: Node | null;
|
|
19
20
|
|
|
20
|
-
constructor(
|
|
21
|
+
constructor(
|
|
22
|
+
value: Texture,
|
|
23
|
+
uvNode?: ShaderNodeObject<Node> | null,
|
|
24
|
+
levelNode?: ShaderNodeObject<Node> | null,
|
|
25
|
+
biasNode?: ShaderNodeObject<Node> | null,
|
|
26
|
+
);
|
|
21
27
|
|
|
22
28
|
getDefaultUV(): Node;
|
|
23
29
|
|
|
@@ -30,6 +36,7 @@ export const texture: (
|
|
|
30
36
|
value: Texture,
|
|
31
37
|
uvNode?: NodeRepresentation,
|
|
32
38
|
levelNode?: NodeRepresentation,
|
|
39
|
+
biasNode?: NodeRepresentation,
|
|
33
40
|
) => ShaderNodeObject<TextureNode>;
|
|
34
41
|
export const sampler: (aTexture: Texture | TextureNode) => ShaderNodeObject<Node>;
|
|
35
42
|
|