Aucune description
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

UpgradeCommon.cs 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. using UnityEngine.Scripting.APIUpdating;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// The surface type for your material.
  6. /// </summary>
  7. public enum UpgradeSurfaceType
  8. {
  9. /// <summary>
  10. /// Use this for opaque surfaces.
  11. /// </summary>
  12. Opaque,
  13. /// <summary>
  14. /// Use this for transparent surfaces.
  15. /// </summary>
  16. Transparent
  17. }
  18. /// <summary>
  19. /// The blend mode for your material.
  20. /// </summary>
  21. public enum UpgradeBlendMode
  22. {
  23. /// <summary>
  24. /// Use this for alpha blend mode.
  25. /// </summary>
  26. Alpha,
  27. /// <summary>
  28. /// Use this for premultiply blend mode.
  29. /// </summary>
  30. Premultiply,
  31. /// <summary>
  32. /// Use this for additive blend mode.
  33. /// </summary>
  34. Additive,
  35. /// <summary>
  36. /// Use this for multiply blend mode.
  37. /// </summary>
  38. Multiply
  39. }
  40. /// <summary>
  41. /// Options for Specular source.
  42. /// </summary>
  43. public enum SpecularSource
  44. {
  45. /// <summary>
  46. /// Use this to use specular texture and color.
  47. /// </summary>
  48. SpecularTextureAndColor,
  49. /// <summary>
  50. /// Use this when not using specular.
  51. /// </summary>
  52. NoSpecular
  53. }
  54. /// <summary>
  55. /// Options to select the texture channel where the smoothness value is stored.
  56. /// </summary>
  57. public enum SmoothnessSource
  58. {
  59. /// <summary>
  60. /// Use this when smoothness is stored in the alpha channel of the Specular Map.
  61. /// </summary>
  62. SpecularAlpha,
  63. /// <summary>
  64. /// Use this when smoothness is stored in the alpha channel of the base Map.
  65. /// </summary>
  66. BaseAlpha,
  67. }
  68. /// <summary>
  69. /// Options to select the source for reflections.
  70. /// </summary>
  71. public enum ReflectionSource
  72. {
  73. /// <summary>
  74. /// Use this when there are no reflections.
  75. /// </summary>
  76. NoReflection,
  77. /// <summary>
  78. /// Use this when the source comes from a cubemap.
  79. /// </summary>
  80. Cubemap,
  81. /// <summary>
  82. /// Use this when the source comes from a reflection probe.
  83. /// </summary>
  84. ReflectionProbe
  85. }
  86. /// <summary>
  87. /// Container for the upgrade parameters.
  88. /// </summary>
  89. public struct UpgradeParams
  90. {
  91. /// <summary>
  92. /// Surface type upgrade parameters.
  93. /// </summary>
  94. public UpgradeSurfaceType surfaceType { get; set; }
  95. /// <summary>
  96. /// Blend mode upgrade parameters.
  97. /// </summary>
  98. public UpgradeBlendMode blendMode { get; set; }
  99. /// <summary>
  100. /// Alpha clip upgrade parameters.
  101. /// </summary>
  102. public bool alphaClip { get; set; }
  103. /// <summary>
  104. /// Specular source upgrade parameters.
  105. /// </summary>
  106. public SpecularSource specularSource { get; set; }
  107. /// <summary>
  108. /// Smoothness source upgrade parameters.
  109. /// </summary>
  110. public SmoothnessSource smoothnessSource { get; set; }
  111. }
  112. }