MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetMaxColor

Function GetMaxColor

editor/rad_init.cpp:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346float GetMaxColor(spectra *sp) {
347 float m;
348
349 m = std::max<float>(sp->r, sp->g);
350 m = std::max<float>(sp->b, m);
351
352 return m;
353}
354
355int FixEdges = 0;
356extern void AddSpectra(spectra *dest, spectra *a, spectra *b);

Callers 9

NormalizeExitanceFunction · 0.85
GetFormFactorForElementFunction · 0.85
DoRadiosityForRoomsFunction · 0.85
DoRadiosityForTerrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected