ScreenSpaceReflectionsSettings.generated.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Rendering
  7. * @{
  8. */
  9. /// <summary>
  10. /// Settings that control the screen space reflections effect. Screen space reflections provide high quality mirror-like
  11. /// reflections at low performance cost. They should be used together with reflection probes as the effects complement
  12. /// each other. As the name implies, the reflections are only limited to geometry drawn on the screen and the system will
  13. /// fall back to refl. probes when screen space data is unavailable. Similarly the system will fall back to refl. probes
  14. /// for rougher (more glossy rather than mirror-like) surfaces. Those surfaces require a higher number of samples to
  15. /// achieve the glossy look, so we instead fall back to refl. probes which are pre-filtered and can be quickly sampled.
  16. /// </summary>
  17. [ShowInInspector]
  18. public partial class ScreenSpaceReflectionsSettings : ScriptObject
  19. {
  20. private ScreenSpaceReflectionsSettings(bool __dummy0) { }
  21. public ScreenSpaceReflectionsSettings()
  22. {
  23. Internal_ScreenSpaceReflectionsSettings(this);
  24. }
  25. /// <summary>Enables or disables the SSR effect.</summary>
  26. [ShowInInspector]
  27. [NativeWrapper]
  28. public bool Enabled
  29. {
  30. get { return Internal_getenabled(mCachedPtr); }
  31. set { Internal_setenabled(mCachedPtr, value); }
  32. }
  33. /// <summary>
  34. /// Quality of the SSR effect. Higher values cast more sample rays, and march those rays are lower increments for better
  35. /// precision. This results in higher quality, as well as a higher performance requirement. Valid range is [0, 4],
  36. /// default is 2.
  37. /// </summary>
  38. [ShowInInspector]
  39. [NativeWrapper]
  40. public uint Quality
  41. {
  42. get { return Internal_getquality(mCachedPtr); }
  43. set { Internal_setquality(mCachedPtr, value); }
  44. }
  45. /// <summary>Intensity of the screen space reflections. Valid range is [0, 1]. Default is 1 (100%).</summary>
  46. [ShowInInspector]
  47. [NativeWrapper]
  48. public float Intensity
  49. {
  50. get { return Internal_getintensity(mCachedPtr); }
  51. set { Internal_setintensity(mCachedPtr, value); }
  52. }
  53. /// <summary>
  54. /// Roughness at which screen space reflections start fading out and become replaced with refl. probes. Valid range is
  55. /// [0, 1]. Default is 0.8.
  56. /// </summary>
  57. [ShowInInspector]
  58. [NativeWrapper]
  59. public float MaxRoughness
  60. {
  61. get { return Internal_getmaxRoughness(mCachedPtr); }
  62. set { Internal_setmaxRoughness(mCachedPtr, value); }
  63. }
  64. [MethodImpl(MethodImplOptions.InternalCall)]
  65. private static extern void Internal_ScreenSpaceReflectionsSettings(ScreenSpaceReflectionsSettings managedInstance);
  66. [MethodImpl(MethodImplOptions.InternalCall)]
  67. private static extern bool Internal_getenabled(IntPtr thisPtr);
  68. [MethodImpl(MethodImplOptions.InternalCall)]
  69. private static extern void Internal_setenabled(IntPtr thisPtr, bool value);
  70. [MethodImpl(MethodImplOptions.InternalCall)]
  71. private static extern uint Internal_getquality(IntPtr thisPtr);
  72. [MethodImpl(MethodImplOptions.InternalCall)]
  73. private static extern void Internal_setquality(IntPtr thisPtr, uint value);
  74. [MethodImpl(MethodImplOptions.InternalCall)]
  75. private static extern float Internal_getintensity(IntPtr thisPtr);
  76. [MethodImpl(MethodImplOptions.InternalCall)]
  77. private static extern void Internal_setintensity(IntPtr thisPtr, float value);
  78. [MethodImpl(MethodImplOptions.InternalCall)]
  79. private static extern float Internal_getmaxRoughness(IntPtr thisPtr);
  80. [MethodImpl(MethodImplOptions.InternalCall)]
  81. private static extern void Internal_setmaxRoughness(IntPtr thisPtr, float value);
  82. }
  83. /** @} */
  84. }