Class LightShaderGroup
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
mixinShaderSource
Properties
HasEffectPermutations
public bool HasEffectPermutations { get; protected set; }
Property Value
ShaderSource
public ShaderSource ShaderSource { get; protected set; }
Property Value
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
contextRenderDrawContextviewIndexintparametersParameterCollectionboundingBoxBoundingBoxExt
ApplyEffectPermutations(RenderEffect)
Applies effect permutations.
public virtual void ApplyEffectPermutations(RenderEffect renderEffect)
Parameters
renderEffectRenderEffect
ApplyViewParameters(RenderDrawContext, int, ParameterCollection)
Applies PerView lighting parameters.
public virtual void ApplyViewParameters(RenderDrawContext context, int viewIndex, ParameterCollection parameters)
Parameters
contextRenderDrawContextviewIndexintparametersParameterCollection
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
compositionNamestring
UpdateViewResources(RenderDrawContext, int)
Prepares PerView lighting parameters.
public virtual void UpdateViewResources(RenderDrawContext context, int viewIndex)
Parameters
contextRenderDrawContextviewIndexint