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

Method FinalResult

BakingLab/MeshBaker.cpp:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

ConvertToH6Function · 0.85
ClampFunction · 0.85
Float4Class · 0.50

Tested by

no test coverage detected