Class GradientSky
Gradient Sky Volume Component. This component setups gradient sky for rendering.
Implements
Inherited Members
VolumeComponent.active
VolumeComponent.displayName
VolumeComponent.parameters
VolumeComponent.OnEnable()
VolumeComponent.OnDisable()
VolumeComponent.AnyPropertiesIsOverridden()
VolumeComponent.OnDestroy()
VolumeComponent.Release()
VolumeComponent.GetSourceTerm()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[VolumeComponentMenuForRenderPipeline("Sky/Gradient Sky", new Type[] { typeof(HDRenderPipeline) })]
[SkyUniqueID(3)]
public class GradientSky : SkySettings, IApplyRevertPropertyContextMenuItemProvider
Fields
bottom
Bottom color of the gradient sky.
Declaration
[Tooltip("Specifies the color of the lower hemisphere of the sky. This is below the horizon.")]
public ColorParameter bottom
Field Value
Type | Description |
---|---|
ColorParameter |
gradientDiffusion
Size of the horizon (middle color.
Declaration
[Tooltip("Sets the size of the horizon (Middle color).")]
public MinFloatParameter gradientDiffusion
Field Value
Type | Description |
---|---|
MinFloatParameter |
middle
Middle color of the gradient sky.
Declaration
[Tooltip("Specifies the color at the horizon.")]
public ColorParameter middle
Field Value
Type | Description |
---|---|
ColorParameter |
top
Top color of the gradient sky.
Declaration
[Tooltip("Specifies the color of the upper hemisphere of the sky.")]
public ColorParameter top
Field Value
Type | Description |
---|---|
ColorParameter |
Methods
GetHashCode()
Returns the hash code of the gradient sky parameters.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | The hash code of the gradient sky parameters. |
Overrides
GetSkyRendererType()
Returns GradientSkyRenderer type.
Declaration
public override Type GetSkyRendererType()
Returns
Type | Description |
---|---|
Type | GradientSkyRenderer type. |