/// <summary> /// Activate this postprocessing effect /// </summary> public void Activate() { ActivatedPostProcessingEffect = this; if (EnginePostProcessing != null) { EnginePostProcessing.Activate(); } }
/// <summary> /// Deactivate this postprocessing effect /// </summary> public void DeActivate() { if (ActivatedPostProcessingEffect == this) { ActivatedPostProcessingEffect = null; } if (EnginePostProcessing != null) { EnginePostProcessing.Deactivate(); } }
private void IScene_PropertyChanged(object sender, PropertyChangedArgs e) { if (object.ReferenceEquals(e._component, _effectProperties)) { // check whether an entity property has been changed by the user // and update the engine entity variable accordingly if (_engineInstance != null && ParentLayer.Modifiable) { string varValue = GetPropertyValueAsString(e._propertyName); EnginePostProcessing.SetVariable(e._propertyName, varValue); ParentLayer.Modified = true; } } }