History

restore default ambient skybox

Zach Pomerantz committed 10 years ago

Commit 372c52f1 parent 3ca01a11 file · +1 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−2
@@ -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 turning4351 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 skybox4353 // fall through: render defaults skybox
4355 } else {4354 } else {