docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class CloudRenderer

    Base class for cloud rendering.

    Inheritance
    object
    CloudRenderer
    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 CloudRenderer

    Fields

    Name Description
    SupportDynamicSunLight

    Determines if the clouds 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.

    GetSunLightCookieParameters(CloudSettings, ref CookieParameters)

    Get the parameters for overriding the main directional light cookie for one frame.

    PreRenderClouds(BuiltinSkyParameters, bool)

    Preprocess for rendering the clouds. Called before the DepthPrePass operations

    RenderClouds(BuiltinSkyParameters, bool)

    Implements actual rendering of the clouds. HDRP calls this when rendering the clouds into a cubemap (for lighting) and also during main frame rendering.

    RenderSunLightCookie(BuiltinSunCookieParameters)

    HDRP calls this function once every frame where GetSunLightCookieParameters returns true. Implement it if your CloudRenderer needs to render a texture to use for the light cookie (for example for cloud shadow rendering).

    RequiresPreRenderClouds(BuiltinSkyParameters)

    Whether the PreRenderClouds step is required.

    Update(BuiltinSkyParameters)

    HDRP calls this function once every frame. Implement it if your CloudRenderer needs to iterate independently of the user defined update frequency (see CloudSettings 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)