newspeoplefor developersdocumentationdownloads

nMaterialNode Script Interface

nmaterialnode:

Super Class:

Subclasses:

C++ Class:

Info

A material node defines a shader and associated shader variables. It is derived from ntransformnode, so it also has a position in space. Note that a nmaterialnode itself cannot render, for this one of its subclasses have to be used.

Commands:


setshader

Command Input:
s(ShaderResource)
Command Output:
v
Command Description:
Set the name of the shader resource.

getshader

Command Input:
v
Command Output:
s(ShaderResource)
Command Description:
Get the name of the shader resource.

setmayashadername

Command Input:
s(shadername)
Command Output:
v
Command Description:
Sets the name of the assigned mayashader

getmayashadername

Command Input:
v
Command Output:
s(Shader name)
Command Description:
Gets the name of the assigned mayashader

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.