| 269 | } |
| 270 | |
| 271 | void FinalResult(Float4 bakeOutput[BasisCount]) |
| 272 | { |
| 273 | SH9Color shResult = ResultSum; |
| 274 | shResult.ConvolveWithCosineKernel(); |
| 275 | H4Color result = ConvertToH4(shResult) * HemisphereMonteCarloFactor(NumSamples); |
| 276 | for(uint64 i = 0; i < BasisCount; ++i) |
| 277 | bakeOutput[i] = Float4(Float3::Clamp(result.Coefficients[i], -FP16Max, FP16Max), 1.0f); |
| 278 | } |
| 279 | |
| 280 | void ProgressiveResult(Float4 bakeOutput[BasisCount], uint64 passIdx) |
| 281 | { |
no test coverage detected