PageRenderTime 55ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/Utilities/Graphics/ShaderFeatures/WaterShaderFeature.cs

#
C# | 90 lines | 52 code | 8 blank | 30 comment | 0 complexity | ee62b912f51ed037ee5ab187722bed1e MD5 | raw file
Possible License(s): Apache-2.0
  1. using System.Collections.Generic;
  2. using System.IO;
  3. namespace Delta.Utilities.Graphics.ShaderFeatures
  4. {
  5. /// <summary>
  6. /// Water shader feature
  7. /// </summary>
  8. public class WaterShaderFeature : IShaderFeature
  9. {
  10. #region ShaderFeature (Public)
  11. /// <summary>
  12. /// Which shader feature flag is this ShaderFeature class using?
  13. /// Important for loading this file via ShaderData.LoadShaderFeature.
  14. /// Each flag should obviously only have one class for it!
  15. /// </summary>
  16. public ShaderFeatureFlags ShaderFeature
  17. {
  18. get
  19. {
  20. return ShaderFeatureFlags.Water;
  21. }
  22. }
  23. #endregion
  24. #region RequiredShaderFeatures (Public)
  25. /// <summary>
  26. /// Which shader feature flags are required for this ShaderFeature.
  27. /// Very important for creating of a new ShaderFeature.
  28. /// </summary>
  29. public ShaderFeatureFlags RequiredShaderFeatures
  30. {
  31. get
  32. {
  33. return ShaderFeatureFlags.NormalMap;
  34. }
  35. }
  36. #endregion
  37. #region Parameters (Public)
  38. /// <summary>
  39. /// Parameters as a dictionary, will be generated on the fly when
  40. /// requested.
  41. /// </summary>
  42. public Dictionary<string, object> Parameters
  43. {
  44. get
  45. {
  46. return new Dictionary<string, object>();
  47. }
  48. }
  49. #endregion
  50. #region Constructors
  51. /// <summary>
  52. /// Create water shader feature
  53. /// </summary>
  54. public WaterShaderFeature()
  55. {
  56. }
  57. // AlphaTestShaderFeature()
  58. /// <summary>
  59. /// Create water shader feature and load automatically
  60. /// the ShaderFeatures from a binary data stream.
  61. /// </summary>
  62. public WaterShaderFeature(BinaryReader reader)
  63. {
  64. Load(reader);
  65. }
  66. #endregion
  67. #region ISaveLoadBinary Members
  68. /// <summary>
  69. /// Load this ShaderFeature from a binary data stream.
  70. /// </summary>
  71. public void Load(BinaryReader reader)
  72. {
  73. }
  74. /// <summary>
  75. /// Save this ShaderFeature to a binary data stream.
  76. /// </summary>
  77. public void Save(BinaryWriter writer)
  78. {
  79. }
  80. #endregion
  81. }
  82. }