UpgradeCommon.cs 908 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using UnityEngine.Scripting.APIUpdating;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. public enum UpgradeSurfaceType
  5. {
  6. Opaque,
  7. Transparent
  8. }
  9. public enum UpgradeBlendMode
  10. {
  11. Alpha,
  12. Premultiply,
  13. Additive,
  14. Multiply
  15. }
  16. public enum SpecularSource
  17. {
  18. SpecularTextureAndColor,
  19. NoSpecular
  20. }
  21. public enum SmoothnessSource
  22. {
  23. SpecularAlpha,
  24. BaseAlpha,
  25. }
  26. 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. }