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
43484348 auto scene = DependencyManager::get<SceneScriptingInterface>()->getStage();
43494349 auto sceneKeyLight = scene->getKeyLight();
43504350 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());
43534352 sceneKeyLight->setAmbientMap(defaultSkyboxAmbientTexture);
43544353 // fall through: render defaults skybox
43554354 } else {