You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
1.4 KiB

using System;
namespace UnityEngine.Rendering.HighDefinition
{
/// <summary>
/// A volume component that holds settings for the water surface.
/// </summary>
[Serializable, VolumeComponentMenu("Rendering/Water Rendering")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
[HDRPHelpURL("water-use-the-water-system-in-your-project")]
[DisplayInfo(name = "Water Rendering")]
public sealed partial class WaterRendering : VolumeComponent
{
/// <summary>
/// When enabled, the water surfaces are rendered.
/// </summary>
[Tooltip("When enabled, the water surfaces are rendered.")]
public BoolParameter enable = new BoolParameter(false, BoolParameter.DisplayType.EnumPopup);
/// <summary>
/// Sets the elevation at which the max grid size is reached.
/// </summary>
[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);
/// <summary>
/// Controls the influence of the ambient light probe on the water surfaces.
/// </summary>
[Tooltip("Controls the influence of the ambient light probe on the water surfaces.")]
public ClampedFloatParameter ambientProbeDimmer = new ClampedFloatParameter(0.5f, 0.0f, 1.0f);
}
}