MaterialDescriptor Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A descriptor of a Material.
System.Object →
MaterialDescriptor
Derived from MaterialDescriptor:
[DataSerializerGlobal(typeof(ReferenceSerializer<MaterialDescriptor>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
[ContentSerializer(typeof(DataContentSerializer<MaterialDescriptor>))]
[DataContract("MaterialDescriptor")]
public class MaterialDescriptor : IMaterialDescriptor, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialDescriptor() | Initializes a new instance of the MaterialDescriptor class. |
|
Properties | ||
Attributes | Gets or sets the material attributes. |
|
Layers | Gets or sets the material compositor. |
|
MaterialId | ||
Methods | ||
Visit(MaterialGeneratorContext) |
Constructors
MaterialDescriptor()
Initializes a new instance of the MaterialDescriptor class.
public MaterialDescriptor()
Properties
Attributes
Gets or sets the material attributes.
[DataMember(10)]
[Display("Attributes", null, Expand = ExpandRule.Always)]
public MaterialAttributes Attributes { get; set; }
Property Value
Type | Description |
---|---|
MaterialAttributes | The material attributes. |
Layers
Gets or sets the material compositor.
[DataMember(20)]
public MaterialBlendLayers Layers { get; set; }
Property Value
Type | Description |
---|---|
MaterialBlendLayers | The material compositor. |
MaterialId
public AssetId MaterialId { get; set; }
Property Value
Type | Description |
---|---|
AssetId |
Methods
Visit(MaterialGeneratorContext)
public void Visit(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |