DistorterModelProcessor.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. #region File Description
  2. //-----------------------------------------------------------------------------
  3. // DistorterModelProcessor.cs
  4. //
  5. // Microsoft XNA Community Game Platform
  6. // Copyright (C) Microsoft Corporation. All rights reserved.
  7. //-----------------------------------------------------------------------------
  8. #endregion
  9. #region Using Statements
  10. using System;
  11. using Microsoft.Xna.Framework.Content.Pipeline;
  12. using Microsoft.Xna.Framework.Content.Pipeline.Graphics;
  13. using Microsoft.Xna.Framework.Content.Pipeline.Processors;
  14. #endregion
  15. namespace DistortionPipeline
  16. {
  17. /// <summary>
  18. /// Processor for models which will be used as distorters. This will invoke
  19. /// the DistorterMaterialProcessor to apply the Distorter.fx effect.
  20. /// </summary>
  21. [ContentProcessor]
  22. class DistorterModelProcessor : ModelProcessor
  23. {
  24. protected override MaterialContent ConvertMaterial(MaterialContent material,
  25. ContentProcessorContext context)
  26. {
  27. return context.Convert<MaterialContent, MaterialContent>(material,
  28. "DistorterMaterialProcessor");
  29. }
  30. }
  31. }