@types/three 0.161.1 → 0.162.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 +2 -2
- three/build/three.d.cts +0 -1
- three/build/three.module.d.ts +0 -1
- three/build/three.module.min.d.ts +0 -1
- three/examples/jsm/animation/AnimationClipCreator.d.ts +1 -1
- three/examples/jsm/animation/CCDIKSolver.d.ts +1 -1
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +1 -11
- three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
- three/examples/jsm/cameras/CinematicCamera.d.ts +1 -8
- three/examples/jsm/controls/ArcballControls.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +80 -10
- three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
- three/examples/jsm/controls/FlyControls.d.ts +1 -1
- three/examples/jsm/controls/MapControls.d.ts +1 -1
- three/examples/jsm/controls/OrbitControls.d.ts +1 -1
- three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
- three/examples/jsm/controls/TrackballControls.d.ts +1 -1
- three/examples/jsm/controls/TransformControls.d.ts +6 -1
- three/examples/jsm/csm/CSM.d.ts +1 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/csm/CSMHelper.d.ts +1 -1
- three/examples/jsm/curves/CurveExtras.d.ts +1 -1
- three/examples/jsm/curves/NURBSCurve.d.ts +1 -1
- three/examples/jsm/curves/NURBSSurface.d.ts +1 -1
- three/examples/jsm/curves/NURBSUtils.d.ts +1 -1
- three/examples/jsm/curves/NURBSVolume.d.ts +1 -1
- three/examples/jsm/deprecated/Geometry.d.ts +1 -1
- three/examples/jsm/effects/AnaglyphEffect.d.ts +1 -1
- three/examples/jsm/effects/AsciiEffect.d.ts +1 -1
- three/examples/jsm/effects/OutlineEffect.d.ts +1 -9
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +1 -1
- three/examples/jsm/effects/PeppersGhostEffect.d.ts +1 -1
- three/examples/jsm/effects/StereoEffect.d.ts +1 -1
- three/examples/jsm/environments/DebugEnvironment.d.ts +1 -1
- three/examples/jsm/environments/RoomEnvironment.d.ts +1 -1
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +1 -1
- three/examples/jsm/exporters/KTX2Exporter.d.ts +1 -1
- three/examples/jsm/exporters/MMDExporter.d.ts +1 -1
- three/examples/jsm/exporters/OBJExporter.d.ts +1 -1
- three/examples/jsm/exporters/PLYExporter.d.ts +1 -1
- three/examples/jsm/exporters/STLExporter.d.ts +1 -1
- three/examples/jsm/exporters/USDZExporter.d.ts +1 -1
- three/examples/jsm/geometries/BoxLineGeometry.d.ts +1 -1
- three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
- three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
- three/examples/jsm/geometries/ParametricGeometries.d.ts +1 -1
- three/examples/jsm/geometries/ParametricGeometry.d.ts +1 -1
- three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +1 -1
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +1 -1
- three/examples/jsm/geometries/TeapotGeometry.d.ts +1 -1
- three/examples/jsm/geometries/TextGeometry.d.ts +1 -1
- three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
- three/examples/jsm/helpers/OctreeHelper.d.ts +1 -1
- three/examples/jsm/helpers/PositionalAudioHelper.d.ts +1 -1
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +1 -1
- three/examples/jsm/helpers/TextureHelper.d.ts +1 -1
- three/examples/jsm/helpers/VertexNormalsHelper.d.ts +1 -1
- three/examples/jsm/helpers/VertexTangentsHelper.d.ts +1 -1
- three/examples/jsm/helpers/ViewHelper.d.ts +1 -1
- three/examples/jsm/interactive/InteractiveGroup.d.ts +4 -2
- three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
- three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
- three/examples/jsm/libs/tween.module.d.ts +2 -219
- three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
- three/examples/jsm/lines/LineGeometry.d.ts +1 -1
- three/examples/jsm/lines/LineMaterial.d.ts +1 -1
- three/examples/jsm/lines/LineSegments2.d.ts +1 -1
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -8
- three/examples/jsm/lines/Wireframe.d.ts +1 -1
- three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
- three/examples/jsm/loaders/3DMLoader.d.ts +1 -1
- three/examples/jsm/loaders/3MFLoader.d.ts +1 -1
- three/examples/jsm/loaders/AMFLoader.d.ts +1 -1
- three/examples/jsm/loaders/BVHLoader.d.ts +1 -1
- three/examples/jsm/loaders/ColladaLoader.d.ts +1 -1
- three/examples/jsm/loaders/DDSLoader.d.ts +1 -1
- three/examples/jsm/loaders/DRACOLoader.d.ts +1 -1
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -8
- three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +1 -1
- three/examples/jsm/loaders/KMZLoader.d.ts +1 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
- three/examples/jsm/loaders/KTXLoader.d.ts +1 -1
- three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
- three/examples/jsm/loaders/LUT3dlLoader.d.ts +1 -1
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -9
- three/examples/jsm/loaders/LWOLoader.d.ts +1 -1
- three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
- three/examples/jsm/loaders/LottieLoader.d.ts +1 -1
- three/examples/jsm/loaders/MD2Loader.d.ts +1 -1
- three/examples/jsm/loaders/MDDLoader.d.ts +1 -1
- three/examples/jsm/loaders/MMDLoader.d.ts +1 -1
- three/examples/jsm/loaders/MTLLoader.d.ts +1 -11
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -1
- three/examples/jsm/loaders/NRRDLoader.d.ts +1 -1
- three/examples/jsm/loaders/OBJLoader.d.ts +1 -1
- three/examples/jsm/loaders/PCDLoader.d.ts +1 -1
- three/examples/jsm/loaders/PDBLoader.d.ts +1 -1
- three/examples/jsm/loaders/PLYLoader.d.ts +1 -1
- three/examples/jsm/loaders/PVRLoader.d.ts +1 -1
- three/examples/jsm/loaders/RGBELoader.d.ts +1 -1
- three/examples/jsm/loaders/RGBMLoader.d.ts +1 -1
- three/examples/jsm/loaders/STLLoader.d.ts +1 -1
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
- three/examples/jsm/loaders/TDSLoader.d.ts +1 -1
- three/examples/jsm/loaders/TGALoader.d.ts +1 -1
- three/examples/jsm/loaders/TTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
- three/examples/jsm/loaders/USDZLoader.d.ts +2 -2
- three/examples/jsm/loaders/VOXLoader.d.ts +1 -1
- three/examples/jsm/loaders/VRMLLoader.d.ts +1 -1
- three/examples/jsm/loaders/VTKLoader.d.ts +1 -1
- three/examples/jsm/loaders/XYZLoader.d.ts +1 -1
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +1 -1
- three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +1 -1
- three/examples/jsm/math/Capsule.d.ts +1 -1
- three/examples/jsm/math/ColorConverter.d.ts +1 -1
- three/examples/jsm/math/ConvexHull.d.ts +1 -1
- three/examples/jsm/math/Lut.d.ts +1 -1
- three/examples/jsm/math/MeshSurfaceSampler.d.ts +1 -1
- three/examples/jsm/math/OBB.d.ts +1 -1
- three/examples/jsm/math/Octree.d.ts +1 -1
- three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
- three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -1
- three/examples/jsm/misc/Gyroscope.d.ts +1 -1
- three/examples/jsm/misc/MD2Character.d.ts +1 -1
- three/examples/jsm/misc/MD2CharacterComplex.d.ts +1 -1
- three/examples/jsm/misc/MorphAnimMesh.d.ts +1 -1
- three/examples/jsm/misc/MorphBlendMesh.d.ts +1 -1
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
- three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
- three/examples/jsm/misc/Timer.d.ts +28 -28
- three/examples/jsm/misc/TubePainter.d.ts +1 -1
- three/examples/jsm/misc/Volume.d.ts +1 -1
- three/examples/jsm/misc/VolumeSlice.d.ts +1 -1
- three/examples/jsm/modifiers/CurveModifier.d.ts +1 -10
- three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +1 -1
- three/examples/jsm/modifiers/SimplifyModifier.d.ts +1 -1
- three/examples/jsm/modifiers/TessellateModifier.d.ts +1 -1
- three/examples/jsm/nodes/Nodes.d.ts +20 -6
- three/examples/jsm/nodes/accessors/AccessorsUtils.d.ts +7 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +7 -3
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +1 -9
- three/examples/jsm/nodes/accessors/ClippingNode.d.ts +16 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +2 -2
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +10 -10
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +16 -4
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +7 -3
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +14 -1
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/UniformsNode.d.ts +25 -0
- three/examples/jsm/nodes/core/AssignNode.d.ts +2 -1
- three/examples/jsm/nodes/core/Node.d.ts +2 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +1 -10
- three/examples/jsm/nodes/core/NodeFrame.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeUtils.d.ts +1 -1
- three/examples/jsm/nodes/core/TempNode.d.ts +1 -1
- three/examples/jsm/nodes/display/AnamorphicNode.d.ts +5 -6
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +1 -1
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +1 -3
- three/examples/jsm/nodes/display/PassNode.d.ts +1 -1
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +1 -1
- three/examples/jsm/nodes/display/ViewportDepthTextureNode.d.ts +12 -0
- three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +1 -1
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +13 -3
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +23 -3
- three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +41 -5
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +58 -18
- three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +9 -9
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +40 -6
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +45 -15
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +14 -4
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +17 -6
- three/examples/jsm/nodes/math/MathNode.d.ts +11 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/examples/jsm/nodes/utils/ReflectorNode.d.ts +1 -1
- three/examples/jsm/nodes/utils/StoargeArrayElementNode.d.ts +25 -0
- three/examples/jsm/objects/GroundedSkybox.d.ts +1 -1
- three/examples/jsm/objects/Lensflare.d.ts +1 -1
- three/examples/jsm/objects/MarchingCubes.d.ts +1 -1
- three/examples/jsm/objects/QuadMesh.d.ts +1 -1
- three/examples/jsm/objects/Reflector.d.ts +7 -15
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -1
- three/examples/jsm/objects/Refractor.d.ts +7 -16
- three/examples/jsm/objects/ShadowMesh.d.ts +1 -1
- three/examples/jsm/objects/Sky.d.ts +1 -1
- three/examples/jsm/objects/Water.d.ts +1 -9
- three/examples/jsm/objects/Water2.d.ts +13 -22
- three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -1
- three/examples/jsm/postprocessing/AfterimagePass.d.ts +1 -1
- three/examples/jsm/postprocessing/BloomPass.d.ts +1 -1
- three/examples/jsm/postprocessing/BokehPass.d.ts +1 -1
- three/examples/jsm/postprocessing/ClearPass.d.ts +1 -1
- three/examples/jsm/postprocessing/CubeTexturePass.d.ts +1 -1
- three/examples/jsm/postprocessing/DotScreenPass.d.ts +1 -1
- three/examples/jsm/postprocessing/EffectComposer.d.ts +1 -1
- three/examples/jsm/postprocessing/FilmPass.d.ts +1 -1
- three/examples/jsm/postprocessing/GTAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/GlitchPass.d.ts +1 -1
- three/examples/jsm/postprocessing/HalftonePass.d.ts +1 -1
- three/examples/jsm/postprocessing/LUTPass.d.ts +1 -1
- three/examples/jsm/postprocessing/MaskPass.d.ts +1 -1
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/OutputPass.d.ts +1 -1
- three/examples/jsm/postprocessing/Pass.d.ts +1 -1
- three/examples/jsm/postprocessing/RenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SMAAPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSRPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SavePass.d.ts +1 -1
- three/examples/jsm/postprocessing/ShaderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/TAARenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/TexturePass.d.ts +1 -1
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +1 -1
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +1 -1
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +1 -1
- three/examples/jsm/renderers/Projector.d.ts +1 -1
- three/examples/jsm/renderers/SVGRenderer.d.ts +1 -1
- three/examples/jsm/renderers/common/Backend.d.ts +1 -1
- three/examples/jsm/renderers/common/Color4.d.ts +1 -1
- three/examples/jsm/renderers/common/Info.d.ts +1 -1
- three/examples/jsm/renderers/common/Renderer.d.ts +26 -15
- three/examples/jsm/renderers/common/StorageTexture.d.ts +1 -1
- three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +1 -1
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +1 -1
- three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
- three/examples/jsm/shaders/AfterimageShader.d.ts +1 -1
- three/examples/jsm/shaders/BleachBypassShader.d.ts +1 -1
- three/examples/jsm/shaders/BlendShader.d.ts +1 -1
- three/examples/jsm/shaders/BokehShader.d.ts +1 -1
- three/examples/jsm/shaders/BokehShader2.d.ts +1 -1
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -1
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -1
- three/examples/jsm/shaders/ColorifyShader.d.ts +1 -1
- three/examples/jsm/shaders/ConvolutionShader.d.ts +1 -1
- three/examples/jsm/shaders/CopyShader.d.ts +1 -1
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -1
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/DigitalGlitch.d.ts +1 -1
- three/examples/jsm/shaders/DotScreenShader.d.ts +1 -1
- three/examples/jsm/shaders/ExposureShader.d.ts +1 -1
- three/examples/jsm/shaders/FXAAShader.d.ts +1 -1
- three/examples/jsm/shaders/FilmShader.d.ts +1 -1
- three/examples/jsm/shaders/FocusShader.d.ts +1 -1
- three/examples/jsm/shaders/FreiChenShader.d.ts +1 -1
- three/examples/jsm/shaders/GTAOShader.d.ts +1 -1
- three/examples/jsm/shaders/GammaCorrectionShader.d.ts +1 -1
- three/examples/jsm/shaders/GodRaysShader.d.ts +1 -1
- three/examples/jsm/shaders/HalftoneShader.d.ts +1 -1
- three/examples/jsm/shaders/HorizontalBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -1
- three/examples/jsm/shaders/KaleidoShader.d.ts +1 -1
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -1
- three/examples/jsm/shaders/LuminosityShader.d.ts +1 -1
- three/examples/jsm/shaders/MMDToonShader.d.ts +1 -1
- three/examples/jsm/shaders/MirrorShader.d.ts +1 -1
- three/examples/jsm/shaders/NormalMapShader.d.ts +1 -1
- three/examples/jsm/shaders/OutputShader.d.ts +1 -1
- three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
- three/examples/jsm/shaders/RGBShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/SAOShader.d.ts +1 -1
- three/examples/jsm/shaders/SMAAShader.d.ts +1 -1
- three/examples/jsm/shaders/SSAOShader.d.ts +1 -1
- three/examples/jsm/shaders/SSRShader.d.ts +1 -1
- three/examples/jsm/shaders/SepiaShader.d.ts +1 -1
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -1
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -1
- three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -1
- three/examples/jsm/shaders/ToonShader.d.ts +1 -1
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -1
- three/examples/jsm/shaders/VelocityShader.d.ts +1 -1
- three/examples/jsm/shaders/VerticalBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/VignetteShader.d.ts +1 -1
- three/examples/jsm/shaders/VolumeShader.d.ts +1 -1
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -1
- three/examples/jsm/utils/BufferGeometryUtils.d.ts +1 -1
- three/examples/jsm/utils/CameraUtils.d.ts +1 -1
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +1 -1
- three/examples/jsm/utils/GeometryUtils.d.ts +1 -1
- three/examples/jsm/utils/LDrawUtils.d.ts +1 -1
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +1 -1
- three/examples/jsm/utils/SceneUtils.d.ts +1 -1
- three/examples/jsm/utils/ShadowMapViewer.d.ts +1 -1
- three/examples/jsm/utils/SkeletonUtils.d.ts +1 -1
- three/examples/jsm/utils/UVsDebug.d.ts +1 -1
- three/examples/jsm/webxr/ARButton.d.ts +1 -1
- three/examples/jsm/webxr/OculusHandModel.d.ts +1 -1
- three/examples/jsm/webxr/OculusHandPointerModel.d.ts +1 -1
- three/examples/jsm/webxr/Text2D.d.ts +1 -1
- three/examples/jsm/webxr/VRButton.d.ts +3 -3
- three/examples/jsm/webxr/XRButton.d.ts +1 -2
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +6 -5
- three/examples/jsm/webxr/XREstimatedLight.d.ts +1 -1
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +1 -1
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +6 -5
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +1 -1
- three/examples/jsm/webxr/XRPlanes.d.ts +2 -2
- three/index.d.ts +0 -2
- three/package.json +3 -2
- three/src/Three.Legacy.d.ts +20 -1
- three/src/Three.d.ts +0 -1
- three/src/cameras/PerspectiveCamera.d.ts +1 -1
- three/src/constants.d.ts +3 -15
- three/src/core/BufferAttribute.d.ts +0 -32
- three/src/core/BufferGeometry.d.ts +6 -4
- three/src/core/InstancedBufferAttribute.d.ts +7 -0
- three/src/core/Object3D.d.ts +17 -0
- three/src/core/Raycaster.d.ts +7 -0
- three/src/core/RenderTarget.d.ts +8 -7
- three/src/extras/PMREMGenerator.d.ts +5 -4
- three/src/helpers/SkeletonHelper.d.ts +1 -1
- three/src/lights/LightShadow.d.ts +2 -2
- three/src/materials/MeshBasicMaterial.d.ts +8 -0
- three/src/materials/MeshLambertMaterial.d.ts +8 -1
- three/src/materials/MeshPhongMaterial.d.ts +7 -0
- three/src/materials/MeshStandardMaterial.d.ts +7 -0
- three/src/objects/InstancedMesh.d.ts +28 -4
- three/src/objects/SkinnedMesh.d.ts +6 -9
- three/src/renderers/WebGL3DRenderTarget.d.ts +6 -7
- three/src/renderers/WebGLArrayRenderTarget.d.ts +6 -7
- three/src/renderers/WebGLCubeRenderTarget.d.ts +7 -3
- three/src/renderers/WebGLRenderTarget.d.ts +1 -4
- three/src/renderers/WebGLRenderer.d.ts +3 -18
- three/src/renderers/shaders/UniformsLib.d.ts +1 -0
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +2 -1
- three/src/renderers/webgl/WebGLPrograms.d.ts +1 -0
- three/src/renderers/webgl/WebGLUtils.d.ts +9 -3
- three/src/scenes/Scene.d.ts +14 -1
- three/src/textures/Texture.d.ts +0 -15
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -15
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { RenderTargetOptions } from "../core/RenderTarget.js";
|
|
1
2
|
import { Data3DTexture } from "../textures/Data3DTexture.js";
|
|
2
|
-
import { WebGLRenderTarget
|
|
3
|
+
import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Represents a three-dimensional render target.
|
|
@@ -14,17 +15,15 @@ export class WebGL3DRenderTarget extends WebGLRenderTarget {
|
|
|
14
15
|
* @param options optional object that holds texture parameters for an auto-generated target texture and
|
|
15
16
|
* depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
|
|
16
17
|
*/
|
|
17
|
-
constructor(width?: number, height?: number, depth?: number, options?:
|
|
18
|
+
constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
* The depth of the render target.
|
|
21
|
-
*/
|
|
22
|
-
depth: number;
|
|
20
|
+
textures: Data3DTexture[];
|
|
23
21
|
|
|
24
22
|
/**
|
|
25
23
|
* The texture property is overwritten with an instance of {@link Data3DTexture}.
|
|
26
24
|
*/
|
|
27
|
-
texture: Data3DTexture;
|
|
25
|
+
get texture(): Data3DTexture;
|
|
26
|
+
set texture(value: Data3DTexture);
|
|
28
27
|
|
|
29
28
|
readonly isWebGL3DRenderTarget: true;
|
|
30
29
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { RenderTargetOptions } from "../core/RenderTarget.js";
|
|
1
2
|
import { DataArrayTexture } from "../textures/DataArrayTexture.js";
|
|
2
|
-
import { WebGLRenderTarget
|
|
3
|
+
import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* This type of render target represents an array of textures.
|
|
@@ -14,17 +15,15 @@ export class WebGLArrayRenderTarget extends WebGLRenderTarget {
|
|
|
14
15
|
* @param options optional object that holds texture parameters for an auto-generated target texture and
|
|
15
16
|
* depthBuffer/stencilBuffer booleans. See {@link WebGLRenderTarget} for details.
|
|
16
17
|
*/
|
|
17
|
-
constructor(width?: number, height?: number, depth?: number, options?:
|
|
18
|
+
constructor(width?: number, height?: number, depth?: number, options?: RenderTargetOptions);
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
* The depth of the render target.
|
|
21
|
-
*/
|
|
22
|
-
depth: number;
|
|
20
|
+
textures: DataArrayTexture[];
|
|
23
21
|
|
|
24
22
|
/**
|
|
25
23
|
* The texture property is overwritten with an instance of {@link DataArrayTexture}.
|
|
26
24
|
*/
|
|
27
|
-
texture: DataArrayTexture;
|
|
25
|
+
get texture(): DataArrayTexture;
|
|
26
|
+
set texture(value: DataArrayTexture);
|
|
28
27
|
|
|
29
28
|
readonly isWebGLArrayRenderTarget: true;
|
|
30
29
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { RenderTargetOptions } from "../core/RenderTarget.js";
|
|
1
2
|
import { CubeTexture } from "../textures/CubeTexture.js";
|
|
2
3
|
import { Texture } from "../textures/Texture.js";
|
|
3
4
|
import { WebGLRenderer } from "./WebGLRenderer.js";
|
|
4
|
-
import { WebGLRenderTarget
|
|
5
|
+
import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
|
|
5
6
|
|
|
6
7
|
export class WebGLCubeRenderTarget extends WebGLRenderTarget {
|
|
7
|
-
constructor(size?: number, options?:
|
|
8
|
+
constructor(size?: number, options?: RenderTargetOptions);
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
textures: CubeTexture[];
|
|
11
|
+
|
|
12
|
+
get texture(): CubeTexture;
|
|
13
|
+
set texture(value: CubeTexture);
|
|
10
14
|
|
|
11
15
|
fromEquirectangularTexture(renderer: WebGLRenderer, texture: Texture): this;
|
|
12
16
|
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { RenderTarget, RenderTargetOptions } from "../core/RenderTarget.js";
|
|
2
2
|
import { Texture } from "../textures/Texture.js";
|
|
3
3
|
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
5
|
-
export interface WebGLRenderTargetOptions extends RenderTargetOptions {}
|
|
6
|
-
|
|
7
4
|
export class WebGLRenderTarget<TTexture extends Texture | Texture[] = Texture> extends RenderTarget<TTexture> {
|
|
8
|
-
constructor(width?: number, height?: number, options?:
|
|
5
|
+
constructor(width?: number, height?: number, options?: RenderTargetOptions);
|
|
9
6
|
|
|
10
7
|
readonly isWebGLRenderTarget: true;
|
|
11
8
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { Camera } from "../cameras/Camera.js";
|
|
2
|
-
import {
|
|
3
|
-
ColorSpace,
|
|
4
|
-
CullFace,
|
|
5
|
-
ShadowMapType,
|
|
6
|
-
TextureEncoding,
|
|
7
|
-
ToneMapping,
|
|
8
|
-
WebGLCoordinateSystem,
|
|
9
|
-
} from "../constants.js";
|
|
2
|
+
import { ColorSpace, CullFace, ShadowMapType, ToneMapping, WebGLCoordinateSystem } from "../constants.js";
|
|
10
3
|
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
11
4
|
import { Object3D } from "../core/Object3D.js";
|
|
12
5
|
import { Material } from "../materials/Material.js";
|
|
@@ -28,7 +21,6 @@ import { WebGLProperties } from "./webgl/WebGLProperties.js";
|
|
|
28
21
|
import { WebGLRenderLists } from "./webgl/WebGLRenderLists.js";
|
|
29
22
|
import { WebGLShadowMap } from "./webgl/WebGLShadowMap.js";
|
|
30
23
|
import { WebGLState } from "./webgl/WebGLState.js";
|
|
31
|
-
import { WebGLMultipleRenderTargets } from "./WebGLMultipleRenderTargets.js";
|
|
32
24
|
import { WebGLRenderTarget } from "./WebGLRenderTarget.js";
|
|
33
25
|
import { WebXRManager } from "./webxr/WebXRManager.js";
|
|
34
26
|
|
|
@@ -194,13 +186,6 @@ export class WebGLRenderer implements Renderer {
|
|
|
194
186
|
|
|
195
187
|
extensions: WebGLExtensions;
|
|
196
188
|
|
|
197
|
-
/**
|
|
198
|
-
* Default is LinearEncoding.
|
|
199
|
-
* @default THREE.LinearEncoding
|
|
200
|
-
* @deprecated Use {@link WebGLRenderer.outputColorSpace .outputColorSpace} in three.js r152+.
|
|
201
|
-
*/
|
|
202
|
-
outputEncoding: TextureEncoding;
|
|
203
|
-
|
|
204
189
|
/**
|
|
205
190
|
* Color space used for output to HTMLCanvasElement. Supported values are
|
|
206
191
|
* {@link SRGBColorSpace} and {@link LinearSRGBColorSpace}.
|
|
@@ -425,13 +410,13 @@ export class WebGLRenderer implements Renderer {
|
|
|
425
410
|
* @param activeMipmapLevel Specifies the active mipmap level.
|
|
426
411
|
*/
|
|
427
412
|
setRenderTarget(
|
|
428
|
-
renderTarget: WebGLRenderTarget |
|
|
413
|
+
renderTarget: WebGLRenderTarget | WebGLRenderTarget<Texture[]> | null,
|
|
429
414
|
activeCubeFace?: number,
|
|
430
415
|
activeMipmapLevel?: number,
|
|
431
416
|
): void;
|
|
432
417
|
|
|
433
418
|
readRenderTargetPixels(
|
|
434
|
-
renderTarget: WebGLRenderTarget |
|
|
419
|
+
renderTarget: WebGLRenderTarget | WebGLRenderTarget<Texture[]>,
|
|
435
420
|
x: number,
|
|
436
421
|
y: number,
|
|
437
422
|
width: number,
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import { CompressedPixelFormat, PixelFormat, TextureDataType
|
|
1
|
+
import { ColorSpace, CompressedPixelFormat, PixelFormat, TextureDataType } from "../../constants.js";
|
|
2
|
+
import { WebGLCapabilities } from "./WebGLCapabilities.js";
|
|
3
|
+
import { WebGLExtensions } from "./WebGLExtensions.js";
|
|
2
4
|
|
|
3
5
|
export class WebGLUtils {
|
|
4
|
-
constructor(
|
|
6
|
+
constructor(
|
|
7
|
+
gl: WebGLRenderingContext | WebGL2RenderingContext,
|
|
8
|
+
extensions: WebGLExtensions,
|
|
9
|
+
capabilities: WebGLCapabilities,
|
|
10
|
+
);
|
|
5
11
|
|
|
6
|
-
convert(p: PixelFormat | CompressedPixelFormat | TextureDataType,
|
|
12
|
+
convert(p: PixelFormat | CompressedPixelFormat | TextureDataType, colorSpace?: ColorSpace): number | null;
|
|
7
13
|
}
|
three/src/scenes/Scene.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Object3D } 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";
|
|
5
|
+
import { CubeTexture } from "../textures/CubeTexture.js";
|
|
4
6
|
import { Texture } from "../textures/Texture.js";
|
|
5
|
-
import { CubeTexture } from "../Three.js";
|
|
6
7
|
import { FogBase } from "./Fog.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -68,6 +69,12 @@ export class Scene extends Object3D {
|
|
|
68
69
|
*/
|
|
69
70
|
background: Color | Texture | CubeTexture | null;
|
|
70
71
|
|
|
72
|
+
/**
|
|
73
|
+
* The rotation of the background in radians. Only influences environment maps assigned to {@link .background}.
|
|
74
|
+
* Default is `(0,0,0)`.
|
|
75
|
+
*/
|
|
76
|
+
backgroundRotation: Euler;
|
|
77
|
+
|
|
71
78
|
/**
|
|
72
79
|
* Sets the environment map for all physical materials in the scene.
|
|
73
80
|
* However, it's not possible to overwrite an existing texture assigned to {@link THREE.MeshStandardMaterial.envMap | MeshStandardMaterial.envMap}.
|
|
@@ -75,6 +82,12 @@ export class Scene extends Object3D {
|
|
|
75
82
|
*/
|
|
76
83
|
environment: Texture | null;
|
|
77
84
|
|
|
85
|
+
/**
|
|
86
|
+
* The rotation of the environment map in radians. Only influences physical materials in the scene when
|
|
87
|
+
* {@link .environment} is used. Default is `(0,0,0)`.
|
|
88
|
+
*/
|
|
89
|
+
environmentRotation: Euler;
|
|
90
|
+
|
|
78
91
|
/**
|
|
79
92
|
* Convert the {@link Scene} to three.js {@link https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4 | JSON Object/Scene format}.
|
|
80
93
|
* @param meta Object containing metadata such as textures or images for the scene.
|
three/src/textures/Texture.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
PixelFormat,
|
|
9
9
|
PixelFormatGPU,
|
|
10
10
|
TextureDataType,
|
|
11
|
-
TextureEncoding,
|
|
12
11
|
Wrapping,
|
|
13
12
|
} from "../constants.js";
|
|
14
13
|
import { EventDispatcher } from "../core/EventDispatcher.js";
|
|
@@ -78,7 +77,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
78
77
|
format: PixelFormat,
|
|
79
78
|
type: TextureDataType,
|
|
80
79
|
anisotropy: number,
|
|
81
|
-
encoding: TextureEncoding,
|
|
82
80
|
);
|
|
83
81
|
|
|
84
82
|
/**
|
|
@@ -324,19 +322,6 @@ export class Texture extends EventDispatcher<{ dispose: {} }> {
|
|
|
324
322
|
*/
|
|
325
323
|
unpackAlignment: number; // TODO Fix typing to only allow the expected values.
|
|
326
324
|
|
|
327
|
-
/**
|
|
328
|
-
* The {@link Textures | {@link Texture} constants} page for details of other formats.
|
|
329
|
-
* @remarks
|
|
330
|
-
* Values of {@link encoding} !== {@link THREE.LinearEncoding} are only supported on _map_, _envMap_ and _emissiveMap_.
|
|
331
|
-
* @remarks
|
|
332
|
-
* Note that if this value is changed on a texture after the material has been used, it is necessary to trigger a {@link THREE.Material.needsUpdate} for this value to be realized in the shader.
|
|
333
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
334
|
-
* @see {@link THREE.TextureDataType}
|
|
335
|
-
* @defaultValue {@link THREE.LinearEncoding}
|
|
336
|
-
* @deprecated Use {@link Texture.colorSpace .colorSpace} in three.js r152+.
|
|
337
|
-
*/
|
|
338
|
-
encoding: TextureEncoding;
|
|
339
|
-
|
|
340
325
|
/**
|
|
341
326
|
* The {@link Textures | {@link Texture} constants} page for details of other color spaces.
|
|
342
327
|
* @remarks
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Texture } from "../textures/Texture.js";
|
|
2
|
-
import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
|
|
3
|
-
|
|
4
|
-
export class WebGLMultipleRenderTargets extends WebGLRenderTarget<Texture[]> {
|
|
5
|
-
/**
|
|
6
|
-
* @param width The width of the render target.
|
|
7
|
-
* @param height The height of the render target.
|
|
8
|
-
* @param count The number of render targets.
|
|
9
|
-
* @param options object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans.
|
|
10
|
-
* For an explanation of the texture parameters see {@link Texture}.
|
|
11
|
-
*/
|
|
12
|
-
constructor(width?: number, height?: number, count?: number, options?: WebGLRenderTargetOptions);
|
|
13
|
-
|
|
14
|
-
readonly isWebGLMultipleRenderTargets: true;
|
|
15
|
-
}
|