diff --git a/types/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts b/types/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts index 97d83d196..dc4344060 100644 --- a/types/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts +++ b/types/three/src/nodes/materials/MeshPhongNodeMaterial.d.ts @@ -5,6 +5,7 @@ import { Euler } from "../../math/Euler.js"; import { Vector2 } from "../../math/Vector2.js"; import { Texture } from "../../textures/Texture.js"; import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js"; export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, MeshPhongMaterialParameters { @@ -13,8 +14,8 @@ export interface MeshPhongNodeMaterialParameters extends NodeMaterialParameters, export default class MeshPhongNodeMaterial extends NodeMaterial { readonly isMeshPhongNodeMaterial: true; - shininessNode: Node | null; - specularNode: Node | null; + shininessNode: ShaderNodeObject | null; + specularNode: ShaderNodeObject | null; // Properties from MeshPhongMaterial readonly isMeshPhongMaterial: true; diff --git a/types/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts b/types/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts index 3b9e500f1..85a5329b7 100644 --- a/types/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts +++ b/types/three/src/nodes/materials/MeshPhysicalNodeMaterial.d.ts @@ -3,6 +3,7 @@ import { Color } from "../../math/Color.js"; import { Vector2 } from "../../math/Vector2.js"; import { Texture } from "../../textures/Texture.js"; import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import MeshStandardNodeMaterial, { MeshStandardNodeMaterialParameters } from "./MeshStandardNodeMaterial.js"; export interface MeshPhysicalNodeMaterialParameters @@ -13,29 +14,29 @@ export interface MeshPhysicalNodeMaterialParameters export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial { readonly isMeshPhysicalNodeMaterial: true; - clearcoatNode: Node | null; - clearcoatRoughnessNode: Node | null; - clearcoatNormalNode: Node | null; + clearcoatNode: ShaderNodeObject | null; + clearcoatRoughnessNode: ShaderNodeObject | null; + clearcoatNormalNode: ShaderNodeObject | null; - sheenNode: Node | null; - sheenRoughnessNode: Node | null; + sheenNode: ShaderNodeObject | null; + sheenRoughnessNode: ShaderNodeObject | null; - iridescenceNode: Node | null; - iridescenceIORNode: Node | null; - iridescenceThicknessNode: Node | null; + iridescenceNode: ShaderNodeObject | null; + iridescenceIORNode: ShaderNodeObject | null; + iridescenceThicknessNode: ShaderNodeObject | null; - iorNode: Node | null; + iorNode: ShaderNodeObject | null; - specularIntensityNode: Node | null; - specularColorNode: Node | null; + specularIntensityNode: ShaderNodeObject | null; + specularColorNode: ShaderNodeObject | null; - transmissionNode: Node | null; - thicknessNode: Node | null; - attenuationDistanceNode: Node | null; - attenuationColorNode: Node | null; - dispersionNode: Node | null; + transmissionNode: ShaderNodeObject | null; + thicknessNode: ShaderNodeObject | null; + attenuationDistanceNode: ShaderNodeObject | null; + attenuationColorNode: ShaderNodeObject | null; + dispersionNode: ShaderNodeObject | null; - anisotropyNode: Node | null; + anisotropyNode: ShaderNodeObject | null; // Properties from MeshPhysicalMaterial readonly isMeshPhysicalMaterial: true; diff --git a/types/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts b/types/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts index 8506de76c..00c594427 100644 --- a/types/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts +++ b/types/three/src/nodes/materials/MeshSSSNodeMaterial.d.ts @@ -1,14 +1,15 @@ import ConstNode from "../core/ConstNode.js"; import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import MeshPhysicalNodeMaterial, { MeshPhysicalNodeMaterialParameters } from "./MeshPhysicalNodeMaterial.js"; export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial { - thicknessColorNode: Node | null; - thicknessDistortionNode: ConstNode; - thicknessAmbientNode: ConstNode; - thicknessAttenuationNode: ConstNode; - thicknessPowerNode: ConstNode; - thicknessScaleNode: ConstNode; + thicknessColorNode: ShaderNodeObject | null; + thicknessDistortionNode: ShaderNodeObject>; + thicknessAmbientNode: ShaderNodeObject>; + thicknessAttenuationNode: ShaderNodeObject>; + thicknessPowerNode: ShaderNodeObject>; + thicknessScaleNode: ShaderNodeObject>; constructor(parameters?: MeshPhysicalNodeMaterialParameters); diff --git a/types/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts b/types/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts index 6bc1dfb38..dca3cacc3 100644 --- a/types/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts +++ b/types/three/src/nodes/materials/MeshStandardNodeMaterial.d.ts @@ -5,6 +5,7 @@ import { Euler } from "../../math/Euler.js"; import { Vector2 } from "../../math/Vector2.js"; import { Texture } from "../../textures/Texture.js"; import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js"; export interface MeshStandardNodeMaterialParameters extends NodeMaterialParameters, MeshStandardMaterialParameters { @@ -13,10 +14,10 @@ export interface MeshStandardNodeMaterialParameters extends NodeMaterialParamete export default class MeshStandardNodeMaterial extends NodeMaterial { readonly isMeshStandardNodeMaterial: true; - emissiveNode: Node | null; + emissiveNode: ShaderNodeObject | null; - metalnessNode: Node | null; - roughnessNode: Node | null; + metalnessNode: ShaderNodeObject | null; + roughnessNode: ShaderNodeObject | null; // Properties from MeshStandardMaterial readonly isMeshStandardMaterial: true; diff --git a/types/three/src/nodes/materials/NodeMaterial.d.ts b/types/three/src/nodes/materials/NodeMaterial.d.ts index 7c7460042..c3246a8e7 100644 --- a/types/three/src/nodes/materials/NodeMaterial.d.ts +++ b/types/three/src/nodes/materials/NodeMaterial.d.ts @@ -16,6 +16,7 @@ import MRTNode from "../core/MRTNode.js"; import Node from "../core/Node.js"; import NodeBuilder from "../core/NodeBuilder.js"; import LightsNode from "../lighting/LightsNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import LineBasicNodeMaterial from "./LineBasicNodeMaterial.js"; import MeshBasicNodeMaterial from "./MeshBasicNodeMaterial.js"; import MeshMatcapNodeMaterial from "./MeshMatcapNodeMaterial.js"; @@ -33,26 +34,26 @@ export interface NodeMaterialParameters extends MaterialParameters { colorSpaced?: boolean | undefined; - lightsNode?: LightsNode | null | undefined; - envNode?: Node | null | undefined; - aoNode?: Node | null | undefined; + lightsNode?: ShaderNodeObject | null | undefined; + envNode?: ShaderNodeObject | null | undefined; + aoNode?: ShaderNodeObject | null | undefined; - colorNode?: Node | null | undefined; - normalNode?: Node | null | undefined; - opacityNode?: Node | null | undefined; - backdropNode?: Node | null | undefined; - backdropAlphaNode?: Node | null | undefined; - alphaTestNode?: Node | null | undefined; + colorNode?: ShaderNodeObject | null | undefined; + normalNode?: ShaderNodeObject | null | undefined; + opacityNode?: ShaderNodeObject | null | undefined; + backdropNode?: ShaderNodeObject | null | undefined; + backdropAlphaNode?: ShaderNodeObject | null | undefined; + alphaTestNode?: ShaderNodeObject | null | undefined; - positionNode?: Node | null | undefined; + positionNode?: ShaderNodeObject | null | undefined; - depthNode?: Node | null | undefined; - shadowNode?: Node | null | undefined; + depthNode?: ShaderNodeObject | null | undefined; + shadowNode?: ShaderNodeObject | null | undefined; - outputNode?: Node | null | undefined; + outputNode?: ShaderNodeObject | null | undefined; - fragmentNode?: Node | null | undefined; - vertexNode?: Node | null | undefined; + fragmentNode?: ShaderNodeObject | null | undefined; + vertexNode?: ShaderNodeObject | null | undefined; } export default class NodeMaterial extends Material { @@ -62,34 +63,34 @@ export default class NodeMaterial extends Material { lights: boolean; normals: boolean; - lightsNode: LightsNode | null; - envNode: Node | null; - aoNode: Node | null; + lightsNode: ShaderNodeObject | null; + envNode: ShaderNodeObject | null; + aoNode: ShaderNodeObject | null; - colorNode: Node | null; - normalNode: Node | null; - opacityNode: Node | null; - backdropNode: Node | null; - backdropAlphaNode: Node | null; - alphaTestNode: Node | null; + colorNode: ShaderNodeObject | null; + normalNode: ShaderNodeObject | null; + opacityNode: ShaderNodeObject | null; + backdropNode: ShaderNodeObject | null; + backdropAlphaNode: ShaderNodeObject | null; + alphaTestNode: ShaderNodeObject | null; - positionNode: Node | null; + positionNode: ShaderNodeObject | null; - depthNode: Node | null; - shadowNode: Node | null; - shadowPositionNode: Node | null; + depthNode: ShaderNodeObject | null; + shadowNode: ShaderNodeObject | null; + shadowPositionNode: ShaderNodeObject | null; - outputNode: Node | null; - mrtNode: MRTNode | null; + outputNode: ShaderNodeObject | null; + mrtNode: ShaderNodeObject | null; - fragmentNode: Node | null; - vertexNode: Node | null; + fragmentNode: ShaderNodeObject | null; + vertexNode: ShaderNodeObject | null; constructor(); build(builder: NodeBuilder): void; setup(builder: NodeBuilder): void; - setupClipping(builder: NodeBuilder): ClippingNode | null; + setupClipping(builder: NodeBuilder): ShaderNodeObject | null; setupDepth(builder: NodeBuilder): void; setupPosition(builder: NodeBuilder): Node; setupDiffuseColor(builder: NodeBuilder): void; diff --git a/types/three/src/nodes/materials/SpriteNodeMaterial.d.ts b/types/three/src/nodes/materials/SpriteNodeMaterial.d.ts index c4c567c31..6e739a406 100644 --- a/types/three/src/nodes/materials/SpriteNodeMaterial.d.ts +++ b/types/three/src/nodes/materials/SpriteNodeMaterial.d.ts @@ -2,6 +2,7 @@ import { SpriteMaterialParameters } from "../../materials/SpriteMaterial.js"; import { Color } from "../../math/Color.js"; import { Texture } from "../../textures/Texture.js"; import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js"; export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, SpriteMaterialParameters { @@ -10,8 +11,8 @@ export interface SpriteNodeMaterialParameters extends NodeMaterialParameters, Sp export default class SpriteNodeMaterial extends NodeMaterial { isSpriteNodeMaterial: true; - rotationNode: Node | null; - scaleNode: Node | null; + rotationNode: ShaderNodeObject | null; + scaleNode: ShaderNodeObject | null; // Properties from SpriteMaterial readonly isSpriteMaterial: true;