Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MaterialSpecularMapFeature Class

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

    A Specular map for the specular material feature.

    System.Object → MaterialFeature → MaterialSpecularMapFeature
    Derived from MaterialSpecularMapFeature:

    [DataContract("MaterialSpecularMapFeature")]
    [Display("Specular Map", null)]
    public class MaterialSpecularMapFeature : MaterialFeature, IMaterialSpecularFeature, IMaterialFeature, IMaterialShaderGenerator, IMaterialStreamProvider
    Name Description
    Constructors
    MaterialSpecularMapFeature()

    Initializes a new instance of the MaterialSpecularMapFeature class.

    Properties
    Intensity

    Gets or sets the specular intensity.

    IsEnergyConservative

    Gets or sets a value indicating whether this instance is energy conservative.

    SpecularMap

    Gets or sets the specular map.

    Methods
    GenerateShader(MaterialGeneratorContext)
    GetStreams()
    | Improve this Doc View Source

    Constructors


    MaterialSpecularMapFeature()

    Initializes a new instance of the MaterialSpecularMapFeature class.

    public MaterialSpecularMapFeature()
    | Improve this Doc View Source

    Properties


    Intensity

    Gets or sets the specular intensity.

    [DataMember(20)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    public IComputeScalar Intensity { get; set; }
    Property Value
    Type Description
    IComputeScalar

    The map specifying the intensity of the specular reflection. An intensity of 0 means no reflection. An intensity of 1 means full reflection.


    IsEnergyConservative

    Gets or sets a value indicating whether this instance is energy conservative.

    [DataMember(30)]
    [Display("Energy conservative", null)]
    public bool IsEnergyConservative { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is energy conservative; otherwise, false.


    SpecularMap

    Gets or sets the specular map.

    [DataMember(10)]
    [Display("Specular Map", null)]
    public IComputeColor SpecularMap { get; set; }
    Property Value
    Type Description
    IComputeColor

    The specular map.

    | 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