From 985a914e5c863f29b4ed8a93e258764270d9ed2d Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 21 Jul 2024 16:43:43 -0400 Subject: [PATCH] MeshBasicNodeMaterial: Add lightMap support. --- types/three/src/nodes/lighting/BasicLightMapNode.d.ts | 8 ++++++++ types/three/src/nodes/materials/NodeMaterial.d.ts | 1 + 2 files changed, 9 insertions(+) create mode 100644 types/three/src/nodes/lighting/BasicLightMapNode.d.ts diff --git a/types/three/src/nodes/lighting/BasicLightMapNode.d.ts b/types/three/src/nodes/lighting/BasicLightMapNode.d.ts new file mode 100644 index 000000000..c759e8857 --- /dev/null +++ b/types/three/src/nodes/lighting/BasicLightMapNode.d.ts @@ -0,0 +1,8 @@ +import Node from "../core/Node.js"; +import LightingNode from "./LightingNode.js"; + +declare class BasicLightMapNode extends LightingNode { + constructor(lightMapNode?: Node | null); +} + +export default BasicLightMapNode; diff --git a/types/three/src/nodes/materials/NodeMaterial.d.ts b/types/three/src/nodes/materials/NodeMaterial.d.ts index 5c1eab399..bc60e623e 100644 --- a/types/three/src/nodes/materials/NodeMaterial.d.ts +++ b/types/three/src/nodes/materials/NodeMaterial.d.ts @@ -92,6 +92,7 @@ export default class NodeMaterial extends Material { setupVariants(builder: NodeBuilder): void; setupNormal(builder: NodeBuilder): void; setupEnvironment(builder: NodeBuilder): Node | null; + setupLightMap(builder: NodeBuilder): Node | null; setupLights(builder: NodeBuilder): LightsNode; setupLightingModel(builder: NodeBuilder): LightingModel; setupLighting(builder: NodeBuilder): Node;