MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / FinalResult

Method FinalResult

BakingLab/MeshBaker.cpp:271–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

BakeDriverFunction · 0.45

Calls 5

ConvertToH4Function · 0.85
ClampFunction · 0.85
Float4Class · 0.50

Tested by

no test coverage detected