Share via


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 textures 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

Which kind of material this is.

Name

The name of this material.

Type

The exact type 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