docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SkyRenderer

    Base class for sky rendering.

    Inheritance
    object
    SkyRenderer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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).

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)