Ingen beskrivning
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

HDROutputDefines.cs 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using UnityEngine.Serialization;
  2. namespace UnityEngine.Rendering
  3. {
  4. /// <summary>
  5. /// The available options for range reduction/tonemapping when outputting to an HDR device.
  6. /// </summary>
  7. [GenerateHLSL]
  8. public enum HDRRangeReduction
  9. {
  10. /// <summary>
  11. /// No range reduction.
  12. /// </summary>
  13. None,
  14. /// <summary>
  15. /// Reinhard tonemapping.
  16. /// </summary>
  17. Reinhard,
  18. /// <summary>
  19. /// BT2390 Hermite spline EETF range reduction.
  20. /// </summary>
  21. BT2390,
  22. /// <summary>
  23. /// ACES tonemapping preset for 1000 nits displays.
  24. /// </summary>
  25. ACES1000Nits,
  26. /// <summary>
  27. /// ACES tonemapping preset for 2000 nits displays.
  28. /// </summary>
  29. ACES2000Nits,
  30. /// <summary>
  31. /// ACES tonemapping preset for 4000 nits displays.
  32. /// </summary>
  33. ACES4000Nits
  34. }
  35. /// <summary>
  36. /// The available options for colorspace when outputting to an HDR device.
  37. /// </summary>
  38. [GenerateHLSL]
  39. public enum HDRColorspace
  40. {
  41. /// <summary>
  42. /// Rec709 color primaries with D65 white point.
  43. /// </summary>
  44. Rec709,
  45. /// <summary>
  46. /// Rec2020 color primaries with D65 white point.
  47. /// </summary>
  48. Rec2020,
  49. /// <summary>
  50. /// P3 color primaries with D65 white point.
  51. /// </summary>
  52. P3D65
  53. }
  54. /// <summary>
  55. /// The available options for color encoding when outputting to an HDR device.
  56. /// </summary>
  57. [GenerateHLSL]
  58. public enum HDREncoding
  59. {
  60. /// <summary>
  61. /// Linear OETF.
  62. /// </summary>
  63. Linear = TransferFunction.Linear,
  64. /// <summary>
  65. /// ST 2084 PQ OETF
  66. /// </summary>
  67. PQ = TransferFunction.PQ,
  68. /// <summary>
  69. /// Gamma 2.2 OETF.
  70. /// </summary>
  71. Gamma22 = TransferFunction.Gamma22,
  72. /// <summary>
  73. /// sRGB curve OETF.
  74. /// </summary>
  75. sRGB = TransferFunction.sRGB
  76. }
  77. }