docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetRcasConstantsLinear

    SetRcasConstantsLinear(CommandBuffer, float)

    Sets the constant values required by the FSR RCAS shader on the provided command buffer

    Equivalent to SetRcasConstants(), but handles the sharpness parameter as a linear value instead of one specified in stops. This is intended to simplify code that allows users to configure the sharpening behavior from a GUI.

    Declaration
    public static void SetRcasConstantsLinear(CommandBuffer cmd, float sharpnessLinear = 0.92)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to modify

    float sharpnessLinear

    The level of intensity of the sharpening filter where 0.0 is the least sharp and 1.0 is the most sharp

    SetRcasConstantsLinear(RasterCommandBuffer, float)

    Declaration
    public static void SetRcasConstantsLinear(RasterCommandBuffer cmd, float sharpnessLinear = 0.92)
    Parameters
    Type Name Description
    RasterCommandBuffer cmd
    float sharpnessLinear
    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)