@types/three 0.166.0 → 0.167.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- three/README.md +1 -1
- three/build/three.webgpu.d.ts +1 -0
- three/build/three.webgpu.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +1 -1
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
- three/examples/jsm/csm/CSM.d.ts +3 -4
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
- three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
- three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
- three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
- three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +184 -0
- three/src/Three.d.ts +25 -91
- three/src/animation/AnimationClip.d.ts +12 -4
- three/src/animation/AnimationUtils.d.ts +32 -7
- three/src/animation/KeyframeTrack.d.ts +9 -1
- three/src/animation/PropertyBinding.d.ts +12 -12
- three/src/cameras/OrthographicCamera.d.ts +27 -0
- three/src/cameras/PerspectiveCamera.d.ts +31 -0
- three/src/constants.d.ts +7 -1
- three/src/core/BufferAttribute.d.ts +11 -6
- three/src/core/BufferGeometry.d.ts +26 -3
- three/src/core/InterleavedBufferAttribute.d.ts +3 -3
- three/src/core/Object3D.d.ts +51 -6
- three/src/extras/DataUtils.d.ts +9 -2
- three/src/extras/ImageUtils.d.ts +6 -7
- three/src/extras/core/Curve.d.ts +8 -2
- three/src/extras/core/CurvePath.d.ts +9 -1
- three/src/extras/core/Path.d.ts +9 -2
- three/src/extras/core/Shape.d.ts +9 -1
- three/src/lights/Light.d.ts +19 -2
- three/src/lights/LightShadow.d.ts +13 -2
- three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
- three/src/loaders/Cache.d.ts +13 -8
- three/src/materials/Material.d.ts +164 -2
- three/src/materials/ShaderMaterial.d.ts +49 -2
- three/src/math/ColorManagement.d.ts +3 -0
- three/src/math/Euler.d.ts +4 -2
- three/src/math/Matrix2.d.ts +53 -0
- three/src/math/Matrix3.d.ts +67 -115
- three/src/math/Matrix4.d.ts +48 -100
- three/src/math/Quaternion.d.ts +5 -3
- three/src/math/Vector2.d.ts +1 -1
- three/{examples/jsm → src}/nodes/Nodes.d.ts +28 -5
- three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
- three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
- three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
- three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
- three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
- three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
- three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +1 -3
- three/src/nodes/core/MRTNode.d.ts +19 -0
- three/{examples/jsm → src}/nodes/core/Node.d.ts +3 -10
- three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +7 -1
- three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +2 -1
- three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
- three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
- three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
- three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
- three/src/nodes/display/BloomNode.d.ts +35 -0
- three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
- three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/src/nodes/display/DenoiseNode.d.ts +38 -0
- three/{examples/jsm → src}/nodes/display/DepthOfFieldNode.d.ts +4 -4
- three/{examples/jsm → src}/nodes/display/DotScreenNode.d.ts +3 -8
- three/src/nodes/display/FXAANode.d.ts +19 -0
- three/src/nodes/display/FilmNode.d.ts +25 -0
- three/src/nodes/display/GTAONode.d.ts +46 -0
- three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
- three/src/nodes/display/Lut3DNode.d.ts +30 -0
- three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +62 -0
- three/src/nodes/display/PixelationPassNode.d.ts +67 -0
- three/src/nodes/display/RenderOutputNode.d.ts +28 -0
- three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
- three/src/nodes/display/TransitionNode.d.ts +41 -0
- three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
- three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
- three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
- three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
- three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
- three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
- three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
- three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
- three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
- three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +4 -2
- three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +6 -1
- three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +22 -16
- three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/math/MathNode.d.ts +4 -0
- three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
- three/src/nodes/utils/PackingNode.d.ts +24 -0
- three/src/nodes/utils/RTTNode.d.ts +45 -0
- three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
- three/src/objects/InstancedMesh.d.ts +15 -2
- three/src/objects/LOD.d.ts +17 -1
- three/src/objects/Mesh.d.ts +11 -1
- three/src/objects/Points.d.ts +0 -3
- three/src/objects/Skeleton.d.ts +10 -3
- three/src/objects/SkinnedMesh.d.ts +15 -3
- three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
- three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Geometries.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Info.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -3
- three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
- three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
- three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +16 -13
- three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
- three/{examples/jsm → src}/renderers/common/Renderer.d.ts +30 -29
- three/{examples/jsm → src}/renderers/common/SampledTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Uniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -2
- three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +21 -8
- three/src/renderers/shaders/ShaderLib.d.ts +3 -1
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
- three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +6 -4
- three/src/scenes/Fog.d.ts +7 -24
- three/src/scenes/FogExp2.d.ts +9 -3
- three/src/scenes/Scene.d.ts +21 -5
- three/src/textures/Source.d.ts +15 -1
- three/src/textures/Texture.d.ts +37 -1
- three/examples/jsm/deprecated/Geometry.d.ts +0 -341
- three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
- three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
- three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
- three/examples/jsm/nodes/lighting/RectAreaLightNode.d.ts +0 -10
- /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VarNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/RGBShiftNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/SobelOperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/LTC.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_noise.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BindGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Bindings.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Sampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampledTexture.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/nodes/NodeSampler.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/nodes/WGSLNodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/utils/WebGPUConstants.d.ts +0 -0
three/src/objects/Skeleton.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { Matrix4 } from "../math/Matrix4.js";
|
|
1
|
+
import { Matrix4, Matrix4Tuple } from "../math/Matrix4.js";
|
|
2
2
|
import { DataTexture } from "../textures/DataTexture.js";
|
|
3
3
|
import { Bone } from "./Bone.js";
|
|
4
4
|
|
|
5
|
+
export interface SkeletonJSON {
|
|
6
|
+
metadata: { version: number; type: string; generator: string };
|
|
7
|
+
bones: string[];
|
|
8
|
+
boneInverses: Matrix4Tuple[];
|
|
9
|
+
uuid: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
5
12
|
/**
|
|
6
13
|
* Use an array of {@link Bone | bones} to create a {@link Skeleton} that can be used by a {@link THREE.SkinnedMesh | SkinnedMesh}.
|
|
7
14
|
* @example
|
|
@@ -107,7 +114,7 @@ export class Skeleton {
|
|
|
107
114
|
*/
|
|
108
115
|
dispose(): void;
|
|
109
116
|
|
|
110
|
-
toJSON():
|
|
117
|
+
toJSON(): SkeletonJSON;
|
|
111
118
|
|
|
112
|
-
fromJSON(json:
|
|
119
|
+
fromJSON(json: SkeletonJSON, bones: Record<string, Bone>): void;
|
|
113
120
|
}
|
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { BindMode } from "../constants.js";
|
|
2
2
|
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
3
|
-
import { Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { JSONMeta, Object3DEventMap } from "../core/Object3D.js";
|
|
4
4
|
import { Material } from "../materials/Material.js";
|
|
5
5
|
import { Box3 } from "../math/Box3.js";
|
|
6
|
-
import { Matrix4 } from "../math/Matrix4.js";
|
|
6
|
+
import { Matrix4, Matrix4Tuple } from "../math/Matrix4.js";
|
|
7
7
|
import { Sphere } from "../math/Sphere.js";
|
|
8
8
|
import { Vector3 } from "../math/Vector3.js";
|
|
9
|
-
import { Mesh } from "./Mesh.js";
|
|
9
|
+
import { Mesh, MeshJSON, MeshJSONObject } from "./Mesh.js";
|
|
10
10
|
import { Skeleton } from "./Skeleton.js";
|
|
11
11
|
|
|
12
|
+
export interface SkinnedMeshJSONObject extends MeshJSONObject {
|
|
13
|
+
bindMode: BindMode;
|
|
14
|
+
bindMatrix: Matrix4Tuple;
|
|
15
|
+
skeleton?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SkinnedMeshJSON extends MeshJSON {
|
|
19
|
+
object: SkinnedMeshJSONObject;
|
|
20
|
+
}
|
|
21
|
+
|
|
12
22
|
/**
|
|
13
23
|
* A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry.
|
|
14
24
|
* @example
|
|
@@ -145,4 +155,6 @@ export class SkinnedMesh<
|
|
|
145
155
|
* @param vector
|
|
146
156
|
*/
|
|
147
157
|
applyBoneTransform(index: number, vector: Vector3): Vector3;
|
|
158
|
+
|
|
159
|
+
toJSON(meta?: JSONMeta): SkinnedMeshJSON;
|
|
148
160
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { BufferAttribute
|
|
1
|
+
import { BufferAttribute } from "../../core/BufferAttribute.js";
|
|
2
|
+
import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
|
|
3
|
+
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
|
|
2
4
|
import Backend from "./Backend.js";
|
|
3
5
|
import { AttributeType } from "./Constants.js";
|
|
4
6
|
import DataMap from "./DataMap.js";
|
|
@@ -15,6 +17,6 @@ declare class Attributes extends DataMap<{
|
|
|
15
17
|
constructor(backend: Backend);
|
|
16
18
|
delete(attribute: BufferAttribute | InterleavedBufferAttribute): Data;
|
|
17
19
|
update(attribute: BufferAttribute | InterleavedBufferAttribute, type: AttributeType): void;
|
|
18
|
-
_getBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute):
|
|
20
|
+
_getBufferAttribute(attribute: BufferAttribute | InterleavedBufferAttribute): BufferAttribute | InterleavedBuffer;
|
|
19
21
|
}
|
|
20
22
|
export default Attributes;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { Camera
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { Material } from "../../materials/Material.js";
|
|
3
|
+
import { Matrix3 } from "../../math/Matrix3.js";
|
|
4
|
+
import { Matrix4 } from "../../math/Matrix4.js";
|
|
5
|
+
import { Plane } from "../../math/Plane.js";
|
|
6
|
+
import { Vector4 } from "../../math/Vector4.js";
|
|
2
7
|
import Renderer from "./Renderer.js";
|
|
3
8
|
declare class ClippingContext {
|
|
4
9
|
version: number;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { RenderTargetOptions
|
|
1
|
+
import { RenderTargetOptions } from "../../core/RenderTarget.js";
|
|
2
|
+
import { WebGLCubeRenderTarget } from "../../renderers/WebGLCubeRenderTarget.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import { WebGLRenderer } from "../WebGLRenderer.js";
|
|
2
5
|
declare class CubeRenderTarget extends WebGLCubeRenderTarget {
|
|
3
6
|
readonly isCubeRenderTarget: true;
|
|
4
7
|
constructor(size?: number, options?: RenderTargetOptions);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { BufferAttribute
|
|
1
|
+
import { BufferAttribute } from "../../core/BufferAttribute.js";
|
|
2
|
+
import { BufferGeometry } from "../../core/BufferGeometry.js";
|
|
3
|
+
import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
|
|
4
|
+
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
|
|
2
5
|
import Attributes from "./Attributes.js";
|
|
3
6
|
import { AttributeType } from "./Constants.js";
|
|
4
7
|
import DataMap from "./DataMap.js";
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { Node } from "../../nodes/Nodes.js";
|
|
2
2
|
import Renderer from "./Renderer.js";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
declare class PostProcessing {
|
|
5
5
|
renderer: Renderer;
|
|
6
6
|
outputNode: Node;
|
|
7
7
|
|
|
8
|
+
outputColorTransform: boolean;
|
|
9
|
+
|
|
10
|
+
needsUpdate: boolean;
|
|
11
|
+
|
|
8
12
|
constructor(renderer: Renderer, outputNode?: Node);
|
|
9
13
|
|
|
10
14
|
render(): void;
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
update(): void;
|
|
13
17
|
|
|
14
|
-
|
|
18
|
+
renderAsync(): Promise<void>;
|
|
15
19
|
}
|
|
20
|
+
|
|
21
|
+
export default PostProcessing;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { OrthographicCamera } from "../../cameras/OrthographicCamera.js";
|
|
2
|
+
import { Material } from "../../materials/Material.js";
|
|
3
|
+
import { Mesh } from "../../objects/Mesh.js";
|
|
4
|
+
import Renderer from "./Renderer.js";
|
|
3
5
|
|
|
4
6
|
export default class QuadMesh extends Mesh {
|
|
5
7
|
camera: OrthographicCamera;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
2
|
+
import { Vector4 } from "../../math/Vector4.js";
|
|
3
|
+
import { DepthTexture } from "../../textures/DepthTexture.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
5
|
import ClippingContext from "./ClippingContext.js";
|
|
3
6
|
declare class RenderContext {
|
|
4
7
|
id: number;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Camera
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
3
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
2
4
|
import ChainMap from "./ChainMap.js";
|
|
3
5
|
import RenderContext from "./RenderContext.js";
|
|
4
6
|
declare class RenderContexts {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { BufferGeometry, GeometryGroup } from "../../core/BufferGeometry.js";
|
|
3
|
+
import { Object3D } from "../../core/Object3D.js";
|
|
4
|
+
import { Light } from "../../lights/Light.js";
|
|
5
|
+
import { Material } from "../../materials/Material.js";
|
|
2
6
|
import { LightsNode } from "../../nodes/Nodes.js";
|
|
3
7
|
export interface Bundle {
|
|
4
8
|
object: Object3D;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "three";
|
|
11
|
-
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { BufferAttribute } from "../../core/BufferAttribute.js";
|
|
3
|
+
import { BufferGeometry } from "../../core/BufferGeometry.js";
|
|
4
|
+
import { InterleavedBuffer } from "../../core/InterleavedBuffer.js";
|
|
5
|
+
import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js";
|
|
6
|
+
import { Object3D } from "../../core/Object3D.js";
|
|
7
|
+
import { Material } from "../../materials/Material.js";
|
|
8
|
+
import { LightsNode } from "../../nodes/Nodes.js";
|
|
9
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
12
10
|
import BindGroup from "./BindGroup.js";
|
|
13
11
|
import ClippingContext from "./ClippingContext.js";
|
|
14
12
|
import Geometries from "./Geometries.js";
|
|
@@ -62,12 +60,17 @@ export default class RenderObject {
|
|
|
62
60
|
getNodeBuilderState(): NodeBuilderState;
|
|
63
61
|
getBindings(): BindGroup[];
|
|
64
62
|
getIndex(): BufferAttribute | null;
|
|
65
|
-
getChainArray(): readonly [
|
|
63
|
+
getChainArray(): readonly [
|
|
64
|
+
Object3D<import("../../core/Object3D.js").Object3DEventMap>,
|
|
65
|
+
Material,
|
|
66
|
+
RenderContext,
|
|
67
|
+
LightsNode,
|
|
68
|
+
];
|
|
66
69
|
getAttributes(): (InterleavedBufferAttribute | BufferAttribute)[];
|
|
67
70
|
getVertexBuffers(): (InterleavedBuffer | BufferAttribute)[] | null;
|
|
68
71
|
getMaterialCacheKey(): string;
|
|
69
72
|
get needsUpdate(): boolean;
|
|
70
|
-
|
|
73
|
+
getDynamicCacheKey(): string;
|
|
71
74
|
getCacheKey(): string;
|
|
72
75
|
dispose(): void;
|
|
73
76
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Camera
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { Object3D } from "../../core/Object3D.js";
|
|
3
|
+
import { Material } from "../../materials/Material.js";
|
|
2
4
|
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
5
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
3
6
|
import Bindings from "./Bindings.js";
|
|
4
7
|
import ChainMap from "./ChainMap.js";
|
|
5
8
|
import Geometries from "./Geometries.js";
|
|
@@ -39,7 +42,7 @@ declare class RenderObjects {
|
|
|
39
42
|
getChainMap(
|
|
40
43
|
passId?: string,
|
|
41
44
|
): ChainMap<
|
|
42
|
-
readonly [Object3D<import("
|
|
45
|
+
readonly [Object3D<import("../../core/Object3D.js").Object3DEventMap>, Material, RenderContext, LightsNode],
|
|
43
46
|
RenderObject
|
|
44
47
|
>;
|
|
45
48
|
dispose(): void;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Texture,
|
|
18
|
-
ToneMapping,
|
|
19
|
-
Vector2,
|
|
20
|
-
Vector4,
|
|
21
|
-
} from "three";
|
|
22
|
-
import Node from "../../nodes/core/Node.js";
|
|
23
|
-
import ComputeNode from "../../nodes/gpgpu/ComputeNode.js";
|
|
24
|
-
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
1
|
+
import { Camera } from "../../cameras/Camera.js";
|
|
2
|
+
import { ColorSpace, ShadowMapType, ToneMapping } from "../../constants.js";
|
|
3
|
+
import { BufferAttribute } from "../../core/BufferAttribute.js";
|
|
4
|
+
import { BufferGeometry, GeometryGroup } from "../../core/BufferGeometry.js";
|
|
5
|
+
import { Object3D } from "../../core/Object3D.js";
|
|
6
|
+
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
7
|
+
import { Material } from "../../materials/Material.js";
|
|
8
|
+
import { Box2 } from "../../math/Box2.js";
|
|
9
|
+
import { Color } from "../../math/Color.js";
|
|
10
|
+
import { Plane } from "../../math/Plane.js";
|
|
11
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
12
|
+
import { Vector4 } from "../../math/Vector4.js";
|
|
13
|
+
import { ComputeNode, LightsNode, MRTNode } from "../../nodes/Nodes.js";
|
|
14
|
+
import { Scene } from "../../scenes/Scene.js";
|
|
15
|
+
import { FramebufferTexture } from "../../textures/FramebufferTexture.js";
|
|
16
|
+
import { Texture } from "../../textures/Texture.js";
|
|
25
17
|
import Animation from "./Animation.js";
|
|
26
18
|
import Attributes from "./Attributes.js";
|
|
27
19
|
import Backend from "./Backend.js";
|
|
@@ -32,6 +24,7 @@ import Geometries from "./Geometries.js";
|
|
|
32
24
|
import Info from "./Info.js";
|
|
33
25
|
import Nodes from "./nodes/Nodes.js";
|
|
34
26
|
import Pipelines from "./Pipelines.js";
|
|
27
|
+
import QuadMesh from "./QuadMesh.js";
|
|
35
28
|
import RenderBundle from "./RenderBundle.js";
|
|
36
29
|
import RenderBundles from "./RenderBundles.js";
|
|
37
30
|
import RenderContext from "./RenderContext.js";
|
|
@@ -43,11 +36,14 @@ import Textures from "./Textures.js";
|
|
|
43
36
|
export interface RendererParameters {
|
|
44
37
|
logarithmicDepthBuffer?: boolean | undefined;
|
|
45
38
|
alpha?: boolean | undefined;
|
|
39
|
+
antialias?: boolean | undefined;
|
|
40
|
+
samples?: number | undefined;
|
|
46
41
|
}
|
|
47
42
|
declare class Renderer {
|
|
48
43
|
readonly isRenderer: true;
|
|
49
44
|
domElement: HTMLCanvasElement;
|
|
50
45
|
backend: Backend;
|
|
46
|
+
samples: number;
|
|
51
47
|
autoClear: boolean;
|
|
52
48
|
autoClearColor: boolean;
|
|
53
49
|
autoClearDepth: boolean;
|
|
@@ -62,7 +58,6 @@ declare class Renderer {
|
|
|
62
58
|
stencil: boolean;
|
|
63
59
|
clippingPlanes: readonly Plane[];
|
|
64
60
|
info: Info;
|
|
65
|
-
toneMappingNode: Node | null;
|
|
66
61
|
_pixelRatio: number;
|
|
67
62
|
_width: number;
|
|
68
63
|
_height: number;
|
|
@@ -81,6 +76,7 @@ declare class Renderer {
|
|
|
81
76
|
_renderContexts: RenderContexts | null;
|
|
82
77
|
_textures: Textures | null;
|
|
83
78
|
_background: Background | null;
|
|
79
|
+
_quad: QuadMesh;
|
|
84
80
|
_currentRenderContext: RenderContext | null;
|
|
85
81
|
_opaqueSort: ((a: RenderItem, b: RenderItem) => number) | null;
|
|
86
82
|
_transparentSort: ((a: RenderItem, b: RenderItem) => number) | null;
|
|
@@ -91,6 +87,7 @@ declare class Renderer {
|
|
|
91
87
|
_renderTarget: RenderTarget | null;
|
|
92
88
|
_activeCubeFace: number;
|
|
93
89
|
_activeMipmapLevel: number;
|
|
90
|
+
_mrt: MRTNode | null;
|
|
94
91
|
_renderObjectFunction:
|
|
95
92
|
| ((
|
|
96
93
|
object: Object3D,
|
|
@@ -126,6 +123,8 @@ declare class Renderer {
|
|
|
126
123
|
_initialized: boolean;
|
|
127
124
|
_initPromise: Promise<void> | null;
|
|
128
125
|
_compilationPromises: Promise<void>[] | null;
|
|
126
|
+
transparent: boolean;
|
|
127
|
+
opaque: boolean;
|
|
129
128
|
shadowMap: {
|
|
130
129
|
enabled: boolean;
|
|
131
130
|
type: ShadowMapType | null;
|
|
@@ -147,9 +146,11 @@ declare class Renderer {
|
|
|
147
146
|
localClippingEnabled?: boolean | undefined;
|
|
148
147
|
constructor(backend: Backend, parameters?: RendererParameters);
|
|
149
148
|
init(): Promise<void>;
|
|
150
|
-
get coordinateSystem(): import("
|
|
149
|
+
get coordinateSystem(): import("../../constants.js").CoordinateSystem;
|
|
151
150
|
compileAsync(scene: Scene, camera: Camera, targetScene?: Scene | null): Promise<void>;
|
|
152
151
|
renderAsync(scene: Scene, camera: Camera): Promise<void>;
|
|
152
|
+
setMRT(mrt: MRTNode | null): this;
|
|
153
|
+
getMRT(): MRTNode | null;
|
|
153
154
|
_renderBundle(bundle: Bundle, sceneRef: Scene, lightsNode: LightsNode): void;
|
|
154
155
|
render(scene: Scene, camera: Camera): Promise<void> | undefined;
|
|
155
156
|
_getFrameBufferTarget(): RenderTarget<Texture> | null;
|
|
@@ -212,10 +213,10 @@ declare class Renderer {
|
|
|
212
213
|
): void;
|
|
213
214
|
getRenderObjectFunction():
|
|
214
215
|
| ((
|
|
215
|
-
object: Object3D
|
|
216
|
+
object: Object3D,
|
|
216
217
|
scene: Scene,
|
|
217
218
|
camera: Camera,
|
|
218
|
-
geometry: BufferGeometry
|
|
219
|
+
geometry: BufferGeometry,
|
|
219
220
|
material: Material,
|
|
220
221
|
group: GeometryGroup,
|
|
221
222
|
lightsNode: LightsNode,
|
|
@@ -239,7 +240,7 @@ declare class Renderer {
|
|
|
239
240
|
width: number,
|
|
240
241
|
height: number,
|
|
241
242
|
index?: number,
|
|
242
|
-
): Promise<import("
|
|
243
|
+
): Promise<import("../../core/BufferAttribute.js").TypedArray>;
|
|
243
244
|
_projectObject(object: Object3D, camera: Camera, groupOrder: number, renderList: RenderList): void;
|
|
244
245
|
_renderBundles(bundles: Bundle[], sceneRef: Scene, lightsNode: LightsNode): void;
|
|
245
246
|
_renderObjects(renderList: RenderItem[], camera: Camera, scene: Scene, lightsNode: LightsNode): void;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypedArray } from "../../core/BufferAttribute.js";
|
|
2
|
+
import { InstancedBufferAttribute } from "../../core/InstancedBufferAttribute.js";
|
|
2
3
|
|
|
3
4
|
export default class StorageInstancedBufferAttribute extends InstancedBufferAttribute {
|
|
4
5
|
readonly isStorageInstancedBufferAttribute: true;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RenderTarget } from "../../core/RenderTarget.js";
|
|
2
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
3
|
+
import { DepthTexture } from "../../textures/DepthTexture.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
5
|
import Backend from "./Backend.js";
|
|
3
6
|
import DataMap from "./DataMap.js";
|
|
4
7
|
import Info from "./Info.js";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { Color
|
|
1
|
+
import { Color } from "../../math/Color.js";
|
|
2
|
+
import { Matrix3 } from "../../math/Matrix3.js";
|
|
3
|
+
import { Matrix4 } from "../../math/Matrix4.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
6
|
+
import { Vector4 } from "../../math/Vector4.js";
|
|
2
7
|
declare class Uniform<TValue> {
|
|
3
8
|
name: string;
|
|
4
9
|
value: TValue;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
import { Color
|
|
1
|
+
import { Color } from "../../../math/Color.js";
|
|
2
|
+
import { Matrix3 } from "../../../math/Matrix3.js";
|
|
3
|
+
import { Matrix4 } from "../../../math/Matrix4.js";
|
|
4
|
+
import { Vector2 } from "../../../math/Vector2.js";
|
|
5
|
+
import { Vector3 } from "../../../math/Vector3.js";
|
|
6
|
+
import { Vector4 } from "../../../math/Vector4.js";
|
|
2
7
|
import NodeUniform from "../../../nodes/core/NodeUniform.js";
|
|
3
8
|
import {
|
|
4
9
|
ColorUniform,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import UniformGroupNode from "../../../nodes/
|
|
2
|
-
import UniformNode from "../../../nodes/core/UniformNode.js";
|
|
1
|
+
import { UniformGroupNode, UniformNode } from "../../../nodes/Nodes.js";
|
|
3
2
|
import UniformsGroup from "../UniformsGroup.js";
|
|
4
3
|
declare class NodeUniformsGroup extends UniformsGroup {
|
|
5
4
|
id: number;
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { Camera
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Camera } from "../../../cameras/Camera.js";
|
|
2
|
+
import { Object3D } from "../../../core/Object3D.js";
|
|
3
|
+
import { Material } from "../../../materials/Material.js";
|
|
4
|
+
import { Color } from "../../../math/Color.js";
|
|
5
|
+
import {
|
|
6
|
+
ComputeNode,
|
|
7
|
+
LightsNode,
|
|
8
|
+
Node,
|
|
9
|
+
NodeBuilder,
|
|
10
|
+
NodeFrame,
|
|
11
|
+
ShaderNodeObject,
|
|
12
|
+
UniformGroupNode,
|
|
13
|
+
} from "../../../nodes/Nodes.js";
|
|
14
|
+
import { Fog } from "../../../scenes/Fog.js";
|
|
15
|
+
import { FogExp2 } from "../../../scenes/FogExp2.js";
|
|
16
|
+
import { Scene } from "../../../scenes/Scene.js";
|
|
17
|
+
import { CubeTexture } from "../../../textures/CubeTexture.js";
|
|
18
|
+
import { Texture } from "../../../textures/Texture.js";
|
|
8
19
|
import Backend from "../Backend.js";
|
|
9
20
|
import ChainMap from "../ChainMap.js";
|
|
10
21
|
import DataMap from "../DataMap.js";
|
|
@@ -25,7 +36,7 @@ interface ComputeNodeData {
|
|
|
25
36
|
interface SceneData {
|
|
26
37
|
background?: Color | Texture | CubeTexture | undefined;
|
|
27
38
|
backgroundNode?: Node | undefined;
|
|
28
|
-
fog?:
|
|
39
|
+
fog?: Fog | FogExp2 | undefined;
|
|
29
40
|
fogNode?: Node | undefined;
|
|
30
41
|
environment?: Texture | undefined;
|
|
31
42
|
environmentNode?: Node | undefined;
|
|
@@ -85,6 +96,8 @@ declare class Nodes extends DataMap<{
|
|
|
85
96
|
material?: Material | null,
|
|
86
97
|
): NodeFrame;
|
|
87
98
|
getNodeFrameForRender(renderObject: RenderObject): NodeFrame;
|
|
99
|
+
getOutputCacheKey(): string;
|
|
100
|
+
hasOutputChange(outputTarget: Texture): boolean;
|
|
88
101
|
getOutputNode(outputTexture: Texture): ShaderNodeObject<Node>;
|
|
89
102
|
updateBefore(renderObject: RenderObject): void;
|
|
90
103
|
updateAfter(renderObject: RenderObject): void;
|
|
@@ -6,7 +6,7 @@ export interface ShaderLibShader {
|
|
|
6
6
|
fragmentShader: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
declare const ShaderLib: {
|
|
10
10
|
[name: string]: ShaderLibShader;
|
|
11
11
|
basic: ShaderLibShader;
|
|
12
12
|
lambert: ShaderLibShader;
|
|
@@ -25,3 +25,5 @@ export let ShaderLib: {
|
|
|
25
25
|
shadow: ShaderLibShader;
|
|
26
26
|
physical: ShaderLibShader;
|
|
27
27
|
};
|
|
28
|
+
|
|
29
|
+
export { ShaderLib };
|
|
@@ -6,6 +6,9 @@ export function mergeUniforms(uniforms: Array<{ [uniform: string]: IUniform }>):
|
|
|
6
6
|
|
|
7
7
|
export function cloneUniformsGroups(src: UniformsGroup[]): UniformsGroup[];
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
declare const UniformsUtils: {
|
|
10
|
+
clone: typeof cloneUniforms;
|
|
11
|
+
merge: typeof mergeUniforms;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { UniformsUtils };
|