| 104 | } |
| 105 | |
| 106 | void CellularLightingCalculator::addSpreadLight(Vec2F const& position, Vec3F const& light) { |
| 107 | Vec2F arrayPosition = position - Vec2F(m_calculationRegion.min()); |
| 108 | if (m_monochrome) |
| 109 | m_lightArray.right().addSpreadLight({arrayPosition, light.max()}); |
| 110 | else |
| 111 | m_lightArray.left().addSpreadLight({arrayPosition, light}); |
| 112 | } |
| 113 | |
| 114 | void CellularLightingCalculator::addPointLight(Vec2F const& position, Vec3F const& light, float beam, float beamAngle, float beamAmbience, bool asSpread) { |
| 115 | Vec2F arrayPosition = position - Vec2F(m_calculationRegion.min()); |
no test coverage detected