MaterialGlossinessMapFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A smoothness map for the micro-surface material feature.
Derived from MaterialGlossinessMapFeature:
[DataContract("MaterialGlossinessMapFeature")]
[Display("Gloss map", null)]
public class MaterialGlossinessMapFeature : MaterialFeature, IMaterialMicroSurfaceFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
Name | Description | |
---|---|---|
Constructors | ||
MaterialGlossinessMapFeature() | Initializes a new instance of the MaterialGlossinessMapFeature class. |
|
MaterialGlossinessMapFeature(IComputeScalar) | Initializes a new instance of the MaterialGlossinessMapFeature class. |
|
Properties | ||
GlossinessMap | Gets or sets the smoothness map. |
|
Invert | Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert. |
|
Methods | ||
GenerateShader(MaterialGeneratorContext) | ||
GetStreams() |
Constructors
MaterialGlossinessMapFeature()
Initializes a new instance of the MaterialGlossinessMapFeature class.
public MaterialGlossinessMapFeature()
MaterialGlossinessMapFeature(IComputeScalar)
Initializes a new instance of the MaterialGlossinessMapFeature class.
public MaterialGlossinessMapFeature(IComputeScalar glossinessMap)
Parameters
Type | Name | Description |
---|---|---|
IComputeScalar | glossinessMap | The glossiness map. |
Properties
GlossinessMap
Gets or sets the smoothness map.
[Display("Gloss map", null)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar GlossinessMap { get; set; }
Property Value
Type | Description |
---|---|
IComputeScalar | The smoothness map. |
Invert
Gets or sets a value indicating whether this MaterialGlossinessMapFeature is invert.
[Display("Invert", null)]
public bool Invert { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Methods
GenerateShader(MaterialGeneratorContext)
public override void GenerateShader(MaterialGeneratorContext context)
Parameters
Type | Name | Description |
---|---|---|
MaterialGeneratorContext | context |
Overrides
GetStreams()
public IEnumerable<MaterialStreamDescriptor> GetStreams()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<MaterialStreamDescriptor> |