MaterialSpecularMapFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
A Specular map for the specular material feature.
Derived from MaterialSpecularMapFeature:
[DataContract("MaterialSpecularMapFeature")]
[Display("Specular Map", null)]
public class MaterialSpecularMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
Name | Description | |
---|---|---|
Constructors | ||
MaterialSpecularMapFeature() | Initializes a new instance of the MaterialSpecularMapFeature class. |
|
Properties | ||
Intensity | Gets or sets the specular intensity. |
|
IsEnergyConservative | Gets or sets a value indicating whether this instance is energy conservative. |
|
SpecularMap | Gets or sets the specular map. |
|
Methods | ||
GenerateShader(MaterialGeneratorContext) | ||
GetStreams() |
Constructors
MaterialSpecularMapFeature()
Initializes a new instance of the MaterialSpecularMapFeature class.
public MaterialSpecularMapFeature()
Properties
Intensity
Gets or sets the specular intensity.
[DataMember(20)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar Intensity { get; set; }
Property Value
Type | Description |
---|---|
IComputeScalar | The map specifying the intensity of the specular reflection. An intensity of 0 means no reflection. An intensity of 1 means full reflection. |
IsEnergyConservative
Gets or sets a value indicating whether this instance is energy conservative.
[DataMember(30)]
[Display("Energy conservative", null)]
public bool IsEnergyConservative { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SpecularMap
Gets or sets the specular map.
[DataMember(10)]
[Display("Specular Map", null)]
public IComputeColor SpecularMap { get; set; }
Property Value
Type | Description |
---|---|
IComputeColor | The specular map. |
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> |