EffectParameterBindingApply Method |
Namespace: DigitalRune.Graphics.Effects
Exception | Condition |
---|---|
EffectBindingException | Unable to apply effect parameter. |
This method sets the shader constant to the value that was calculated in Update(RenderContext). Apply(RenderContext) needs to be called after Update(RenderContext) before the object that uses the Effect is rendered.
This method calls OnApply(RenderContext) which needs to be implemented in derived classes and is responsible for assigning the value that was calculated in Update(RenderContext) to Parameter by using the appropriate EffectParameter.SetValue() method.