Language

XFileGuid.Material Field (Microsoft.DirectX.Direct3D)

Retrieves the globally unique identifier (GUID) for material templates.

Definition

Visual Basic Public Shared Material As GuidLeave Site
C# public static GuidLeave Site Material;
C++ public: static GuidLeave Site Material;
JScript public static var Material : GuidLeave Site

Field Value

System.Guid
A GuidLeave Site value that contains the GUID for material templates.

This field is read-only. 

Remarks

Material templates define a basic material color that can be applied to a complete mesh or a mesh's individual faces. The power is the specular exponent of the material.

**Note: **The ambient color requires an alpha component.

TextureFilename is an optional data object. If it is not present, the face is not textured. The following is a Material template.

[C#]template Material
{
    < 3D82AB4D-62DA-11CF-AB39-0020AF71E433 >
    ColorRGBA faceColor;
    FLOAT power;
    ColorRGB specularColor;
    ColorRGB emissiveColor;
    [...]
}

Where:

  • faceColor - Face color. A ColorRgba template.
  • power - Material specular color exponent.
  • specularColor - Material specular color. A ColorRgb template.
  • emissiveColor - Material emissive color. A ColorRgb template.