LightShaderGroup Class
Namespace: Stride.Rendering.LightsAssembly: 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. |
Constructors
LightShaderGroup()
protected LightShaderGroup()
LightShaderGroup(ShaderSource)
protected LightShaderGroup(ShaderSource mixin)
Parameters
Type | Name | Description |
---|---|---|
ShaderSource | mixin |
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 |
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 |