MaterialMetalnessMapFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A Metalness map for the specular material feature.
Derived from MaterialMetalnessMapFeature:
[DataContract("MaterialMetalnessMapFeature")]
[Display("Metalness Map", null)]
public class MaterialMetalnessMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator
Name | Description | |
---|---|---|
Constructors | ||
MaterialMetalnessMapFeature() | Initializes a new instance of the MaterialMetalnessMapFeature class. |
|
MaterialMetalnessMapFeature(IComputeScalar) | Initializes a new instance of the MaterialMetalnessMapFeature class. |
|
Properties | ||
MetalnessMap | Gets or sets the metalness map. |
|
Methods | ||
GenerateShader(MaterialGeneratorContext) |
Constructors
MaterialMetalnessMapFeature()
Initializes a new instance of the MaterialMetalnessMapFeature class.
public MaterialMetalnessMapFeature()
MaterialMetalnessMapFeature(IComputeScalar)
Initializes a new instance of the MaterialMetalnessMapFeature class.
public MaterialMetalnessMapFeature(IComputeScalar metalnessMap)
Parameters
Type | Name | Description |
---|---|---|
IComputeScalar | metalnessMap | The metalness map. |
Properties
MetalnessMap
Gets or sets the metalness map.
[Display("Metalness Map", null)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar MetalnessMap { get; set; }
Property Value
Type | Description |
---|---|
IComputeScalar | The metalness map. |
Methods
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |