| 104 | } |
| 105 | |
| 106 | List<pair<Vec2F, Vec3F>> ParticleManager::lightSources() const { |
| 107 | List<pair<Vec2F, Vec3F>> lsources; |
| 108 | for (auto const& particle : m_particles) { |
| 109 | if (particle.light != Color::Clear) |
| 110 | lsources.append({particle.position, particle.light.toRgbF()}); |
| 111 | } |
| 112 | return lsources; |
| 113 | } |
| 114 | |
| 115 | } |