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 |