@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,6 +1,5 @@
|
|
|
1
|
-
import { WebGLRenderer } from "
|
|
1
|
+
import { WebGLRenderer } from "three";
|
|
2
2
|
|
|
3
|
-
// tslint:disable-next-line:no-unnecessary-class
|
|
4
3
|
export class XRButton {
|
|
5
4
|
static createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLElement;
|
|
6
5
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Group, Loader, Object3D, Texture } from "
|
|
1
|
+
import { Group, Loader, Object3D, Texture } from "three";
|
|
2
2
|
import { GLTF } from "../loaders/GLTFLoader.js";
|
|
3
3
|
|
|
4
4
|
export class XRControllerModel extends Object3D {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
motionController: any;
|
|
5
|
+
motionController: unknown;
|
|
6
|
+
envMap: Texture | null;
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
constructor();
|
|
10
9
|
|
|
11
10
|
setEnvironmentMap(envMap: Texture): XRControllerModel;
|
|
12
11
|
}
|
|
@@ -18,5 +17,7 @@ export class XRControllerModelFactory {
|
|
|
18
17
|
|
|
19
18
|
constructor(gltfLoader?: Loader<GLTF> | null, onLoad?: ((scene: Group) => void) | null);
|
|
20
19
|
|
|
20
|
+
setPath(path: string): this;
|
|
21
|
+
|
|
21
22
|
createControllerModel(controller: Group): XRControllerModel;
|
|
22
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DirectionalLight, Group, LightProbe, Object3DEventMap, Texture, WebGLRenderer } from "
|
|
1
|
+
import { DirectionalLight, Group, LightProbe, Object3DEventMap, Texture, WebGLRenderer } from "three";
|
|
2
2
|
|
|
3
3
|
export class SessionLightProbe {
|
|
4
4
|
xrLight: XREstimatedLight;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Group, Object3D } from "
|
|
1
|
+
import { Group, Object3D } from "three";
|
|
2
2
|
|
|
3
3
|
import { XRHandMeshModel } from "./XRHandMeshModel.js";
|
|
4
4
|
import { XRHandPrimitiveModel, XRHandPrimitiveModelOptions } from "./XRHandPrimitiveModel.js";
|
|
@@ -6,16 +6,17 @@ import { XRHandPrimitiveModel, XRHandPrimitiveModelOptions } from "./XRHandPrimi
|
|
|
6
6
|
export type XRHandModelHandedness = "left" | "right";
|
|
7
7
|
|
|
8
8
|
export class XRHandModel extends Object3D {
|
|
9
|
-
constructor();
|
|
10
|
-
|
|
11
9
|
motionController: XRHandPrimitiveModel | XRHandMeshModel;
|
|
10
|
+
|
|
11
|
+
constructor();
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export class XRHandModelFactory {
|
|
15
|
+
path: string | null;
|
|
16
|
+
|
|
15
17
|
constructor();
|
|
16
|
-
path: string;
|
|
17
18
|
|
|
18
|
-
setPath(path: string):
|
|
19
|
+
setPath(path: string | null): this;
|
|
19
20
|
|
|
20
21
|
createHandModel(
|
|
21
22
|
controller: Group,
|
three/index.d.ts
CHANGED
three/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/three",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.162.0",
|
|
4
4
|
"description": "TypeScript definitions for three",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,11 +39,12 @@
|
|
|
39
39
|
},
|
|
40
40
|
"scripts": {},
|
|
41
41
|
"dependencies": {
|
|
42
|
+
"@tweenjs/tween.js": "~23.1.1",
|
|
42
43
|
"@types/stats.js": "*",
|
|
43
44
|
"@types/webxr": "*",
|
|
44
45
|
"fflate": "~0.6.10",
|
|
45
46
|
"meshoptimizer": "~0.18.1"
|
|
46
47
|
},
|
|
47
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "a113c91d5796d4919f38171319b51f9ac52586ca55d8dcbb08da2d5cfeeef84d",
|
|
48
49
|
"typeScriptVersion": "4.6"
|
|
49
50
|
}
|
three/src/Three.Legacy.d.ts
CHANGED
|
@@ -1 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { RenderTargetOptions } from "./core/RenderTarget.js";
|
|
2
|
+
import { WebGLRenderTarget } from "./renderers/WebGLRenderTarget.js";
|
|
3
|
+
import { Texture } from "./textures/Texture.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.
|
|
7
|
+
*/
|
|
8
|
+
export class WebGLMultipleRenderTargets extends WebGLRenderTarget<Texture[]> {
|
|
9
|
+
readonly isWebGLMultipleRenderTargets: true;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated THREE.WebGLMultipleRenderTargets has been deprecated and will be removed in r172. Use THREE.WebGLRenderTarget and set the "count" parameter to enable MRT.
|
|
13
|
+
* @param width The width of the render target.
|
|
14
|
+
* @param height The height of the render target.
|
|
15
|
+
* @param count The number of render targets.
|
|
16
|
+
* @param options object that holds texture parameters for an auto-generated target texture and depthBuffer/stencilBuffer booleans.
|
|
17
|
+
* For an explanation of the texture parameters see {@link Texture}.
|
|
18
|
+
*/
|
|
19
|
+
constructor(width?: number, height?: number, count?: number, options?: RenderTargetOptions);
|
|
20
|
+
}
|
three/src/Three.d.ts
CHANGED
|
@@ -207,7 +207,6 @@ export * from "./renderers/WebGL1Renderer.js";
|
|
|
207
207
|
export * from "./renderers/WebGL3DRenderTarget.js";
|
|
208
208
|
export * from "./renderers/WebGLArrayRenderTarget.js";
|
|
209
209
|
export * from "./renderers/WebGLCubeRenderTarget.js";
|
|
210
|
-
export * from "./renderers/WebGLMultipleRenderTargets.js";
|
|
211
210
|
export * from "./renderers/WebGLRenderer.js";
|
|
212
211
|
export * from "./renderers/WebGLRenderTarget.js";
|
|
213
212
|
export * from "./renderers/webxr/WebXRController.js";
|
|
@@ -159,7 +159,7 @@ export class PerspectiveCamera extends Camera {
|
|
|
159
159
|
* Computes the width and height of the camera's viewable rectangle at a given distance along the viewing direction.
|
|
160
160
|
* Copies the result into the target Vector2, where x is width and y is height.
|
|
161
161
|
*/
|
|
162
|
-
getViewSize(distance: number,
|
|
162
|
+
getViewSize(distance: number, target: Vector2): Vector2;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* Sets an offset in a larger frustum.
|
three/src/constants.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ export const CineonToneMapping: 3;
|
|
|
140
140
|
export const ACESFilmicToneMapping: 4;
|
|
141
141
|
export const CustomToneMapping: 5;
|
|
142
142
|
export const AgXToneMapping: 6;
|
|
143
|
+
export const NeutralToneMapping: 7;
|
|
143
144
|
export type ToneMapping =
|
|
144
145
|
| typeof NoToneMapping
|
|
145
146
|
| typeof LinearToneMapping
|
|
@@ -147,7 +148,8 @@ export type ToneMapping =
|
|
|
147
148
|
| typeof CineonToneMapping
|
|
148
149
|
| typeof ACESFilmicToneMapping
|
|
149
150
|
| typeof CustomToneMapping
|
|
150
|
-
| typeof AgXToneMapping
|
|
151
|
+
| typeof AgXToneMapping
|
|
152
|
+
| typeof NeutralToneMapping;
|
|
151
153
|
|
|
152
154
|
// Bind modes
|
|
153
155
|
export const AttachedBindMode: "attached";
|
|
@@ -696,20 +698,6 @@ export const TriangleStripDrawMode: 1;
|
|
|
696
698
|
export const TriangleFanDrawMode: 2;
|
|
697
699
|
export type TrianglesDrawModes = typeof TrianglesDrawMode | typeof TriangleStripDrawMode | typeof TriangleFanDrawMode;
|
|
698
700
|
|
|
699
|
-
///////////////////////////////////////////////////////////////////////////////
|
|
700
|
-
// Texture Encodings
|
|
701
|
-
|
|
702
|
-
/** @deprecated Use {@link LinearSRGBColorSpace} or {@link NoColorSpace} in three.js r152+. */
|
|
703
|
-
export const LinearEncoding: 3000;
|
|
704
|
-
/** @deprecated Use {@link SRGBColorSpace} in three.js r152+. */
|
|
705
|
-
export const sRGBEncoding: 3001;
|
|
706
|
-
/**
|
|
707
|
-
* Texture Encodings.
|
|
708
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
709
|
-
* @deprecated Use {@link ColorSpace} in three.js r152+.
|
|
710
|
-
*/
|
|
711
|
-
export type TextureEncoding = typeof LinearEncoding | typeof sRGBEncoding;
|
|
712
|
-
|
|
713
701
|
///////////////////////////////////////////////////////////////////////////////
|
|
714
702
|
// Depth packing strategies
|
|
715
703
|
|
|
@@ -630,35 +630,3 @@ export class Float32BufferAttribute extends BufferAttribute {
|
|
|
630
630
|
normalized?: boolean,
|
|
631
631
|
);
|
|
632
632
|
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* A {@link THREE.BufferAttribute | BufferAttribute} for {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array: Float64Array}
|
|
636
|
-
* {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray#typedarray_objects | TypedArray}
|
|
637
|
-
* @see {@link THREE.BufferAttribute | BufferAttribute} for details and for inherited methods and properties.
|
|
638
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/core/bufferAttributeTypes/BufferAttributeTypes | Official Documentation}
|
|
639
|
-
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js | Source}
|
|
640
|
-
*/
|
|
641
|
-
export class Float64BufferAttribute extends BufferAttribute {
|
|
642
|
-
/**
|
|
643
|
-
* This creates a new {@link THREE.Float64BufferAttribute | Float64BufferAttribute} object.
|
|
644
|
-
* @param array This can be a typed or untyped (normal) array or an integer length. An array value will be converted to `Float64Array`.
|
|
645
|
-
* If a length is given a new `TypedArray` will created, initialized with all elements set to zero.
|
|
646
|
-
* @param itemSize the number of values of the {@link array} that should be associated with a particular vertex.
|
|
647
|
-
* For instance, if this attribute is storing a 3-component vector (such as a _position_, _normal_, or _color_),
|
|
648
|
-
* then itemSize should be `3`.
|
|
649
|
-
* @param normalized Applies to integer data only.
|
|
650
|
-
* Indicates how the underlying data in the buffer maps to the values in the GLSL code.
|
|
651
|
-
* For instance, if {@link array} is an instance of `UInt16Array`, and {@link normalized} is true,
|
|
652
|
-
* the values `0` - `+65535` in the array data will be mapped to `0.0f` - `+1.0f` in the GLSL attribute.
|
|
653
|
-
* An `Int16Array` (signed) would map from `-32768` - `+32767` to `-1.0f` - `+1.0f`.
|
|
654
|
-
* If normalized is false, the values will be converted to floats unmodified,
|
|
655
|
-
* i.e. `32767` becomes `32767.0f`.
|
|
656
|
-
* Default `false`.
|
|
657
|
-
* @see {@link THREE.BufferAttribute | BufferAttribute}
|
|
658
|
-
*/
|
|
659
|
-
constructor(
|
|
660
|
-
array: Iterable<number> | ArrayLike<number> | ArrayBuffer | number,
|
|
661
|
-
itemSize: number,
|
|
662
|
-
normalized?: boolean,
|
|
663
|
-
);
|
|
664
|
-
}
|
|
@@ -333,14 +333,16 @@ export class BufferGeometry<
|
|
|
333
333
|
setFromPoints(points: Vector3[] | Vector2[]): this;
|
|
334
334
|
|
|
335
335
|
/**
|
|
336
|
-
* Computes bounding box of the geometry,
|
|
337
|
-
*
|
|
336
|
+
* Computes the bounding box of the geometry, and updates the {@link .boundingBox} attribute. The bounding box is
|
|
337
|
+
* not computed by the engine; it must be computed by your app. You may need to recompute the bounding box if the
|
|
338
|
+
* geometry vertices are modified.
|
|
338
339
|
*/
|
|
339
340
|
computeBoundingBox(): void;
|
|
340
341
|
|
|
341
342
|
/**
|
|
342
|
-
* Computes bounding sphere of the geometry,
|
|
343
|
-
*
|
|
343
|
+
* Computes the bounding sphere of the geometry, and updates the {@link .boundingSphere} attribute. The engine
|
|
344
|
+
* automatically computes the bounding sphere when it is needed, e.g., for ray casting or view frustum culling. You
|
|
345
|
+
* may need to recompute the bounding sphere if the geometry vertices are modified.
|
|
344
346
|
*/
|
|
345
347
|
computeBoundingSphere(): void;
|
|
346
348
|
|
|
@@ -22,4 +22,11 @@ export class InstancedBufferAttribute extends BufferAttribute {
|
|
|
22
22
|
* @defaultValue `1`
|
|
23
23
|
*/
|
|
24
24
|
meshPerAttribute: number;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Read-only flag to check if a given object is of type {@link InstancedBufferAttribute}.
|
|
28
|
+
* @remarks This is a _constant_ value
|
|
29
|
+
* @defaultValue `true`
|
|
30
|
+
*/
|
|
31
|
+
readonly isInstancedBufferAttribute: true;
|
|
25
32
|
}
|
three/src/core/Object3D.d.ts
CHANGED
|
@@ -15,8 +15,25 @@ import { Layers } from "./Layers.js";
|
|
|
15
15
|
import { Intersection, Raycaster } from "./Raycaster.js";
|
|
16
16
|
|
|
17
17
|
export interface Object3DEventMap {
|
|
18
|
+
/**
|
|
19
|
+
* Fires when the object has been added to its parent object.
|
|
20
|
+
*/
|
|
18
21
|
added: {};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Fires when the object has been removed from its parent object.
|
|
25
|
+
*/
|
|
19
26
|
removed: {};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Fires when a new child object has been added.
|
|
30
|
+
*/
|
|
31
|
+
childadded: { child: Object3D };
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Fires when a new child object has been removed.
|
|
35
|
+
*/
|
|
36
|
+
childremoved: { child: Object3D };
|
|
20
37
|
}
|
|
21
38
|
|
|
22
39
|
/**
|
three/src/core/Raycaster.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Camera } from "../cameras/Camera.js";
|
|
|
2
2
|
import { Ray } from "../math/Ray.js";
|
|
3
3
|
import { Vector2 } from "../math/Vector2.js";
|
|
4
4
|
import { Vector3 } from "../math/Vector3.js";
|
|
5
|
+
import { XRTargetRaySpace } from "../renderers/webxr/WebXRController.js";
|
|
5
6
|
import { Layers } from "./Layers.js";
|
|
6
7
|
import { Object3D } from "./Object3D.js";
|
|
7
8
|
|
|
@@ -155,6 +156,12 @@ export class Raycaster {
|
|
|
155
156
|
*/
|
|
156
157
|
setFromCamera(coords: Vector2, camera: Camera): void;
|
|
157
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Updates the ray with a new origin and direction.
|
|
161
|
+
* @param controller The controller to copy the position and direction from.
|
|
162
|
+
*/
|
|
163
|
+
setFromXRController(controller: XRTargetRaySpace): this;
|
|
164
|
+
|
|
158
165
|
/**
|
|
159
166
|
* Checks all intersection between the ray and the object with or without the descendants
|
|
160
167
|
* @remarks Intersections are returned sorted by distance, closest first
|
three/src/core/RenderTarget.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
MinificationTextureFilter,
|
|
5
5
|
PixelFormatGPU,
|
|
6
6
|
TextureDataType,
|
|
7
|
-
TextureEncoding,
|
|
8
7
|
Wrapping,
|
|
9
8
|
} from "../constants.js";
|
|
10
9
|
import { Vector4 } from "../math/Vector4.js";
|
|
@@ -30,14 +29,11 @@ export interface RenderTargetOptions {
|
|
|
30
29
|
* Defines the count of MSAA samples. Can only be used with WebGL 2. Default is **0**.
|
|
31
30
|
* @default 0
|
|
32
31
|
*/
|
|
33
|
-
samples?: number;
|
|
34
|
-
|
|
35
|
-
encoding?: TextureEncoding | undefined;
|
|
32
|
+
samples?: number | undefined;
|
|
33
|
+
count?: number | undefined;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
export class RenderTarget<TTexture extends Texture | Texture[] = Texture> extends EventDispatcher<{ dispose: {} }> {
|
|
39
|
-
constructor(width?: number, height?: number, options?: RenderTargetOptions);
|
|
40
|
-
|
|
41
37
|
readonly isRenderTarget: true;
|
|
42
38
|
|
|
43
39
|
width: number;
|
|
@@ -50,7 +46,7 @@ export class RenderTarget<TTexture extends Texture | Texture[] = Texture> extend
|
|
|
50
46
|
*/
|
|
51
47
|
scissorTest: boolean;
|
|
52
48
|
viewport: Vector4;
|
|
53
|
-
|
|
49
|
+
textures: TTexture[];
|
|
54
50
|
|
|
55
51
|
/**
|
|
56
52
|
* @default true
|
|
@@ -73,6 +69,11 @@ export class RenderTarget<TTexture extends Texture | Texture[] = Texture> extend
|
|
|
73
69
|
*/
|
|
74
70
|
samples: number;
|
|
75
71
|
|
|
72
|
+
constructor(width?: number, height?: number, options?: RenderTargetOptions);
|
|
73
|
+
|
|
74
|
+
get texture(): TTexture;
|
|
75
|
+
set texture(value: TTexture);
|
|
76
|
+
|
|
76
77
|
setSize(width: number, height: number, depth?: number): void;
|
|
77
78
|
clone(): this;
|
|
78
79
|
copy(source: RenderTarget): this;
|
|
@@ -47,14 +47,15 @@ export class PMREMGenerator {
|
|
|
47
47
|
fromScene(scene: Scene, sigma?: number, near?: number, far?: number): WebGLRenderTarget;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
* Generates a PMREM from an equirectangular texture.
|
|
51
|
-
*
|
|
50
|
+
* Generates a PMREM from an equirectangular texture, which can be either LDR or HDR. The ideal input image size is
|
|
51
|
+
* 1k (1024 x 512), as this matches best with the 256 x 256 cubemap output. The smallest supported equirectangular
|
|
52
|
+
* image size is 64 x 32.
|
|
52
53
|
*/
|
|
53
54
|
fromEquirectangular(equirectangular: Texture, renderTarget?: WebGLRenderTarget | null): WebGLRenderTarget;
|
|
54
55
|
|
|
55
56
|
/**
|
|
56
|
-
* Generates a PMREM from an cubemap texture.
|
|
57
|
-
*
|
|
57
|
+
* Generates a PMREM from an cubemap texture, which can be either LDR or HDR. The ideal input cube size is
|
|
58
|
+
* 256 x 256, as this matches best with the 256 x 256 cubemap output. The smallest supported cube size is 16 x 16.
|
|
58
59
|
*/
|
|
59
60
|
fromCubemap(cubemap: CubeTexture, renderTarget?: WebGLRenderTarget | null): WebGLRenderTarget;
|
|
60
61
|
|
|
@@ -2,7 +2,7 @@ import { Object3D } from "../core/Object3D.js";
|
|
|
2
2
|
import { Matrix4 } from "../math/Matrix4.js";
|
|
3
3
|
import { Bone } from "../objects/Bone.js";
|
|
4
4
|
import { LineSegments } from "../objects/LineSegments.js";
|
|
5
|
-
import { SkinnedMesh } from "../
|
|
5
|
+
import { SkinnedMesh } from "../objects/SkinnedMesh.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A helper object to assist with visualizing a {@link Skeleton | Skeleton}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Camera } from "../cameras/Camera.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Frustum } from "../math/Frustum.js";
|
|
3
3
|
import { Matrix4 } from "../math/Matrix4.js";
|
|
4
4
|
import { Vector2 } from "../math/Vector2.js";
|
|
5
5
|
import { Vector4 } from "../math/Vector4.js";
|
|
6
6
|
import { WebGLRenderTarget } from "../renderers/WebGLRenderTarget.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Light } from "./Light.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Serves as a base class for the other shadow classes.
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Combine } from "../constants.js";
|
|
2
2
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
3
|
+
import { Euler } from "../math/Euler.js";
|
|
3
4
|
import { Texture } from "../textures/Texture.js";
|
|
4
5
|
import { Material, MaterialParameters } from "./Material.js";
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* parameters is an object with one or more properties defining the material's appearance.
|
|
7
9
|
*/
|
|
@@ -17,6 +19,7 @@ export interface MeshBasicMaterialParameters extends MaterialParameters {
|
|
|
17
19
|
alphaMap?: Texture | null | undefined;
|
|
18
20
|
fog?: boolean | undefined;
|
|
19
21
|
envMap?: Texture | null | undefined;
|
|
22
|
+
envMapRotation?: Euler | undefined;
|
|
20
23
|
combine?: Combine | undefined;
|
|
21
24
|
reflectivity?: number | undefined;
|
|
22
25
|
refractionRatio?: number | undefined;
|
|
@@ -86,6 +89,11 @@ export class MeshBasicMaterial extends Material {
|
|
|
86
89
|
*/
|
|
87
90
|
envMap: Texture | null;
|
|
88
91
|
|
|
92
|
+
/**
|
|
93
|
+
* The rotation of the environment map in radians. Default is `(0,0,0)`.
|
|
94
|
+
*/
|
|
95
|
+
envMapRotation: Euler;
|
|
96
|
+
|
|
89
97
|
/**
|
|
90
98
|
* @default THREE.MultiplyOperation
|
|
91
99
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Combine, NormalMapTypes } from "../constants.js";
|
|
2
2
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
3
|
+
import { Euler } from "../math/Euler.js";
|
|
4
|
+
import { Vector2 } from "../math/Vector2.js";
|
|
3
5
|
import { Texture } from "../textures/Texture.js";
|
|
4
|
-
import { Vector2 } from "../Three.js";
|
|
5
6
|
import { Material, MaterialParameters } from "./Material.js";
|
|
6
7
|
|
|
7
8
|
export interface MeshLambertMaterialParameters extends MaterialParameters {
|
|
@@ -25,6 +26,7 @@ export interface MeshLambertMaterialParameters extends MaterialParameters {
|
|
|
25
26
|
specularMap?: Texture | null | undefined;
|
|
26
27
|
alphaMap?: Texture | null | undefined;
|
|
27
28
|
envMap?: Texture | null | undefined;
|
|
29
|
+
envMapRotation?: Euler | undefined;
|
|
28
30
|
combine?: Combine | undefined;
|
|
29
31
|
reflectivity?: number | undefined;
|
|
30
32
|
refractionRatio?: number | undefined;
|
|
@@ -152,6 +154,11 @@ export class MeshLambertMaterial extends Material {
|
|
|
152
154
|
*/
|
|
153
155
|
envMap: Texture | null;
|
|
154
156
|
|
|
157
|
+
/**
|
|
158
|
+
* The rotation of the environment map in radians. Default is `(0,0,0)`.
|
|
159
|
+
*/
|
|
160
|
+
envMapRotation: Euler;
|
|
161
|
+
|
|
155
162
|
/**
|
|
156
163
|
* @default THREE.MultiplyOperation
|
|
157
164
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Combine, NormalMapTypes } from "../constants.js";
|
|
2
2
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
3
|
+
import { Euler } from "../math/Euler.js";
|
|
3
4
|
import { Vector2 } from "../math/Vector2.js";
|
|
4
5
|
import { Texture } from "../textures/Texture.js";
|
|
5
6
|
import { Material, MaterialParameters } from "./Material.js";
|
|
@@ -29,6 +30,7 @@ export interface MeshPhongMaterialParameters extends MaterialParameters {
|
|
|
29
30
|
specularMap?: Texture | null | undefined;
|
|
30
31
|
alphaMap?: Texture | null | undefined;
|
|
31
32
|
envMap?: Texture | null | undefined;
|
|
33
|
+
envMapRotation?: Euler | undefined;
|
|
32
34
|
combine?: Combine | undefined;
|
|
33
35
|
reflectivity?: number | undefined;
|
|
34
36
|
refractionRatio?: number | undefined;
|
|
@@ -165,6 +167,11 @@ export class MeshPhongMaterial extends Material {
|
|
|
165
167
|
*/
|
|
166
168
|
envMap: Texture | null;
|
|
167
169
|
|
|
170
|
+
/**
|
|
171
|
+
* The rotation of the environment map in radians. Default is `(0,0,0)`.
|
|
172
|
+
*/
|
|
173
|
+
envMapRotation: Euler;
|
|
174
|
+
|
|
168
175
|
/**
|
|
169
176
|
* @default THREE.MultiplyOperation
|
|
170
177
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../constants.js";
|
|
2
2
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
3
|
+
import { Euler } from "../math/Euler.js";
|
|
3
4
|
import { Vector2 } from "../math/Vector2.js";
|
|
4
5
|
import { Texture } from "../textures/Texture.js";
|
|
5
6
|
import { Material, MaterialParameters } from "./Material.js";
|
|
@@ -28,6 +29,7 @@ export interface MeshStandardMaterialParameters extends MaterialParameters {
|
|
|
28
29
|
metalnessMap?: Texture | null | undefined;
|
|
29
30
|
alphaMap?: Texture | null | undefined;
|
|
30
31
|
envMap?: Texture | null | undefined;
|
|
32
|
+
envMapRotation?: Euler | undefined;
|
|
31
33
|
envMapIntensity?: number | undefined;
|
|
32
34
|
wireframe?: boolean | undefined;
|
|
33
35
|
wireframeLinewidth?: number | undefined;
|
|
@@ -170,6 +172,11 @@ export class MeshStandardMaterial extends Material {
|
|
|
170
172
|
*/
|
|
171
173
|
envMap: Texture | null;
|
|
172
174
|
|
|
175
|
+
/**
|
|
176
|
+
* The rotation of the environment map in radians. Default is `(0,0,0)`.
|
|
177
|
+
*/
|
|
178
|
+
envMapRotation: Euler;
|
|
179
|
+
|
|
173
180
|
/**
|
|
174
181
|
* @default 1
|
|
175
182
|
*/
|
|
@@ -6,6 +6,7 @@ import { Box3 } from "../math/Box3.js";
|
|
|
6
6
|
import { Color } from "../math/Color.js";
|
|
7
7
|
import { Matrix4 } from "../math/Matrix4.js";
|
|
8
8
|
import { Sphere } from "../math/Sphere.js";
|
|
9
|
+
import { DataTexture } from "../textures/DataTexture.js";
|
|
9
10
|
import { Mesh } from "./Mesh.js";
|
|
10
11
|
|
|
11
12
|
export interface InstancedMeshEventMap extends Object3DEventMap {
|
|
@@ -83,14 +84,22 @@ export class InstancedMesh<
|
|
|
83
84
|
instanceMatrix: InstancedBufferAttribute;
|
|
84
85
|
|
|
85
86
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
87
|
+
* Represents the morph target weights of all instances. You have to set its {@link .needsUpdate} flag to true if
|
|
88
|
+
* you modify instanced data via {@link .setMorphAt}.
|
|
89
|
+
*/
|
|
90
|
+
morphTexture: DataTexture | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Computes the bounding box of the instanced mesh, and updates the {@link .boundingBox} attribute. The bounding box
|
|
94
|
+
* is not computed by the engine; it must be computed by your app. You may need to recompute the bounding box if an
|
|
95
|
+
* instance is transformed via {@link .setMatrixAt()}.
|
|
88
96
|
*/
|
|
89
97
|
computeBoundingBox(): void;
|
|
90
98
|
|
|
91
99
|
/**
|
|
92
|
-
* Computes bounding sphere of the
|
|
93
|
-
*
|
|
100
|
+
* Computes the bounding sphere of the instanced mesh, and updates the {@link .boundingSphere} attribute. The engine
|
|
101
|
+
* automatically computes the bounding sphere when it is needed, e.g., for ray casting or view frustum culling. You
|
|
102
|
+
* may need to recompute the bounding sphere if an instance is transformed via [page:.setMatrixAt]().
|
|
94
103
|
*/
|
|
95
104
|
computeBoundingSphere(): void;
|
|
96
105
|
|
|
@@ -117,6 +126,13 @@ export class InstancedMesh<
|
|
|
117
126
|
*/
|
|
118
127
|
getMatrixAt(index: number, matrix: Matrix4): void;
|
|
119
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Get the morph target weights of the defined instance.
|
|
131
|
+
* @param index The index of an instance. Values have to be in the range [0, count].
|
|
132
|
+
* @param mesh The {@link .morphTargetInfluences} property of this mesh will be filled with the morph target weights of the defined instance.
|
|
133
|
+
*/
|
|
134
|
+
getMorphAt(index: number, mesh: Mesh): void;
|
|
135
|
+
|
|
120
136
|
/**
|
|
121
137
|
* Sets the given local transformation matrix to the defined instance.
|
|
122
138
|
* @remarks
|
|
@@ -126,6 +142,14 @@ export class InstancedMesh<
|
|
|
126
142
|
*/
|
|
127
143
|
setMatrixAt(index: number, matrix: Matrix4): void;
|
|
128
144
|
|
|
145
|
+
/**
|
|
146
|
+
* Sets the morph target weights to the defined instance. Make sure you set {@link .morphTexture}{@link .needsUpdate}
|
|
147
|
+
* to true after updating all the influences.
|
|
148
|
+
* @param index The index of an instance. Values have to be in the range [0, count].
|
|
149
|
+
* @param mesh A mesh with {@link .morphTargetInfluences} property containing the morph target weights of a single instance.
|
|
150
|
+
*/
|
|
151
|
+
setMorphAt(index: number, mesh: Mesh): void;
|
|
152
|
+
|
|
129
153
|
/**
|
|
130
154
|
* No effect in {@link InstancedMesh}.
|
|
131
155
|
* @ignore
|
|
@@ -117,19 +117,16 @@ export class SkinnedMesh<
|
|
|
117
117
|
bind(skeleton: Skeleton, bindMatrix?: Matrix4): void;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
* Computes the bounding box,
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* instance of SkinnedMesh is animated, this method should be called per frame to compute a correct bounding box.
|
|
120
|
+
* Computes the bounding box of the skinned mesh, and updates the {@link .boundingBox} attribute. The bounding box
|
|
121
|
+
* is not computed by the engine; it must be computed by your app. If the skinned mesh is animated, the bounding box
|
|
122
|
+
* should be recomputed per frame.
|
|
124
123
|
*/
|
|
125
124
|
computeBoundingBox(): void;
|
|
126
125
|
|
|
127
126
|
/**
|
|
128
|
-
* Computes the bounding sphere,
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* an instance of SkinnedMesh is animated, this method should be called per frame to compute a correct bounding
|
|
132
|
-
* sphere.
|
|
127
|
+
* Computes the bounding sphere of the skinned mesh, and updates the {@link .boundingSphere} attribute. The bounding
|
|
128
|
+
* sphere is automatically computed by the engine when it is needed, e.g., for ray casting and view frustum culling.
|
|
129
|
+
* If the skinned mesh is animated, the bounding sphere should be recomputed per frame.
|
|
133
130
|
*/
|
|
134
131
|
computeBoundingSphere(): void;
|
|
135
132
|
|