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

Function GetUnsentFlux

editor/rad_init.cpp:335–344  ·  view source on GitHub ↗

returns the amount of unsent flux from a surface

Source from the content-addressed store, hash-verified

333
334// returns the amount of unsent flux from a surface
335float GetUnsentFlux(rad_surface *surface) {
336 float flux;
337
338 flux = surface->exitance.r + surface->exitance.g + surface->exitance.b;
339
340 if (surface->surface_type != ST_SATELLITE)
341 flux *= surface->area;
342
343 return flux;
344}
345
346float GetMaxColor(spectra *sp) {
347 float m;

Callers 2

SetExitanceForSurfaceFunction · 0.85
UpdateUnsentValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected