MaterialOcclusionMapFeature Class
Namespace: Stride.Rendering.MaterialsAssembly: Stride.Rendering.dll
An occlusion map for the occlusion material feature.
[DataContract("MaterialOcclusionMapFeature")]
[Display("Occlusion Map", null)]
public class MaterialOcclusionMapFeature : MaterialFeature, IMaterialOcclusionFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
| Name | Description | |
|---|---|---|
| Constructors | ||
| MaterialOcclusionMapFeature() | Initializes a new instance of the MaterialOcclusionMapFeature class. |
|
| Properties | ||
| AmbientOcclusionMap | Gets or sets the occlusion map. |
|
| CavityMap | Gets or sets the cavity map. |
|
| DiffuseCavity | Gets or sets the diffuse cavity influence. |
|
| DirectLightingFactor | Gets or sets how much the occlusion map can influence direct lighting (default: 0). |
|
| SpecularCavity | Gets or sets the specular cavity. |
|
| Methods | ||
| GenerateShader(MaterialGeneratorContext) | ||
| GetStreams() | ||
Constructors
MaterialOcclusionMapFeature()
Initializes a new instance of the MaterialOcclusionMapFeature class.
public MaterialOcclusionMapFeature()
Properties
AmbientOcclusionMap
Gets or sets the occlusion map.
[Display("Occlusion Map", null)]
[DataMember(10)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar AmbientOcclusionMap { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeScalar | The occlusion map. |
CavityMap
Gets or sets the cavity map.
[Display("Cavity Map", null)]
[DataMember(20)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar CavityMap { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeScalar | The cavity map. |
DiffuseCavity
Gets or sets the diffuse cavity influence.
[Display("Diffuse Cavity", null)]
[DataMember(30)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar DiffuseCavity { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeScalar | The diffuse cavity. |
DirectLightingFactor
Gets or sets how much the occlusion map can influence direct lighting (default: 0).
[Display("Direct Lighting Influence", null)]
[DataMember(15)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar DirectLightingFactor { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeScalar | The direct lighting factor. |
SpecularCavity
Gets or sets the specular cavity.
[Display("Specular Cavity", null)]
[DataMember(40)]
[DataMemberRange(0, 1, 0.01, 0.1, 3)]
public IComputeScalar SpecularCavity { get; set; }
Property Value
| Type | Description |
|---|---|
| IComputeScalar | The specular cavity. |
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> |