Class HDRISky
HDRI Sky Volume Component. This component setups HDRI sky for rendering.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
[VolumeComponentMenu("Sky/HDRI Sky")]
[SupportedOnRenderPipeline(typeof(HDRenderPipelineAsset))]
[SkyUniqueID(1)]
public class HDRISky : SkySettings, IApplyRevertPropertyContextMenuItemProvider, IVersionable<HDRISky.Version>
Fields
Name | Description |
---|---|
backplateType | Backplate Type {Disc, Rectangle, Ellipse, Infinite (Plane)}. |
blendAmount | Backplate blend parameter to blend the edge of the backplate with the background. |
dirLightShadow | Allow backplate to receive shadow from directional light. |
distortionMode | Distortion mode. |
enableBackplate | Enable Backplate to have it visible. |
enableDistortion | Obsolete field. Use distortionMode |
flowmap | Texture used to distort the uv for the HDRI sky. |
groundLevel | Define the ground level of the Backplate. |
hdriSky | Cubemap used to render the HDRI sky. |
k_Migration | Migration steps |
plateRotation | Backplate rotation parameter for the geometry. |
plateTexOffset | Backplate projection offset on the plane. |
plateTexRotation | Backplate rotation parameter for the projected texture. |
pointLightShadow | Allow backplate to receive shadow from point light. |
procedural | Obsolete field. Use distortionMode |
projectionDistance | Backplate's projection distance to varying the cubemap projection on the plate. |
rectLightShadow | Allow backplate to receive shadow from Area light. |
scale | Extent of the Backplate (if circle only the X value is considered). |
scrollDirection | Obsolete field. Use scrollOrientation |
scrollOrientation | Direction of the distortion. This value can be relative to the Global Wind Orientation defined in the Visual Environment. |
scrollSpeed | Speed of the distortion. This value can be relative to the Global Wind Speed defined in the Visual Environment. |
shadowTint | Backplate Shadow Tint projected on the plane. |
upperHemisphereOnly | Enable to affect only the upper part of the sky. |
Methods
Name | Description |
---|---|
GetHashCode() | Returns the hash code of the HDRI sky parameters. |
GetSkyRendererType() | Returns HDRISkyRenderer type. |
OnEnable() | Unity calls this method when it loads the class. |
SignificantlyDivergesFrom(SkySettings) | Determines if the SkySettings is significantly divergent from another. This is going to be used to determine whether to reset completely the ambient probe instead of using previous one when waiting for current data upon changes. In addition to the checks done with the base function, this HDRISky override checks whether the cubemap parameter has changed if both settings are HDRISky. |