Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    MaterialOcclusionMapFeature Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll

    An occlusion map for the occlusion material feature.

    System.Object → MaterialFeature → MaterialOcclusionMapFeature
    Derived from MaterialOcclusionMapFeature:

    [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()
    | Improve this Doc View Source

    Constructors


    MaterialOcclusionMapFeature()

    Initializes a new instance of the MaterialOcclusionMapFeature class.

    public MaterialOcclusionMapFeature()
    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    Methods


    GenerateShader(MaterialGeneratorContext)

    public override void GenerateShader(MaterialGeneratorContext context)
    Parameters
    Type Name Description
    MaterialGeneratorContext context
    Overrides
    MaterialFeature.GenerateShader(MaterialGeneratorContext)

    GetStreams()

    public IEnumerable<MaterialStreamDescriptor> GetStreams()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<MaterialStreamDescriptor>

    Inherited Members

    MaterialFeature.Enabled
    MaterialFeature.Visit(MaterialGeneratorContext)
    MaterialFeature.MultipassGeneration(MaterialGeneratorContext)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation