@types/three 0.166.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- three/README.md +1 -1
- three/build/three.webgpu.d.ts +1 -0
- three/build/three.webgpu.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +1 -1
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
- three/examples/jsm/csm/CSM.d.ts +3 -4
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
- three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
- three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
- three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
- three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +184 -0
- three/src/Three.d.ts +25 -91
- three/src/animation/AnimationClip.d.ts +12 -4
- three/src/animation/AnimationUtils.d.ts +32 -7
- three/src/animation/KeyframeTrack.d.ts +9 -1
- three/src/animation/PropertyBinding.d.ts +12 -12
- three/src/cameras/OrthographicCamera.d.ts +27 -0
- three/src/cameras/PerspectiveCamera.d.ts +31 -0
- three/src/constants.d.ts +7 -1
- three/src/core/BufferAttribute.d.ts +11 -6
- three/src/core/BufferGeometry.d.ts +26 -3
- three/src/core/InterleavedBufferAttribute.d.ts +3 -3
- three/src/core/Object3D.d.ts +51 -6
- three/src/extras/DataUtils.d.ts +9 -2
- three/src/extras/ImageUtils.d.ts +6 -7
- three/src/extras/core/Curve.d.ts +8 -2
- three/src/extras/core/CurvePath.d.ts +9 -1
- three/src/extras/core/Path.d.ts +9 -2
- three/src/extras/core/Shape.d.ts +9 -1
- three/src/lights/Light.d.ts +19 -2
- three/src/lights/LightShadow.d.ts +13 -2
- three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
- three/src/loaders/Cache.d.ts +13 -8
- three/src/materials/Material.d.ts +164 -2
- three/src/materials/ShaderMaterial.d.ts +49 -2
- three/src/math/ColorManagement.d.ts +3 -0
- three/src/math/Euler.d.ts +4 -2
- three/src/math/Matrix2.d.ts +53 -0
- three/src/math/Matrix3.d.ts +67 -115
- three/src/math/Matrix4.d.ts +48 -100
- three/src/math/Quaternion.d.ts +5 -3
- three/src/math/Vector2.d.ts +1 -1
- three/{examples/jsm → src}/nodes/Nodes.d.ts +28 -5
- three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
- three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
- three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
- three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
- three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
- three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
- three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +1 -3
- three/src/nodes/core/MRTNode.d.ts +19 -0
- three/{examples/jsm → src}/nodes/core/Node.d.ts +3 -10
- three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +7 -1
- three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +2 -1
- three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
- three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
- three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
- three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
- three/src/nodes/display/BloomNode.d.ts +35 -0
- three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
- three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/src/nodes/display/DenoiseNode.d.ts +38 -0
- three/{examples/jsm → src}/nodes/display/DepthOfFieldNode.d.ts +4 -4
- three/{examples/jsm → src}/nodes/display/DotScreenNode.d.ts +3 -8
- three/src/nodes/display/FXAANode.d.ts +19 -0
- three/src/nodes/display/FilmNode.d.ts +25 -0
- three/src/nodes/display/GTAONode.d.ts +46 -0
- three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
- three/src/nodes/display/Lut3DNode.d.ts +30 -0
- three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +62 -0
- three/src/nodes/display/PixelationPassNode.d.ts +67 -0
- three/src/nodes/display/RenderOutputNode.d.ts +28 -0
- three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
- three/src/nodes/display/TransitionNode.d.ts +41 -0
- three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
- three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
- three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
- three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
- three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
- three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
- three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
- three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
- three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
- three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +4 -2
- three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +22 -16
- three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/math/MathNode.d.ts +4 -0
- three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
- three/src/nodes/utils/PackingNode.d.ts +24 -0
- three/src/nodes/utils/RTTNode.d.ts +45 -0
- three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
- three/src/objects/InstancedMesh.d.ts +15 -2
- three/src/objects/LOD.d.ts +17 -1
- three/src/objects/Mesh.d.ts +11 -1
- three/src/objects/Points.d.ts +0 -3
- three/src/objects/Skeleton.d.ts +10 -3
- three/src/objects/SkinnedMesh.d.ts +15 -3
- three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
- three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Geometries.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Info.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -3
- three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
- three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
- three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +16 -13
- three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
- three/{examples/jsm → src}/renderers/common/Renderer.d.ts +30 -29
- three/{examples/jsm → src}/renderers/common/SampledTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Uniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -2
- three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +21 -8
- three/src/renderers/shaders/ShaderLib.d.ts +3 -1
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
- three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +6 -4
- three/src/scenes/Fog.d.ts +7 -24
- three/src/scenes/FogExp2.d.ts +9 -3
- three/src/scenes/Scene.d.ts +21 -5
- three/src/textures/Source.d.ts +15 -1
- three/src/textures/Texture.d.ts +37 -1
- three/examples/jsm/deprecated/Geometry.d.ts +0 -341
- three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
- three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
- three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
- three/examples/jsm/nodes/lighting/RectAreaLightNode.d.ts +0 -10
- /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VarNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/RGBShiftNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/SobelOperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/LTC.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_noise.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BindGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Bindings.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Sampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampledTexture.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.d.ts +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import CodeNode from "../../../nodes/code/CodeNode.js";
|
|
2
2
|
import { NodeShaderStage } from "../../../nodes/core/constants.js";
|
|
3
3
|
import NodeBuilder from "../../../nodes/core/NodeBuilder.js";
|
|
4
4
|
import NodeUniform from "../../../nodes/core/NodeUniform.js";
|
|
5
5
|
import NodeVar from "../../../nodes/core/NodeVar.js";
|
|
6
6
|
import StructTypeNode from "../../../nodes/core/StructTypeNode.js";
|
|
7
7
|
import { ShaderNode } from "../../../nodes/shadernode/ShaderNode.js";
|
|
8
|
+
import { Texture } from "../../../textures/Texture.js";
|
|
8
9
|
import NodeUniformsGroup from "../../common/nodes/NodeUniformsGroup.js";
|
|
9
10
|
|
|
10
11
|
type BuiltinStage = NodeShaderStage | "attribute" | "output";
|
|
@@ -18,7 +19,7 @@ export default class WGSLNodeBuilder extends NodeBuilder {
|
|
|
18
19
|
builtins: { [key in BuiltinStage]: Map<string, BuiltinType> };
|
|
19
20
|
uniformGroups: { [key in NodeShaderStage]: NodeUniformsGroup };
|
|
20
21
|
|
|
21
|
-
needsColorSpaceToLinear(texture: Texture);
|
|
22
|
+
needsColorSpaceToLinear(texture: Texture): boolean;
|
|
22
23
|
_generateTextureSample(
|
|
23
24
|
texture: Texture,
|
|
24
25
|
textureProperty: string,
|
|
@@ -93,6 +94,7 @@ export default class WGSLNodeBuilder extends NodeBuilder {
|
|
|
93
94
|
getBuiltin(name: string, property: string, type: string, shaderStage: BuiltinStage): string;
|
|
94
95
|
getVertexIndex(): string;
|
|
95
96
|
getInstanceIndex(): string;
|
|
97
|
+
getDrawIndex(): null;
|
|
96
98
|
|
|
97
99
|
buildFunctionCode(shaderNode: ShaderNode): string;
|
|
98
100
|
|
|
@@ -113,8 +115,8 @@ export default class WGSLNodeBuilder extends NodeBuilder {
|
|
|
113
115
|
buildCode(): void;
|
|
114
116
|
getMethod(method: string, output?: string | null): string;
|
|
115
117
|
|
|
116
|
-
_getWGSLMethod(method: string);
|
|
117
|
-
|
|
118
|
+
_getWGSLMethod(method: string): CodeNode | string;
|
|
119
|
+
_include(name: string): CodeNode;
|
|
118
120
|
_getWGSLVertexCode(shaderData: { [key: string]: string }): string;
|
|
119
121
|
_getWGSLFragmentCode(shaderData: { [key: string]: string }): string;
|
|
120
122
|
_getWGSLComputeCode(shaderData: { [key: string]: string }, workgroupSize: string): string;
|
three/src/scenes/Fog.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
1
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
2
2
|
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
* Optional name of the `Fog` object
|
|
6
|
-
* @remarks _(doesn't need to be unique)_.
|
|
7
|
-
* @defaultValue `""`
|
|
8
|
-
*/
|
|
3
|
+
export interface FogJSON {
|
|
4
|
+
type: string;
|
|
9
5
|
name: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @remarks If set to black, far away objects will be rendered black.
|
|
14
|
-
*/
|
|
15
|
-
color: Color;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Returns a new Fog instance with the same parameters as this one.
|
|
19
|
-
*/
|
|
20
|
-
clone(): FogBase;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Return Fog data in JSON format.
|
|
24
|
-
*/
|
|
25
|
-
toJSON(): any;
|
|
6
|
+
color: number;
|
|
7
|
+
near: number;
|
|
8
|
+
far: number;
|
|
26
9
|
}
|
|
27
10
|
|
|
28
11
|
/**
|
|
@@ -35,7 +18,7 @@ export interface FogBase {
|
|
|
35
18
|
* @see {@link https://threejs.org/docs/index.html#api/en/scenes/Fog | Official Documentation}
|
|
36
19
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/scenes/Fog.js | Source}
|
|
37
20
|
*/
|
|
38
|
-
export class Fog
|
|
21
|
+
export class Fog {
|
|
39
22
|
/**
|
|
40
23
|
* The color parameter is passed to the {@link THREE.Color | Color} constructor to set the color property
|
|
41
24
|
* @remarks
|
|
@@ -90,5 +73,5 @@ export class Fog implements FogBase {
|
|
|
90
73
|
/**
|
|
91
74
|
* Return {@link Fog} data in JSON format.
|
|
92
75
|
*/
|
|
93
|
-
toJSON():
|
|
76
|
+
toJSON(): FogJSON;
|
|
94
77
|
}
|
three/src/scenes/FogExp2.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
export interface FogExp2JSON {
|
|
4
|
+
type: string;
|
|
5
|
+
name: string;
|
|
6
|
+
color: number;
|
|
7
|
+
density: number;
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
/**
|
|
5
11
|
* This class contains the parameters that define exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.
|
|
@@ -12,7 +18,7 @@ import { FogBase } from "./Fog.js";
|
|
|
12
18
|
* @see {@link https://threejs.org/docs/index.html#api/en/scenes/FogExp2 | Official Documentation}
|
|
13
19
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/scenes/FogExp2.js | Source}
|
|
14
20
|
*/
|
|
15
|
-
export class FogExp2
|
|
21
|
+
export class FogExp2 {
|
|
16
22
|
/**
|
|
17
23
|
* The color parameter is passed to the {@link THREE.Color | Color} constructor to set the color property
|
|
18
24
|
* @remarks Color can be a hexadecimal integer or a CSS-style string.
|
|
@@ -56,5 +62,5 @@ export class FogExp2 implements FogBase {
|
|
|
56
62
|
/**
|
|
57
63
|
* Return {@link FogExp2} data in JSON format.
|
|
58
64
|
*/
|
|
59
|
-
toJSON():
|
|
65
|
+
toJSON(): FogExp2JSON;
|
|
60
66
|
}
|
three/src/scenes/Scene.d.ts
CHANGED
|
@@ -1,10 +1,26 @@
|
|
|
1
|
-
import { Object3D } from "../core/Object3D.js";
|
|
1
|
+
import { JSONMeta, Object3D, Object3DJSON, Object3DJSONObject } from "../core/Object3D.js";
|
|
2
2
|
import { Material } from "../materials/Material.js";
|
|
3
3
|
import { Color } from "../math/Color.js";
|
|
4
|
-
import { Euler } from "../math/Euler.js";
|
|
4
|
+
import { Euler, EulerTuple } from "../math/Euler.js";
|
|
5
5
|
import { CubeTexture } from "../textures/CubeTexture.js";
|
|
6
6
|
import { Texture } from "../textures/Texture.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Fog, FogJSON } from "./Fog.js";
|
|
8
|
+
import { FogExp2, FogExp2JSON } from "./FogExp2.js";
|
|
9
|
+
|
|
10
|
+
export interface SceneJSONObject extends Object3DJSONObject {
|
|
11
|
+
fog?: FogJSON | FogExp2JSON;
|
|
12
|
+
|
|
13
|
+
backgroundBlurriness?: number;
|
|
14
|
+
backgroundIntensity?: number;
|
|
15
|
+
backgroundRotation: EulerTuple;
|
|
16
|
+
|
|
17
|
+
environmentIntensity?: number;
|
|
18
|
+
environmentRotation: EulerTuple;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface SceneJSON extends Object3DJSON {
|
|
22
|
+
object: SceneJSONObject;
|
|
23
|
+
}
|
|
8
24
|
|
|
9
25
|
/**
|
|
10
26
|
* Scenes allow you to set up what and where is to be rendered by three.js
|
|
@@ -37,7 +53,7 @@ export class Scene extends Object3D {
|
|
|
37
53
|
* A {@link Fog | fog} instance defining the type of fog that affects everything rendered in the scene.
|
|
38
54
|
* @defaultValue `null`
|
|
39
55
|
*/
|
|
40
|
-
fog:
|
|
56
|
+
fog: Fog | FogExp2 | null;
|
|
41
57
|
|
|
42
58
|
/**
|
|
43
59
|
* Sets the blurriness of the background. Only influences environment maps assigned to {@link THREE.Scene.background | Scene.background}.
|
|
@@ -98,5 +114,5 @@ export class Scene extends Object3D {
|
|
|
98
114
|
* Convert the {@link Scene} to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
|
99
115
|
* @param meta Object containing metadata such as textures or images for the scene.
|
|
100
116
|
*/
|
|
101
|
-
toJSON(meta?:
|
|
117
|
+
toJSON(meta?: JSONMeta): SceneJSON;
|
|
102
118
|
}
|
three/src/textures/Source.d.ts
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
export type SerializedImage =
|
|
2
|
+
| string
|
|
3
|
+
| {
|
|
4
|
+
data: number[];
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
type: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export class SourceJSON {
|
|
11
|
+
uuid: string;
|
|
12
|
+
url: SerializedImage | SerializedImage[];
|
|
13
|
+
}
|
|
14
|
+
|
|
1
15
|
/**
|
|
2
16
|
* Represents the data {@link Source} of a texture.
|
|
3
17
|
* @see {@link https://threejs.org/docs/index.html#api/en/textures/Source | Official Documentation}
|
|
@@ -57,5 +71,5 @@ export class Source {
|
|
|
57
71
|
* Convert the data {@link Source} to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
|
58
72
|
* @param meta Optional object containing metadata.
|
|
59
73
|
*/
|
|
60
|
-
toJSON(meta?: string | {}):
|
|
74
|
+
toJSON(meta?: string | {}): SourceJSON;
|
|
61
75
|
}
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -17,6 +17,42 @@ import { CompressedTextureMipmap } from "./CompressedTexture.js";
|
|
|
17
17
|
import { CubeTexture } from "./CubeTexture.js";
|
|
18
18
|
import { Source } from "./Source.js";
|
|
19
19
|
|
|
20
|
+
export interface TextureJSON {
|
|
21
|
+
metadata: { version: number; type: string; generator: string };
|
|
22
|
+
|
|
23
|
+
uuid: string;
|
|
24
|
+
name: string;
|
|
25
|
+
|
|
26
|
+
image: string;
|
|
27
|
+
|
|
28
|
+
mapping: AnyMapping;
|
|
29
|
+
channel: number;
|
|
30
|
+
|
|
31
|
+
repeat: [x: number, y: number];
|
|
32
|
+
offset: [x: number, y: number];
|
|
33
|
+
center: [x: number, y: number];
|
|
34
|
+
rotation: number;
|
|
35
|
+
|
|
36
|
+
wrap: [wrapS: number, wrapT: number];
|
|
37
|
+
|
|
38
|
+
format: AnyPixelFormat;
|
|
39
|
+
internalFormat: PixelFormatGPU | null;
|
|
40
|
+
type: TextureDataType;
|
|
41
|
+
colorSpace: ColorSpace;
|
|
42
|
+
|
|
43
|
+
minFilter: MinificationTextureFilter;
|
|
44
|
+
magFilter: MagnificationTextureFilter;
|
|
45
|
+
anisotropy: number;
|
|
46
|
+
|
|
47
|
+
flipY: boolean;
|
|
48
|
+
|
|
49
|
+
generateMipmaps: boolean;
|
|
50
|
+
premultiplyAlpha: boolean;
|
|
51
|
+
unpackAlignment: number;
|
|
52
|
+
|
|
53
|
+
userData?: Record<string, unknown>;
|
|
54
|
+
}
|
|
55
|
+
|
|
20
56
|
/** Shim for OffscreenCanvas. */
|
|
21
57
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
22
58
|
export interface OffscreenCanvas extends EventTarget {}
|
|
@@ -431,7 +467,7 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
431
467
|
* Convert the texture to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
|
432
468
|
* @param meta Optional object containing metadata.
|
|
433
469
|
*/
|
|
434
|
-
toJSON(meta?: string | {}):
|
|
470
|
+
toJSON(meta?: string | {}): TextureJSON;
|
|
435
471
|
|
|
436
472
|
/**
|
|
437
473
|
* Frees the GPU-related resources allocated by this instance
|
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AnimationClip,
|
|
3
|
-
Bone,
|
|
4
|
-
Box3,
|
|
5
|
-
BufferGeometry,
|
|
6
|
-
Color,
|
|
7
|
-
EventDispatcher,
|
|
8
|
-
Matrix,
|
|
9
|
-
Matrix4,
|
|
10
|
-
Mesh,
|
|
11
|
-
Object3D,
|
|
12
|
-
Sphere,
|
|
13
|
-
Vector2,
|
|
14
|
-
Vector3,
|
|
15
|
-
Vector4,
|
|
16
|
-
} from "three";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated Use Face3 instead.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
export interface MorphTarget {
|
|
23
|
-
name: string;
|
|
24
|
-
vertices: Vector3[];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface MorphColor {
|
|
28
|
-
name: string;
|
|
29
|
-
colors: Color[];
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface MorphNormals {
|
|
33
|
-
name: string;
|
|
34
|
-
normals: Vector3[];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Base class for geometries
|
|
39
|
-
*/
|
|
40
|
-
export class Geometry extends EventDispatcher {
|
|
41
|
-
constructor();
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Unique number of this geometry instance
|
|
45
|
-
*/
|
|
46
|
-
id: number;
|
|
47
|
-
|
|
48
|
-
uuid: string;
|
|
49
|
-
|
|
50
|
-
readonly isGeometry: true;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Name for this geometry. Default is an empty string.
|
|
54
|
-
* @default ''
|
|
55
|
-
*/
|
|
56
|
-
name: string;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @default 'Geometry'
|
|
60
|
-
*/
|
|
61
|
-
type: string;
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* The array of vertices hold every position of points of the model.
|
|
65
|
-
* To signal an update in this array, Geometry.verticesNeedUpdate needs to be set to true.
|
|
66
|
-
* @default []
|
|
67
|
-
*/
|
|
68
|
-
vertices: Vector3[];
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* Array of vertex colors, matching number and order of vertices.
|
|
72
|
-
* Used in ParticleSystem, Line and Ribbon.
|
|
73
|
-
* Meshes use per-face-use-of-vertex colors embedded directly in faces.
|
|
74
|
-
* To signal an update in this array, Geometry.colorsNeedUpdate needs to be set to true.
|
|
75
|
-
* @default []
|
|
76
|
-
*/
|
|
77
|
-
colors: Color[];
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Array of triangles or/and quads.
|
|
81
|
-
* The array of faces describe how each vertex in the model is connected with each other.
|
|
82
|
-
* To signal an update in this array, Geometry.elementsNeedUpdate needs to be set to true.
|
|
83
|
-
* @default []
|
|
84
|
-
*/
|
|
85
|
-
faces: Face3[];
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Array of face UV layers.
|
|
89
|
-
* Each UV layer is an array of UV matching order and number of vertices in faces.
|
|
90
|
-
* To signal an update in this array, Geometry.uvsNeedUpdate needs to be set to true.
|
|
91
|
-
* @default [[]]
|
|
92
|
-
*/
|
|
93
|
-
faceVertexUvs: Vector2[][][];
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Array of morph targets. Each morph target is a Javascript object:
|
|
97
|
-
*
|
|
98
|
-
* { name: "targetName", vertices: [ new THREE.Vector3(), ... ] }
|
|
99
|
-
*
|
|
100
|
-
* Morph vertices match number and order of primary vertices.
|
|
101
|
-
* @default []
|
|
102
|
-
*/
|
|
103
|
-
morphTargets: MorphTarget[];
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Array of morph normals. Morph normals have similar structure as morph targets, each normal set is a Javascript object:
|
|
107
|
-
*
|
|
108
|
-
* morphNormal = { name: "NormalName", normals: [ new THREE.Vector3(), ... ] }
|
|
109
|
-
* @default []
|
|
110
|
-
*/
|
|
111
|
-
morphNormals: MorphNormals[];
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Array of skinning weights, matching number and order of vertices.
|
|
115
|
-
* @default []
|
|
116
|
-
*/
|
|
117
|
-
skinWeights: Vector4[];
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Array of skinning indices, matching number and order of vertices.
|
|
121
|
-
* @default []
|
|
122
|
-
*/
|
|
123
|
-
skinIndices: Vector4[];
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* @default []
|
|
127
|
-
*/
|
|
128
|
-
lineDistances: number[];
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Bounding box.
|
|
132
|
-
* @default null
|
|
133
|
-
*/
|
|
134
|
-
boundingBox: Box3 | null;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Bounding sphere.
|
|
138
|
-
* @default null
|
|
139
|
-
*/
|
|
140
|
-
boundingSphere: Sphere | null;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Set to true if the vertices array has been updated.
|
|
144
|
-
* @default false
|
|
145
|
-
*/
|
|
146
|
-
verticesNeedUpdate: boolean;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Set to true if the faces array has been updated.
|
|
150
|
-
* @default false
|
|
151
|
-
*/
|
|
152
|
-
elementsNeedUpdate: boolean;
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* Set to true if the uvs array has been updated.
|
|
156
|
-
* @default false
|
|
157
|
-
*/
|
|
158
|
-
uvsNeedUpdate: boolean;
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Set to true if the normals array has been updated.
|
|
162
|
-
* @default false
|
|
163
|
-
*/
|
|
164
|
-
normalsNeedUpdate: boolean;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Set to true if the colors array has been updated.
|
|
168
|
-
* @default false
|
|
169
|
-
*/
|
|
170
|
-
colorsNeedUpdate: boolean;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Set to true if the linedistances array has been updated.
|
|
174
|
-
* @default false
|
|
175
|
-
*/
|
|
176
|
-
lineDistancesNeedUpdate: boolean;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* @default false
|
|
180
|
-
*/
|
|
181
|
-
groupsNeedUpdate: boolean;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Bakes matrix transform directly into vertex coordinates.
|
|
185
|
-
*/
|
|
186
|
-
applyMatrix4(matrix: Matrix4): Geometry;
|
|
187
|
-
|
|
188
|
-
rotateX(angle: number): Geometry;
|
|
189
|
-
rotateY(angle: number): Geometry;
|
|
190
|
-
rotateZ(angle: number): Geometry;
|
|
191
|
-
|
|
192
|
-
translate(x: number, y: number, z: number): Geometry;
|
|
193
|
-
scale(x: number, y: number, z: number): Geometry;
|
|
194
|
-
lookAt(vector: Vector3): void;
|
|
195
|
-
|
|
196
|
-
fromBufferGeometry(geometry: BufferGeometry): Geometry;
|
|
197
|
-
|
|
198
|
-
center(): Geometry;
|
|
199
|
-
|
|
200
|
-
normalize(): Geometry;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* Computes face normals.
|
|
204
|
-
*/
|
|
205
|
-
computeFaceNormals(): void;
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* Computes vertex normals by averaging face normals.
|
|
209
|
-
* Face normals must be existing / computed beforehand.
|
|
210
|
-
*/
|
|
211
|
-
computeVertexNormals(areaWeighted?: boolean): void;
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Compute vertex normals, but duplicating face normals.
|
|
215
|
-
*/
|
|
216
|
-
computeFlatVertexNormals(): void;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Computes morph normals.
|
|
220
|
-
*/
|
|
221
|
-
computeMorphNormals(): void;
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Computes bounding box of the geometry, updating {@link Geometry.boundingBox} attribute.
|
|
225
|
-
*/
|
|
226
|
-
computeBoundingBox(): void;
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Computes bounding sphere of the geometry, updating Geometry.boundingSphere attribute.
|
|
230
|
-
* Neither bounding boxes or bounding spheres are computed by default. They need to be explicitly computed, otherwise they are null.
|
|
231
|
-
*/
|
|
232
|
-
computeBoundingSphere(): void;
|
|
233
|
-
|
|
234
|
-
merge(geometry: Geometry, matrix?: Matrix, materialIndexOffset?: number): void;
|
|
235
|
-
|
|
236
|
-
mergeMesh(mesh: Mesh): void;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Checks for duplicate vertices using hashmap for specified number of decimal points, e.g. 4 for epsilon of 0.0001
|
|
240
|
-
* Duplicated vertices are removed and faces' vertices are updated.
|
|
241
|
-
*/
|
|
242
|
-
mergeVertices(precisionPoints?: number): number;
|
|
243
|
-
|
|
244
|
-
setFromPoints(points: Vector2[] | Vector3[]): this;
|
|
245
|
-
|
|
246
|
-
sortFacesByMaterialIndex(): void;
|
|
247
|
-
|
|
248
|
-
toBufferGeometry(): BufferGeometry;
|
|
249
|
-
|
|
250
|
-
static createBufferGeometryFromObject(object: Object3D): BufferGeometry;
|
|
251
|
-
|
|
252
|
-
toJSON(): any;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Creates a new clone of the Geometry.
|
|
256
|
-
*/
|
|
257
|
-
clone(): Geometry;
|
|
258
|
-
|
|
259
|
-
copy(source: Geometry): this;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Removes The object from memory.
|
|
263
|
-
* Don't forget to call this method when you remove an geometry because it can cuase meomory leaks.
|
|
264
|
-
*/
|
|
265
|
-
dispose(): void;
|
|
266
|
-
|
|
267
|
-
// These properties do not exist in a normal Geometry class, but if you use the instance that was passed by JSONLoader, it will be added.
|
|
268
|
-
bones: Bone[];
|
|
269
|
-
animation: AnimationClip;
|
|
270
|
-
animations: AnimationClip[];
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Triangle face.
|
|
275
|
-
*/
|
|
276
|
-
export class Face3 {
|
|
277
|
-
/**
|
|
278
|
-
* @param a Vertex A index.
|
|
279
|
-
* @param b Vertex B index.
|
|
280
|
-
* @param c Vertex C index.
|
|
281
|
-
* @param normal Face normal or array of vertex normals.
|
|
282
|
-
* @param color Face color or array of vertex colors.
|
|
283
|
-
* @param materialIndex Material index.
|
|
284
|
-
*/
|
|
285
|
-
constructor(
|
|
286
|
-
a: number,
|
|
287
|
-
b: number,
|
|
288
|
-
c: number,
|
|
289
|
-
normal?: Vector3 | Vector3[],
|
|
290
|
-
color?: Color | Color[],
|
|
291
|
-
materialIndex?: number,
|
|
292
|
-
);
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Vertex A index.
|
|
296
|
-
*/
|
|
297
|
-
a: number;
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Vertex B index.
|
|
301
|
-
*/
|
|
302
|
-
b: number;
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* Vertex C index.
|
|
306
|
-
*/
|
|
307
|
-
c: number;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* Face normal.
|
|
311
|
-
* @default new THREE.Vector3()
|
|
312
|
-
*/
|
|
313
|
-
normal: Vector3;
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Array of 3 vertex normals.
|
|
317
|
-
* @default []
|
|
318
|
-
*/
|
|
319
|
-
vertexNormals: Vector3[];
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Face color.
|
|
323
|
-
* @default new THREE.Color()
|
|
324
|
-
*/
|
|
325
|
-
color: Color;
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Array of 3 vertex colors.
|
|
329
|
-
* @default []
|
|
330
|
-
*/
|
|
331
|
-
vertexColors: Color[];
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Material index (points to {@link Mesh.material}).
|
|
335
|
-
* @default 0
|
|
336
|
-
*/
|
|
337
|
-
materialIndex: number;
|
|
338
|
-
|
|
339
|
-
clone(): this;
|
|
340
|
-
copy(source: Face3): this;
|
|
341
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { Camera, RenderTarget, Scene, Texture } from "three";
|
|
2
|
-
import TextureNode from "../accessors/TextureNode.js";
|
|
3
|
-
import Node from "../core/Node.js";
|
|
4
|
-
import TempNode from "../core/TempNode.js";
|
|
5
|
-
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
6
|
-
|
|
7
|
-
declare class PassTextureNode extends TextureNode {
|
|
8
|
-
passNode: PassNode;
|
|
9
|
-
|
|
10
|
-
constructor(passNode: PassNode, texture: Texture);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default class PassNode extends TempNode {
|
|
14
|
-
scope: PassNodeScope;
|
|
15
|
-
scene: Scene;
|
|
16
|
-
camera: Camera;
|
|
17
|
-
|
|
18
|
-
renderTarget: RenderTarget;
|
|
19
|
-
|
|
20
|
-
readonly isPassNode: true;
|
|
21
|
-
|
|
22
|
-
constructor(scope: PassNodeScope, scene: Scene, camera: Camera);
|
|
23
|
-
|
|
24
|
-
getTextureNode(): ShaderNodeObject<PassTextureNode>;
|
|
25
|
-
|
|
26
|
-
getTextureDepthNode(): ShaderNodeObject<PassTextureNode>;
|
|
27
|
-
|
|
28
|
-
getViewZNode(): ShaderNodeObject<Node>;
|
|
29
|
-
|
|
30
|
-
getLinearDepthNode(): ShaderNodeObject<Node>;
|
|
31
|
-
|
|
32
|
-
setSize(width: number, height: number): void;
|
|
33
|
-
|
|
34
|
-
setPixelRatio(pixelRatio: number): void;
|
|
35
|
-
|
|
36
|
-
dispose(): void;
|
|
37
|
-
|
|
38
|
-
static COLOR: "color";
|
|
39
|
-
static DEPTH: "depth";
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type PassNodeScope = typeof PassNode.COLOR | typeof PassNode.DEPTH;
|
|
43
|
-
|
|
44
|
-
export const pass: (scene: Scene, camera: Camera) => ShaderNodeObject<PassNode>;
|
|
45
|
-
export const texturePass: (pass: PassNode, texture: Texture) => ShaderNodeObject<PassTextureNode>;
|
|
46
|
-
export const depthPass: (scene: Scene, camera: Camera) => ShaderNodeObject<PassNode>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { RectAreaLight } from "three";
|
|
2
|
-
import Node from "../core/Node.js";
|
|
3
|
-
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
4
|
-
|
|
5
|
-
export default class RectAreaLightNode extends AnalyticLightNode<RectAreaLight> {
|
|
6
|
-
halfHeight: Node;
|
|
7
|
-
halfWidth: Node;
|
|
8
|
-
|
|
9
|
-
constructor(light?: RectAreaLight | null);
|
|
10
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|