AutoExposureSettings.generated.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>Settings that control automatic exposure (eye adaptation) post-process.</summary>
  10. [ShowInInspector]
  11. public partial class AutoExposureSettings : ScriptObject
  12. {
  13. private AutoExposureSettings(bool __dummy0) { }
  14. public AutoExposureSettings()
  15. {
  16. Internal_AutoExposureSettings(this);
  17. }
  18. /// <summary>
  19. /// Determines minimum luminance value in the eye adaptation histogram. The histogram is used for calculating the average
  20. /// brightness of the scene. Any luminance value below this value will not be included in the histogram and ignored in
  21. /// scene brightness calculations. In log2 units (-8 = 1/256). In the range [-16, 0].
  22. /// </summary>
  23. [ShowInInspector]
  24. [NativeWrapper]
  25. public float HistogramLog2Min
  26. {
  27. get { return Internal_gethistogramLog2Min(mCachedPtr); }
  28. set { Internal_sethistogramLog2Min(mCachedPtr, value); }
  29. }
  30. /// <summary>
  31. /// Determines maximum luminance value in the eye adaptation histogram. The histogram is used for calculating the average
  32. /// brightness of the scene. Any luminance value above this value will not be included in the histogram and ignored in
  33. /// scene brightness calculations. In log2 units (4 = 16). In the range [0, 16].
  34. /// </summary>
  35. [ShowInInspector]
  36. [NativeWrapper]
  37. public float HistogramLog2Max
  38. {
  39. get { return Internal_gethistogramLog2Max(mCachedPtr); }
  40. set { Internal_sethistogramLog2Max(mCachedPtr, value); }
  41. }
  42. /// <summary>
  43. /// Percentage below which to ignore values in the eye adaptation histogram. The histogram is used for calculating the
  44. /// average brightness of the scene. Total luminance in the histogram will be summed up and multiplied by this value to
  45. /// calculate minimal luminance. Luminance values below the minimal luminance will be ignored and not used in scene
  46. /// brightness calculations. This allows you to remove outliers on the lower end of the histogram (for example a few very
  47. /// dark pixels in an otherwise bright image). In range [0.0f, 1.0f].
  48. /// </summary>
  49. [ShowInInspector]
  50. [NativeWrapper]
  51. public float HistogramPctLow
  52. {
  53. get { return Internal_gethistogramPctLow(mCachedPtr); }
  54. set { Internal_sethistogramPctLow(mCachedPtr, value); }
  55. }
  56. /// <summary>
  57. /// Percentage above which to ignore values in the eye adaptation histogram. The histogram is used for calculating the
  58. /// average brightness of the scene. Total luminance in the histogram will be summed up and multiplied by this value to
  59. /// calculate maximum luminance. Luminance values above the maximum luminance will be ignored and not used in scene
  60. /// brightness calculations. This allows you to remove outliers on the high end of the histogram (for example a few very
  61. /// bright pixels). In range [0.0f, 1.0f].
  62. /// </summary>
  63. [ShowInInspector]
  64. [NativeWrapper]
  65. public float HistogramPctHigh
  66. {
  67. get { return Internal_gethistogramPctHigh(mCachedPtr); }
  68. set { Internal_sethistogramPctHigh(mCachedPtr, value); }
  69. }
  70. /// <summary>
  71. /// Clamps the minimum eye adaptation scale to this value. This allows you to limit eye adaptation so that exposure is
  72. /// never too high (for example when in a very dark room you probably do not want the exposure to be so high that
  73. /// everything is still visible). In range [0.0f, 10.0f].
  74. /// </summary>
  75. [ShowInInspector]
  76. [NativeWrapper]
  77. public float MinEyeAdaptation
  78. {
  79. get { return Internal_getminEyeAdaptation(mCachedPtr); }
  80. set { Internal_setminEyeAdaptation(mCachedPtr, value); }
  81. }
  82. /// <summary>
  83. /// Clamps the maximum eye adaptation scale to this value. This allows you to limit eye adaptation so that exposure is
  84. /// never too low (for example when looking at a very bright light source you probably don't want the exposure to be so
  85. /// low that the rest of the scene is all white (overexposed). In range [0.0f, 10.0f].
  86. /// </summary>
  87. [ShowInInspector]
  88. [NativeWrapper]
  89. public float MaxEyeAdaptation
  90. {
  91. get { return Internal_getmaxEyeAdaptation(mCachedPtr); }
  92. set { Internal_setmaxEyeAdaptation(mCachedPtr, value); }
  93. }
  94. /// <summary>
  95. /// Determines how quickly does the eye adaptation adjust to larger values. This affects how quickly does the automatic
  96. /// exposure changes when the scene brightness increases. In range [0.01f, 20.0f].
  97. /// </summary>
  98. [ShowInInspector]
  99. [NativeWrapper]
  100. public float EyeAdaptationSpeedUp
  101. {
  102. get { return Internal_geteyeAdaptationSpeedUp(mCachedPtr); }
  103. set { Internal_seteyeAdaptationSpeedUp(mCachedPtr, value); }
  104. }
  105. /// <summary>
  106. /// Determines how quickly does the eye adaptation adjust to smaller values. This affects how quickly does the automatic
  107. /// exposure changes when the scene brightness decreases. In range [0.01f, 20.0f].
  108. /// </summary>
  109. [ShowInInspector]
  110. [NativeWrapper]
  111. public float EyeAdaptationSpeedDown
  112. {
  113. get { return Internal_geteyeAdaptationSpeedDown(mCachedPtr); }
  114. set { Internal_seteyeAdaptationSpeedDown(mCachedPtr, value); }
  115. }
  116. [MethodImpl(MethodImplOptions.InternalCall)]
  117. private static extern void Internal_AutoExposureSettings(AutoExposureSettings managedInstance);
  118. [MethodImpl(MethodImplOptions.InternalCall)]
  119. private static extern float Internal_gethistogramLog2Min(IntPtr thisPtr);
  120. [MethodImpl(MethodImplOptions.InternalCall)]
  121. private static extern void Internal_sethistogramLog2Min(IntPtr thisPtr, float value);
  122. [MethodImpl(MethodImplOptions.InternalCall)]
  123. private static extern float Internal_gethistogramLog2Max(IntPtr thisPtr);
  124. [MethodImpl(MethodImplOptions.InternalCall)]
  125. private static extern void Internal_sethistogramLog2Max(IntPtr thisPtr, float value);
  126. [MethodImpl(MethodImplOptions.InternalCall)]
  127. private static extern float Internal_gethistogramPctLow(IntPtr thisPtr);
  128. [MethodImpl(MethodImplOptions.InternalCall)]
  129. private static extern void Internal_sethistogramPctLow(IntPtr thisPtr, float value);
  130. [MethodImpl(MethodImplOptions.InternalCall)]
  131. private static extern float Internal_gethistogramPctHigh(IntPtr thisPtr);
  132. [MethodImpl(MethodImplOptions.InternalCall)]
  133. private static extern void Internal_sethistogramPctHigh(IntPtr thisPtr, float value);
  134. [MethodImpl(MethodImplOptions.InternalCall)]
  135. private static extern float Internal_getminEyeAdaptation(IntPtr thisPtr);
  136. [MethodImpl(MethodImplOptions.InternalCall)]
  137. private static extern void Internal_setminEyeAdaptation(IntPtr thisPtr, float value);
  138. [MethodImpl(MethodImplOptions.InternalCall)]
  139. private static extern float Internal_getmaxEyeAdaptation(IntPtr thisPtr);
  140. [MethodImpl(MethodImplOptions.InternalCall)]
  141. private static extern void Internal_setmaxEyeAdaptation(IntPtr thisPtr, float value);
  142. [MethodImpl(MethodImplOptions.InternalCall)]
  143. private static extern float Internal_geteyeAdaptationSpeedUp(IntPtr thisPtr);
  144. [MethodImpl(MethodImplOptions.InternalCall)]
  145. private static extern void Internal_seteyeAdaptationSpeedUp(IntPtr thisPtr, float value);
  146. [MethodImpl(MethodImplOptions.InternalCall)]
  147. private static extern float Internal_geteyeAdaptationSpeedDown(IntPtr thisPtr);
  148. [MethodImpl(MethodImplOptions.InternalCall)]
  149. private static extern void Internal_seteyeAdaptationSpeedDown(IntPtr thisPtr, float value);
  150. }
  151. /** @} */
  152. }