@types/three 0.167.2 → 0.168.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/examples/jsm/Addons.d.ts +5 -1
- three/examples/jsm/capabilities/WebGL.d.ts +11 -3
- three/examples/jsm/controls/ArcballControls.d.ts +111 -77
- three/examples/jsm/controls/DragControls.d.ts +56 -27
- three/examples/jsm/controls/FirstPersonControls.d.ts +82 -12
- three/examples/jsm/controls/FlyControls.d.ts +35 -11
- three/examples/jsm/controls/OrbitControls.d.ts +84 -137
- three/examples/jsm/controls/PointerLockControls.d.ts +68 -9
- three/examples/jsm/controls/TrackballControls.d.ts +110 -26
- three/examples/jsm/effects/AnaglyphEffect.d.ts +11 -5
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +7 -4
- three/examples/jsm/environments/RoomEnvironment.d.ts +2 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +4 -0
- three/examples/jsm/objects/SkyMesh.d.ts +17 -0
- three/examples/jsm/objects/Water2.d.ts +2 -2
- three/examples/jsm/objects/Water2Mesh.d.ts +42 -0
- three/examples/jsm/objects/WaterMesh.d.ts +31 -0
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +11 -2
- three/package.json +4 -3
- three/src/Three.WebGPU.d.ts +6 -0
- three/src/Three.d.ts +1 -0
- three/src/core/EventDispatcher.d.ts +0 -3
- three/src/core/Object3D.d.ts +2 -0
- three/src/extras/Controls.d.ts +54 -0
- three/src/{nodes/loaders → loaders/nodes}/NodeLoader.d.ts +3 -3
- three/src/{nodes/loaders → loaders/nodes}/NodeMaterialLoader.d.ts +1 -1
- three/src/{nodes/loaders → loaders/nodes}/NodeObjectLoader.d.ts +1 -1
- three/src/materials/Material.d.ts +17 -13
- three/src/materials/nodes/InstancedPointsNodeMaterial.d.ts +33 -0
- three/src/{nodes/materials → materials/nodes}/Line2NodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/LineBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/LineDashedNodeMaterial.d.ts +29 -0
- three/src/{nodes/materials → materials/nodes}/MeshBasicNodeMaterial.d.ts +1 -1
- three/src/materials/nodes/MeshLambertNodeMaterial.d.ts +49 -0
- three/src/{nodes/materials → materials/nodes}/MeshMatcapNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshNormalNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/MeshPhongNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshPhysicalNodeMaterial.d.ts +5 -2
- three/src/{nodes/materials → materials/nodes}/MeshSSSNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/MeshStandardNodeMaterial.d.ts +3 -3
- three/src/{nodes/materials → materials/nodes}/MeshToonNodeMaterial.d.ts +2 -2
- three/src/materials/nodes/NodeMaterial.d.ts +91 -0
- three/src/{nodes/materials/Materials.d.ts → materials/nodes/NodeMaterials.d.ts} +5 -2
- three/src/{nodes/materials → materials/nodes}/PointsNodeMaterial.d.ts +1 -2
- three/src/{nodes/materials → materials/nodes}/ShadowNodeMaterial.d.ts +1 -1
- three/src/{nodes/materials → materials/nodes}/SpriteNodeMaterial.d.ts +2 -2
- three/src/{nodes/materials → materials/nodes}/VolumeNodeMaterial.d.ts +1 -1
- three/src/nodes/Nodes.d.ts +117 -362
- three/src/nodes/TSL.d.ts +269 -0
- three/src/nodes/accessors/AccessorsUtils.d.ts +1 -1
- three/src/nodes/accessors/BatchNode.d.ts +1 -2
- three/src/nodes/accessors/{BitangentNode.d.ts → Bitangent.d.ts} +1 -1
- three/src/nodes/accessors/BufferAttributeNode.d.ts +4 -4
- three/src/nodes/accessors/BufferNode.d.ts +1 -1
- three/src/nodes/accessors/{CameraNode.d.ts → Camera.d.ts} +1 -1
- three/src/nodes/accessors/ClippingNode.d.ts +1 -1
- three/src/nodes/accessors/CubeTextureNode.d.ts +1 -7
- three/src/nodes/accessors/InstanceNode.d.ts +1 -1
- three/src/nodes/accessors/MaterialNode.d.ts +3 -3
- three/src/nodes/accessors/MaterialProperties.d.ts +4 -0
- three/src/nodes/accessors/MaterialReferenceNode.d.ts +3 -1
- three/src/nodes/accessors/ModelNode.d.ts +1 -1
- three/src/nodes/accessors/ModelViewProjectionNode.d.ts +1 -1
- three/src/nodes/accessors/MorphNode.d.ts +15 -0
- three/src/nodes/accessors/{NormalNode.d.ts → Normal.d.ts} +11 -4
- three/src/nodes/accessors/Object3DNode.d.ts +1 -1
- three/src/nodes/accessors/PointUVNode.d.ts +1 -1
- three/src/nodes/accessors/{PositionNode.d.ts → Position.d.ts} +2 -1
- three/src/nodes/accessors/ReferenceBaseNode.d.ts +27 -0
- three/src/nodes/accessors/ReferenceNode.d.ts +7 -5
- three/src/nodes/accessors/{ReflectVectorNode.d.ts → ReflectVector.d.ts} +1 -1
- three/src/nodes/accessors/RendererReferenceNode.d.ts +1 -1
- three/src/nodes/accessors/SceneNode.d.ts +20 -0
- three/src/nodes/accessors/SkinningNode.d.ts +11 -1
- three/src/nodes/accessors/StorageBufferNode.d.ts +2 -2
- three/src/nodes/accessors/StorageTextureNode.d.ts +1 -1
- three/src/nodes/accessors/{TangentNode.d.ts → Tangent.d.ts} +1 -1
- three/src/nodes/accessors/Texture3DNode.d.ts +1 -1
- three/src/nodes/accessors/TextureBicubic.d.ts +4 -0
- three/src/nodes/accessors/TextureNode.d.ts +26 -7
- three/src/nodes/accessors/TextureSizeNode.d.ts +18 -0
- three/src/nodes/accessors/{UVNode.d.ts → UV.d.ts} +1 -1
- three/src/nodes/accessors/UniformArrayNode.d.ts +30 -0
- three/src/nodes/accessors/UserDataNode.d.ts +1 -1
- three/src/nodes/accessors/VelocityNode.d.ts +15 -0
- three/src/nodes/accessors/VertexColorNode.d.ts +1 -1
- three/src/nodes/code/CodeNode.d.ts +1 -1
- three/src/nodes/code/ExpressionNode.d.ts +1 -1
- three/src/nodes/code/FunctionCallNode.d.ts +2 -2
- three/src/nodes/code/FunctionNode.d.ts +5 -6
- three/src/nodes/code/ScriptableNode.d.ts +22 -0
- three/src/nodes/code/ScriptableValueNode.d.ts +10 -0
- three/src/nodes/core/AssignNode.d.ts +2 -2
- three/src/nodes/core/AttributeNode.d.ts +2 -5
- three/src/nodes/core/BypassNode.d.ts +2 -2
- three/src/nodes/core/CacheNode.d.ts +2 -2
- three/src/nodes/core/ContextNode.d.ts +10 -7
- three/src/nodes/core/IndexNode.d.ts +11 -3
- three/src/nodes/core/MRTNode.d.ts +7 -2
- three/src/nodes/core/Node.d.ts +8 -2
- three/src/nodes/core/OutputStructNode.d.ts +1 -1
- three/src/nodes/core/ParameterNode.d.ts +12 -0
- three/src/nodes/core/PropertyNode.d.ts +1 -1
- three/src/nodes/core/StackNode.d.ts +12 -2
- three/src/nodes/core/UniformNode.d.ts +1 -1
- three/src/nodes/core/VarNode.d.ts +2 -10
- three/src/nodes/core/VaryingNode.d.ts +2 -2
- three/src/nodes/display/AfterImageNode.d.ts +1 -7
- three/src/nodes/display/AnaglyphPassNode.d.ts +14 -0
- three/src/nodes/display/AnamorphicNode.d.ts +1 -7
- three/src/nodes/display/BleachBypass.d.ts +4 -0
- three/src/nodes/display/BlendMode.d.ts +10 -0
- three/src/nodes/display/BloomNode.d.ts +1 -7
- three/src/nodes/display/BumpMapNode.d.ts +16 -0
- three/src/nodes/display/ColorAdjustment.d.ts +27 -0
- three/src/nodes/display/ColorSpaceFunctions.d.ts +6 -0
- three/src/nodes/display/ColorSpaceNode.d.ts +23 -23
- three/src/nodes/display/DenoiseNode.d.ts +3 -9
- three/src/nodes/display/DepthOfFieldNode.d.ts +4 -8
- three/src/nodes/display/DotScreenNode.d.ts +4 -8
- three/src/nodes/display/FXAANode.d.ts +3 -9
- three/src/nodes/display/FilmNode.d.ts +3 -9
- three/src/nodes/display/FrontFacingNode.d.ts +4 -2
- three/src/nodes/display/GTAONode.d.ts +3 -9
- three/src/nodes/display/GaussianBlurNode.d.ts +4 -8
- three/src/nodes/display/Lut3DNode.d.ts +3 -9
- three/src/nodes/display/MotionBlur.d.ts +8 -0
- three/src/nodes/display/NormalMapNode.d.ts +4 -8
- three/src/nodes/display/ParallaxBarrierPassNode.d.ts +14 -0
- three/src/nodes/display/PassNode.d.ts +11 -2
- three/src/nodes/display/PixelationPassNode.d.ts +1 -37
- three/src/nodes/display/PosterizeNode.d.ts +1 -7
- three/src/nodes/display/RGBShiftNode.d.ts +1 -7
- three/src/nodes/display/RenderOutputNode.d.ts +2 -2
- three/src/nodes/display/SSAAPassNode.d.ts +26 -0
- three/src/nodes/display/Sepia.d.ts +4 -0
- three/src/nodes/display/SobelOperatorNode.d.ts +4 -8
- three/src/nodes/display/StereoCompositePassNode.d.ts +17 -0
- three/src/nodes/display/StereoPassNode.d.ts +17 -0
- three/src/nodes/display/ToneMappingFunctions.d.ts +14 -0
- three/src/nodes/display/ToneMappingNode.d.ts +5 -6
- three/src/nodes/display/TransitionNode.d.ts +3 -9
- three/src/nodes/display/ViewportDepthNode.d.ts +6 -2
- three/src/nodes/display/ViewportDepthTextureNode.d.ts +4 -2
- three/src/nodes/display/ViewportNode.d.ts +23 -16
- three/src/nodes/display/ViewportSharedTextureNode.d.ts +4 -8
- three/src/nodes/display/ViewportTextureNode.d.ts +4 -9
- three/src/nodes/fog/FogExp2Node.d.ts +4 -8
- three/src/nodes/fog/FogNode.d.ts +4 -8
- three/src/nodes/fog/FogRangeNode.d.ts +4 -8
- three/src/nodes/functions/BSDF/BRDF_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Lambert.d.ts +1 -1
- three/src/nodes/functions/BSDF/BRDF_Sheen.d.ts +1 -1
- three/src/nodes/functions/BSDF/DFGApprox.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX.d.ts +1 -1
- three/src/nodes/functions/BSDF/D_GGX_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/BSDF/F_Schlick.d.ts +1 -1
- three/src/nodes/functions/BSDF/Schlick_to_F0.d.ts +10 -0
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +1 -1
- three/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.d.ts +1 -1
- three/src/nodes/functions/ShadowMaskModel.d.ts +1 -1
- three/src/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/src/nodes/functions/material/getRoughness.d.ts +1 -1
- three/src/nodes/geometry/RangeNode.d.ts +1 -1
- three/src/nodes/gpgpu/ComputeNode.d.ts +2 -2
- three/src/nodes/lighting/AmbientLightNode.d.ts +8 -0
- three/src/nodes/lighting/DirectionalLightNode.d.ts +8 -0
- three/src/nodes/lighting/IESSpotLightNode.d.ts +5 -0
- three/src/nodes/lighting/LightNode.d.ts +18 -0
- three/src/nodes/lighting/LightProbeNode.d.ts +11 -0
- three/src/nodes/lighting/LightUtils.d.ts +3 -3
- three/src/nodes/lighting/LightingContextNode.d.ts +1 -7
- three/src/nodes/lighting/LightsNode.d.ts +9 -13
- three/src/nodes/materialx/MaterialXNodes.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_hsv.d.ts +2 -2
- three/src/nodes/materialx/lib/mx_noise.d.ts +1 -1
- three/src/nodes/materialx/lib/mx_transform_color.d.ts +1 -1
- three/src/nodes/math/ConditionalNode.d.ts +39 -0
- three/src/nodes/math/Hash.d.ts +4 -0
- three/src/nodes/math/MathNode.d.ts +2 -2
- three/src/nodes/math/MathUtils.d.ts +0 -10
- three/src/nodes/math/OperatorNode.d.ts +18 -4
- three/src/nodes/math/TriNoise3D.d.ts +1 -1
- three/src/nodes/parsers/GLSLNodeFunction.d.ts +9 -0
- three/src/nodes/parsers/GLSLNodeParser.d.ts +8 -0
- three/src/nodes/pmrem/PMREMNode.d.ts +4 -2
- three/src/nodes/pmrem/PMREMUtils.d.ts +28 -0
- three/src/nodes/procedural/Checker.d.ts +4 -0
- three/src/nodes/tsl/TSLBase.d.ts +21 -0
- three/src/nodes/{shadernode/ShaderNode.d.ts → tsl/TSLCore.d.ts} +23 -23
- three/src/nodes/utils/CubeMapNode.d.ts +13 -0
- three/src/nodes/utils/Discard.d.ts +11 -0
- three/src/nodes/utils/EquirectUVNode.d.ts +1 -1
- three/src/nodes/utils/FunctionOverloadingNode.d.ts +13 -0
- three/src/nodes/utils/LoopNode.d.ts +22 -0
- three/src/nodes/utils/MatcapUVNode.d.ts +1 -1
- three/src/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/src/nodes/utils/OscNode.d.ts +1 -1
- three/src/nodes/utils/Packing.d.ts +5 -0
- three/src/nodes/utils/RTTNode.d.ts +7 -7
- three/src/nodes/utils/ReflectorNode.d.ts +1 -1
- three/src/nodes/utils/RemapNode.d.ts +2 -2
- three/src/nodes/utils/RotateNode.d.ts +1 -7
- three/src/nodes/utils/SetNode.d.ts +11 -0
- three/src/nodes/utils/SplitNode.d.ts +1 -1
- three/src/nodes/utils/SpriteSheetUVNode.d.ts +1 -1
- three/src/nodes/utils/SpriteUtils.d.ts +6 -0
- three/src/nodes/utils/{StoargeArrayElementNode.d.ts → StorageArrayElementNode.d.ts} +1 -7
- three/src/nodes/utils/TimerNode.d.ts +1 -1
- three/src/nodes/utils/TriplanarTexturesNode.d.ts +1 -7
- three/src/nodes/utils/UVUtils.d.ts +14 -0
- three/src/nodes/utils/ViewportUtils.d.ts +4 -0
- three/src/renderers/common/BindGroup.d.ts +8 -1
- three/src/renderers/common/Bindings.d.ts +2 -2
- three/src/renderers/common/ClippingContext.d.ts +1 -0
- three/src/renderers/common/QuadMesh.d.ts +2 -0
- three/src/renderers/common/RenderContext.d.ts +2 -0
- three/src/renderers/common/RenderContexts.d.ts +6 -4
- three/src/renderers/common/RenderObjects.d.ts +1 -1
- three/src/renderers/common/Renderer.d.ts +16 -4
- three/src/renderers/common/SampledTexture.d.ts +7 -1
- three/src/renderers/common/StandardRenderer.d.ts +12 -0
- three/src/renderers/common/Textures.d.ts +1 -0
- three/src/renderers/common/nodes/NodeLibrary.d.ts +56 -0
- three/src/renderers/common/nodes/NodeSampledTexture.d.ts +3 -3
- three/src/renderers/common/nodes/Nodes.d.ts +7 -9
- three/src/renderers/common/nodes/StandardNodeLibrary.d.ts +5 -0
- three/src/renderers/webgl/WebGLProperties.d.ts +5 -4
- three/src/renderers/webgpu/WebGPUBackend.d.ts +6 -2
- three/src/renderers/webgpu/WebGPURenderer.d.ts +3 -3
- three/src/renderers/webgpu/nodes/WGSLNodeBuilder.d.ts +2 -2
- three/src/renderers/webxr/WebXRManager.d.ts +0 -2
- three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -19
- three/src/nodes/accessors/TextureBicubicNode.d.ts +0 -18
- three/src/nodes/accessors/UniformsNode.d.ts +0 -23
- three/src/nodes/core/NodeKeywords.d.ts +0 -17
- three/src/nodes/display/BlendModeNode.d.ts +0 -47
- three/src/nodes/display/ColorAdjustmentNode.d.ts +0 -47
- three/src/nodes/materials/NodeMaterial.d.ts +0 -124
- three/src/nodes/math/CondNode.d.ts +0 -22
- three/src/nodes/math/HashNode.d.ts +0 -16
- three/src/nodes/procedural/CheckerNode.d.ts +0 -15
- three/src/nodes/utils/DiscardNode.d.ts +0 -17
- three/src/nodes/utils/PackingNode.d.ts +0 -24
- three/src/nodes/utils/RotateUVNode.d.ts +0 -19
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { NormalMapTypes } from "../../constants.js";
|
|
2
|
-
import { MeshToonMaterialParameters } from "../../materials/MeshToonMaterial.js";
|
|
3
2
|
import { Color } from "../../math/Color.js";
|
|
4
3
|
import { Vector2 } from "../../math/Vector2.js";
|
|
5
4
|
import { Texture } from "../../textures/Texture.js";
|
|
5
|
+
import { MeshToonMaterialParameters } from "../MeshToonMaterial.js";
|
|
6
6
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
7
7
|
|
|
8
8
|
export interface MeshToonNodeMaterialParameters extends NodeMaterialParameters, MeshToonMaterialParameters {
|
|
@@ -38,5 +38,5 @@ export default class MeshToonNodeMaterial extends NodeMaterial {
|
|
|
38
38
|
wireframeLinejoin: string;
|
|
39
39
|
fog: boolean;
|
|
40
40
|
|
|
41
|
-
constructor(
|
|
41
|
+
constructor(parameters?: MeshToonNodeMaterialParameters);
|
|
42
42
|
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import ClippingNode from "../../nodes/accessors/ClippingNode.js";
|
|
2
|
+
import LightingModel from "../../nodes/core/LightingModel.js";
|
|
3
|
+
import MRTNode from "../../nodes/core/MRTNode.js";
|
|
4
|
+
import Node from "../../nodes/core/Node.js";
|
|
5
|
+
import NodeBuilder from "../../nodes/core/NodeBuilder.js";
|
|
6
|
+
import LightsNode from "../../nodes/lighting/LightsNode.js";
|
|
7
|
+
import { ShaderNodeObject } from "../../nodes/tsl/TSLCore.js";
|
|
8
|
+
import { Material, MaterialParameters } from "../Material.js";
|
|
9
|
+
|
|
10
|
+
export interface NodeMaterialParameters extends MaterialParameters {
|
|
11
|
+
normals?: boolean | undefined;
|
|
12
|
+
|
|
13
|
+
colorSpaced?: boolean | undefined;
|
|
14
|
+
|
|
15
|
+
lightsNode?: LightsNode | null | undefined;
|
|
16
|
+
envNode?: Node | null | undefined;
|
|
17
|
+
aoNode?: Node | null | undefined;
|
|
18
|
+
|
|
19
|
+
colorNode?: Node | null | undefined;
|
|
20
|
+
normalNode?: Node | null | undefined;
|
|
21
|
+
opacityNode?: Node | null | undefined;
|
|
22
|
+
backdropNode?: Node | null | undefined;
|
|
23
|
+
backdropAlphaNode?: Node | null | undefined;
|
|
24
|
+
alphaTestNode?: Node | null | undefined;
|
|
25
|
+
|
|
26
|
+
positionNode?: Node | null | undefined;
|
|
27
|
+
|
|
28
|
+
depthNode?: Node | null | undefined;
|
|
29
|
+
shadowNode?: Node | null | undefined;
|
|
30
|
+
|
|
31
|
+
outputNode?: Node | null | undefined;
|
|
32
|
+
|
|
33
|
+
fragmentNode?: Node | null | undefined;
|
|
34
|
+
vertexNode?: Node | null | undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class NodeMaterial extends Material {
|
|
38
|
+
readonly isNodeMaterial: true;
|
|
39
|
+
|
|
40
|
+
fog: boolean;
|
|
41
|
+
lights: boolean;
|
|
42
|
+
|
|
43
|
+
lightsNode: LightsNode | null;
|
|
44
|
+
envNode: Node | null;
|
|
45
|
+
aoNode: Node | null;
|
|
46
|
+
|
|
47
|
+
colorNode: Node | null;
|
|
48
|
+
normalNode: Node | null;
|
|
49
|
+
opacityNode: Node | null;
|
|
50
|
+
backdropNode: Node | null;
|
|
51
|
+
backdropAlphaNode: Node | null;
|
|
52
|
+
alphaTestNode: Node | null;
|
|
53
|
+
|
|
54
|
+
positionNode: Node | null;
|
|
55
|
+
|
|
56
|
+
depthNode: Node | null;
|
|
57
|
+
shadowNode: Node | null;
|
|
58
|
+
shadowPositionNode: Node | null;
|
|
59
|
+
|
|
60
|
+
outputNode: Node | null;
|
|
61
|
+
mrtNode: MRTNode | null;
|
|
62
|
+
|
|
63
|
+
fragmentNode: Node | null;
|
|
64
|
+
vertexNode: Node | null;
|
|
65
|
+
|
|
66
|
+
constructor();
|
|
67
|
+
|
|
68
|
+
build(builder: NodeBuilder): void;
|
|
69
|
+
setup(builder: NodeBuilder): void;
|
|
70
|
+
setupClipping(builder: NodeBuilder): ClippingNode | null;
|
|
71
|
+
setupDepth(builder: NodeBuilder): void;
|
|
72
|
+
setupPosition(builder: NodeBuilder): Node;
|
|
73
|
+
setupDiffuseColor(builder: NodeBuilder): void;
|
|
74
|
+
setupVariants(builder: NodeBuilder): void;
|
|
75
|
+
setupNormal(builder: NodeBuilder): ShaderNodeObject<Node>;
|
|
76
|
+
setupEnvironment(builder: NodeBuilder): Node | null;
|
|
77
|
+
setupLightMap(builder: NodeBuilder): Node | null;
|
|
78
|
+
setupLights(builder: NodeBuilder): LightsNode;
|
|
79
|
+
setupOutgoingLight(): Node;
|
|
80
|
+
setupLightingModel(builder: NodeBuilder): LightingModel;
|
|
81
|
+
setupLighting(builder: NodeBuilder): Node;
|
|
82
|
+
setupOutput(builder: NodeBuilder, outputNode: Node): Node;
|
|
83
|
+
|
|
84
|
+
setDefaultValues(material: Material): void;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export default NodeMaterial;
|
|
88
|
+
|
|
89
|
+
export function registerNodeMaterial(type: string, nodeMaterialClass: { new(): NodeMaterial }): string;
|
|
90
|
+
|
|
91
|
+
export function createNodeMaterialFromType(type: string): NodeMaterial;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
export { default as InstancedPointsNodeMaterial } from "./InstancedPointsNodeMaterial.js";
|
|
1
2
|
export { default as Line2NodeMaterial } from "./Line2NodeMaterial.js";
|
|
2
3
|
export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js";
|
|
4
|
+
export { default as LineDashedNodeMaterial } from "./LineDashedNodeMaterial.js";
|
|
3
5
|
export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js";
|
|
6
|
+
export { default as MeshLambertNodeMaterial } from "./MeshLambertNodeMaterial.js";
|
|
4
7
|
export { default as MeshMatcapNodeMaterial } from "./MeshMatcapNodeMaterial.js";
|
|
5
8
|
export { default as MeshNormalNodeMaterial } from "./MeshNormalNodeMaterial.js";
|
|
6
9
|
export { default as MeshPhongNodeMaterial } from "./MeshPhongNodeMaterial.js";
|
|
7
10
|
export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.js";
|
|
8
|
-
export { default as
|
|
11
|
+
export { default as MeshSSSNodeMaterial } from "./MeshSSSNodeMaterial.js";
|
|
9
12
|
export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js";
|
|
10
13
|
export { default as MeshToonNodeMaterial } from "./MeshToonNodeMaterial.js";
|
|
11
|
-
export {
|
|
14
|
+
export { default as NodeMaterial } from "./NodeMaterial.js";
|
|
12
15
|
export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js";
|
|
13
16
|
export { default as ShadowNodeMaterial } from "./ShadowNodeMaterial.js";
|
|
14
17
|
export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PointsMaterialParameters } from "../../materials/PointsMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
3
2
|
import { Texture } from "../../textures/Texture.js";
|
|
3
|
+
import { PointsMaterialParameters } from "../PointsMaterial.js";
|
|
4
4
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
5
5
|
|
|
6
6
|
export interface PointsNodeMaterialParameters extends NodeMaterialParameters, PointsMaterialParameters {
|
|
@@ -16,7 +16,6 @@ export default class PointsNodeMaterial extends NodeMaterial {
|
|
|
16
16
|
alphaMap: Texture | null;
|
|
17
17
|
size: number;
|
|
18
18
|
sizeAttenuation: boolean;
|
|
19
|
-
fog: boolean;
|
|
20
19
|
|
|
21
20
|
constructor(parameters?: PointsNodeMaterialParameters);
|
|
22
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShadowMaterialParameters } from "../../materials/ShadowMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
2
|
+
import { ShadowMaterialParameters } from "../ShadowMaterial.js";
|
|
3
3
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
4
4
|
|
|
5
5
|
export interface ShadowNodeMaterialParameters extends NodeMaterialParameters, ShadowMaterialParameters {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SpriteMaterialParameters } from "../../materials/SpriteMaterial.js";
|
|
2
1
|
import { Color } from "../../math/Color.js";
|
|
2
|
+
import Node from "../../nodes/core/Node.js";
|
|
3
3
|
import { Texture } from "../../textures/Texture.js";
|
|
4
|
-
import
|
|
4
|
+
import { SpriteMaterialParameters } from "../SpriteMaterial.js";
|
|
5
5
|
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js";
|
|
6
6
|
|
|
7
7
|
export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, SpriteMaterialParameters {
|