Keine Beschreibung
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

UniversalPostProcessingData.cs 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// Settings used for Post Processing.
  6. /// </summary>
  7. public class UniversalPostProcessingData : ContextItem
  8. {
  9. /// <summary>
  10. /// True if post-processing effect is enabled while rendering the camera stack.
  11. /// </summary>
  12. public bool isEnabled;
  13. /// <summary>
  14. /// The <c>ColorGradingMode</c> to use.
  15. /// </summary>
  16. /// <seealso cref="ColorGradingMode"/>
  17. public ColorGradingMode gradingMode;
  18. /// <summary>
  19. /// The size of the Look Up Table (LUT)
  20. /// </summary>
  21. public int lutSize;
  22. /// <summary>
  23. /// True if fast approximation functions are used when converting between the sRGB and Linear color spaces, false otherwise.
  24. /// </summary>
  25. public bool useFastSRGBLinearConversion;
  26. /// <summary>
  27. /// Returns true if Screen Space Lens Flare are supported by this asset, false otherwise.
  28. /// </summary>
  29. public bool supportScreenSpaceLensFlare;
  30. /// <summary>
  31. /// Returns true if Data Driven Lens Flare are supported by this asset, false otherwise.
  32. /// </summary>
  33. public bool supportDataDrivenLensFlare;
  34. /// <summary>
  35. /// Empty function added for the IDisposable interface.
  36. /// </summary>
  37. public override void Reset()
  38. {
  39. isEnabled = default;
  40. gradingMode = ColorGradingMode.LowDynamicRange;
  41. lutSize = 0;
  42. useFastSRGBLinearConversion = false;
  43. supportScreenSpaceLensFlare = false;
  44. supportDataDrivenLensFlare = false;
  45. }
  46. }
  47. }