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

Function AddSpectra

editor/editor_lighting.cpp:1679–1683  ·  view source on GitHub ↗

Adds color spectrums together

Source from the content-addressed store, hash-verified

1677
1678// Adds color spectrums together
1679void AddSpectra(spectra *dest, spectra *a, spectra *b) {
1680 dest->r = a->r + b->r;
1681 dest->g = a->g + b->g;
1682 dest->b = a->b + b->b;
1683}
1684
1685// Returns 1 if a src vector can hit dest vector unobstructed, else 0
1686int ShootRayForTerrainLight(vector *src, vector *dest, int cellnum) {

Callers 1

DoRadiosityForTerrainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected