This reference page is linked to from the following overview topics: Animatables and Sub-Animatables, Implementing Simple Material and Texture Map Plug-ins with Nitrous.
#include <mtl.h>
The main material class definition.
This class describes the properties of a material used by the renderer.
Public Member Functions |
|
| DllExport | Material () |
| virtual | ~Material () |
| DllExport | Material (const Material &from) |
| Copy constructor. |
|
| DllExport Material & | operator= (const Material &from) |
| Assignment operator. |
|
| DllExport BaseInterface * | GetInterface (Interface_ID id) |
| Gets the BaseInterface pointer. |
|
Public Attributes |
|
| Point3 | Ka |
| Ambient color setting. |
|
| Point3 | Kd |
| Diffuse color setting. |
|
| Point3 | Ks |
| Specular color setting. |
|
| float | shininess |
| Shininess setting. This value ranges from
0.0 to 1.0. |
|
| float | shinStrength |
| Shininess strength setting. This value
ranges from 0.0 to 1.0. |
|
| float | opacity |
| Opacity setting. This value ranges from 0.0
to 1.0. |
|
| float | selfIllum |
| Self Illumination setting. This value ranges
from 0.0 to 1.0. |
|
| int | dblSided |
| Double sided material setting. Nonzero
indicates double sided material, otherwise single sided. |
|
| int | shadeLimit |
| Shading limit setting. See
Rendering Limits. |
|
| MaxSDK::Array< TextureInfo > | texture |
| The textures used by this material. |
|
| DllExport Material | ( | ) |
| virtual ~Material | ( | ) | [inline, virtual] |
{};
Copy constructor.
| [in] | from | The object that will be copied. |
Assignment operator.
| [in] | from | The object that will be copied. |
| DllExport BaseInterface* GetInterface | ( | Interface_ID | id | ) | [virtual] |
Ambient color setting.
The values for x, y, and z range from 0.0 to 1.0. These correspond to red, green, and blue respectively.
Diffuse color setting.
The values for x, y, and z range from 0.0 to 1.0. These correspond to red, green, and blue respectively.
Specular color setting.
The values for x, y, and z range from 0.0 to 1.0. These correspond to red, green, and blue respectively.
| float shininess |
Shininess setting. This value ranges from 0.0 to 1.0.
| float shinStrength |
Shininess strength setting. This value ranges from 0.0 to 1.0.
| float opacity |
Opacity setting. This value ranges from 0.0 to 1.0.
| float selfIllum |
Self Illumination setting. This value ranges from 0.0 to 1.0.
| int dblSided |
Double sided material setting. Nonzero indicates double sided material, otherwise single sided.
| int shadeLimit |
Shading limit setting. See Rendering Limits.
The textures used by this material.