Class SkyRenderer
Base class for sky rendering.
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public abstract class SkyRenderer
Fields
| Name | Description |
|---|---|
| SupportDynamicSunLight | Determines if the sky should be rendered when the sun light changes. |
Methods
| Name | Description |
|---|---|
| Build() | Called on startup. Create resources used by the renderer (shaders, materials, etc). |
| Cleanup() | Called on cleanup. Release resources used by the renderer. |
| GetSkyIntensity(SkySettings, DebugDisplaySettings) | Returns exposure setting for the provided SkySettings. |
| PreRenderSky(BuiltinSkyParameters) | Preprocess for rendering the sky. Called before the DepthPrePass operations |
| PreRenderSky(BuiltinSkyParameters, bool, bool) | Preprocess for rendering the sky. Called before the DepthPrePass operations |
| RenderSky(BuiltinSkyParameters, bool, bool) | Implements actual rendering of the sky. HDRP calls this when rendering the sky into a cubemap (for lighting) and also during main frame rendering. |
| RequiresPreRender(SkySettings) | Whether the PreRenderSky step is required or not. |
| RequiresPreRenderSky(BuiltinSkyParameters) | Whether the PreRenderSky step is required. |
| SetGlobalSkyData(CommandBuffer, BuiltinSkyParameters) | Setup global parameters for the sky renderer. |
| Update(BuiltinSkyParameters) | HDRP calls this function once every frame. Implement it if your SkyRenderer needs to iterate independently of the user defined update frequency (see SkySettings UpdateMode). |