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
mixin
ShaderSource
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
context
RenderDrawContextviewIndex
intparameters
ParameterCollectionboundingBox
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
RenderDrawContextviewIndex
intparameters
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
RenderDrawContextviewIndex
int