Table of Contents

Class LightShaderGroup

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

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

public abstract class LightShaderGroup
Inheritance
LightShaderGroup
Derived

Constructors

LightShaderGroup()

protected LightShaderGroup()

LightShaderGroup(ShaderSource)

protected LightShaderGroup(ShaderSource mixin)

Parameters

mixin ShaderSource

Properties

HasEffectPermutations

public bool HasEffectPermutations { get; protected set; }

Property Value

bool

ShaderSource

public ShaderSource ShaderSource { get; protected set; }

Property Value

ShaderSource

Methods

ApplyDrawParameters(RenderDrawContext, int, ParameterCollection, ref BoundingBoxExt)

Applies PerDraw lighting parameters.

public virtual void ApplyDrawParameters(RenderDrawContext context, int viewIndex, ParameterCollection parameters, ref BoundingBoxExt boundingBox)

Parameters

context RenderDrawContext
viewIndex int
parameters ParameterCollection
boundingBox BoundingBoxExt

ApplyEffectPermutations(RenderEffect)

Applies effect permutations.

public virtual void ApplyEffectPermutations(RenderEffect renderEffect)

Parameters

renderEffect RenderEffect

ApplyViewParameters(RenderDrawContext, int, ParameterCollection)

Applies PerView lighting parameters.

public virtual void ApplyViewParameters(RenderDrawContext context, int viewIndex, ParameterCollection parameters)

Parameters

context RenderDrawContext
viewIndex int
parameters ParameterCollection

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

compositionName string

UpdateViewResources(RenderDrawContext, int)

Prepares PerView lighting parameters.

public virtual void UpdateViewResources(RenderDrawContext context, int viewIndex)

Parameters

context RenderDrawContext
viewIndex int