Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LightShadowMapShaderGroupDataBase Class

    Namespace: Stride.Rendering.Shadows
    Assembly: Stride.Rendering.dll

    Provides basic functionality for shadow map shader groups with a single shader source and a filter based on the LightShadowType

    System.Object → LightShadowMapShaderGroupDataBase
    Derived from LightShadowMapShaderGroupDataBase:

    public abstract class LightShadowMapShaderGroupDataBase : ILightShadowMapShaderGroupData
    Name Description
    Constructors
    LightShadowMapShaderGroupDataBase(LightShadowType)
    Properties
    FilterMemberName

    The first member name argument passed to the instantiated filter

    ShadowShader
    ShadowType
    Methods
    ApplyDrawParameters(RenderDrawContext, ParameterCollection, FastListStruct<LightDynamicEntry>, ref BoundingBoxExt)
    ApplyShader(ShaderMixinSource)
    ApplyViewParameters(RenderDrawContext, ParameterCollection, FastListStruct<LightDynamicEntry>)
    CreateShaderSource(Int32)

    Creates the shader source that performs shadowing

    UpdateLayout(String)
    UpdateLightCount(Int32, Int32)
    | Improve this Doc View Source

    Constructors


    LightShadowMapShaderGroupDataBase(LightShadowType)

    public LightShadowMapShaderGroupDataBase(LightShadowType shadowType)
    Parameters
    Type Name Description
    LightShadowType shadowType
    | Improve this Doc View Source

    Properties


    FilterMemberName

    The first member name argument passed to the instantiated filter

    protected virtual string FilterMemberName { get; }
    Property Value
    Type Description
    System.String

    ShadowShader

    public ShaderMixinSource ShadowShader { get; }
    Property Value
    Type Description
    ShaderMixinSource

    ShadowType

    public LightShadowType ShadowType { get; }
    Property Value
    Type Description
    LightShadowType
    | Improve this Doc View Source

    Methods


    ApplyDrawParameters(RenderDrawContext, ParameterCollection, FastListStruct<LightDynamicEntry>, ref BoundingBoxExt)

    public virtual void ApplyDrawParameters(RenderDrawContext context, ParameterCollection parameters, FastListStruct<LightDynamicEntry> currentLights, ref BoundingBoxExt boundingBox)
    Parameters
    Type Name Description
    RenderDrawContext context
    ParameterCollection parameters
    FastListStruct<LightDynamicEntry> currentLights
    BoundingBoxExt boundingBox

    ApplyShader(ShaderMixinSource)

    public virtual void ApplyShader(ShaderMixinSource mixin)
    Parameters
    Type Name Description
    ShaderMixinSource mixin

    ApplyViewParameters(RenderDrawContext, ParameterCollection, FastListStruct<LightDynamicEntry>)

    public virtual void ApplyViewParameters(RenderDrawContext context, ParameterCollection parameters, FastListStruct<LightDynamicEntry> currentLights)
    Parameters
    Type Name Description
    RenderDrawContext context
    ParameterCollection parameters
    FastListStruct<LightDynamicEntry> currentLights

    CreateShaderSource(Int32)

    Creates the shader source that performs shadowing

    public abstract ShaderClassSource CreateShaderSource(int lightCurrentCount)
    Parameters
    Type Name Description
    System.Int32 lightCurrentCount
    Returns
    Type Description
    ShaderClassSource

    UpdateLayout(String)

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

    UpdateLightCount(Int32, Int32)

    public virtual void UpdateLightCount(int lightLastCount, int lightCurrentCount)
    Parameters
    Type Name Description
    System.Int32 lightLastCount
    System.Int32 lightCurrentCount

    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