Skip to main content
Glama

MCP 3D Printer Server

MeshToonNodeMaterial.js1.2 kB
import NodeMaterial from './NodeMaterial.js'; import ToonLightingModel from '../../nodes/functions/ToonLightingModel.js'; import { MeshToonMaterial } from '../MeshToonMaterial.js'; const _defaultValues = /*@__PURE__*/ new MeshToonMaterial(); /** * Node material version of `MeshToonMaterial`. * * @augments NodeMaterial */ class MeshToonNodeMaterial extends NodeMaterial { static get type() { return 'MeshToonNodeMaterial'; } /** * Constructs a new mesh toon node material. * * @param {Object?} parameters - The configuration parameter. */ constructor( parameters ) { super(); /** * This flag can be used for type testing. * * @type {Boolean} * @readonly * @default true */ this.isMeshToonNodeMaterial = true; /** * Set to `true` because toon materials react on lights. * * @type {Boolean} * @default true */ this.lights = true; this.setDefaultValues( _defaultValues ); this.setValues( parameters ); } /** * Setups the lighting model. * * @return {ToonLightingModel} The lighting model. */ setupLightingModel( /*builder*/ ) { return new ToonLightingModel(); } } export default MeshToonNodeMaterial;

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