MaterialAttributes Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
Common material attributes.
[DataContract("MaterialAttributes")]
[Display("Material attributes", null)]
[CategoryOrder(5, "Geometry")]
[CategoryOrder(10, "Shading")]
[CategoryOrder(15, "Misc")]
public class MaterialAttributes : IMaterialAttributes, IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialAttributes() | Initializes a new instance of the MaterialAttributes class. |
|
Properties | ||
ClearCoat | Gets or sets the clear coat shading features for the material. |
|
CullMode | Gets or sets the cull mode used for the material. |
|
Diffuse | Gets or sets the diffuse. |
|
DiffuseModel | Gets or sets the diffuse model. |
|
Displacement | Gets or sets the displacement. |
|
Emissive | Gets or sets the emissive. |
|
Enabled | Gets or sets a value indicating whether this MaterialAttributes is enabled. |
|
MicroSurface | Gets or sets the micro surface. |
|
Occlusion | Gets or sets the occlusion. |
|
Overrides | Gets or sets the overrides. |
|
Specular | Gets or sets the specular. |
|
SpecularModel | Gets or sets the specular model. |
|
SubsurfaceScattering | ||
Surface | Gets or sets the surface. |
|
Tessellation | Gets or sets the tessellation. |
|
Transparency | Gets or sets the transparency. |
|
Methods | ||
Visit(MaterialGeneratorContext) |
Constructors
MaterialAttributes()
Initializes a new instance of the MaterialAttributes class.
public MaterialAttributes()
Properties
ClearCoat
Gets or sets the clear coat shading features for the material.
[Display("Clear Coat", "Misc")]
[DataMember(140)]
public IMaterialClearCoatFeature ClearCoat { get; set; }
Property Value
Type | Description |
---|---|
IMaterialClearCoatFeature |
CullMode
Gets or sets the cull mode used for the material.
[Display("Cull Mode", "Misc")]
[DataMember(130)]
public CullMode CullMode { get; set; }
Property Value
Type | Description |
---|---|
CullMode |
Diffuse
Gets or sets the diffuse.
[Display("Diffuse", "Shading", Expand = ExpandRule.Once)]
[DataMember(50)]
public IMaterialDiffuseFeature Diffuse { get; set; }
Property Value
Type | Description |
---|---|
IMaterialDiffuseFeature | The diffuse. |
DiffuseModel
Gets or sets the diffuse model.
[Display("Diffuse Model", "Shading")]
[DataMember(60)]
public IMaterialDiffuseModelFeature DiffuseModel { get; set; }
Property Value
Type | Description |
---|---|
IMaterialDiffuseModelFeature | The diffuse model. |
Displacement
Gets or sets the displacement.
[Display("Displacement", "Geometry")]
[DataMember(20)]
public IMaterialDisplacementFeature Displacement { get; set; }
Property Value
Type | Description |
---|---|
IMaterialDisplacementFeature | The displacement. |
Emissive
Gets or sets the emissive.
[Display("Emissive", "Shading")]
[DataMember(100)]
public IMaterialEmissiveFeature Emissive { get; set; }
Property Value
Type | Description |
---|---|
IMaterialEmissiveFeature | The emissive. |
Enabled
Gets or sets a value indicating whether this MaterialAttributes is enabled.
[DataMember(-20)]
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
MicroSurface
Gets or sets the micro surface.
[Display("MicroSurface", "Geometry", Expand = ExpandRule.Once)]
[DataMember(40)]
public IMaterialMicroSurfaceFeature MicroSurface { get; set; }
Property Value
Type | Description |
---|---|
IMaterialMicroSurfaceFeature | The micro surface. |
Occlusion
Gets or sets the occlusion.
[Display("Occlusion", "Misc")]
[DataMember(90)]
public IMaterialOcclusionFeature Occlusion { get; set; }
Property Value
Type | Description |
---|---|
IMaterialOcclusionFeature | The occlusion. |
Overrides
Gets or sets the overrides.
[Display("Overrides", "Misc")]
[DataMember(120)]
public MaterialOverrides Overrides { get; }
Property Value
Type | Description |
---|---|
MaterialOverrides | The overrides. |
Specular
Gets or sets the specular.
[Display("Specular", "Shading", Expand = ExpandRule.Once)]
[DataMember(70)]
public IMaterialSpecularFeature Specular { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSpecularFeature | The specular. |
SpecularModel
Gets or sets the specular model.
[Display("Specular model", "Shading", Expand = ExpandRule.Once)]
[DataMember(80)]
public IMaterialSpecularModelFeature SpecularModel { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSpecularModelFeature | The specular model. |
SubsurfaceScattering
[Display("Subsurface Scattering", "Shading")]
[DataMember(105)]
public IMaterialSubsurfaceScatteringFeature SubsurfaceScattering { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSubsurfaceScatteringFeature |
Surface
Gets or sets the surface.
[Display("Surface", "Geometry")]
[DataMember(30)]
public IMaterialSurfaceFeature Surface { get; set; }
Property Value
Type | Description |
---|---|
IMaterialSurfaceFeature | The surface. |
Tessellation
Gets or sets the tessellation.
[Display("Tessellation", "Geometry")]
[DataMember(10)]
public IMaterialTessellationFeature Tessellation { get; set; }
Property Value
Type | Description |
---|---|
IMaterialTessellationFeature | The tessellation. |
Transparency
Gets or sets the transparency.
[Display("Transparency", "Misc")]
[DataMember(110)]
public IMaterialTransparencyFeature Transparency { get; set; }
Property Value
Type | Description |
---|---|
IMaterialTransparencyFeature | The transparency. |
Methods
Visit(MaterialGeneratorContext)
public void Visit(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |