Class MaterialMetalnessMapFeature
A Metalness map for the specular material feature.
[DataContract("MaterialMetalnessMapFeature")]
[Display("Metalness Map", null)]
public class MaterialMetalnessMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator
- Inheritance
-
MaterialMetalnessMapFeature
- Implements
- Inherited Members
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
metalnessMap
IComputeScalarThe 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
- IComputeScalar
The metalness map.
Methods
GenerateShader(MaterialGeneratorContext)
Generates the shader for the feature.
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
context
MaterialGeneratorContextThe context.