docs.unity3d.com
    Show / Hide Table of Contents

    Class ForwardRenderer

    Default renderer for Universal RP. This renderer is supported on all Universal RP supported platforms. It uses a classic forward rendering strategy with per-object light culling.

    Inheritance
    Object
    ScriptableRenderer
    ForwardRenderer
    Inherited Members
    ScriptableRenderer.cameraDepth
    ScriptableRenderer.profilingExecute
    ScriptableRenderer.SetCameraMatrices(CommandBuffer, CameraData, Boolean)
    ScriptableRenderer.cameraColorTarget
    ScriptableRenderer.cameraDepthTarget
    ScriptableRenderer.rendererFeatures
    ScriptableRenderer.activeRenderPassQueue
    ScriptableRenderer.supportedRenderingFeatures
    ScriptableRenderer.unsupportedGraphicsDeviceTypes
    ScriptableRenderer.Dispose()
    ScriptableRenderer.ConfigureCameraTarget(RenderTargetIdentifier, RenderTargetIdentifier)
    ScriptableRenderer.Execute(ScriptableRenderContext, RenderingData)
    ScriptableRenderer.EnqueuePass(ScriptableRenderPass)
    ScriptableRenderer.GetCameraClearFlag(CameraData)
    ScriptableRenderer.AddRenderPasses(RenderingData)
    Namespace: UnityEngine.Rendering.Universal
    Syntax
    public sealed class ForwardRenderer : ScriptableRenderer

    Constructors

    ForwardRenderer(ForwardRendererData)

    Declaration
    public ForwardRenderer(ForwardRendererData data)
    Parameters
    Type Name Description
    ForwardRendererData data

    Methods

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    Boolean disposing
    Overrides
    ScriptableRenderer.Dispose(Boolean)

    FinishRendering(CommandBuffer)

    Called upon finishing rendering the camera stack. You can release any resources created by the renderer here.

    Declaration
    public override void FinishRendering(CommandBuffer cmd)
    Parameters
    Type Name Description
    CommandBuffer cmd
    Overrides
    ScriptableRenderer.FinishRendering(CommandBuffer)

    Setup(ScriptableRenderContext, ref RenderingData)

    Configures the render passes that will execute for this renderer. This method is called per-camera every frame.

    Declaration
    public override void Setup(ScriptableRenderContext context, ref RenderingData renderingData)
    Parameters
    Type Name Description
    ScriptableRenderContext context

    Use this render context to issue any draw commands during execution.

    RenderingData renderingData

    Current render state information.

    Overrides
    ScriptableRenderer.Setup(ScriptableRenderContext, ref RenderingData)
    See Also
    ScriptableRenderPass
    ScriptableRendererFeature

    SetupCullingParameters(ref ScriptableCullingParameters, ref CameraData)

    Override this method to configure the culling parameters for the renderer. You can use this to configure if lights should be culled per-object or the maximum shadow distance for example.

    Declaration
    public override void SetupCullingParameters(ref ScriptableCullingParameters cullingParameters, ref CameraData cameraData)
    Parameters
    Type Name Description
    ScriptableCullingParameters cullingParameters

    Use this to change culling parameters used by the render pipeline.

    CameraData cameraData

    Current render state information.

    Overrides
    ScriptableRenderer.SetupCullingParameters(ref ScriptableCullingParameters, ref CameraData)

    SetupLights(ScriptableRenderContext, ref RenderingData)

    Override this method to implement the lighting setup for the renderer. You can use this to compute and upload light CBUFFER for example.

    Declaration
    public override void SetupLights(ScriptableRenderContext context, ref RenderingData renderingData)
    Parameters
    Type Name Description
    ScriptableRenderContext context

    Use this render context to issue any draw commands during execution.

    RenderingData renderingData

    Current render state information.

    Overrides
    ScriptableRenderer.SetupLights(ScriptableRenderContext, ref RenderingData)
    In This Article
    • Constructors
      • ForwardRenderer(ForwardRendererData)
    • Methods
      • Dispose(Boolean)
      • FinishRendering(CommandBuffer)
      • Setup(ScriptableRenderContext, ref RenderingData)
      • SetupCullingParameters(ref ScriptableCullingParameters, ref CameraData)
      • SetupLights(ScriptableRenderContext, ref RenderingData)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023