Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -4348,8 +4348,7 @@ namespace render { · 4347 unmodified lines | |||
| 4348 | auto scene = DependencyManager::get<SceneScriptingInterface>()->getStage(); | 4348 | auto scene = DependencyManager::get<SceneScriptingInterface>()->getStage(); |
| 4349 | auto sceneKeyLight = scene->getKeyLight(); | 4349 | auto sceneKeyLight = scene->getKeyLight(); |
| 4350 | auto defaultSkyboxAmbientTexture = qApp->getDefaultSkyboxAmbientTexture(); | 4350 | auto defaultSkyboxAmbientTexture = qApp->getDefaultSkyboxAmbientTexture(); |
| 4351 | // set the ambient sphere uniformly - the defaultSkyboxAmbientTexture has peaks that cause flashing when turning | 4351 | sceneKeyLight->setAmbientSphere(defaultSkyboxAmbientTexture->getIrradiance()); |
| 4352 | sceneKeyLight->setAmbientSphere(DependencyManager::get<TextureCache>()->getWhiteTexture()->getIrradiance()); | ||
| 4353 | sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture); | 4352 | sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture); |
| 4354 | // fall through: render defaults skybox | 4353 | // fall through: render defaults skybox |
| 4355 | } else { | 4354 | } else { |