docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method HorizontalGaussianBlur

    HorizontalGaussianBlur(in CustomPassContext, RTHandle, RTHandle, int, float, int, int)

    Horizontal gaussian blur pass.

    Declaration
    public static void HorizontalGaussianBlur(in CustomPassContext ctx, RTHandle source, RTHandle destination, int sampleCount = 8, float radius = 5, int sourceMip = 0, int destMip = 0)
    Parameters
    Type Name Description
    CustomPassContext ctx

    Custom Pass Context.

    RTHandle source

    Source to use for the gaussian blur.

    RTHandle destination

    Destination buffer of the gaussian blur.

    int sampleCount

    Number of samples to use for the gaussian blur. A high number will impact performances.

    float radius

    Radius in pixel of the gaussian blur.

    int sourceMip

    Source mip level to sample from.

    int destMip

    Destination mip level to write to.

    HorizontalGaussianBlur(in CustomPassContext, RTHandle, RTHandle, Vector4, Vector4, int, float, int, int)

    Horizontal gaussian blur pass.

    Declaration
    public static void HorizontalGaussianBlur(in CustomPassContext ctx, RTHandle source, RTHandle destination, Vector4 sourceScaleBias, Vector4 destScaleBias, int sampleCount = 8, float radius = 5, int sourceMip = 0, int destMip = 0)
    Parameters
    Type Name Description
    CustomPassContext ctx

    Custom Pass Context.

    RTHandle source

    Source to use for the gaussian blur.

    RTHandle destination

    Destination buffer of the gaussian blur.

    Vector4 sourceScaleBias

    Scale and bias to apply when sampling the source buffer.

    Vector4 destScaleBias

    Scale and bias to apply when writing into the destination buffer.

    int sampleCount

    Number of samples to use for the gaussian blur. A high number will impact performances.

    float radius

    Radius in pixel of the gaussian blur.

    int sourceMip

    Source mip level to sample from.

    int destMip

    Destination mip level to write to.

    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)