Sets all the elements of a surface to their initial unshot exitance values
| 217 | |
| 218 | // Sets all the elements of a surface to their initial unshot exitance values |
| 219 | void SetExitanceForSurface(rad_surface *surf) { |
| 220 | int i; |
| 221 | |
| 222 | surf->exitance = surf->emittance; |
| 223 | |
| 224 | for (i = 0; i < surf->xresolution * surf->yresolution; i++) { |
| 225 | if (Shoot_from_patch) { |
| 226 | surf->elements[i].exitance.r = 0; |
| 227 | surf->elements[i].exitance.g = 0; |
| 228 | surf->elements[i].exitance.b = 0; |
| 229 | } else |
| 230 | surf->elements[i].exitance = surf->emittance; |
| 231 | } |
| 232 | |
| 233 | rad_TotalFlux += GetUnsentFlux(surf); |
| 234 | } |
| 235 | |
| 236 | // Find the surface we want to shoot from |
| 237 | void UpdateUnsentValues() { |
no test coverage detected