@types/three 0.161.2 → 0.163.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 +2 -2
- 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 +9 -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 +19 -5
- 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 -2
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -10
- 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 +6 -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 +6 -4
- 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 +25 -7
- three/examples/jsm/nodes/accessors/AccessorsUtils.d.ts +7 -0
- three/examples/jsm/nodes/accessors/BatchNode.d.ts +14 -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 +3 -2
- 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/RendererReferenceNode.d.ts +16 -0
- 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 +9 -2
- 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 +9 -3
- 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 +2 -2
- 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 +3 -1
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +13 -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/fog/FogNode.d.ts +10 -5
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -5
- 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/Materials.d.ts +1 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +23 -3
- three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.d.ts +23 -0
- 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 +48 -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/pmrem/PMREMNode.d.ts +20 -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 +5 -8
- 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 +4 -8
- three/examples/jsm/renderers/common/PostProcessing.d.ts +3 -1
- three/examples/jsm/renderers/common/Renderer.d.ts +30 -16
- three/examples/jsm/renderers/common/StorageTexture.d.ts +1 -1
- three/examples/jsm/renderers/common/extras/PMREMGenerator.d.ts +8 -0
- three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -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 +1 -3
- three/package.json +5 -4
- three/src/Three.Legacy.d.ts +20 -1
- three/src/Three.d.ts +0 -2
- three/src/cameras/Camera.d.ts +3 -0
- three/src/constants.d.ts +13 -55
- 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/Material.d.ts +46 -23
- 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/materials/ShaderMaterial.d.ts +2 -17
- three/src/objects/BatchedMesh.d.ts +0 -3
- three/src/objects/InstancedMesh.d.ts +29 -5
- three/src/objects/SkinnedMesh.d.ts +6 -11
- 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 +5 -20
- three/src/renderers/shaders/UniformsLib.d.ts +1 -0
- three/src/renderers/webgl/WebGLAttributes.d.ts +1 -2
- three/src/renderers/webgl/WebGLBindingStates.d.ts +1 -8
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -3
- three/src/renderers/webgl/WebGLCapabilities.d.ts +8 -6
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +2 -1
- three/src/renderers/webgl/WebGLExtensions.d.ts +1 -3
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +1 -1
- three/src/renderers/webgl/WebGLLights.d.ts +1 -2
- three/src/renderers/webgl/WebGLPrograms.d.ts +1 -9
- three/src/renderers/webgl/WebGLState.d.ts +1 -3
- three/src/renderers/webgl/WebGLUtils.d.ts +7 -3
- three/src/scenes/Scene.d.ts +20 -1
- three/src/textures/Data3DTexture.d.ts +0 -1
- three/src/textures/DataArrayTexture.d.ts +0 -1
- three/src/textures/DepthTexture.d.ts +0 -3
- three/src/textures/Texture.d.ts +13 -22
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -12
- three/src/renderers/WebGL1Renderer.d.ts +0 -6
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -15
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";
|
|
@@ -334,6 +336,7 @@ export const HalfFloatType: 1016;
|
|
|
334
336
|
export const UnsignedShort4444Type: 1017;
|
|
335
337
|
export const UnsignedShort5551Type: 1018;
|
|
336
338
|
export const UnsignedInt248Type: 1020;
|
|
339
|
+
export const UnsignedInt5999Type: 35902;
|
|
337
340
|
|
|
338
341
|
export type AttributeGPUType = typeof FloatType | typeof IntType;
|
|
339
342
|
|
|
@@ -354,7 +357,8 @@ export type TextureDataType =
|
|
|
354
357
|
| typeof HalfFloatType
|
|
355
358
|
| typeof UnsignedShort4444Type
|
|
356
359
|
| typeof UnsignedShort5551Type
|
|
357
|
-
| typeof UnsignedInt248Type
|
|
360
|
+
| typeof UnsignedInt248Type
|
|
361
|
+
| typeof UnsignedInt5999Type;
|
|
358
362
|
|
|
359
363
|
///////////////////////////////////////////////////////////////////////////////
|
|
360
364
|
// Pixel formats
|
|
@@ -362,7 +366,9 @@ export type TextureDataType =
|
|
|
362
366
|
/** {@link AlphaFormat} discards the red, green and blue components and reads just the alpha component. */
|
|
363
367
|
export const AlphaFormat: 1021;
|
|
364
368
|
|
|
365
|
-
|
|
369
|
+
export const RGBFormat: 1022;
|
|
370
|
+
|
|
371
|
+
/** {@link RGBAFormat} is the default and reads the red, green, blue and alpha components. */
|
|
366
372
|
export const RGBAFormat: 1023;
|
|
367
373
|
|
|
368
374
|
/**
|
|
@@ -393,27 +399,23 @@ export const DepthStencilFormat: 1027;
|
|
|
393
399
|
|
|
394
400
|
/**
|
|
395
401
|
* {@link RedFormat} discards the green and blue components and reads just the red component.
|
|
396
|
-
* @remarks Can only be used with a WebGL 2 rendering context.
|
|
397
402
|
*/
|
|
398
403
|
export const RedFormat: 1028;
|
|
399
404
|
|
|
400
405
|
/**
|
|
401
406
|
* {@link RedIntegerFormat} discards the green and blue components and reads just the red component.
|
|
402
407
|
* The texels are read as integers instead of floating point.
|
|
403
|
-
* @remarks Can only be used with a WebGL 2 rendering context.
|
|
404
408
|
*/
|
|
405
409
|
export const RedIntegerFormat: 1029;
|
|
406
410
|
|
|
407
411
|
/**
|
|
408
412
|
* {@link RGFormat} discards the alpha, and blue components and reads the red, and green components.
|
|
409
|
-
* @remarks Can only be used with a WebGL 2 rendering context.
|
|
410
413
|
*/
|
|
411
414
|
export const RGFormat: 1030;
|
|
412
415
|
|
|
413
416
|
/**
|
|
414
417
|
* {@link RGIntegerFormat} discards the alpha, and blue components and reads the red, and green components.
|
|
415
418
|
* The texels are read as integers instead of floating point.
|
|
416
|
-
* @remarks Can only be used with a WebGL 2 rendering context.
|
|
417
419
|
*/
|
|
418
420
|
export const RGIntegerFormat: 1031;
|
|
419
421
|
|
|
@@ -423,35 +425,15 @@ export const RGIntegerFormat: 1031;
|
|
|
423
425
|
*/
|
|
424
426
|
export const RGBAIntegerFormat: 1033;
|
|
425
427
|
|
|
426
|
-
export const _SRGBAFormat: 1035; // fallback for WebGL 1
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Texture Pixel Formats Modes. Compatible only with {@link WebGLRenderingContext | WebGL 1 Rendering Context}.
|
|
430
|
-
* @remarks Note that the texture must have the correct {@link THREE.Texture.type} set, as described in {@link TextureDataType}.
|
|
431
|
-
* @see {@link WebGLRenderingContext.texImage2D} for details.
|
|
432
|
-
* @see {@link WebGL2PixelFormat} and {@link PixelFormat}
|
|
433
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
434
|
-
*/
|
|
435
|
-
export type WebGL1PixelFormat =
|
|
436
|
-
| typeof AlphaFormat
|
|
437
|
-
| typeof LuminanceFormat
|
|
438
|
-
| typeof LuminanceAlphaFormat
|
|
439
|
-
| typeof DepthFormat
|
|
440
|
-
| typeof DepthStencilFormat
|
|
441
|
-
| typeof RedFormat
|
|
442
|
-
| typeof RedIntegerFormat
|
|
443
|
-
| typeof RGFormat
|
|
444
|
-
| typeof _SRGBAFormat;
|
|
445
|
-
|
|
446
428
|
/**
|
|
447
|
-
* Texture Pixel Formats Modes.
|
|
429
|
+
* All Texture Pixel Formats Modes.
|
|
448
430
|
* @remarks Note that the texture must have the correct {@link THREE.Texture.type} set, as described in {@link TextureDataType}.
|
|
449
431
|
* @see {@link WebGLRenderingContext.texImage2D} for details.
|
|
450
|
-
* @see {@link WebGL2PixelFormat} and {@link PixelFormat}
|
|
451
432
|
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
452
433
|
*/
|
|
453
|
-
export type
|
|
434
|
+
export type PixelFormat =
|
|
454
435
|
| typeof AlphaFormat
|
|
436
|
+
| typeof RGBFormat
|
|
455
437
|
| typeof RGBAFormat
|
|
456
438
|
| typeof LuminanceFormat
|
|
457
439
|
| typeof LuminanceAlphaFormat
|
|
@@ -461,17 +443,7 @@ export type WebGL2PixelFormat =
|
|
|
461
443
|
| typeof RedIntegerFormat
|
|
462
444
|
| typeof RGFormat
|
|
463
445
|
| typeof RGIntegerFormat
|
|
464
|
-
| typeof RGBAIntegerFormat
|
|
465
|
-
| typeof _SRGBAFormat;
|
|
466
|
-
|
|
467
|
-
/**
|
|
468
|
-
* All Texture Pixel Formats Modes.
|
|
469
|
-
* @remarks Note that the texture must have the correct {@link THREE.Texture.type} set, as described in {@link TextureDataType}.
|
|
470
|
-
* @see {@link WebGLRenderingContext.texImage2D} for details.
|
|
471
|
-
* @see {@link WebGL1PixelFormat} and {@link WebGL2PixelFormat}
|
|
472
|
-
* @see {@link https://threejs.org/docs/index.html#api/en/constants/Textures | Texture Constants}
|
|
473
|
-
*/
|
|
474
|
-
export type PixelFormat = WebGL1PixelFormat | WebGL2PixelFormat;
|
|
446
|
+
| typeof RGBAIntegerFormat;
|
|
475
447
|
|
|
476
448
|
/**
|
|
477
449
|
* All Texture Pixel Formats Modes for {@link THREE.DepthTexture}.
|
|
@@ -696,20 +668,6 @@ export const TriangleStripDrawMode: 1;
|
|
|
696
668
|
export const TriangleFanDrawMode: 2;
|
|
697
669
|
export type TrianglesDrawModes = typeof TrianglesDrawMode | typeof TriangleStripDrawMode | typeof TriangleFanDrawMode;
|
|
698
670
|
|
|
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
671
|
///////////////////////////////////////////////////////////////////////////////
|
|
714
672
|
// Depth packing strategies
|
|
715
673
|
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
+
import { Camera } from "../cameras/Camera.js";
|
|
1
2
|
import {
|
|
2
3
|
Blending,
|
|
3
4
|
BlendingDstFactor,
|
|
@@ -9,11 +10,15 @@ import {
|
|
|
9
10
|
StencilFunc,
|
|
10
11
|
StencilOp,
|
|
11
12
|
} from "../constants.js";
|
|
13
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
12
14
|
import { EventDispatcher } from "../core/EventDispatcher.js";
|
|
15
|
+
import { Object3D } from "../core/Object3D.js";
|
|
13
16
|
import { Color, ColorRepresentation } from "../math/Color.js";
|
|
14
17
|
import { Plane } from "../math/Plane.js";
|
|
18
|
+
import { Group } from "../objects/Group.js";
|
|
15
19
|
import { WebGLProgramParametersWithUniforms } from "../renderers/webgl/WebGLPrograms.js";
|
|
16
20
|
import { WebGLRenderer } from "../renderers/WebGLRenderer.js";
|
|
21
|
+
import { Scene } from "../scenes/Scene.js";
|
|
17
22
|
|
|
18
23
|
export interface MaterialParameters {
|
|
19
24
|
alphaHash?: boolean | undefined;
|
|
@@ -84,12 +89,6 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
84
89
|
*/
|
|
85
90
|
alphaHash: boolean;
|
|
86
91
|
|
|
87
|
-
/**
|
|
88
|
-
* Sets the alpha value to be used when running an alpha test. Default is 0.
|
|
89
|
-
* @default 0
|
|
90
|
-
*/
|
|
91
|
-
alphaTest: number;
|
|
92
|
-
|
|
93
92
|
/**
|
|
94
93
|
* Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts (meaning when the renderer was
|
|
95
94
|
* created with *antialias* parameter set to `true`). Enabling this will smooth aliasing on clip plane edges and
|
|
@@ -271,13 +270,6 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
271
270
|
*/
|
|
272
271
|
name: string;
|
|
273
272
|
|
|
274
|
-
/**
|
|
275
|
-
* Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL.
|
|
276
|
-
* This property is automatically set to true when instancing a new material.
|
|
277
|
-
* @default false
|
|
278
|
-
*/
|
|
279
|
-
needsUpdate: boolean;
|
|
280
|
-
|
|
281
273
|
/**
|
|
282
274
|
* Opacity. Default is 1.
|
|
283
275
|
* @default 1
|
|
@@ -342,7 +334,8 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
342
334
|
|
|
343
335
|
/**
|
|
344
336
|
* Defines whether this material is tone mapped according to the renderer's
|
|
345
|
-
* {@link WebGLRenderer.toneMapping toneMapping} setting. It is ignored when rendering to a render target
|
|
337
|
+
* {@link WebGLRenderer.toneMapping toneMapping} setting. It is ignored when rendering to a render target or using
|
|
338
|
+
* post processing.
|
|
346
339
|
* @default true
|
|
347
340
|
*/
|
|
348
341
|
toneMapped: boolean;
|
|
@@ -390,20 +383,27 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
390
383
|
version: number;
|
|
391
384
|
|
|
392
385
|
/**
|
|
393
|
-
*
|
|
386
|
+
* Gets the alpha value to be used when running an alpha test. Default is 0.
|
|
387
|
+
* @default 0
|
|
394
388
|
*/
|
|
395
|
-
|
|
389
|
+
get alphaTest(): number;
|
|
396
390
|
|
|
397
391
|
/**
|
|
398
|
-
*
|
|
399
|
-
* @
|
|
392
|
+
* Sets the alpha value to be used when running an alpha test. Default is 0.
|
|
393
|
+
* @default 0
|
|
400
394
|
*/
|
|
401
|
-
|
|
395
|
+
set alphaTest(value: number);
|
|
402
396
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
397
|
+
onBuild(object: Object3D, parameters: WebGLProgramParametersWithUniforms, renderer: WebGLRenderer): void;
|
|
398
|
+
|
|
399
|
+
onBeforeRender(
|
|
400
|
+
renderer: WebGLRenderer,
|
|
401
|
+
scene: Scene,
|
|
402
|
+
camera: Camera,
|
|
403
|
+
geometry: BufferGeometry,
|
|
404
|
+
object: Object3D,
|
|
405
|
+
group: Group,
|
|
406
|
+
): void;
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* An optional callback that is executed immediately before the shader program is compiled.
|
|
@@ -430,4 +430,27 @@ export class Material extends EventDispatcher<{ dispose: {} }> {
|
|
|
430
430
|
* @param meta Object containing metadata such as textures or images for the material.
|
|
431
431
|
*/
|
|
432
432
|
toJSON(meta?: any): any;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Return a new material with the same parameters as this material.
|
|
436
|
+
*/
|
|
437
|
+
clone(): this;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Copy the parameters from the passed material into this material.
|
|
441
|
+
* @param material
|
|
442
|
+
*/
|
|
443
|
+
copy(material: Material): this;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* This disposes the material. Textures of a material don't get disposed. These needs to be disposed by {@link Texture}.
|
|
447
|
+
*/
|
|
448
|
+
dispose(): void;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL.
|
|
452
|
+
* This property is automatically set to true when instancing a new material.
|
|
453
|
+
* @default false
|
|
454
|
+
*/
|
|
455
|
+
set needsUpdate(value: boolean);
|
|
433
456
|
}
|
|
@@ -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
|
*/
|
|
@@ -16,10 +16,8 @@ export interface ShaderMaterialParameters extends MaterialParameters {
|
|
|
16
16
|
fog?: boolean | undefined;
|
|
17
17
|
extensions?:
|
|
18
18
|
| {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
drawBuffers?: boolean | undefined;
|
|
22
|
-
shaderTextureLOD?: boolean | undefined;
|
|
19
|
+
clipCullDistance?: boolean | undefined;
|
|
20
|
+
multiDraw?: boolean | undefined;
|
|
23
21
|
}
|
|
24
22
|
| undefined;
|
|
25
23
|
glslVersion?: GLSLVersion | undefined;
|
|
@@ -86,26 +84,13 @@ export class ShaderMaterial extends Material {
|
|
|
86
84
|
*/
|
|
87
85
|
clipping: boolean;
|
|
88
86
|
|
|
89
|
-
/**
|
|
90
|
-
* @deprecated Use {@link ShaderMaterial#extensions.derivatives extensions.derivatives} instead.
|
|
91
|
-
*/
|
|
92
|
-
derivatives: any;
|
|
93
|
-
|
|
94
87
|
/**
|
|
95
88
|
* @default {
|
|
96
|
-
* derivatives: false,
|
|
97
|
-
* fragDepth: false,
|
|
98
|
-
* drawBuffers: false,
|
|
99
|
-
* shaderTextureLOD: false,
|
|
100
89
|
* clipCullDistance: false,
|
|
101
90
|
* multiDraw: false
|
|
102
91
|
* }
|
|
103
92
|
*/
|
|
104
93
|
extensions: {
|
|
105
|
-
derivatives: boolean;
|
|
106
|
-
fragDepth: boolean;
|
|
107
|
-
drawBuffers: boolean;
|
|
108
|
-
shaderTextureLOD: boolean;
|
|
109
94
|
clipCullDistance: boolean;
|
|
110
95
|
multiDraw: boolean;
|
|
111
96
|
};
|
|
@@ -156,9 +156,6 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
|
|
|
156
156
|
*/
|
|
157
157
|
setGeometryAt(index: number, geometry: BufferGeometry): number;
|
|
158
158
|
|
|
159
|
-
/**
|
|
160
|
-
* Marks the geometry at the given index as deleted and to not be rendered anymore.
|
|
161
|
-
*/
|
|
162
159
|
deleteGeometry(index: number): this;
|
|
163
160
|
|
|
164
161
|
getBoundingBoxAt(index: number, target: Box3): Box3 | null;
|