| 232 | } |
| 233 | |
| 234 | void ProgressiveResult(Float4 bakeOutput[BasisCount], uint64 passIdx) |
| 235 | { |
| 236 | const float lerpFactor = passIdx / (passIdx + 1.0f); |
| 237 | for(uint64 i = 0; i < BasisCount; ++i) |
| 238 | { |
| 239 | Float3 newSample = ResultSum.Coefficients[i] * HemisphereMonteCarloFactor(1); |
| 240 | Float3 currValue = bakeOutput[i].To3D(); |
| 241 | currValue = Lerp<Float3>(newSample, currValue, lerpFactor); |
| 242 | bakeOutput[i] = Float4(Float3::Clamp(currValue, -FP16Max, FP16Max), 1.0f); |
| 243 | } |
| 244 | } |
| 245 | }; |
| 246 | |
| 247 | // Bakes irradiance projected onto L1 H-basis, with 12 floats per texel |
nothing calls this directly
no test coverage detected