| GetEffectT(Boolean, Boolean) |
Gets an effect by its type T (by default the type must exactly match the type T and no derived class is matched; this is controller by an optional parameter exactlyMatchType).
If the effect was not yet registered by EffectsManager and if createNewEffectInstanceIfNotFound is true,
then a new instance of effect T is created, registered with EffectsManager and returned.
To get StandardEffect (effect that can render all possible lights), use GetStandardEffect method.
NOTE: When the returned effect is not used any more, user must call Dispose (reference count is increased in GetEffect method).
|