| 319 | } |
| 320 | |
| 321 | void FinalResult(Float4 bakeOutput[BasisCount]) |
| 322 | { |
| 323 | SH9Color shResult = ResultSum; |
| 324 | shResult.ConvolveWithCosineKernel(); |
| 325 | H6Color result = ConvertToH6(shResult) * HemisphereMonteCarloFactor(NumSamples); |
| 326 | for(uint64 i = 0; i < BasisCount; ++i) |
| 327 | bakeOutput[i] = Float4(Float3::Clamp(result.Coefficients[i], -FP16Max, FP16Max), 1.0f); |
| 328 | } |
| 329 | |
| 330 | void ProgressiveResult(Float4 bakeOutput[BasisCount], uint64 passIdx) |
| 331 | { |
nothing calls this directly
no test coverage detected