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 | 4348 | auto scene = DependencyManager::get<SceneScriptingInterface>()->getStage(); |
| 4349 | 4349 | auto sceneKeyLight = scene->getKeyLight(); |
| 4350 | 4350 | auto defaultSkyboxAmbientTexture = qApp->getDefaultSkyboxAmbientTexture(); |
| 4351 | − // set the ambient sphere uniformly - the defaultSkyboxAmbientTexture has peaks that cause flashing when turning | |
| 4352 | − sceneKeyLight->setAmbientSphere(DependencyManager::get<TextureCache>()->getWhiteTexture()->getIrradiance()); | |
| 4351 | + sceneKeyLight->setAmbientSphere(defaultSkyboxAmbientTexture->getIrradiance()); | |
| 4353 | 4352 | sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture); |
| 4354 | 4353 | // fall through: render defaults skybox |
| 4355 | 4354 | } else { |