|
|
@ -214,9 +214,9 @@ void casFilterNoScaling( |
|
|
FfxFloat32 reciprocalWeight = ffxApproximateReciprocalMedium(FfxFloat32(1.0) + FfxFloat32(4.0) * weight.g); |
|
|
FfxFloat32 reciprocalWeight = ffxApproximateReciprocalMedium(FfxFloat32(1.0) + FfxFloat32(4.0) * weight.g); |
|
|
#endif // #if defined(FFX_CAS_USE_PRECISE_MATH) |
|
|
#endif // #if defined(FFX_CAS_USE_PRECISE_MATH) |
|
|
|
|
|
|
|
|
outPixelRed = ffxSaturate((sampleB.r * weight.g + sampleD.r * weight.g + sampleF.r * weight.g + sampleH.r * weight.g + sampleE.r) * reciprocalWeight); |
|
|
|
|
|
outPixelGreen = ffxSaturate((sampleB.g * weight.g + sampleD.g * weight.g + sampleF.g * weight.g + sampleH.g * weight.g + sampleE.g) * reciprocalWeight); |
|
|
|
|
|
outPixelBlue = ffxSaturate((sampleB.b * weight.g + sampleD.b * weight.g + sampleF.b * weight.g + sampleH.b * weight.g + sampleE.b) * reciprocalWeight); |
|
|
|
|
|
|
|
|
outPixelRed = ((sampleB.r * weight.g + sampleD.r * weight.g + sampleF.r * weight.g + sampleH.r * weight.g + sampleE.r) * reciprocalWeight); |
|
|
|
|
|
outPixelGreen = ((sampleB.g * weight.g + sampleD.g * weight.g + sampleF.g * weight.g + sampleH.g * weight.g + sampleE.g) * reciprocalWeight); |
|
|
|
|
|
outPixelBlue = ((sampleB.b * weight.g + sampleD.b * weight.g + sampleF.b * weight.g + sampleH.b * weight.g + sampleE.b) * reciprocalWeight); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if FFX_HALF == 1 |
|
|
#if FFX_HALF == 1 |
|
|
|