Material Class

Definition

Materials are shared resources used to describe the rendering properties of a Mesh.

public ref class Material : Microsoft::Azure::RemoteRendering::ResourceBase
public class Material : Microsoft.Azure.RemoteRendering.ResourceBase
type Material = class
    inherit ResourceBase
Public Class Material
Inherits ResourceBase
Inheritance
Material
Derived

Remarks

A material specifies which Texture to use and how to apply lighting to geometry. This class is the base class for all material resources. Derived classes determine the exact appearance.

If a material is modified, all meshes that reference the material will be affected. To modify only the material of a specific object you need to create a dedicated material and replace the material reference on the MeshComponent to point to the custom material.

Properties

InternalId

Only used for testing

(Inherited from ResourceBase)
InteropId

Only used for testing

(Inherited from ResourceBase)
MaterialSubType

Material subtype enum value.

Name

The name of this material.

Type

The ObjectType of this resource.

Valid

Whether this resource is still valid.

Methods

AsToolingObject<ToolingObject>()

Only used for testing

(Inherited from ResourceBase)
CopyFrom(Material)

Copies material properties from another material.

Equals(Object) (Inherited from ResourceBase)
GetHashCode() (Inherited from ResourceBase)

Applies to

See also