returns the amount of unsent flux from a surface
| 333 | |
| 334 | // returns the amount of unsent flux from a surface |
| 335 | float 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 | |
| 346 | float GetMaxColor(spectra *sp) { |
| 347 | float m; |
no outgoing calls
no test coverage detected