docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetRcasConstants

    SetRcasConstants(CommandBuffer, float)

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

    Logic ported from "FsrRcasCon()" in Runtime/PostProcessing/Shaders/ffx/ffx_fsr1.hlsl For a more user-friendly version of this function, see SetRcasConstantsLinear().

    Declaration
    public static void SetRcasConstants(CommandBuffer cmd, float sharpnessStops = 0.2)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer to modify

    float sharpnessStops

    The scale is {0.0 := maximum, to N>0, where N is the number of stops(halving) of the reduction of sharpness

    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)