FfxCacaoConstants
struct FfxCacaoConstants
A structure for the constant buffer used by FidelityFX CACAO.
Public Interface
Public Members:
float DepthUnpackConsts
float DepthUnpackConsts
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 311, column 25)
float CameraTanHalfFOV
float CameraTanHalfFOV
Multiply and add values for clip to view depth conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 312, column 25)
float NDCToViewMul
float NDCToViewMul
tan(fov/2) for the x and y dimensions.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 314, column 25)
float NDCToViewAdd
float NDCToViewAdd
Multiplication value for normalized device coordinates (NDC) to View conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 315, column 25)
float DepthBufferUVToViewMul
float DepthBufferUVToViewMul
Addition value for NDC to view conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 317, column 25)
float DepthBufferUVToViewAdd
float DepthBufferUVToViewAdd
Multiplication value for the depth buffer’s UV to View conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 318, column 25)
float EffectRadius
float EffectRadius
Addition value for the depth buffer’s UV to view conversion.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 320, column 25)
float EffectShadowStrength
float EffectShadowStrength
The radius in world space of the occlusion sphere. A larger radius will make further objects contribute to the ambient occlusion of a point.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 321, column 25)
float EffectShadowPow
float EffectShadowPow
The linear multiplier for shadows. Higher values intensify the shadow.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 322, column 25)
float EffectShadowClamp
float EffectShadowClamp
The exponent for shadow values. Larger values create darker shadows.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 323, column 25)
float EffectFadeOutMul
float EffectFadeOutMul
Clamps the shadow values to be within a certain range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 325, column 25)
float EffectFadeOutAdd
float EffectFadeOutAdd
Multiplication value for effect fade out.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 326, column 25)
float EffectHorizonAngleThreshold
float EffectHorizonAngleThreshold
Addition value for effect fade out.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 327, column 25)
float EffectSamplingRadiusNearLimitRec
float EffectSamplingRadiusNearLimitRec
Minimum angle necessary between geometry and a point to create occlusion. Adjusting this value helps reduce self-shadowing.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 328, column 25)
float DepthPrecisionOffsetMod
float DepthPrecisionOffsetMod
Default: EffectRadius*1.2. Used to set limit on the sampling disk size when near.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 330, column 25)
float NegRecEffectRadius
float NegRecEffectRadius
Default: 0.9992. Offset used to prevent artifacts due to imprecision.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 331, column 25)
float LoadCounterAvgDiv
float LoadCounterAvgDiv
Negative reciprocal of the effect radius.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 332, column 25)
float AdaptiveSampleCountLimit
float AdaptiveSampleCountLimit
Multiplier value to get average from loadcounter value.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 333, column 25)
float InvSharpness
float InvSharpness
Limits the total number of samples taken at adaptive quality levels.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 335, column 25)
int BlurNumPasses
int BlurNumPasses
The sharpness controls how much blur should bleed over edges.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 336, column 25)
float BilateralSigmaSquared
float BilateralSigmaSquared
Number of blur passes. Default uses 4, with lowest quality using 2.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 337, column 25)
float BilateralSimilarityDistanceSigma
float BilateralSimilarityDistanceSigma
Only affects downsampled SSAO. Higher values create a larger blur.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 338, column 25)
float PatternRotScaleMatrices
float PatternRotScaleMatrices
Only affects downsampled SSAO. Lower values create sharper edges.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 340, column 25)
float NormalsUnpackMul
float NormalsUnpackMul
Sampling pattern rotation/scale matrices.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 342, column 25)
float NormalsUnpackAdd
float NormalsUnpackAdd
Multiplication value to unpack normals. Set to 1 if normals are already in [-1,1] range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 343, column 25)
float DetailAOStrength
float DetailAOStrength
Addition value to unpack normals. Set to 0 if normals are already in [-1,1]range.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 344, column 25)
float Dummy0
float Dummy0
Adds in more detailed shadows based on edges. These are less temporally stable.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 345, column 25)
float SSAOBufferDimensions
float SSAOBufferDimensions
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 347, column 25)
float SSAOBufferInverseDimensions
float SSAOBufferInverseDimensions
Dimensions of SSAO buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 348, column 25)
float DepthBufferDimensions
float DepthBufferDimensions
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 350, column 25)
float DepthBufferInverseDimensions
float DepthBufferInverseDimensions
Dimensions of the depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 351, column 25)
int DepthBufferOffset
int DepthBufferOffset
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 353, column 25)
int Pad
int Pad
Default is (0,0). Read offset for depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 354, column 8)
float PerPassFullResUVOffset
float PerPassFullResUVOffset
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 355, column 25)
float InputOutputBufferDimensions
float InputOutputBufferDimensions
UV Offsets used in adaptive approach.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 357, column 25)
float InputOutputBufferInverseDimensions
float InputOutputBufferInverseDimensions
Dimensions of the output AO buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 358, column 25)
float ImportanceMapDimensions
float ImportanceMapDimensions
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 360, column 25)
float ImportanceMapInverseDimensions
float ImportanceMapInverseDimensions
Dimensions of the importance map.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 361, column 25)
float DeinterleavedDepthBufferDimensions
float DeinterleavedDepthBufferDimensions
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 363, column 25)
float DeinterleavedDepthBufferInverseDimensions
float DeinterleavedDepthBufferInverseDimensions
Dimensions of the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 364, column 25)
float DeinterleavedDepthBufferOffset
float DeinterleavedDepthBufferOffset
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 366, column 25)
float DeinterleavedDepthBufferNormalisedOffset
float DeinterleavedDepthBufferNormalisedOffset
Default is (0,0). Read offset for the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 367, column 25)
FfxFloat32x4x4 NormalsWorldToViewspaceMatrix
FfxFloat32x4x4 NormalsWorldToViewspaceMatrix
Default is (0,0). Normalized read offset for the deinterleaved depth buffer.
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 369, column 22)
Source: sdk/include/FidelityFX/host/ffx_cacao.h
(line 310, column 1)