| 265 | return blendMax(a,b); |
| 266 | } |
| 267 | void lightingEngineViewscreen::clear() |
| 268 | { |
| 269 | lightMap.assign(lightMap.size(),rgbf(1,1,1)); |
| 270 | std::lock_guard<std::mutex> guard{myRenderer->dataMutex}; |
| 271 | if(lightMap.size()==myRenderer->lightGrid.size()) |
| 272 | { |
| 273 | std::swap(myRenderer->lightGrid,lightMap); |
| 274 | myRenderer->invalidate(); |
| 275 | } |
| 276 | } |
| 277 | void lightingEngineViewscreen::calculate() |
| 278 | { |
| 279 | if(lightMap.size()!=myRenderer->lightGrid.size()) |
no test coverage detected