Table of Contents

Class MaterialOcclusionMapFeature

Namespace
Stride.Rendering.Materials
Assembly
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
Inheritance
MaterialOcclusionMapFeature
Implements
Inherited Members

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

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

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

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

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

IComputeScalar

The specular cavity.

Methods

GenerateShader(MaterialGeneratorContext)

Generates the shader for the feature.

public override void GenerateShader(MaterialGeneratorContext context)

Parameters

context MaterialGeneratorContext

The context.

GetStreams()

Gets the streams used by a material

public IEnumerable<MaterialStreamDescriptor> GetStreams()

Returns

IEnumerable<MaterialStreamDescriptor>

IEnumerable<MaterialStream>.