Provides script language access to C++ objects of this type.
Function members are as follows:
Return Type | Function Name | Documentation |
---|---|---|
int32 | GetPrograms | Populates a <NodeBuffer> object with the <Program> node to which the <Material> node is connected. |
int32 | GetResources | Populates a <NodeBuffer> object with all the Textures, <VariableNode> objects, and <Program> nodes to which the <Material> node is connected. |
int32 | GetTextures | Populates a <NodeBuffer> object with the <Texture> nodes to which the <Material> node is connected. |
int32 | GetUniforms | Populates a <NodeBuffer> object with the <VariableNode> objects to which the <Material> node is connected. |
int32 | Select | Activates a <Material> in a rendering device. |
Object members are as follows:
Type Name | Accessor Name | Documentation |
---|---|---|
<Color> | AmbientColor | Gets or sets the ambient color of the <Material>. |
<Color> | DiffuseColor | Gets or sets the diffuse color of the <Material>. |
<Color> | EmissiveColor | Gets or sets the <Material> node object's emissive color. |
<Color> | IDColor | Gets or sets the ID color of the <Material>. |
<Color> | SpecularColor | Gets or sets the specular color of the <Material>. |
int32 | AlphaBlend | Gets or sets a <Material> node object's Alpha parameter. |
float64 | AlphaReference | Gets or sets the <Material> node object's alpha reference value. |
int32 | DepthTest | Gets or sets whether or not geometry rendered using the <Material> will be depth tested with the depth values in the rendering device's depth buffer prior to rendering. |
int32 | DepthWrite | Gets or sets whether or not geometry rendered using the <Material> will be written to the rendering device's depth buffer. |
int32 | FeatureID | Gets or sets a <Material> node object's FeatureID parameter. |
int32 | ImageWrite | Gets or sets whether or not geometry rendered using the <Material> will be written to the rendering device's image buffer. |
<Program> | InitialProgram | Gets or sets the initial shader <Program> to which the <Material> is linked. |
<Node> | InitialProgramLink | Gets or sets the initial shader <Program> to which the <Material> is linked. |
<Node> | InitialRenderHook | Gets or sets the initial render hook to which the <Material> is linked. |
<Node> | InitialRenderHookLink | Gets or sets the initial render hook to which the <Material> is linked. |
<Node> | InitialTexturePalette | Gets or sets the initial texture palette to which the <Material> is linked. |
<Node> | InitialTexturePaletteLink | Gets or sets the initial texture palette to which the <Material> is linked. |
float64 | Opacity | Gets or sets a <Material> node object's Opacity parameter. |
<Node> | ParameterGroup | Undocumented. |
<Program> | Program | Gets or sets the shader <Program> to which the <Material> is linked. |
<Node> | ProgramLink | Gets or sets the <Program> node to which the <Material> is linked. This member allows accessing or assigning a <NodeLink> reference to a <Program> node. |
<Node> | RenderHook | Gets or sets a <Material> node object's RenderHook parameter. The render hook executes after the <Material> activates its state, and supports initializing additional render state such as shader constants. |
<Node> | RenderHookLink | Gets or sets a <Material> node object's RenderHookLink parameter. This allows accessing or assigning a <NodeLink> for the render hook. |
float64 | Shininess | Gets or sets a <Material> node object's Opacity parameter. |
int32 | Solid | Gets or sets a <Material> node object's SolidRender parameter. |
<Texture> | Texture | Gets or sets a <Material> node object's Texture parameter. |
<Node> | TextureLink | Gets or sets a <Material> node object's TextureLink parameter. |
int32 | TwoSided | Sets or gets the a <Material> node object's TwoSided parameter. |