docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method InternalPostSampling

    InternalPostSampling(CustomPassContext, in RenderTexture)

    Runs after the sampling step, before returning the frame to the sensor. Can be used to do anything with the texture after the sampling is complete. For example: post processing.

    Declaration
    protected virtual RenderTexture InternalPostSampling(CustomPassContext ctx, in RenderTexture renderTexture)
    Parameters
    Type Name Description
    CustomPassContext ctx

    CustomPassContext used to capture the sample.

    RenderTexture renderTexture

    RenderTexture containing the sample.

    Returns
    Type Description
    RenderTexture

    A render texture with the post processing applied. If the return is null then the frame is assumed to be discarded.

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