using System; namespace UnityEngine.Rendering.HighDefinition { /// /// A volume component that holds settings for the water surface. /// [Serializable, VolumeComponentMenu("Lighting/Water Rendering")] [SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))] [HDRPHelpURL("Override-Water-Rendering")] public sealed partial class WaterRendering : VolumeComponent { /// /// When enabled, the water surfaces are rendered. /// [Tooltip("When enabled, the water surfaces are rendered.")] public BoolParameter enable = new BoolParameter(false, BoolParameter.DisplayType.EnumPopup); /// /// Sets the elevation at which the max grid size is reached. /// [Tooltip("Sets the size of a triangle edge in screen space. Smaller values result in smaller triangles.")] public ClampedFloatParameter triangleSize = new ClampedFloatParameter(30.0f, 15.0f, 100.0f); /// /// Controls the influence of the ambient light probe on the water surfaces. /// [Tooltip("Controls the influence of the ambient light probe on the water surfaces.")] public ClampedFloatParameter ambientProbeDimmer = new ClampedFloatParameter(0.5f, 0.0f, 1.0f); WaterRendering() { displayName = "Water Rendering"; } } }