Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialSubsurfaceScatteringFeature Class

    Namespace: Stride.Rendering.Materials
    Assembly: Stride.Rendering.dll
    System.Object → MaterialFeature → MaterialSubsurfaceScatteringFeature
    Derived from MaterialSubsurfaceScatteringFeature:

    [DataContract("MaterialSubsurfaceScatteringFeature")]
    [Display("Subsurface Scattering", null)]
    public class MaterialSubsurfaceScatteringFeature : MaterialFeature, IMaterialSubsurfaceScatteringFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>, IMaterialStreamProvider
    Name Description
    Properties
    IsLightDependent

    Gets the services.

    KernelFunction

    Generates the scattering kernel.

    ProfileFunction

    The profile mixin to use for the scattering calculations.

    ScatteringWidth

    Width of the scattering kernel in world space.

    Translucency

    Translucency of the material.

    TranslucencyMap

    Controls the thickness of the object. This value gets multiplied with the "Translucency" parameter.

    Methods
    Equals(IMaterialShadingModelFeature)
    Equals(MaterialSubsurfaceScatteringFeature)
    Equals(Object)
    GenerateShader(MaterialGeneratorContext)
    GetHashCode()
    GetStreams()
    | Improve this Doc View Source

    Properties


    IsLightDependent

    Gets the services.

    public bool IsLightDependent { get; }
    Property Value
    Type Description
    System.Boolean

    The services.


    KernelFunction

    Generates the scattering kernel.

    [DataMember(30)]
    [Display("Scattering kernel", null)]
    public IMaterialSubsurfaceScatteringScatteringKernel KernelFunction { get; set; }
    Property Value
    Type Description
    IMaterialSubsurfaceScatteringScatteringKernel

    ProfileFunction

    The profile mixin to use for the scattering calculations.

    [DataMember(25)]
    [Display("Scattering profile", null)]
    public IMaterialSubsurfaceScatteringScatteringProfile ProfileFunction { get; set; }
    Property Value
    Type Description
    IMaterialSubsurfaceScatteringScatteringProfile

    ScatteringWidth

    Width of the scattering kernel in world space.

    [DataMember(5)]
    [Display("Scattering width", null)]
    [DataMemberRange(0.001, 0.5, 0.001, 0.01, 4)]
    public float ScatteringWidth { get; set; }
    Property Value
    Type Description
    System.Single

    Translucency

    Translucency of the material.

    [DataMember(10)]
    [Display("Translucency", null)]
    [DataMemberRange(0, 1, 0.001, 0.01, 3)]
    public float Translucency { get; set; }
    Property Value
    Type Description
    System.Single

    TranslucencyMap

    Controls the thickness of the object. This value gets multiplied with the "Translucency" parameter.

    [DataMember(20)]
    [Display("Translucency map", null)]
    public IComputeScalar TranslucencyMap { get; set; }
    Property Value
    Type Description
    IComputeScalar
    | Improve this Doc View Source

    Methods


    Equals(IMaterialShadingModelFeature)

    public bool Equals(IMaterialShadingModelFeature other)
    Parameters
    Type Name Description
    IMaterialShadingModelFeature other
    Returns
    Type Description
    System.Boolean

    Equals(MaterialSubsurfaceScatteringFeature)

    protected bool Equals(MaterialSubsurfaceScatteringFeature other)
    Parameters
    Type Name Description
    MaterialSubsurfaceScatteringFeature other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.Object.Equals(System.Object)

    GenerateShader(MaterialGeneratorContext)

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

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.Object.GetHashCode()

    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