@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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
3
|
+
import ArrayElementNode from "../utils/ArrayElementNode.js";
|
|
4
|
+
import BufferNode from "./BufferNode.js";
|
|
5
|
+
|
|
6
|
+
declare class UniformsElementNode extends ArrayElementNode {
|
|
7
|
+
constructor(arrayBuffer: Node, indexNode: Node);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default class UniformsNode extends BufferNode {
|
|
11
|
+
array: unknown[];
|
|
12
|
+
elementType: string | null;
|
|
13
|
+
|
|
14
|
+
readonly isArrayBufferNode: true;
|
|
15
|
+
|
|
16
|
+
constructor(value: unknown[], elementType?: string | null);
|
|
17
|
+
|
|
18
|
+
getElementType(): string | null;
|
|
19
|
+
|
|
20
|
+
getElementLength(): number;
|
|
21
|
+
|
|
22
|
+
element(indexNode: number): ShaderNodeObject<UniformsElementNode>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const uniforms: (values: unknown[], nodeType?: string | null) => ShaderNodeObject<UniformsNode>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
2
2
|
import Node from "./Node.js";
|
|
3
|
+
import NodeBuilder from "./NodeBuilder.js";
|
|
3
4
|
import TempNode from "./TempNode.js";
|
|
4
5
|
|
|
5
6
|
export default class AssignNode extends TempNode {
|
|
6
7
|
constructor(targetNode: Node, sourceNode: Node);
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
needsSplitAssign(builder: NodeBuilder): boolean;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
export const assign: (targetNode: NodeRepresentation, sourceNode: NodeRepresentation) => ShaderNodeObject<AssignNode>;
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BufferGeometry,
|
|
3
|
-
Material,
|
|
4
|
-
Object3D,
|
|
5
|
-
Renderer,
|
|
6
|
-
Texture,
|
|
7
|
-
TextureEncoding,
|
|
8
|
-
WebGLRenderTarget,
|
|
9
|
-
} from "../../../../src/Three.js";
|
|
1
|
+
import { BufferGeometry, Material, Object3D, Renderer } from "three";
|
|
10
2
|
import FogNode from "../fog/FogNode.js";
|
|
11
3
|
import LightsNode from "../lighting/LightsNode.js";
|
|
12
4
|
import { AnyObject, NodeShaderStage, NodeTypeOption } from "./constants.js";
|
|
@@ -97,7 +89,6 @@ export default abstract class NodeBuilder {
|
|
|
97
89
|
isMatrix(type: NodeTypeOption): boolean;
|
|
98
90
|
isReference(type: NodeTypeOption): boolean;
|
|
99
91
|
isShaderStage(shaderStage: NodeShaderStage): boolean;
|
|
100
|
-
getTextureEncodingFromMap(map: Texture | WebGLRenderTarget | unknown): TextureEncoding;
|
|
101
92
|
getComponentType(type: NodeTypeOption): NodeTypeOption;
|
|
102
93
|
getVectorType(type: NodeTypeOption): NodeTypeOption;
|
|
103
94
|
getTypeFromLength(length: number): NodeTypeOption;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { Vector2 } from "
|
|
2
|
-
import TextureNode from "../accessors/TextureNode.js";
|
|
1
|
+
import { Vector2 } from "three";
|
|
3
2
|
import Node from "../core/Node.js";
|
|
4
3
|
import TempNode from "../core/TempNode.js";
|
|
5
4
|
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
6
5
|
|
|
7
6
|
export default class AnamorphicNode extends TempNode {
|
|
8
|
-
textureNode:
|
|
7
|
+
textureNode: Node;
|
|
9
8
|
thresholdNode: Node;
|
|
10
9
|
scaleNode: Node;
|
|
11
10
|
samples: number;
|
|
12
11
|
resolution: Vector2;
|
|
13
12
|
|
|
14
|
-
constructor(textureNode:
|
|
13
|
+
constructor(textureNode: Node, thresholdNode: Node, scaleNode: Node, samples: number);
|
|
15
14
|
|
|
16
|
-
getTextureNode():
|
|
15
|
+
getTextureNode(): Node;
|
|
17
16
|
|
|
18
17
|
setSize(width: number, height: number): void;
|
|
19
18
|
}
|
|
20
19
|
|
|
21
20
|
export const anamorphic: (
|
|
22
|
-
node:
|
|
21
|
+
node: Node,
|
|
23
22
|
threshold?: NodeRepresentation,
|
|
24
23
|
scale?: NodeRepresentation,
|
|
25
24
|
samples?: NodeRepresentation,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { NormalMapTypes } from "
|
|
1
|
+
import { NormalMapTypes } from "three";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import TempNode from "../core/TempNode.js";
|
|
4
4
|
import MathNode from "../math/MathNode.js";
|
|
@@ -15,8 +15,6 @@ export default class NormalMapNode extends TempNode {
|
|
|
15
15
|
|
|
16
16
|
export const normalMap: (node: Node, scaleNode?: Node) => ShaderNodeObject<NormalMapNode>;
|
|
17
17
|
|
|
18
|
-
export const TBNViewMatrix: ShaderNodeObject<MathNode>;
|
|
19
|
-
|
|
20
18
|
declare module "../shadernode/ShaderNode.js" {
|
|
21
19
|
interface NodeElements {
|
|
22
20
|
normalMap: typeof normalMap;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, RenderTarget, Scene, Texture } from "
|
|
1
|
+
import { Camera, RenderTarget, Scene, Texture } from "three";
|
|
2
2
|
import TextureNode from "../accessors/TextureNode.js";
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
4
|
import TempNode from "../core/TempNode.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import Node from "../core/Node.js";
|
|
2
|
+
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
3
|
+
import ViewportTextureNode from "./ViewportTextureNode.js";
|
|
4
|
+
|
|
5
|
+
export default class ViewportDepthTextureNode extends ViewportTextureNode {
|
|
6
|
+
constructor(uvNode?: Node, levelNode?: Node | null);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const viewportDepthTexture: (
|
|
10
|
+
uvNode?: NodeRepresentation,
|
|
11
|
+
levelNode?: NodeRepresentation,
|
|
12
|
+
) => ShaderNodeObject<ViewportDepthTextureNode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Color, Vector2, Vector3, Vector4 } from "
|
|
1
|
+
import { Color, Vector2, Vector3, Vector4 } from "three";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
3
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
4
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import NodeMaterial from "./NodeMaterial.js";
|
|
1
|
+
import { Color, LineBasicMaterialParameters, Texture } from "three";
|
|
2
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
|
+
|
|
4
|
+
export interface LineBasicNodeMaterialParameters extends NodeMaterialParameters, LineBasicMaterialParameters {
|
|
5
|
+
}
|
|
3
6
|
|
|
4
7
|
export default class LineBasicNodeMaterial extends NodeMaterial {
|
|
5
8
|
readonly isLineBasicNodeMaterial: true;
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
// Properties from LineBasicMaterial
|
|
11
|
+
readonly isLineBasicMaterial: true;
|
|
12
|
+
color: Color;
|
|
13
|
+
linecap: string;
|
|
14
|
+
linejoin: string;
|
|
15
|
+
map: Texture | null;
|
|
16
|
+
|
|
17
|
+
constructor(parameters?: LineBasicNodeMaterialParameters);
|
|
8
18
|
}
|
|
@@ -1,8 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import NodeMaterial from "./NodeMaterial.js";
|
|
1
|
+
import { Color, Combine, MeshBasicMaterialParameters, Texture } from "three";
|
|
2
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
|
+
|
|
4
|
+
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshBasicMaterialParameters {
|
|
5
|
+
}
|
|
3
6
|
|
|
4
7
|
export default class MeshBasicNodeMaterial extends NodeMaterial {
|
|
5
8
|
readonly isMeshBasicNodeMaterial: true;
|
|
6
9
|
|
|
7
|
-
|
|
10
|
+
// Properties from MeshBasicMaterial
|
|
11
|
+
readonly isMeshBasicMaterial: true;
|
|
12
|
+
color: Color;
|
|
13
|
+
map: Texture | null;
|
|
14
|
+
lightMap: Texture | null;
|
|
15
|
+
lightMapIntensity: number;
|
|
16
|
+
aoMap: Texture | null;
|
|
17
|
+
aoMapIntensity: number;
|
|
18
|
+
specularMap: Texture | null;
|
|
19
|
+
alphaMap: Texture | null;
|
|
20
|
+
envMap: Texture | null;
|
|
21
|
+
combine: Combine;
|
|
22
|
+
reflectivity: number;
|
|
23
|
+
refractionRatio: number;
|
|
24
|
+
wireframeLinecap: string;
|
|
25
|
+
wireframeLinejoin: string;
|
|
26
|
+
|
|
27
|
+
constructor(parameters?: MeshBasicNodeMaterialParameters);
|
|
8
28
|
}
|
|
@@ -1,12 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color, Combine, MeshPhongMaterialParameters, NormalMapTypes, Texture, Vector2 } from "three";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import
|
|
3
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
|
+
|
|
6
|
+
export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, MeshPhongMaterialParameters {
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
export default class MeshPhongNodeMaterial extends NodeMaterial {
|
|
6
10
|
readonly isMeshPhongNodeMaterial: true;
|
|
7
11
|
|
|
8
|
-
shininessNode: Node | null;
|
|
9
|
-
specularNode: Node | null;
|
|
12
|
+
shininessNode: ShaderNodeObject<Node> | null;
|
|
13
|
+
specularNode: ShaderNodeObject<Node> | null;
|
|
14
|
+
|
|
15
|
+
// Properties from MeshPhongMaterial
|
|
16
|
+
readonly isMeshPhongMaterial: true;
|
|
17
|
+
color: Color;
|
|
18
|
+
specular: Color;
|
|
19
|
+
shininess: number;
|
|
20
|
+
map: Texture | null;
|
|
21
|
+
lightMap: Texture | null;
|
|
22
|
+
lightMapIntensity: number;
|
|
23
|
+
aoMap: Texture | null;
|
|
24
|
+
aoMapIntensity: number;
|
|
25
|
+
emissive: Color;
|
|
26
|
+
emissiveIntensity: number;
|
|
27
|
+
emissiveMap: Texture | null;
|
|
28
|
+
bumpMap: Texture | null;
|
|
29
|
+
bumpScale: number;
|
|
30
|
+
normalMap: Texture | null;
|
|
31
|
+
normalMapType: NormalMapTypes;
|
|
32
|
+
normalScale: Vector2;
|
|
33
|
+
displacementMap: Texture | null;
|
|
34
|
+
displacementScale: number;
|
|
35
|
+
displacementBias: number;
|
|
36
|
+
specularMap: Texture | null;
|
|
37
|
+
alphaMap: Texture | null;
|
|
38
|
+
envMap: Texture | null;
|
|
39
|
+
combine: Combine;
|
|
40
|
+
reflectivity: number;
|
|
41
|
+
refractionRatio: number;
|
|
42
|
+
wireframeLinecap: string;
|
|
43
|
+
wireframeLinejoin: string;
|
|
44
|
+
flatShading: boolean;
|
|
45
|
+
metal: boolean;
|
|
10
46
|
|
|
11
|
-
constructor(parameters?:
|
|
47
|
+
constructor(parameters?: MeshPhongNodeMaterialParameters);
|
|
12
48
|
}
|
|
@@ -1,31 +1,71 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color, MeshPhysicalMaterialParameters, Texture, Vector2 } from "three";
|
|
2
2
|
|
|
3
3
|
import Node from "../core/Node.js";
|
|
4
|
-
import
|
|
4
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
5
|
+
import MeshStandardNodeMaterial, { MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js";
|
|
6
|
+
|
|
7
|
+
export interface MeshPhysicalNodeMaterialParameters
|
|
8
|
+
extends MeshStandardNodeMaterialParameters, MeshPhysicalMaterialParameters
|
|
9
|
+
{
|
|
10
|
+
}
|
|
5
11
|
|
|
6
12
|
export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial {
|
|
7
13
|
readonly isMeshPhysicalNodeMaterial: true;
|
|
8
14
|
|
|
9
|
-
clearcoatNode: Node | null;
|
|
10
|
-
clearcoatRoughnessNode: Node | null;
|
|
11
|
-
clearcoatNormalNode: Node | null;
|
|
15
|
+
clearcoatNode: ShaderNodeObject<Node> | null;
|
|
16
|
+
clearcoatRoughnessNode: ShaderNodeObject<Node> | null;
|
|
17
|
+
clearcoatNormalNode: ShaderNodeObject<Node> | null;
|
|
18
|
+
|
|
19
|
+
sheenNode: ShaderNodeObject<Node> | null;
|
|
20
|
+
sheenRoughnessNode: ShaderNodeObject<Node> | null;
|
|
12
21
|
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
iridescenceNode: ShaderNodeObject<Node> | null;
|
|
23
|
+
iridescenceIORNode: ShaderNodeObject<Node> | null;
|
|
24
|
+
iridescenceThicknessNode: ShaderNodeObject<Node> | null;
|
|
15
25
|
|
|
16
|
-
|
|
17
|
-
iridescenceIORNode: Node | null;
|
|
18
|
-
iridescenceThicknessNode: Node | null;
|
|
26
|
+
iorNode?: ShaderNodeObject<Node> | null;
|
|
19
27
|
|
|
20
|
-
|
|
28
|
+
specularIntensityNode: ShaderNodeObject<Node> | null;
|
|
29
|
+
specularColorNode: ShaderNodeObject<Node> | null;
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
transmissionNode: ShaderNodeObject<Node> | null;
|
|
32
|
+
thicknessNode: ShaderNodeObject<Node> | null;
|
|
33
|
+
attenuationDistanceNode: ShaderNodeObject<Node> | null;
|
|
34
|
+
attenuationColorNode: ShaderNodeObject<Node> | null;
|
|
24
35
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
// Properties from MeshPhysicalMaterial
|
|
37
|
+
readonly isMeshPhysicalMaterial: true;
|
|
38
|
+
clearcoat: number;
|
|
39
|
+
clearcoatMap: Texture | null;
|
|
40
|
+
clearcoatRoughness: number;
|
|
41
|
+
clearcoatRoughnessMap: Texture | null;
|
|
42
|
+
clearcoatNormalScale: Vector2;
|
|
43
|
+
clearcoatNormalMap: Texture | null;
|
|
44
|
+
reflectivity: number;
|
|
45
|
+
ior: number;
|
|
46
|
+
sheen: number;
|
|
47
|
+
sheenColor: Color;
|
|
48
|
+
sheenColorMap: Texture | null;
|
|
49
|
+
sheenRoughness: number;
|
|
50
|
+
sheenRoughnessMap: Texture | null;
|
|
51
|
+
transmission: number;
|
|
52
|
+
transmissionMap: Texture | null;
|
|
53
|
+
thickness: number;
|
|
54
|
+
thicknessMap: Texture | null;
|
|
55
|
+
attenuationDistance: number;
|
|
56
|
+
attenuationColor: Color;
|
|
57
|
+
specularIntensity: number;
|
|
58
|
+
specularColor: Color;
|
|
59
|
+
specularIntensityMap: Texture | null;
|
|
60
|
+
specularColorMap: Texture | null;
|
|
61
|
+
iridescenceMap: Texture | null;
|
|
62
|
+
iridescenceIOR: number;
|
|
63
|
+
iridescence: number;
|
|
64
|
+
iridescenceThicknessRange: [number, number];
|
|
65
|
+
iridescenceThicknessMap: Texture | null;
|
|
66
|
+
anisotropy?: number;
|
|
67
|
+
anisotropyRotation?: number;
|
|
68
|
+
anisotropyMap?: Texture | null;
|
|
29
69
|
|
|
30
|
-
constructor(parameters?:
|
|
70
|
+
constructor(parameters?: MeshPhysicalNodeMaterialParameters);
|
|
31
71
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ShaderMaterialParameters } from "../../../../src/Three.js";
|
|
2
1
|
import ConstNode from "../core/ConstNode.js";
|
|
3
2
|
import Node from "../core/Node.js";
|
|
4
|
-
import
|
|
3
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
|
+
import MeshPhysicalNodeMaterial, { MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js";
|
|
5
5
|
|
|
6
6
|
export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial {
|
|
7
|
-
thicknessColorNode: Node | null;
|
|
8
|
-
thicknessDistortionNode: ConstNode<number
|
|
9
|
-
thicknessAmbientNode: ConstNode<number
|
|
10
|
-
thicknessAttenuationNode: ConstNode<number
|
|
11
|
-
thicknessPowerNode: ConstNode<number
|
|
12
|
-
thicknessScaleNode: ConstNode<number
|
|
7
|
+
thicknessColorNode: ShaderNodeObject<Node> | null;
|
|
8
|
+
thicknessDistortionNode: ShaderNodeObject<ConstNode<number>>;
|
|
9
|
+
thicknessAmbientNode: ShaderNodeObject<ConstNode<number>>;
|
|
10
|
+
thicknessAttenuationNode: ShaderNodeObject<ConstNode<number>>;
|
|
11
|
+
thicknessPowerNode: ShaderNodeObject<ConstNode<number>>;
|
|
12
|
+
thicknessScaleNode: ShaderNodeObject<ConstNode<number>>;
|
|
13
13
|
|
|
14
|
-
constructor(parameters?:
|
|
14
|
+
constructor(parameters?: MeshPhysicalNodeMaterialParameters);
|
|
15
15
|
|
|
16
16
|
get useSSS(): boolean;
|
|
17
17
|
}
|
|
@@ -1,14 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Color, MeshStandardMaterialParameters, NormalMapTypes, Texture, Vector2 } from "three";
|
|
2
2
|
import Node from "../core/Node.js";
|
|
3
|
-
import
|
|
3
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
|
+
|
|
6
|
+
export interface MeshStandardNodeMaterialParameters extends NodeMaterialParameters, MeshStandardMaterialParameters {
|
|
7
|
+
}
|
|
4
8
|
|
|
5
9
|
export default class MeshStandardNodeMaterial extends NodeMaterial {
|
|
6
10
|
readonly isMeshStandardNodeMaterial: true;
|
|
7
11
|
|
|
8
|
-
emissiveNode: Node | null;
|
|
12
|
+
emissiveNode: ShaderNodeObject<Node> | null;
|
|
13
|
+
|
|
14
|
+
metalnessNode: ShaderNodeObject<Node> | null;
|
|
15
|
+
roughnessNode: ShaderNodeObject<Node> | null;
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
// Properties from MeshStandardMaterial
|
|
18
|
+
readonly isMeshStandardMaterial: true;
|
|
19
|
+
color: Color;
|
|
20
|
+
roughness: number;
|
|
21
|
+
metalness: number;
|
|
22
|
+
map: Texture | null;
|
|
23
|
+
lightMap: Texture | null;
|
|
24
|
+
lightMapIntensity: number;
|
|
25
|
+
aoMap: Texture | null;
|
|
26
|
+
aoMapIntensity: number;
|
|
27
|
+
emissive: Color;
|
|
28
|
+
emissiveIntensity: number;
|
|
29
|
+
emissiveMap: Texture | null;
|
|
30
|
+
bumpMap: Texture | null;
|
|
31
|
+
bumpScale: number;
|
|
32
|
+
normalMap: Texture | null;
|
|
33
|
+
normalMapType: NormalMapTypes;
|
|
34
|
+
normalScale: Vector2;
|
|
35
|
+
displacementMap: Texture | null;
|
|
36
|
+
displacementScale: number;
|
|
37
|
+
displacementBias: number;
|
|
38
|
+
roughnessMap: Texture | null;
|
|
39
|
+
metalnessMap: Texture | null;
|
|
40
|
+
alphaMap: Texture | null;
|
|
41
|
+
envMap: Texture | null;
|
|
42
|
+
envMapIntensity: number;
|
|
43
|
+
wireframeLinecap: string;
|
|
44
|
+
wireframeLinejoin: string;
|
|
45
|
+
flatShading: boolean;
|
|
12
46
|
|
|
13
|
-
constructor(paramters?:
|
|
47
|
+
constructor(paramters?: MeshStandardNodeMaterialParameters);
|
|
14
48
|
}
|
|
@@ -7,12 +7,15 @@ import {
|
|
|
7
7
|
MeshStandardMaterial,
|
|
8
8
|
PointsMaterial,
|
|
9
9
|
ShaderMaterial,
|
|
10
|
+
ShaderMaterialParameters,
|
|
10
11
|
SpriteMaterial,
|
|
11
|
-
} from "
|
|
12
|
+
} from "three";
|
|
13
|
+
import ClippingNode from "../accessors/ClippingNode.js";
|
|
12
14
|
import LightingModel from "../core/LightingModel.js";
|
|
13
15
|
import Node from "../core/Node.js";
|
|
14
16
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
15
17
|
import LightsNode from "../lighting/LightsNode.js";
|
|
18
|
+
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
16
19
|
import LineBasicNodeMaterial from "./LineBasicNodeMaterial.js";
|
|
17
20
|
import MeshBasicNodeMaterial from "./MeshBasicNodeMaterial.js";
|
|
18
21
|
import MeshPhongNodeMaterial from "./MeshPhongNodeMaterial.js";
|
|
@@ -21,6 +24,32 @@ import MeshStandardNodeMaterial from "./MeshStandardNodeMaterial.js";
|
|
|
21
24
|
import PointsNodeMaterial from "./PointsNodeMaterial.js";
|
|
22
25
|
import SpriteNodeMaterial from "./SpriteNodeMaterial.js";
|
|
23
26
|
|
|
27
|
+
export interface NodeMaterialParameters extends ShaderMaterialParameters {
|
|
28
|
+
normals?: boolean | undefined;
|
|
29
|
+
|
|
30
|
+
colorSpaced?: boolean | undefined;
|
|
31
|
+
|
|
32
|
+
lightsNode?: ShaderNodeObject<LightsNode> | null | undefined;
|
|
33
|
+
envNode?: ShaderNodeObject<Node> | null | undefined;
|
|
34
|
+
|
|
35
|
+
colorNode?: ShaderNodeObject<Node> | null | undefined;
|
|
36
|
+
normalNode?: ShaderNodeObject<Node> | null | undefined;
|
|
37
|
+
opacityNode?: ShaderNodeObject<Node> | null | undefined;
|
|
38
|
+
backdropNode?: ShaderNodeObject<Node> | null | undefined;
|
|
39
|
+
backdropAlphaNode?: ShaderNodeObject<Node> | null | undefined;
|
|
40
|
+
alphaTestNode?: ShaderNodeObject<Node> | null | undefined;
|
|
41
|
+
|
|
42
|
+
positionNode?: ShaderNodeObject<Node> | null | undefined;
|
|
43
|
+
|
|
44
|
+
depthNode?: ShaderNodeObject<Node> | null | undefined;
|
|
45
|
+
shadowNode?: ShaderNodeObject<Node> | null | undefined;
|
|
46
|
+
|
|
47
|
+
outputNode?: ShaderNodeObject<Node> | null | undefined;
|
|
48
|
+
|
|
49
|
+
fragmentNode?: ShaderNodeObject<Node> | null | undefined;
|
|
50
|
+
vertexNode?: ShaderNodeObject<Node> | null | undefined;
|
|
51
|
+
}
|
|
52
|
+
|
|
24
53
|
export default class NodeMaterial extends ShaderMaterial {
|
|
25
54
|
readonly isNodeMaterial: true;
|
|
26
55
|
|
|
@@ -28,30 +57,31 @@ export default class NodeMaterial extends ShaderMaterial {
|
|
|
28
57
|
|
|
29
58
|
colorSpaced: boolean;
|
|
30
59
|
|
|
31
|
-
lightsNode: LightsNode | null;
|
|
32
|
-
envNode: Node | null;
|
|
60
|
+
lightsNode: ShaderNodeObject<LightsNode> | null;
|
|
61
|
+
envNode: ShaderNodeObject<Node> | null;
|
|
33
62
|
|
|
34
|
-
colorNode: Node | null;
|
|
35
|
-
normalNode: Node | null;
|
|
36
|
-
opacityNode: Node | null;
|
|
37
|
-
backdropNode: Node | null;
|
|
38
|
-
backdropAlphaNode: Node | null;
|
|
39
|
-
alphaTestNode: Node | null;
|
|
63
|
+
colorNode: ShaderNodeObject<Node> | null;
|
|
64
|
+
normalNode: ShaderNodeObject<Node> | null;
|
|
65
|
+
opacityNode: ShaderNodeObject<Node> | null;
|
|
66
|
+
backdropNode: ShaderNodeObject<Node> | null;
|
|
67
|
+
backdropAlphaNode: ShaderNodeObject<Node> | null;
|
|
68
|
+
alphaTestNode: ShaderNodeObject<Node> | null;
|
|
40
69
|
|
|
41
|
-
positionNode: Node | null;
|
|
70
|
+
positionNode: ShaderNodeObject<Node> | null;
|
|
42
71
|
|
|
43
|
-
depthNode: Node | null;
|
|
44
|
-
shadowNode: Node | null;
|
|
72
|
+
depthNode: ShaderNodeObject<Node> | null;
|
|
73
|
+
shadowNode: ShaderNodeObject<Node> | null;
|
|
45
74
|
|
|
46
|
-
outputNode: Node | null;
|
|
75
|
+
outputNode: ShaderNodeObject<Node> | null;
|
|
47
76
|
|
|
48
|
-
fragmentNode: Node | null;
|
|
49
|
-
vertexNode: Node | null;
|
|
77
|
+
fragmentNode: ShaderNodeObject<Node> | null;
|
|
78
|
+
vertexNode: ShaderNodeObject<Node> | null;
|
|
50
79
|
|
|
51
80
|
constructor();
|
|
52
81
|
|
|
53
82
|
build(builder: NodeBuilder): void;
|
|
54
83
|
setup(builder: NodeBuilder): void;
|
|
84
|
+
setupClipping(builder: NodeBuilder): ShaderNodeObject<ClippingNode> | null;
|
|
55
85
|
setupDepth(builder: NodeBuilder): void;
|
|
56
86
|
setupPosition(builder: NodeBuilder): Node;
|
|
57
87
|
setupDiffuseColor(builder: NodeBuilder): void;
|