Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LightShaderGroup Class

    Namespace: Stride.Rendering.Lights
    Assembly: Stride.Rendering.dll

    A group of lights of the same type (single loop in the shader).

    System.Object → LightShaderGroup
    Derived from LightShaderGroup: LightShaderGroupDynamic

    public abstract class LightShaderGroup
    Name Description
    Constructors
    LightShaderGroup()
    LightShaderGroup(ShaderSource)
    Properties
    HasEffectPermutations
    ShaderSource
    Methods
    ApplyDrawParameters(RenderDrawContext, Int32, ParameterCollection, ref BoundingBoxExt)

    Applies PerDraw lighting parameters.

    ApplyEffectPermutations(RenderEffect)

    Applies effect permutations.

    ApplyViewParameters(RenderDrawContext, Int32, ParameterCollection)

    Applies PerView lighting parameters.

    Reset()

    Resets states.

    UpdateLayout(String)

    Called when layout is updated, so that parameter keys can be recomputed.

    UpdateViewResources(RenderDrawContext, Int32)

    Prepares PerView lighting parameters.

    | Improve this Doc View Source

    Constructors


    LightShaderGroup()

    protected LightShaderGroup()

    LightShaderGroup(ShaderSource)

    protected LightShaderGroup(ShaderSource mixin)
    Parameters
    Type Name Description
    ShaderSource mixin
    | Improve this Doc View Source

    Properties


    HasEffectPermutations

    public bool HasEffectPermutations { get; protected set; }
    Property Value
    Type Description
    System.Boolean

    ShaderSource

    public ShaderSource ShaderSource { get; protected set; }
    Property Value
    Type Description
    ShaderSource
    | Improve this Doc View Source

    Methods


    ApplyDrawParameters(RenderDrawContext, Int32, ParameterCollection, ref BoundingBoxExt)

    Applies PerDraw lighting parameters.

    public virtual void ApplyDrawParameters(RenderDrawContext context, int viewIndex, ParameterCollection parameters, ref BoundingBoxExt boundingBox)
    Parameters
    Type Name Description
    RenderDrawContext context
    System.Int32 viewIndex
    ParameterCollection parameters
    BoundingBoxExt boundingBox

    ApplyEffectPermutations(RenderEffect)

    Applies effect permutations.

    public virtual void ApplyEffectPermutations(RenderEffect renderEffect)
    Parameters
    Type Name Description
    RenderEffect renderEffect

    ApplyViewParameters(RenderDrawContext, Int32, ParameterCollection)

    Applies PerView lighting parameters.

    public virtual void ApplyViewParameters(RenderDrawContext context, int viewIndex, ParameterCollection parameters)
    Parameters
    Type Name Description
    RenderDrawContext context
    System.Int32 viewIndex
    ParameterCollection parameters

    Reset()

    Resets states.

    public virtual void Reset()

    UpdateLayout(String)

    Called when layout is updated, so that parameter keys can be recomputed.

    public virtual void UpdateLayout(string compositionName)
    Parameters
    Type Name Description
    System.String compositionName

    UpdateViewResources(RenderDrawContext, Int32)

    Prepares PerView lighting parameters.

    public virtual void UpdateViewResources(RenderDrawContext context, int viewIndex)
    Parameters
    Type Name Description
    RenderDrawContext context
    System.Int32 viewIndex

    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