Skip to main content
Glama

MCP 3D Printer Server

DirectionalLightNode.js938 B
import AnalyticLightNode from './AnalyticLightNode.js'; import { lightTargetDirection } from '../accessors/Lights.js'; /** * Module for representing directional lights as nodes. * * @augments AnalyticLightNode */ class DirectionalLightNode extends AnalyticLightNode { static get type() { return 'DirectionalLightNode'; } /** * Constructs a new directional light node. * * @param {DirectionalLight?} [light=null] - The directional light source. */ constructor( light = null ) { super( light ); } setup( builder ) { super.setup( builder ); const lightingModel = builder.context.lightingModel; const lightColor = this.colorNode; const lightDirection = lightTargetDirection( this.light ); const reflectedLight = builder.context.reflectedLight; lightingModel.direct( { lightDirection, lightColor, reflectedLight }, builder.stack, builder ); } } export default DirectionalLightNode;

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DMontgomery40/mcp-3D-printer-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server