UpgradeCommon.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using UnityEngine.Scripting.APIUpdating;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. [MovedFrom("UnityEditor.Rendering.LWRP")] public enum UpgradeSurfaceType
  5. {
  6. Opaque,
  7. Transparent
  8. }
  9. [MovedFrom("UnityEditor.Rendering.LWRP")] public enum UpgradeBlendMode
  10. {
  11. Alpha,
  12. Premultiply,
  13. Additive,
  14. Multiply
  15. }
  16. [MovedFrom("UnityEditor.Rendering.LWRP")] public enum SpecularSource
  17. {
  18. SpecularTextureAndColor,
  19. NoSpecular
  20. }
  21. [MovedFrom("UnityEditor.Rendering.LWRP")] public enum SmoothnessSource
  22. {
  23. BaseAlpha,
  24. SpecularAlpha
  25. }
  26. [MovedFrom("UnityEditor.Rendering.LWRP")] public enum ReflectionSource
  27. {
  28. NoReflection,
  29. Cubemap,
  30. ReflectionProbe
  31. }
  32. public struct UpgradeParams
  33. {
  34. public UpgradeSurfaceType surfaceType { get; set; }
  35. public UpgradeBlendMode blendMode { get; set; }
  36. public bool alphaClip { get; set; }
  37. public SpecularSource specularSource { get; set; }
  38. public SmoothnessSource smoothnessSource { get; set; }
  39. }
  40. }