Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialDiffuseCelShadingModelFeature Class

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

    The diffuse Cel Shading for the diffuse material model attribute.

    System.Object → MaterialFeature → MaterialDiffuseCelShadingModelFeature
    Derived from MaterialDiffuseCelShadingModelFeature:

    [DataContract("MaterialDiffuseCelShadingModelFeature")]
    [Display("Cel Shading", null)]
    public class MaterialDiffuseCelShadingModelFeature : MaterialFeature, IEquatable<MaterialDiffuseCelShadingModelFeature>, IEnergyConservativeDiffuseModelFeature, IMaterialDiffuseModelFeature, IMaterialShadingModelFeature, IMaterialFeature, IMaterialShaderGenerator, IEquatable<IMaterialShadingModelFeature>
    Name Description
    Properties
    FakeNDotL

    When positive, the dot product between N and L will be modified to account for light intensity with the specified value as a factor

    RampFunction
    Methods
    Equals(IMaterialShadingModelFeature)
    Equals(MaterialDiffuseCelShadingModelFeature)
    Equals(Object)
    GenerateShader(MaterialGeneratorContext)
    GetHashCode()
    Explicit Interface Implementations
    IEnergyConservativeDiffuseModelFeature.IsEnergyConservative
    | Improve this Doc View Source

    Properties


    FakeNDotL

    When positive, the dot product between N and L will be modified to account for light intensity with the specified value as a factor

    [DataMember(5)]
    [Display("Modify N.L factor", null)]
    public float FakeNDotL { get; set; }
    Property Value
    Type Description
    System.Single

    RampFunction

    [DataMember(10)]
    [Display("Ramp Function", null)]
    public IMaterialCelShadingLightFunction RampFunction { get; set; }
    Property Value
    Type Description
    IMaterialCelShadingLightFunction
    | 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(MaterialDiffuseCelShadingModelFeature)

    public bool Equals(MaterialDiffuseCelShadingModelFeature other)
    Parameters
    Type Name Description
    MaterialDiffuseCelShadingModelFeature 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()
    | Improve this Doc View Source

    Explicit Interface Implementations


    IEnergyConservativeDiffuseModelFeature.IsEnergyConservative

    bool IEnergyConservativeDiffuseModelFeature.IsEnergyConservative { get; set; }
    Returns
    Type Description
    System.Boolean

    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