Class MaterialDescriptor
A descriptor of a Material.
[DataSerializerGlobal(typeof(ReferenceSerializer<MaterialDescriptor>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
[ContentSerializer(typeof(DataContentSerializer<MaterialDescriptor>))]
[DataContract("MaterialDescriptor")]
public class MaterialDescriptor : IMaterialDescriptor, IMaterialShaderGenerator
- Inheritance
-
MaterialDescriptor
- Implements
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
- MaterialAttributes
The material attributes.
Layers
Gets or sets the material compositor.
[DataMember(20)]
public MaterialBlendLayers Layers { get; set; }
Property Value
- MaterialBlendLayers
The material compositor.
MaterialId
Gets the material identifier used only internaly to match material instance by id (when cloning an asset for example) to provide an error when defining a material that is recursively referencing itself.
public AssetId MaterialId { get; set; }
Property Value
- AssetId
The material identifier.
Methods
Visit(MaterialGeneratorContext)
Generates the shader.
public void Visit(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.