@types/three 0.165.0 → 0.167.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 +1 -1
- three/build/three.webgpu.d.ts +1 -0
- three/build/three.webgpu.min.d.ts +1 -0
- three/examples/jsm/Addons.d.ts +1 -1
- three/examples/jsm/animation/MMDPhysics.d.ts +4 -4
- three/examples/jsm/csm/CSM.d.ts +3 -4
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +6 -0
- three/examples/jsm/geometries/TeapotGeometry.d.ts +24 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +8 -6
- three/examples/jsm/lights/RectAreaLightTexturesLib.d.ts +7 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +4 -2
- three/examples/jsm/lines/LineMaterial.d.ts +2 -4
- three/examples/jsm/lines/webgpu/Line2.d.ts +14 -0
- three/examples/jsm/lines/webgpu/LineSegments2.d.ts +15 -0
- three/examples/jsm/loaders/DDSLoader.d.ts +8 -2
- three/examples/jsm/loaders/GLTFLoader.d.ts +3 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -2
- three/examples/jsm/loaders/KTXLoader.d.ts +8 -2
- three/examples/jsm/loaders/LUTImageLoader.d.ts +18 -0
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -2
- three/examples/jsm/loaders/PVRLoader.d.ts +2 -2
- three/examples/jsm/loaders/UltraHDRLoader.d.ts +21 -0
- three/package.json +6 -5
- three/src/Three.WebGPU.d.ts +184 -0
- three/src/Three.d.ts +26 -91
- three/src/animation/AnimationClip.d.ts +12 -4
- three/src/animation/AnimationUtils.d.ts +32 -7
- three/src/animation/KeyframeTrack.d.ts +9 -1
- three/src/animation/PropertyBinding.d.ts +12 -12
- three/src/cameras/OrthographicCamera.d.ts +27 -0
- three/src/cameras/PerspectiveCamera.d.ts +31 -0
- three/src/constants.d.ts +13 -1
- three/src/core/BufferAttribute.d.ts +11 -6
- three/src/core/BufferGeometry.d.ts +26 -3
- three/src/core/InterleavedBufferAttribute.d.ts +3 -3
- three/src/core/Object3D.d.ts +51 -6
- three/src/extras/DataUtils.d.ts +9 -2
- three/src/extras/ImageUtils.d.ts +6 -7
- three/src/extras/ShapeUtils.d.ts +5 -8
- three/src/extras/TextureUtils.d.ts +42 -0
- three/src/extras/core/Curve.d.ts +8 -2
- three/src/extras/core/CurvePath.d.ts +9 -1
- three/src/extras/core/Path.d.ts +9 -2
- three/src/extras/core/Shape.d.ts +9 -1
- three/src/lights/Light.d.ts +19 -2
- three/src/lights/LightShadow.d.ts +18 -2
- three/src/lights/webgpu/IESSpotLight.d.ts +6 -0
- three/src/loaders/Cache.d.ts +13 -8
- three/src/materials/Material.d.ts +185 -14
- three/src/materials/ShaderMaterial.d.ts +49 -2
- three/src/math/ColorManagement.d.ts +3 -0
- three/src/math/Euler.d.ts +4 -2
- three/src/math/Matrix2.d.ts +53 -0
- three/src/math/Matrix3.d.ts +67 -115
- three/src/math/Matrix4.d.ts +48 -100
- three/src/math/Quaternion.d.ts +5 -3
- three/src/math/Vector2.d.ts +1 -1
- three/src/math/Vector4.d.ts +6 -0
- three/{examples/jsm → src}/nodes/Nodes.d.ts +37 -7
- three/{examples/jsm → src}/nodes/accessors/BatchNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/BufferAttributeNode.d.ts +5 -1
- three/{examples/jsm → src}/nodes/accessors/CameraNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/accessors/CubeTextureNode.d.ts +11 -3
- three/{examples/jsm → src}/nodes/accessors/InstanceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/MaterialNode.d.ts +11 -2
- three/{examples/jsm → src}/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ModelNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/NormalNode.d.ts +3 -3
- three/{examples/jsm → src}/nodes/accessors/Object3DNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/ReflectVectorNode.d.ts +3 -0
- three/{examples/jsm → src}/nodes/accessors/SkinningNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/accessors/StorageBufferNode.d.ts +7 -0
- three/src/nodes/accessors/StorageTextureNode.d.ts +40 -0
- three/{examples/jsm → src}/nodes/accessors/Texture3DNode.d.ts +3 -2
- three/{examples/jsm → src}/nodes/accessors/TextureNode.d.ts +9 -2
- three/{examples/jsm → src}/nodes/core/CacheNode.d.ts +4 -5
- three/{examples/jsm → src}/nodes/core/IndexNode.d.ts +3 -1
- three/{examples/jsm → src}/nodes/core/LightingModel.d.ts +12 -3
- three/src/nodes/core/MRTNode.d.ts +19 -0
- three/{examples/jsm → src}/nodes/core/Node.d.ts +6 -10
- three/{examples/jsm → src}/nodes/core/NodeBuilder.d.ts +13 -3
- three/{examples/jsm → src}/nodes/core/NodeCache.d.ts +13 -4
- three/{examples/jsm → src}/nodes/core/NodeFrame.d.ts +5 -2
- three/{examples/jsm → src}/nodes/core/NodeFunction.d.ts +2 -2
- three/{examples/jsm → src}/nodes/core/NodeUniform.d.ts +1 -1
- three/{examples/jsm → src}/nodes/core/NodeUtils.d.ts +6 -1
- three/{examples/jsm → src}/nodes/core/PropertyNode.d.ts +1 -0
- three/{examples/jsm → src}/nodes/core/UniformNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/core/VarNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/display/AnamorphicNode.d.ts +1 -1
- three/src/nodes/display/BloomNode.d.ts +35 -0
- three/{examples/jsm → src}/nodes/display/ColorAdjustmentNode.d.ts +0 -1
- three/{examples/jsm → src}/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/src/nodes/display/DenoiseNode.d.ts +38 -0
- three/src/nodes/display/DepthOfFieldNode.d.ts +30 -0
- three/src/nodes/display/DotScreenNode.d.ts +27 -0
- three/src/nodes/display/FXAANode.d.ts +19 -0
- three/src/nodes/display/FilmNode.d.ts +25 -0
- three/src/nodes/display/GTAONode.d.ts +46 -0
- three/{examples/jsm → src}/nodes/display/GaussianBlurNode.d.ts +8 -5
- three/src/nodes/display/Lut3DNode.d.ts +30 -0
- three/{examples/jsm → src}/nodes/display/NormalMapNode.d.ts +1 -2
- three/src/nodes/display/PassNode.d.ts +62 -0
- three/src/nodes/display/PixelationPassNode.d.ts +67 -0
- three/src/nodes/display/RGBShiftNode.d.ts +24 -0
- three/src/nodes/display/RenderOutputNode.d.ts +28 -0
- three/src/nodes/display/SobelOperatorNode.d.ts +17 -0
- three/{examples/jsm → src}/nodes/display/ToneMappingNode.d.ts +1 -1
- three/src/nodes/display/TransitionNode.d.ts +41 -0
- three/{examples/jsm → src}/nodes/display/ViewportDepthNode.d.ts +4 -6
- three/{examples/jsm → src}/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/src/nodes/functions/BSDF/LTC.d.ts +9 -0
- three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BasicLightingModel.d.ts +7 -0
- three/src/nodes/functions/PhongLightingModel.d.ts +7 -0
- three/{examples/jsm → src}/nodes/geometry/RangeNode.d.ts +4 -1
- three/{examples/jsm → src}/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/src/nodes/lighting/BasicEnvironmentNode.d.ts +10 -0
- three/src/nodes/lighting/BasicLightMapNode.d.ts +8 -0
- three/{examples/jsm → src}/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/LightingNode.d.ts +2 -0
- three/{examples/jsm → src}/nodes/lighting/LightsNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/lighting/PointLightNode.d.ts +1 -1
- three/src/nodes/lighting/RectAreaLightNode.d.ts +21 -0
- three/{examples/jsm → src}/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeLoader.d.ts +3 -1
- three/{examples/jsm → src}/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/{examples/jsm → src}/nodes/loaders/NodeObjectLoader.d.ts +3 -1
- three/src/nodes/materials/Line2NodeMaterial.d.ts +53 -0
- three/{examples/jsm → src}/nodes/materials/LineBasicNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/Materials.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/MeshBasicNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshMatcapNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/MeshNormalNodeMaterial.d.ts +4 -1
- three/{examples/jsm → src}/nodes/materials/MeshPhongNodeMaterial.d.ts +8 -4
- three/{examples/jsm → src}/nodes/materials/MeshPhysicalNodeMaterial.d.ts +21 -20
- three/src/nodes/materials/MeshSSSNodeMaterial.d.ts +16 -0
- three/{examples/jsm → src}/nodes/materials/MeshStandardNodeMaterial.d.ts +9 -5
- three/{examples/jsm → src}/nodes/materials/MeshToonNodeMaterial.d.ts +5 -1
- three/{examples/jsm → src}/nodes/materials/NodeMaterial.d.ts +54 -49
- three/{examples/jsm → src}/nodes/materials/PointsNodeMaterial.d.ts +3 -1
- three/{examples/jsm → src}/nodes/materials/ShadowNodeMaterial.d.ts +2 -1
- three/{examples/jsm → src}/nodes/materials/SpriteNodeMaterial.d.ts +5 -4
- three/{examples/jsm → src}/nodes/materialx/lib/mx_hsv.d.ts +1 -0
- three/src/nodes/materialx/lib/mx_noise.d.ts +359 -0
- three/{examples/jsm → src}/nodes/math/MathNode.d.ts +9 -1
- three/{examples/jsm → src}/nodes/pmrem/PMREMNode.d.ts +1 -1
- three/{examples/jsm → src}/nodes/utils/DiscardNode.d.ts +1 -0
- three/{examples/jsm → src}/nodes/utils/MaxMipLevelNode.d.ts +3 -3
- three/src/nodes/utils/PackingNode.d.ts +24 -0
- three/src/nodes/utils/RTTNode.d.ts +45 -0
- three/{examples/jsm → src}/nodes/utils/ReflectorNode.d.ts +3 -1
- three/src/objects/BatchedMesh.d.ts +58 -54
- three/src/objects/InstancedMesh.d.ts +15 -2
- three/src/objects/LOD.d.ts +17 -1
- three/src/objects/Mesh.d.ts +11 -1
- three/src/objects/Points.d.ts +0 -3
- three/src/objects/Skeleton.d.ts +10 -3
- three/src/objects/SkinnedMesh.d.ts +15 -3
- three/{examples/jsm → src}/renderers/common/Animation.d.ts +0 -1
- three/{examples/jsm → src}/renderers/common/Attributes.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/Backend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Background.d.ts +2 -1
- three/src/renderers/common/BindGroup.d.ts +9 -0
- three/{examples/jsm → src}/renderers/common/Bindings.d.ts +11 -14
- three/{examples/jsm → src}/renderers/common/ClippingContext.d.ts +6 -1
- three/{examples/jsm → src}/renderers/common/Color4.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/CubeRenderTarget.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Geometries.d.ts +6 -3
- three/{examples/jsm → src}/renderers/common/Info.d.ts +7 -2
- three/{examples/jsm → src}/renderers/common/PostProcessing.d.ts +9 -1
- three/{examples/jsm/objects → src/renderers/common}/QuadMesh.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/RenderBundle.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderBundles.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderContext.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/RenderContexts.d.ts +3 -1
- three/{examples/jsm → src}/renderers/common/RenderList.d.ts +5 -1
- three/{examples/jsm → src}/renderers/common/RenderLists.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/RenderObject.d.ts +19 -16
- three/{examples/jsm → src}/renderers/common/RenderObjects.d.ts +5 -2
- three/{examples/jsm → src}/renderers/common/Renderer.d.ts +41 -29
- three/src/renderers/common/SampledTexture.d.ts +27 -0
- three/src/renderers/common/Sampler.d.ts +11 -0
- three/{examples/jsm → src}/renderers/common/StorageBufferAttribute.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/StorageInstancedBufferAttribute.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/StorageTexture.d.ts +1 -1
- three/{examples/jsm → src}/renderers/common/Textures.d.ts +4 -1
- three/{examples/jsm → src}/renderers/common/Uniform.d.ts +9 -4
- three/{examples/jsm → src}/renderers/common/UniformsGroup.d.ts +4 -2
- three/{examples/jsm → src}/renderers/common/extras/PMREMGenerator.d.ts +2 -1
- three/{examples/jsm → src}/renderers/common/nodes/NodeBuilderState.d.ts +8 -4
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +29 -0
- three/src/renderers/common/nodes/NodeSampler.d.ts +12 -0
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniform.d.ts +10 -5
- three/{examples/jsm → src}/renderers/common/nodes/NodeUniformsGroup.d.ts +1 -3
- three/{examples/jsm → src}/renderers/common/nodes/Nodes.d.ts +22 -8
- three/src/renderers/shaders/ShaderLib.d.ts +3 -1
- three/src/renderers/shaders/UniformsLib.d.ts +3 -0
- three/src/renderers/shaders/UniformsUtils.d.ts +6 -3
- three/{examples/jsm/renderers/webgl → src/renderers/webgl-fallback}/WebGLBackend.d.ts +1 -1
- three/{examples/jsm → src}/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +125 -0
- three/src/renderers/webgpu/nodes/WGSLNodeFunction.d.ts +6 -0
- three/src/renderers/webgpu/nodes/WGSLNodeParser.d.ts +6 -0
- three/src/renderers/webgpu/utils/WebGPUConstants.d.ts +328 -0
- three/src/renderers/webxr/WebXRDepthSensing.d.ts +2 -0
- three/src/renderers/webxr/WebXRManager.d.ts +33 -23
- three/src/scenes/Fog.d.ts +7 -24
- three/src/scenes/FogExp2.d.ts +9 -3
- three/src/scenes/Scene.d.ts +21 -5
- three/src/textures/CompressedArrayTexture.d.ts +4 -4
- three/src/textures/CompressedTexture.d.ts +16 -8
- three/src/textures/Source.d.ts +15 -1
- three/src/textures/Texture.d.ts +40 -2
- three/examples/jsm/deprecated/Geometry.d.ts +0 -341
- three/examples/jsm/lights/IESSpotLight.d.ts +0 -5
- three/examples/jsm/nodes/display/PassNode.d.ts +0 -46
- three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +0 -7
- three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +0 -17
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -129
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -17
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -37
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -3
- /three/{examples/jsm → src}/nodes/accessors/AccessorsUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BitangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/BufferNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ClippingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PointUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/PositionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/ReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/RendererReferenceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TangentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/TextureBicubicNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UniformsNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/UserDataNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/accessors/VertexColorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/CodeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/ExpressionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionCallNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/code/FunctionNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AssignNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/AttributeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/BypassNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ConstNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/ContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/InputNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeAttribute.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeCode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeFunctionInput.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeKeywords.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeParser.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVar.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/NodeVarying.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/OutputStructNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StackNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/StructTypeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/TempNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroup.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/UniformGroupNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/VaryingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/core/constants.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/AfterImageNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/BlendModeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/FrontFacingNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/PosterizeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportDepthTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/display/ViewportSharedTextureNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogExp2Node.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/fog/FogRangeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/BRDF_Sheen.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/PhysicalLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ShadowMaskModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/ToonLightingModel.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/functions/material/getRoughness.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/gpgpu/ComputeNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/AONode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/EnvironmentNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/IrradianceNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/lighting/LightingContextNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materials/VolumeNodeMaterial.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/MaterialXNodes.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/materialx/lib/mx_transform_color.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/CondNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/HashNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/MathUtils.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/OperatorNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/math/TriNoise3D.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/procedural/CheckerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/shadernode/ShaderNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/ConvertNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/EquirectUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/JoinNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/MatcapUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/OscNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RemapNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/RotateUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SplitNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/StoargeArrayElementNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TimerNode.d.ts +0 -0
- /three/{examples/jsm → src}/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Binding.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Buffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/BufferUtils.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ChainMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ComputePipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Constants.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/DataMap.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/Pipelines.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/ProgrammableStage.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/RenderPipeline.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/common/UniformBuffer.d.ts +0 -0
- /three/{examples/jsm → src}/renderers/webgpu/WebGPURenderer.d.ts +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import TextureNode from "../accessors/TextureNode.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import TempNode from "../core/TempNode.js";
|
|
4
|
+
import UniformNode from "../core/UniformNode.js";
|
|
5
|
+
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
6
|
+
|
|
7
|
+
declare class TransitionNode extends TempNode {
|
|
8
|
+
textureNodeA: TextureNode;
|
|
9
|
+
textureNodeB: TextureNode;
|
|
10
|
+
mixTextureNode: TextureNode;
|
|
11
|
+
|
|
12
|
+
mixRatioNode: Node;
|
|
13
|
+
thresholdNode: Node;
|
|
14
|
+
useTextureNode: Node;
|
|
15
|
+
|
|
16
|
+
constructor(
|
|
17
|
+
textureNodeA: TextureNode,
|
|
18
|
+
textureNodeB: TextureNode,
|
|
19
|
+
mixTextureNode: TextureNode,
|
|
20
|
+
mixRatioNode: Node,
|
|
21
|
+
thresholdNode: Node,
|
|
22
|
+
useTextureNode: Node,
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const transition: (
|
|
27
|
+
node: NodeRepresentation,
|
|
28
|
+
nodeB: NodeRepresentation,
|
|
29
|
+
mixTexture: NodeRepresentation,
|
|
30
|
+
mixRatio: UniformNode<number>,
|
|
31
|
+
threshold: UniformNode<number>,
|
|
32
|
+
useTexture: UniformNode<number>,
|
|
33
|
+
) => ShaderNodeObject<TransitionNode>;
|
|
34
|
+
|
|
35
|
+
declare module "../shadernode/ShaderNode.js" {
|
|
36
|
+
interface NodeElements {
|
|
37
|
+
transition: typeof transition;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export default TransitionNode;
|
|
@@ -10,14 +10,12 @@ export default class ViewportDepthNode extends Node {
|
|
|
10
10
|
constructor(scope: ViewportDepthNodeScope, valueNode?: Node | null);
|
|
11
11
|
|
|
12
12
|
static DEPTH: "depth";
|
|
13
|
-
static
|
|
14
|
-
static DEPTH_PIXEL: "depthPixel";
|
|
13
|
+
static LINEAR_DEPTH: "linearDepth";
|
|
15
14
|
}
|
|
16
15
|
|
|
17
16
|
export type ViewportDepthNodeScope =
|
|
18
17
|
| typeof ViewportDepthNode.DEPTH
|
|
19
|
-
| typeof ViewportDepthNode.
|
|
20
|
-
| typeof ViewportDepthNode.DEPTH_PIXEL;
|
|
18
|
+
| typeof ViewportDepthNode.LINEAR_DEPTH;
|
|
21
19
|
|
|
22
20
|
export const viewZToOrthographicDepth: (viewZ: Node, near: Node, far: Node) => Node;
|
|
23
21
|
|
|
@@ -28,5 +26,5 @@ export const viewZToPerspectiveDepth: (viewZ: Node, near: Node, far: Node) => No
|
|
|
28
26
|
export const perspectiveDepthToViewZ: (depth: Node, near: Node, far: Node) => Node;
|
|
29
27
|
|
|
30
28
|
export const depth: ShaderNodeObject<ViewportDepthNode>;
|
|
31
|
-
export const
|
|
32
|
-
export const
|
|
29
|
+
export const linearDepth: (valueNode?: Node | null) => ShaderNodeObject<ViewportDepthNode>;
|
|
30
|
+
export const viewportLinearDepth: ShaderNodeObject<ViewportDepthNode>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FramebufferTexture } from "
|
|
1
|
+
import { FramebufferTexture } from "../../textures/FramebufferTexture.js";
|
|
2
2
|
import TextureNode from "../accessors/TextureNode.js";
|
|
3
3
|
import { NodeUpdateType } from "../core/constants.js";
|
|
4
4
|
import Node from "../core/Node.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import Node from "../../core/Node.js";
|
|
2
|
+
|
|
3
|
+
declare const LTC_Uv: (args: { N: Node; V: Node; roughness: Node }) => Node;
|
|
4
|
+
|
|
5
|
+
declare const LTC_Evaluate: (
|
|
6
|
+
args: { N: Node; V: Node; P: Node; mInv: Node; p0: Node; p1: Node; p2: Node; p3: Node },
|
|
7
|
+
) => Node;
|
|
8
|
+
|
|
9
|
+
export { LTC_Evaluate, LTC_Uv };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { Color
|
|
1
|
+
import { Color } from "../../math/Color.js";
|
|
2
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
3
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
4
|
+
import { Vector4 } from "../../math/Vector4.js";
|
|
2
5
|
import Node from "../core/Node.js";
|
|
3
6
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
4
7
|
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { RectAreaLight } from "../../lights/RectAreaLight.js";
|
|
2
|
+
import { DataTexture } from "../../textures/DataTexture.js";
|
|
3
|
+
import Node from "../core/Node.js";
|
|
4
|
+
import AnalyticLightNode from "./AnalyticLightNode.js";
|
|
5
|
+
|
|
6
|
+
export interface RectAreaLightTexturesLib {
|
|
7
|
+
LTC_HALF_1: DataTexture;
|
|
8
|
+
LTC_HALF_2: DataTexture;
|
|
9
|
+
|
|
10
|
+
LTC_FLOAT_1: DataTexture;
|
|
11
|
+
LTC_FLOAT_2: DataTexture;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default class RectAreaLightNode extends AnalyticLightNode<RectAreaLight> {
|
|
15
|
+
halfHeight: Node;
|
|
16
|
+
halfWidth: Node;
|
|
17
|
+
|
|
18
|
+
constructor(light?: RectAreaLight | null);
|
|
19
|
+
|
|
20
|
+
static setLTC(ltc: RectAreaLightTexturesLib): void;
|
|
21
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { Loader
|
|
1
|
+
import { Loader } from "../../loaders/Loader.js";
|
|
2
|
+
import { LoadingManager } from "../../loaders/LoadingManager.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
4
|
import { Node } from "../Nodes.js";
|
|
3
5
|
|
|
4
6
|
export interface NodeLoaderResult {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ObjectLoader } from "../../loaders/ObjectLoader.js";
|
|
2
|
+
import { Material } from "../../materials/Material.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
4
|
import { NodeLoaderResult } from "./NodeLoader.js";
|
|
3
5
|
|
|
4
6
|
export default class NodeObjectLoader extends ObjectLoader {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LineDashedMaterialParameters } from "../../materials/LineDashedMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
4
|
+
import Node from "../core/Node.js";
|
|
5
|
+
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
|
+
|
|
7
|
+
export interface Line2NodeMaterialParameters extends NodeMaterialParameters, LineDashedMaterialParameters {
|
|
8
|
+
dashed?: boolean | undefined;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default class Line2NodeMaterial extends NodeMaterial {
|
|
12
|
+
lights: boolean;
|
|
13
|
+
|
|
14
|
+
// Properties from LineDashedMaterial
|
|
15
|
+
readonly isLineDashedMaterial: true;
|
|
16
|
+
scale: number;
|
|
17
|
+
dashSize: number;
|
|
18
|
+
gapSize: number;
|
|
19
|
+
|
|
20
|
+
// Properties from LineBasicMaterial
|
|
21
|
+
readonly isLineBasicMaterial: true;
|
|
22
|
+
color: Color;
|
|
23
|
+
fog: boolean;
|
|
24
|
+
linewidth: number;
|
|
25
|
+
linecap: string;
|
|
26
|
+
linejoin: string;
|
|
27
|
+
map: Texture | null;
|
|
28
|
+
|
|
29
|
+
useAlphaToCoverage: boolean;
|
|
30
|
+
useColor: boolean;
|
|
31
|
+
useDash: boolean;
|
|
32
|
+
useWorldUnits: boolean;
|
|
33
|
+
|
|
34
|
+
dashOffset: number;
|
|
35
|
+
lineWidth: number;
|
|
36
|
+
|
|
37
|
+
lineColorNode: Node | null;
|
|
38
|
+
|
|
39
|
+
offsetNode: Node | null;
|
|
40
|
+
dashScaleNode: Node | null;
|
|
41
|
+
dashSizeNode: Node | null;
|
|
42
|
+
gapSizeNode: Node | null;
|
|
43
|
+
|
|
44
|
+
constructor(parameters?: Line2NodeMaterialParameters);
|
|
45
|
+
|
|
46
|
+
setupShaders(): void;
|
|
47
|
+
|
|
48
|
+
get worldUnits(): boolean;
|
|
49
|
+
set worldUnits(value: boolean);
|
|
50
|
+
|
|
51
|
+
get dashed(): boolean;
|
|
52
|
+
set dashed(value: boolean);
|
|
53
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineBasicMaterialParameters } from "../../materials/LineBasicMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
4
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
5
|
|
|
4
6
|
export interface LineBasicNodeMaterialParameters extends NodeMaterialParameters, LineBasicMaterialParameters {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { default as Line2NodeMaterial } from "./Line2NodeMaterial.js";
|
|
1
2
|
export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js";
|
|
2
3
|
export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js";
|
|
3
4
|
export { default as MeshMatcapNodeMaterial } from "./MeshMatcapNodeMaterial.js";
|
|
@@ -7,7 +8,7 @@ export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.
|
|
|
7
8
|
export { default as MeshSSSPhysicalNodeMaterial } from "./MeshSSSNodeMaterial.js";
|
|
8
9
|
export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js";
|
|
9
10
|
export { default as MeshToonNodeMaterial } from "./MeshToonNodeMaterial.js";
|
|
10
|
-
export { default as NodeMaterial } from "./NodeMaterial.js";
|
|
11
|
+
export { addNodeMaterial, createNodeMaterialFromType, default as NodeMaterial } from "./NodeMaterial.js";
|
|
11
12
|
export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js";
|
|
12
13
|
export { default as ShadowNodeMaterial } from "./ShadowNodeMaterial.js";
|
|
13
14
|
export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js";
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Combine } from "../../constants.js";
|
|
2
|
+
import { MeshBasicMaterialParameters } from "../../materials/MeshBasicMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
7
|
|
|
4
8
|
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshBasicMaterialParameters {
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshMatcapMaterialParameters } from "../../materials/MeshMatcapMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
7
|
|
|
4
8
|
export interface MeshMatcapNodeMaterialParameters extends NodeMaterialParameters, MeshMatcapMaterialParameters {
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshNormalMaterialParameters } from "../../materials/MeshNormalMaterial.js";
|
|
3
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
5
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
6
|
|
|
4
7
|
export interface MeshBasicNodeMaterialParameters extends NodeMaterialParameters, MeshNormalMaterialParameters {
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Combine, NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshPhongMaterialParameters } from "../../materials/MeshPhongMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
6
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
7
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
8
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
9
|
|
|
6
10
|
export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, MeshPhongMaterialParameters {
|
|
@@ -9,8 +13,8 @@ export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters,
|
|
|
9
13
|
export default class MeshPhongNodeMaterial extends NodeMaterial {
|
|
10
14
|
readonly isMeshPhongNodeMaterial: true;
|
|
11
15
|
|
|
12
|
-
shininessNode:
|
|
13
|
-
specularNode:
|
|
16
|
+
shininessNode: Node | null;
|
|
17
|
+
specularNode: Node | null;
|
|
14
18
|
|
|
15
19
|
// Properties from MeshPhongMaterial
|
|
16
20
|
readonly isMeshPhongMaterial: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { MeshPhysicalMaterialParameters } from "../../materials/MeshPhysicalMaterial.js";
|
|
2
|
+
import { Color } from "../../math/Color.js";
|
|
3
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
4
|
+
import { Texture } from "../../textures/Texture.js";
|
|
3
5
|
import Node from "../core/Node.js";
|
|
4
|
-
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
5
6
|
import MeshStandardNodeMaterial, { MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js";
|
|
6
7
|
|
|
7
8
|
export interface MeshPhysicalNodeMaterialParameters
|
|
@@ -12,29 +13,29 @@ export interface MeshPhysicalNodeMaterialParameters
|
|
|
12
13
|
export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial {
|
|
13
14
|
readonly isMeshPhysicalNodeMaterial: true;
|
|
14
15
|
|
|
15
|
-
clearcoatNode:
|
|
16
|
-
clearcoatRoughnessNode:
|
|
17
|
-
clearcoatNormalNode:
|
|
16
|
+
clearcoatNode: Node | null;
|
|
17
|
+
clearcoatRoughnessNode: Node | null;
|
|
18
|
+
clearcoatNormalNode: Node | null;
|
|
18
19
|
|
|
19
|
-
sheenNode:
|
|
20
|
-
sheenRoughnessNode:
|
|
20
|
+
sheenNode: Node | null;
|
|
21
|
+
sheenRoughnessNode: Node | null;
|
|
21
22
|
|
|
22
|
-
iridescenceNode:
|
|
23
|
-
iridescenceIORNode:
|
|
24
|
-
iridescenceThicknessNode:
|
|
23
|
+
iridescenceNode: Node | null;
|
|
24
|
+
iridescenceIORNode: Node | null;
|
|
25
|
+
iridescenceThicknessNode: Node | null;
|
|
25
26
|
|
|
26
|
-
iorNode:
|
|
27
|
+
iorNode: Node | null;
|
|
27
28
|
|
|
28
|
-
specularIntensityNode:
|
|
29
|
-
specularColorNode:
|
|
29
|
+
specularIntensityNode: Node | null;
|
|
30
|
+
specularColorNode: Node | null;
|
|
30
31
|
|
|
31
|
-
transmissionNode:
|
|
32
|
-
thicknessNode:
|
|
33
|
-
attenuationDistanceNode:
|
|
34
|
-
attenuationColorNode:
|
|
35
|
-
dispersionNode:
|
|
32
|
+
transmissionNode: Node | null;
|
|
33
|
+
thicknessNode: Node | null;
|
|
34
|
+
attenuationDistanceNode: Node | null;
|
|
35
|
+
attenuationColorNode: Node | null;
|
|
36
|
+
dispersionNode: Node | null;
|
|
36
37
|
|
|
37
|
-
anisotropyNode:
|
|
38
|
+
anisotropyNode: Node | null;
|
|
38
39
|
|
|
39
40
|
// Properties from MeshPhysicalMaterial
|
|
40
41
|
readonly isMeshPhysicalMaterial: true;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ConstNode from "../core/ConstNode.js";
|
|
2
|
+
import Node from "../core/Node.js";
|
|
3
|
+
import MeshPhysicalNodeMaterial, { MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js";
|
|
4
|
+
|
|
5
|
+
export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial {
|
|
6
|
+
thicknessColorNode: Node | null;
|
|
7
|
+
thicknessDistortionNode: ConstNode<number>;
|
|
8
|
+
thicknessAmbientNode: ConstNode<number>;
|
|
9
|
+
thicknessAttenuationNode: ConstNode<number>;
|
|
10
|
+
thicknessPowerNode: ConstNode<number>;
|
|
11
|
+
thicknessScaleNode: ConstNode<number>;
|
|
12
|
+
|
|
13
|
+
constructor(parameters?: MeshPhysicalNodeMaterialParameters);
|
|
14
|
+
|
|
15
|
+
get useSSS(): boolean;
|
|
16
|
+
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshStandardMaterialParameters } from "../../materials/MeshStandardMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Euler } from "../../math/Euler.js";
|
|
5
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
6
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
7
|
import Node from "../core/Node.js";
|
|
3
|
-
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
4
8
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
9
|
|
|
6
10
|
export interface MeshStandardNodeMaterialParameters extends NodeMaterialParameters, MeshStandardMaterialParameters {
|
|
@@ -9,10 +13,10 @@ export interface MeshStandardNodeMaterialParameters extends NodeMaterialParamete
|
|
|
9
13
|
export default class MeshStandardNodeMaterial extends NodeMaterial {
|
|
10
14
|
readonly isMeshStandardNodeMaterial: true;
|
|
11
15
|
|
|
12
|
-
emissiveNode:
|
|
16
|
+
emissiveNode: Node | null;
|
|
13
17
|
|
|
14
|
-
metalnessNode:
|
|
15
|
-
roughnessNode:
|
|
18
|
+
metalnessNode: Node | null;
|
|
19
|
+
roughnessNode: Node | null;
|
|
16
20
|
|
|
17
21
|
// Properties from MeshStandardMaterial
|
|
18
22
|
readonly isMeshStandardMaterial: true;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
+
import { MeshToonMaterialParameters } from "../../materials/MeshToonMaterial.js";
|
|
3
|
+
import { Color } from "../../math/Color.js";
|
|
4
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
5
|
+
import { Texture } from "../../textures/Texture.js";
|
|
2
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
3
7
|
|
|
4
8
|
export interface MeshToonNodeMaterialParameters extends NodeMaterialParameters, MeshToonMaterialParameters {
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ShadowMaterial,
|
|
14
|
-
SpriteMaterial,
|
|
15
|
-
} from "three";
|
|
1
|
+
import { LineBasicMaterial } from "../../materials/LineBasicMaterial.js";
|
|
2
|
+
import { Material, MaterialParameters } from "../../materials/Material.js";
|
|
3
|
+
import { MeshBasicMaterial } from "../../materials/MeshBasicMaterial.js";
|
|
4
|
+
import { MeshMatcapMaterial } from "../../materials/MeshMatcapMaterial.js";
|
|
5
|
+
import { MeshNormalMaterial } from "../../materials/MeshNormalMaterial.js";
|
|
6
|
+
import { MeshPhongMaterial } from "../../materials/MeshPhongMaterial.js";
|
|
7
|
+
import { MeshPhysicalMaterial } from "../../materials/MeshPhysicalMaterial.js";
|
|
8
|
+
import { MeshStandardMaterial } from "../../materials/MeshStandardMaterial.js";
|
|
9
|
+
import { MeshToonMaterial } from "../../materials/MeshToonMaterial.js";
|
|
10
|
+
import { PointsMaterial } from "../../materials/PointsMaterial.js";
|
|
11
|
+
import { ShadowMaterial } from "../../materials/ShadowMaterial.js";
|
|
12
|
+
import { SpriteMaterial } from "../../materials/SpriteMaterial.js";
|
|
16
13
|
import ClippingNode from "../accessors/ClippingNode.js";
|
|
17
14
|
import LightingModel from "../core/LightingModel.js";
|
|
15
|
+
import MRTNode from "../core/MRTNode.js";
|
|
18
16
|
import Node from "../core/Node.js";
|
|
19
17
|
import NodeBuilder from "../core/NodeBuilder.js";
|
|
20
18
|
import LightsNode from "../lighting/LightsNode.js";
|
|
21
|
-
import { ShaderNodeObject } from "../shadernode/ShaderNode.js";
|
|
22
19
|
import LineBasicNodeMaterial from "./LineBasicNodeMaterial.js";
|
|
23
20
|
import MeshBasicNodeMaterial from "./MeshBasicNodeMaterial.js";
|
|
24
21
|
import MeshMatcapNodeMaterial from "./MeshMatcapNodeMaterial.js";
|
|
@@ -36,67 +33,72 @@ export interface NodeMaterialParameters extends MaterialParameters {
|
|
|
36
33
|
|
|
37
34
|
colorSpaced?: boolean | undefined;
|
|
38
35
|
|
|
39
|
-
lightsNode?:
|
|
40
|
-
envNode?:
|
|
41
|
-
aoNode?:
|
|
36
|
+
lightsNode?: LightsNode | null | undefined;
|
|
37
|
+
envNode?: Node | null | undefined;
|
|
38
|
+
aoNode?: Node | null | undefined;
|
|
42
39
|
|
|
43
|
-
colorNode?:
|
|
44
|
-
normalNode?:
|
|
45
|
-
opacityNode?:
|
|
46
|
-
backdropNode?:
|
|
47
|
-
backdropAlphaNode?:
|
|
48
|
-
alphaTestNode?:
|
|
40
|
+
colorNode?: Node | null | undefined;
|
|
41
|
+
normalNode?: Node | null | undefined;
|
|
42
|
+
opacityNode?: Node | null | undefined;
|
|
43
|
+
backdropNode?: Node | null | undefined;
|
|
44
|
+
backdropAlphaNode?: Node | null | undefined;
|
|
45
|
+
alphaTestNode?: Node | null | undefined;
|
|
49
46
|
|
|
50
|
-
positionNode?:
|
|
47
|
+
positionNode?: Node | null | undefined;
|
|
51
48
|
|
|
52
|
-
depthNode?:
|
|
53
|
-
shadowNode?:
|
|
49
|
+
depthNode?: Node | null | undefined;
|
|
50
|
+
shadowNode?: Node | null | undefined;
|
|
54
51
|
|
|
55
|
-
outputNode?:
|
|
52
|
+
outputNode?: Node | null | undefined;
|
|
56
53
|
|
|
57
|
-
fragmentNode?:
|
|
58
|
-
vertexNode?:
|
|
54
|
+
fragmentNode?: Node | null | undefined;
|
|
55
|
+
vertexNode?: Node | null | undefined;
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
export default class NodeMaterial extends Material {
|
|
62
59
|
readonly isNodeMaterial: true;
|
|
63
60
|
|
|
61
|
+
fog: boolean;
|
|
62
|
+
lights: boolean;
|
|
64
63
|
normals: boolean;
|
|
65
64
|
|
|
66
|
-
lightsNode:
|
|
67
|
-
envNode:
|
|
68
|
-
aoNode:
|
|
65
|
+
lightsNode: LightsNode | null;
|
|
66
|
+
envNode: Node | null;
|
|
67
|
+
aoNode: Node | null;
|
|
69
68
|
|
|
70
|
-
colorNode:
|
|
71
|
-
normalNode:
|
|
72
|
-
opacityNode:
|
|
73
|
-
backdropNode:
|
|
74
|
-
backdropAlphaNode:
|
|
75
|
-
alphaTestNode:
|
|
69
|
+
colorNode: Node | null;
|
|
70
|
+
normalNode: Node | null;
|
|
71
|
+
opacityNode: Node | null;
|
|
72
|
+
backdropNode: Node | null;
|
|
73
|
+
backdropAlphaNode: Node | null;
|
|
74
|
+
alphaTestNode: Node | null;
|
|
76
75
|
|
|
77
|
-
positionNode:
|
|
76
|
+
positionNode: Node | null;
|
|
78
77
|
|
|
79
|
-
depthNode:
|
|
80
|
-
shadowNode:
|
|
81
|
-
shadowPositionNode:
|
|
78
|
+
depthNode: Node | null;
|
|
79
|
+
shadowNode: Node | null;
|
|
80
|
+
shadowPositionNode: Node | null;
|
|
82
81
|
|
|
83
|
-
outputNode:
|
|
82
|
+
outputNode: Node | null;
|
|
83
|
+
mrtNode: MRTNode | null;
|
|
84
84
|
|
|
85
|
-
fragmentNode:
|
|
86
|
-
vertexNode:
|
|
85
|
+
fragmentNode: Node | null;
|
|
86
|
+
vertexNode: Node | null;
|
|
87
87
|
|
|
88
88
|
constructor();
|
|
89
89
|
|
|
90
90
|
build(builder: NodeBuilder): void;
|
|
91
91
|
setup(builder: NodeBuilder): void;
|
|
92
|
-
setupClipping(builder: NodeBuilder):
|
|
92
|
+
setupClipping(builder: NodeBuilder): ClippingNode | null;
|
|
93
93
|
setupDepth(builder: NodeBuilder): void;
|
|
94
94
|
setupPosition(builder: NodeBuilder): Node;
|
|
95
95
|
setupDiffuseColor(builder: NodeBuilder): void;
|
|
96
96
|
setupVariants(builder: NodeBuilder): void;
|
|
97
97
|
setupNormal(builder: NodeBuilder): void;
|
|
98
|
-
|
|
98
|
+
setupEnvironment(builder: NodeBuilder): Node | null;
|
|
99
|
+
setupLightMap(builder: NodeBuilder): Node | null;
|
|
99
100
|
setupLights(builder: NodeBuilder): LightsNode;
|
|
101
|
+
setupOutgoingLight(): Node;
|
|
100
102
|
setupLightingModel(builder: NodeBuilder): LightingModel;
|
|
101
103
|
setupLighting(builder: NodeBuilder): Node;
|
|
102
104
|
setupOutput(builder: NodeBuilder, outputNode: Node): Node;
|
|
@@ -117,3 +119,6 @@ export default class NodeMaterial extends Material {
|
|
|
117
119
|
static fromMaterial(material: NodeMaterial): NodeMaterial;
|
|
118
120
|
static fromMaterial(material: Material): NodeMaterial;
|
|
119
121
|
}
|
|
122
|
+
|
|
123
|
+
export function addNodeMaterial(type: string, nodeMaterial: typeof NodeMaterial): void;
|
|
124
|
+
export function createNodeMaterialFromType(type: string): NodeMaterial;
|