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

Method FinalResult

BakingLab/MeshBaker.cpp:137–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 void FinalResult(Float4 bakeOutput[BasisCount])
138 {
139 for(uint64 i = 0; i < BasisCount; ++i)
140 {
141 Float3 result = ResultSum[i] * HemisphereMonteCarloFactor(NumSamples);
142 bakeOutput[i] = Float4(Float3::Clamp(result, -FP16Max, FP16Max), 1.0f);
143 }
144 }
145
146 void ProgressiveResult(Float4 bakeOutput[BasisCount], uint64 passIdx)
147 {

Callers

nothing calls this directly

Calls 3

ClampFunction · 0.85
Float4Class · 0.50

Tested by

no test coverage detected