| 294 | } |
| 295 | |
| 296 | std::shared_ptr<EnvironmentLight> FindEnvironmentLight(std::vector <std::shared_ptr<donut::engine::Light>> lights) |
| 297 | { |
| 298 | for (auto light : lights) |
| 299 | { |
| 300 | if (light->GetLightType() == LightType_Environment) |
| 301 | { |
| 302 | return std::dynamic_pointer_cast<EnvironmentLight>(light); |
| 303 | } |
| 304 | } |
| 305 | return nullptr; |
| 306 | } |
| 307 | |
| 308 | void EnvironmentLight::FillLightConstants(LightConstants& lightConstants) const |
| 309 | { |
no test coverage detected