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.
- Command Input:
s(ShaderResource)
- Command Output:
v
- Command Description:
- Set the name of the shader resource.
- Command Input:
v
- Command Output:
s(ShaderResource)
- Command Description:
- Get the name of the shader resource.
- Command Input:
s(shadername)
- Command Output:
v
- Command Description:
- Sets the name of the assigned mayashader
- Command Input:
v
- Command Output:
s(Shader name)
- Command Description:
- Gets the name of the assigned mayashader