Class MaterialAttributes
Common material attributes.
[DataContract("MaterialAttributes")]
[Display("Material attributes", null)]
[CategoryOrder(5, "Geometry")]
[CategoryOrder(10, "Shading")]
[CategoryOrder(15, "Misc")]
public class MaterialAttributes : IMaterialAttributes, IMaterialFeature, IMaterialShaderGenerator
- Inheritance
-
MaterialAttributes
- Implements
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
CullMode
Gets or sets the cull mode used for the material.
[Display("Cull Mode", "Misc")]
[DataMember(130)]
public CullMode CullMode { get; set; }
Property Value
Diffuse
Gets or sets the diffuse.
[Display("Diffuse", "Shading", Expand = ExpandRule.Once)]
[DataMember(50)]
public IMaterialDiffuseFeature Diffuse { get; set; }
Property Value
- IMaterialDiffuseFeature
The diffuse.
DiffuseModel
Gets or sets the diffuse model.
[Display("Diffuse Model", "Shading")]
[DataMember(60)]
public IMaterialDiffuseModelFeature DiffuseModel { get; set; }
Property Value
- IMaterialDiffuseModelFeature
The diffuse model.
Displacement
Gets or sets the displacement.
[Display("Displacement", "Geometry")]
[DataMember(20)]
public IMaterialDisplacementFeature Displacement { get; set; }
Property Value
- IMaterialDisplacementFeature
The displacement.
Emissive
Gets or sets the emissive.
[Display("Emissive", "Shading")]
[DataMember(100)]
public IMaterialEmissiveFeature Emissive { get; set; }
Property Value
- IMaterialEmissiveFeature
The emissive.
Enabled
Gets or sets a value indicating whether this MaterialAttributes is enabled.
[DataMember(-20)]
public bool Enabled { get; set; }
Property Value
- bool
true
if enabled; otherwise,false
.
MicroSurface
Gets or sets the micro surface.
[Display("MicroSurface", "Geometry", Expand = ExpandRule.Once)]
[DataMember(40)]
public IMaterialMicroSurfaceFeature MicroSurface { get; set; }
Property Value
- IMaterialMicroSurfaceFeature
The micro surface.
Occlusion
Gets or sets the occlusion.
[Display("Occlusion", "Misc")]
[DataMember(90)]
public IMaterialOcclusionFeature Occlusion { get; set; }
Property Value
- IMaterialOcclusionFeature
The occlusion.
Overrides
Gets or sets the overrides.
[Display("Overrides", "Misc")]
[DataMember(120)]
public MaterialOverrides Overrides { get; }
Property Value
- MaterialOverrides
The overrides.
Specular
Gets or sets the specular.
[Display("Specular", "Shading", Expand = ExpandRule.Once)]
[DataMember(70)]
public IMaterialSpecularFeature Specular { get; set; }
Property Value
- 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
- IMaterialSpecularModelFeature
The specular model.
SubsurfaceScattering
[Display("Subsurface Scattering", "Shading")]
[DataMember(105)]
public IMaterialSubsurfaceScatteringFeature SubsurfaceScattering { get; set; }
Property Value
Surface
Gets or sets the surface.
[Display("Surface", "Geometry")]
[DataMember(30)]
public IMaterialSurfaceFeature Surface { get; set; }
Property Value
- IMaterialSurfaceFeature
The surface.
Tessellation
Gets or sets the tessellation.
[Display("Tessellation", "Geometry")]
[DataMember(10)]
public IMaterialTessellationFeature Tessellation { get; set; }
Property Value
- IMaterialTessellationFeature
The tessellation.
Transparency
Gets or sets the transparency.
[Display("Transparency", "Misc")]
[DataMember(110)]
public IMaterialTransparencyFeature Transparency { get; set; }
Property Value
- IMaterialTransparencyFeature
The transparency.
Methods
Visit(MaterialGeneratorContext)
Generates the shader.
public void Visit(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.