@types/three
Version:
TypeScript definitions for three
29 lines (20 loc) • 698 B
TypeScript
import { SpotLight } from "../../lights/SpotLight.js";
import Node from "../core/Node.js";
import NodeBuilder from "../core/NodeBuilder.js";
import AnalyticLightNode from "./AnalyticLightNode.js";
declare class SpotLightNode extends AnalyticLightNode<SpotLight> {
directionNode: Node;
coneCosNode: Node;
penumbraCosNode: Node;
cutoffDistanceNode: Node;
decayExponentNode: Node;
colorNode: Node;
constructor(light?: SpotLight | null);
getLightCoord(builder: NodeBuilder): Node;
}
declare module "three" {
export interface SpotLight {
attenuationNode?: ((lightNode: SpotLightNode) => Node) | null | undefined;
}
}
export default SpotLightNode;