ScreenSpaceReflectionsSettings.generated.cs 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. public bool Enabled
  28. {
  29. get { return Internal_getenabled(mCachedPtr); }
  30. set { Internal_setenabled(mCachedPtr, value); }
  31. }
  32. /// <summary>
  33. /// Quality of the SSR effect. Higher values cast more sample rays, and march those rays are lower increments for better
  34. /// precision. This results in higher quality, as well as a higher performance requirement. Valid range is [0, 4],
  35. /// default is 2.
  36. /// </summary>
  37. [ShowInInspector]
  38. public uint Quality
  39. {
  40. get { return Internal_getquality(mCachedPtr); }
  41. set { Internal_setquality(mCachedPtr, value); }
  42. }
  43. /// <summary>Intensity of the screen space reflections. Valid range is [0, 1]. Default is 1 (100%).</summary>
  44. [ShowInInspector]
  45. public float Intensity
  46. {
  47. get { return Internal_getintensity(mCachedPtr); }
  48. set { Internal_setintensity(mCachedPtr, value); }
  49. }
  50. /// <summary>
  51. /// Roughness at which screen space reflections start fading out and become replaced with refl. probes. Valid range is
  52. /// [0, 1]. Default is 0.8.
  53. /// </summary>
  54. [ShowInInspector]
  55. public float MaxRoughness
  56. {
  57. get { return Internal_getmaxRoughness(mCachedPtr); }
  58. set { Internal_setmaxRoughness(mCachedPtr, value); }
  59. }
  60. [MethodImpl(MethodImplOptions.InternalCall)]
  61. private static extern void Internal_ScreenSpaceReflectionsSettings(ScreenSpaceReflectionsSettings managedInstance);
  62. [MethodImpl(MethodImplOptions.InternalCall)]
  63. private static extern bool Internal_getenabled(IntPtr thisPtr);
  64. [MethodImpl(MethodImplOptions.InternalCall)]
  65. private static extern void Internal_setenabled(IntPtr thisPtr, bool value);
  66. [MethodImpl(MethodImplOptions.InternalCall)]
  67. private static extern uint Internal_getquality(IntPtr thisPtr);
  68. [MethodImpl(MethodImplOptions.InternalCall)]
  69. private static extern void Internal_setquality(IntPtr thisPtr, uint value);
  70. [MethodImpl(MethodImplOptions.InternalCall)]
  71. private static extern float Internal_getintensity(IntPtr thisPtr);
  72. [MethodImpl(MethodImplOptions.InternalCall)]
  73. private static extern void Internal_setintensity(IntPtr thisPtr, float value);
  74. [MethodImpl(MethodImplOptions.InternalCall)]
  75. private static extern float Internal_getmaxRoughness(IntPtr thisPtr);
  76. [MethodImpl(MethodImplOptions.InternalCall)]
  77. private static extern void Internal_setmaxRoughness(IntPtr thisPtr, float value);
  78. }
  79. /** @} */
  80. }