Skip to main content
Glama

MCP 3D Printer Server

NodeSampler.js903 B
import Sampler from '../Sampler.js'; /** * A special form of sampler binding type. * It's texture value is managed by a node object. * * @private * @augments Sampler */ class NodeSampler extends Sampler { /** * Constructs a new node-based sampler. * * @param {String} name - The samplers's name. * @param {TextureNode} textureNode - The texture node. * @param {UniformGroupNode} groupNode - The uniform group node. */ constructor( name, textureNode, groupNode ) { super( name, textureNode ? textureNode.value : null ); /** * The texture node. * * @type {TextureNode} */ this.textureNode = textureNode; /** * The uniform group node. * * @type {UniformGroupNode} */ this.groupNode = groupNode; } /** * Updates the texture value of this sampler. */ update() { this.texture = this.textureNode.value; } } export default NodeSampler;

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