@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BufferGeometry, Loader, LoadingManager, Shape, ShapePath, Vector2, Vector3 } from "
|
|
1
|
+
import { BufferGeometry, Loader, LoadingManager, Shape, ShapePath, Vector2, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export interface SVGResultPaths extends ShapePath {
|
|
4
4
|
userData?: Record<string, any> | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, Group, Loader, LoadingManager, Material, Mesh, Texture } from "
|
|
1
|
+
import { Color, Group, Loader, LoadingManager, Material, Mesh, Texture } from "three";
|
|
2
2
|
|
|
3
3
|
export class TDSLoader extends Loader<Group> {
|
|
4
4
|
constructor(manager?: LoadingManager);
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Loader, LoadingManager } from "
|
|
1
|
+
import { Loader, LoadingManager } from "three";
|
|
2
|
+
import { FontData } from "./FontLoader.js";
|
|
2
3
|
|
|
3
|
-
export class TTFLoader extends Loader<
|
|
4
|
-
constructor(manager?: LoadingManager);
|
|
4
|
+
export class TTFLoader extends Loader<FontData> {
|
|
5
5
|
reversed: boolean;
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
constructor(manager?: LoadingManager);
|
|
8
|
+
|
|
9
|
+
parse(arraybuffer: ArrayBuffer): FontData;
|
|
8
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Loader, LoadingManager, Mesh } from "
|
|
1
|
+
import { Group, Loader, LoadingManager, Mesh } from "three";
|
|
2
2
|
|
|
3
3
|
export class USDAParser {
|
|
4
4
|
parse(text: string): object;
|
|
@@ -7,5 +7,5 @@ export class USDAParser {
|
|
|
7
7
|
export class USDZLoader extends Loader<Mesh> {
|
|
8
8
|
constructor(manager?: LoadingManager);
|
|
9
9
|
|
|
10
|
-
parse(buffer: ArrayBuffer | string):
|
|
10
|
+
parse(buffer: ArrayBuffer | string): Group;
|
|
11
11
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Lambert illumination model with Gouraud (per-vertex) shading
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ShaderMaterial, ShaderMaterialParameters } from "
|
|
7
|
+
import { ShaderMaterial, ShaderMaterialParameters } from "three";
|
|
8
8
|
|
|
9
9
|
export class MeshGouraudMaterial extends ShaderMaterial {
|
|
10
10
|
isMeshGouraudMaterial: true;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MeshPhysicalMaterial, MeshPhysicalMaterialParameters, Texture } from "
|
|
1
|
+
import { MeshPhysicalMaterial, MeshPhysicalMaterialParameters, Texture } from "three";
|
|
2
2
|
|
|
3
3
|
export interface MeshPostProcessingMaterialParameters extends MeshPhysicalMaterialParameters {
|
|
4
4
|
aoPassMap?: Texture | null | undefined;
|
three/examples/jsm/math/Lut.d.ts
CHANGED
three/examples/jsm/math/OBB.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnimationAction, AnimationMixer, BufferGeometry, Material, Mesh } from "
|
|
1
|
+
import { AnimationAction, AnimationMixer, BufferGeometry, Material, Mesh } from "three";
|
|
2
2
|
|
|
3
3
|
export class MorphAnimMesh extends Mesh {
|
|
4
4
|
constructor(geometry: BufferGeometry, material: Material);
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* {@link .getDelta()} and {@link .getElapsed()} multiple times per simulation step without getting different values.
|
|
7
7
|
* - The class uses the Page Visibility API to avoid large time delta values when the app is inactive (e.g. tab switched
|
|
8
8
|
* or browser hidden).
|
|
9
|
-
* - It's possible to configure a fixed time delta and a time scale value (similar to Unity's Time interface).
|
|
10
9
|
*
|
|
11
10
|
* @example
|
|
12
11
|
* const timer = new Timer();
|
|
13
12
|
*
|
|
14
|
-
* function animate() {
|
|
13
|
+
* function animate(timestamp) {
|
|
15
14
|
* requestAnimationFrame(animate);
|
|
16
|
-
*
|
|
15
|
+
* // timestamp is optional
|
|
16
|
+
* timer.update(timestamp);
|
|
17
17
|
* const delta = timer.getDelta();
|
|
18
18
|
* // do something with delta
|
|
19
19
|
* renderer.render(scene, camera);
|
|
@@ -24,21 +24,6 @@
|
|
|
24
24
|
export class Timer {
|
|
25
25
|
constructor();
|
|
26
26
|
|
|
27
|
-
/**
|
|
28
|
-
* Disables the usage of a fixed delta time.
|
|
29
|
-
*/
|
|
30
|
-
disableFixedDelta(): this;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Can be used to free all internal resources. Usually called when the timer instance isn't required anymore.
|
|
34
|
-
*/
|
|
35
|
-
dispose(): this;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Enables the usage of a fixed delta time.
|
|
39
|
-
*/
|
|
40
|
-
enableFixedDelta(): this;
|
|
41
|
-
|
|
42
27
|
/**
|
|
43
28
|
* Returns the time delta in seconds.
|
|
44
29
|
*/
|
|
@@ -50,31 +35,46 @@ export class Timer {
|
|
|
50
35
|
getElapsed(): number;
|
|
51
36
|
|
|
52
37
|
/**
|
|
53
|
-
* Returns the
|
|
38
|
+
* Returns the time scale.
|
|
54
39
|
*/
|
|
55
|
-
getFixedDelta(): number;
|
|
56
|
-
|
|
57
40
|
getTimescale(): number;
|
|
58
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Sets a time scale that scales the time delta in {@link .update()}.
|
|
44
|
+
*/
|
|
45
|
+
setTimescale(timescale: number): this;
|
|
46
|
+
|
|
59
47
|
/**
|
|
60
48
|
* Resets the time computation for the current simulation step.
|
|
61
49
|
*/
|
|
62
50
|
reset(): this;
|
|
63
51
|
|
|
64
52
|
/**
|
|
65
|
-
*
|
|
53
|
+
* Can be used to free all internal resources. Usually called when the timer instance isn't required anymore.
|
|
66
54
|
*/
|
|
67
|
-
|
|
55
|
+
dispose(): this;
|
|
68
56
|
|
|
69
57
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @
|
|
58
|
+
* Updates the internal state of the timer. This method should be called once per simulation step and before you
|
|
59
|
+
* perform queries against the timer (e.g. via {@link getDelta()}).
|
|
60
|
+
*
|
|
61
|
+
* @param timescale (optional) The current time in milliseconds. Can be obtained from the {@link https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame | requestAnimationFrame} callback argument. If not provided, the current time will be determined with {@link https://developer.mozilla.org/en-US/docs/Web/API/Performance/now | performance.now}.
|
|
72
62
|
*/
|
|
73
|
-
|
|
63
|
+
update(timestamp?: number): this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* A timer that uses a fixed delta.
|
|
68
|
+
*/
|
|
69
|
+
export class FixedTimer extends Timer {
|
|
70
|
+
/**
|
|
71
|
+
* @param fps The desired fixed delta expressed in frames per second.
|
|
72
|
+
*/
|
|
73
|
+
constructor(fps?: number);
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* Updates the internal state of the timer. This method should be called once per simulation step and before you
|
|
77
|
-
* perform queries against the timer (e.g. via {@link
|
|
77
|
+
* perform queries against the timer (e.g. via {@link getDelta()}).
|
|
78
78
|
*/
|
|
79
|
-
update(): this;
|
|
79
|
+
override update(): this;
|
|
80
80
|
}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BufferGeometry,
|
|
3
|
-
Curve,
|
|
4
|
-
DataTexture,
|
|
5
|
-
InstancedMesh,
|
|
6
|
-
IUniform,
|
|
7
|
-
Material,
|
|
8
|
-
Mesh,
|
|
9
|
-
Vector3,
|
|
10
|
-
} from "../../../src/Three.js";
|
|
1
|
+
import { BufferGeometry, Curve, DataTexture, InstancedMesh, IUniform, Material, Mesh, Vector3 } from "three";
|
|
11
2
|
|
|
12
3
|
export interface SplineUniform {
|
|
13
4
|
spineTexture: IUniform;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
export * from "./core/constants.js";
|
|
3
3
|
|
|
4
4
|
// core
|
|
5
|
-
export { default as ArrayUniformNode } from "./core/ArrayUniformNode.js";
|
|
6
5
|
export { assign, default as AssignNode } from "./core/AssignNode.js";
|
|
7
6
|
export { attribute, default as AttributeNode } from "./core/AttributeNode.js";
|
|
8
7
|
export { bypass, default as BypassNode } from "./core/BypassNode.js";
|
|
@@ -61,6 +60,8 @@ export { NodeUtils };
|
|
|
61
60
|
export {
|
|
62
61
|
abs,
|
|
63
62
|
acos,
|
|
63
|
+
all,
|
|
64
|
+
any,
|
|
64
65
|
asin,
|
|
65
66
|
atan,
|
|
66
67
|
atan2,
|
|
@@ -78,6 +79,7 @@ export {
|
|
|
78
79
|
distance,
|
|
79
80
|
dot,
|
|
80
81
|
EPSILON,
|
|
82
|
+
equals,
|
|
81
83
|
exp,
|
|
82
84
|
exp2,
|
|
83
85
|
faceForward,
|
|
@@ -167,9 +169,9 @@ export { default as ReflectorNode, reflector, ReflectorNodeParameters } from "./
|
|
|
167
169
|
export { default as RemapNode, remap, remapClamp } from "./utils/RemapNode.js";
|
|
168
170
|
export { default as RotateNode, rotate } from "./utils/RotateNode.js";
|
|
169
171
|
export { default as RotateUVNode, rotateUV } from "./utils/RotateUVNode.js";
|
|
170
|
-
export { default as SpecularMIPLevelNode, specularMIPLevel } from "./utils/SpecularMIPLevelNode.js";
|
|
171
172
|
export { default as SplitNode } from "./utils/SplitNode.js";
|
|
172
173
|
export { default as SpriteSheetUVNode, spritesheetUV } from "./utils/SpriteSheetUVNode.js";
|
|
174
|
+
export { default as StorageArrayElementNode } from "./utils/SpriteSheetUVNode.js";
|
|
173
175
|
export {
|
|
174
176
|
default as TimerNode,
|
|
175
177
|
frameId,
|
|
@@ -188,6 +190,8 @@ export {
|
|
|
188
190
|
export * from "./shadernode/ShaderNode.js";
|
|
189
191
|
|
|
190
192
|
// accessors
|
|
193
|
+
export { parallaxDirection, parallaxUV, TBNViewMatrix } from "./accessors/AccessorsUtils.js";
|
|
194
|
+
export { batch, default as BatchNode } from "./accessors/BatchNode.js";
|
|
191
195
|
export {
|
|
192
196
|
bitangentGeometry,
|
|
193
197
|
bitangentLocal,
|
|
@@ -203,7 +207,6 @@ export {
|
|
|
203
207
|
cameraFar,
|
|
204
208
|
cameraLogDepth,
|
|
205
209
|
cameraNear,
|
|
206
|
-
CameraNodeScope,
|
|
207
210
|
cameraNormalMatrix,
|
|
208
211
|
cameraPosition,
|
|
209
212
|
cameraProjectionMatrix,
|
|
@@ -249,7 +252,16 @@ export {
|
|
|
249
252
|
normalWorld,
|
|
250
253
|
transformedNormalView,
|
|
251
254
|
} from "./accessors/NormalNode.js";
|
|
252
|
-
export {
|
|
255
|
+
export {
|
|
256
|
+
default as Object3DNode,
|
|
257
|
+
objectDirection,
|
|
258
|
+
objectNormalMatrix,
|
|
259
|
+
objectPosition,
|
|
260
|
+
objectScale,
|
|
261
|
+
objectViewMatrix,
|
|
262
|
+
objectViewPosition,
|
|
263
|
+
objectWorldMatrix,
|
|
264
|
+
} from "./accessors/Object3DNode.js";
|
|
253
265
|
export { default as PointUVNode, pointUV } from "./accessors/PointUVNode.js";
|
|
254
266
|
export {
|
|
255
267
|
default as PositionNode,
|
|
@@ -261,10 +273,11 @@ export {
|
|
|
261
273
|
positionWorld,
|
|
262
274
|
positionWorldDirection,
|
|
263
275
|
} from "./accessors/PositionNode.js";
|
|
264
|
-
export { default as ReferenceNode, reference } from "./accessors/ReferenceNode.js";
|
|
276
|
+
export { default as ReferenceNode, reference, referenceBuffer } from "./accessors/ReferenceNode.js";
|
|
265
277
|
export { default as ReflectVectorNode, reflectVector } from "./accessors/ReflectVectorNode.js";
|
|
278
|
+
export { default as RendererReferenceNode, rendererReference } from "./accessors/RendererReferenceNode.js";
|
|
266
279
|
export { default as SkinningNode, skinning } from "./accessors/SkinningNode.js";
|
|
267
|
-
export { default as StorageBufferNode, storage } from "./accessors/StorageBufferNode.js";
|
|
280
|
+
export { default as StorageBufferNode, storage, storageObject } from "./accessors/StorageBufferNode.js";
|
|
268
281
|
export {
|
|
269
282
|
default as TangentNode,
|
|
270
283
|
tangentGeometry,
|
|
@@ -277,6 +290,7 @@ export {
|
|
|
277
290
|
} from "./accessors/TangentNode.js";
|
|
278
291
|
export { default as TextureBicubicNode, textureBicubic } from "./accessors/TextureBicubicNode.js";
|
|
279
292
|
export { default as TextureNode, sampler, texture } from "./accessors/TextureNode.js";
|
|
293
|
+
export { default as UniformsNode, uniforms } from "./accessors/UniformsNode.js";
|
|
280
294
|
export { default as UserDataNode, userData } from "./accessors/UserDataNode.js";
|
|
281
295
|
export { default as UVNode, uv } from "./accessors/UVNode.js";
|
|
282
296
|
export { default as VertexColorNode, vertexColor } from "./accessors/VertexColorNode.js";
|
|
@@ -305,7 +319,7 @@ export {
|
|
|
305
319
|
} from "./display/ColorSpaceNode.js";
|
|
306
320
|
export { default as FrontFacingNode, faceDirection, frontFacing } from "./display/FrontFacingNode.js";
|
|
307
321
|
export { default as GaussianBlurNode, gaussianBlur } from "./display/GaussianBlurNode.js";
|
|
308
|
-
export { default as NormalMapNode, normalMap
|
|
322
|
+
export { default as NormalMapNode, normalMap } from "./display/NormalMapNode.js";
|
|
309
323
|
export { default as PosterizeNode, posterize } from "./display/PosterizeNode.js";
|
|
310
324
|
export { default as ToneMappingNode, toneMapping } from "./display/ToneMappingNode.js";
|
|
311
325
|
export {
|
|
@@ -319,6 +333,7 @@ export {
|
|
|
319
333
|
viewZToOrthographicDepth,
|
|
320
334
|
viewZToPerspectiveDepth,
|
|
321
335
|
} from "./display/ViewportDepthNode.js";
|
|
336
|
+
export { default as ViewportDepthTextureNode, viewportDepthTexture } from "./display/ViewportDepthTextureNode.js";
|
|
322
337
|
export {
|
|
323
338
|
default as ViewportNode,
|
|
324
339
|
viewportBottomLeft,
|
|
@@ -361,6 +376,9 @@ export { default as LightsNode, lights } from "./lighting/LightsNode.js";
|
|
|
361
376
|
export { default as PointLightNode } from "./lighting/PointLightNode.js";
|
|
362
377
|
export { default as SpotLightNode } from "./lighting/SpotLightNode.js";
|
|
363
378
|
|
|
379
|
+
// pmrem
|
|
380
|
+
export { default as PMREMNode, pmremTexture } from "./pmrem/PMREMNode.js";
|
|
381
|
+
|
|
364
382
|
// procedural
|
|
365
383
|
export { checker, default as CheckerNode } from "./procedural/CheckerNode.js";
|
|
366
384
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
3
|
+
|
|
4
|
+
export const TBNViewMatrix: ShaderNodeObject<Node>;
|
|
5
|
+
|
|
6
|
+
export const parallaxDirection: ShaderNodeObject<Node>;
|
|
7
|
+
export const parallaxUV: (uv: ShaderNodeObject<Node>, scale: NodeRepresentation) => ShaderNodeObject<Node>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BatchedMesh } from "three";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
|
+
|
|
5
|
+
export default class BatchNode extends Node {
|
|
6
|
+
batchMesh: BatchedMesh;
|
|
7
|
+
|
|
8
|
+
instanceColorNode: Node | null;
|
|
9
|
+
batchingIdNode: Node | null;
|
|
10
|
+
|
|
11
|
+
constructor(batchMesh: BatchedMesh);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export const batch: (batchMesh: BatchedMesh) => ShaderNodeObject<BatchNode>;
|
|
@@ -2,13 +2,17 @@ import { NodeTypeOption } from "../core/constants.js";
|
|
|
2
2
|
import UniformNode from "../core/UniformNode.js";
|
|
3
3
|
import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
4
|
|
|
5
|
-
export default class BufferNode extends UniformNode<ArrayLike<number
|
|
5
|
+
export default class BufferNode extends UniformNode<ArrayLike<number> | null> {
|
|
6
6
|
isBufferNode: true;
|
|
7
7
|
|
|
8
8
|
bufferType: string;
|
|
9
9
|
bufferCount: number;
|
|
10
10
|
|
|
11
|
-
constructor(value: ArrayLike<number
|
|
11
|
+
constructor(value: ArrayLike<number> | null, bufferType: NodeTypeOption, bufferCount?: number);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export const buffer: (
|
|
14
|
+
export const buffer: (
|
|
15
|
+
value: ArrayLike<number> | null,
|
|
16
|
+
nodeOrType: NodeOrType,
|
|
17
|
+
count: number,
|
|
18
|
+
) => ShaderNodeObject<BufferNode>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
2
|
-
import Object3DNode
|
|
3
|
-
|
|
4
|
-
export type CameraNodeScope =
|
|
5
|
-
| Object3DNodeScope
|
|
6
|
-
| typeof CameraNode.PROJECTION_MATRIX
|
|
7
|
-
| typeof CameraNode.PROJECTION_MATRIX_INVERSE
|
|
8
|
-
| typeof CameraNode.NEAR
|
|
9
|
-
| typeof CameraNode.FAR
|
|
10
|
-
| typeof CameraNode.LOG_DEPTH;
|
|
2
|
+
import Object3DNode from "./Object3DNode.js";
|
|
11
3
|
|
|
12
4
|
export default class CameraNode extends Object3DNode {
|
|
13
5
|
constructor(scope?: string);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
3
|
+
|
|
4
|
+
export type ClippingNodeScope = typeof ClippingNode.ALPHA_TO_COVERAGE | typeof ClippingNode.DEFAULT;
|
|
5
|
+
|
|
6
|
+
export default class ClippingNode extends Node {
|
|
7
|
+
scope: ClippingNodeScope;
|
|
8
|
+
|
|
9
|
+
constructor(scope?: ClippingNodeScope);
|
|
10
|
+
|
|
11
|
+
static ALPHA_TO_COVERAGE: "alphaToCoverage";
|
|
12
|
+
static DEFAULT: "default";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const clipping: () => ShaderNodeObject<ClippingNode>;
|
|
16
|
+
export const clippingAlpha: () => ShaderNodeObject<ClippingNode>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { InstancedMesh } from "
|
|
1
|
+
import { InstancedMesh } from "three";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
4
|
|
|
5
5
|
export default class InstanceNode extends Node {
|
|
6
6
|
instanceMesh: InstancedMesh;
|
|
7
|
-
instanceMatrixNode: Node;
|
|
7
|
+
instanceMatrixNode: Node | null;
|
|
8
|
+
instanceColorNode: Node | null;
|
|
8
9
|
|
|
9
10
|
constructor(instanceMesh: InstancedMesh);
|
|
10
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
2
|
-
import Object3DNode
|
|
2
|
+
import Object3DNode from "./Object3DNode.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Similar to {@link Object3DNode} but the object comes from {@link NodeFrame}
|
|
6
6
|
*/
|
|
7
7
|
export default class ModelNode extends Object3DNode {
|
|
8
|
-
constructor(scope?:
|
|
8
|
+
constructor(scope?: string);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export const modelDirection: ShaderNodeObject<ModelNode>;
|