/// <summary> /// Initializes a new instance of the <see cref="PostProcessingEffects"/> class. /// </summary> public PostProcessingEffects() { depthOfField = new DepthOfField(); luminanceEffect = new LuminanceEffect(); brightFilter = new BrightFilter(); bloom = new Bloom(); lightStreak = new LightStreak(); lensFlare = new LensFlare(); ssaa = new FXAAEffect(); colorTransformsGroup = new ColorTransformGroup(); }
protected override void InitializeCore() { base.InitializeCore(); depthOfField = ToLoadAndUnload(depthOfField); luminanceEffect = ToLoadAndUnload(luminanceEffect); brightFilter = ToLoadAndUnload(brightFilter); bloom = ToLoadAndUnload(bloom); lightStreak = ToLoadAndUnload(lightStreak); lensFlare = ToLoadAndUnload(lensFlare); ssaa = ToLoadAndUnload(ssaa); colorTransformsGroup = ToLoadAndUnload(colorTransformsGroup); }