From 350bc602e0ecd0f93dc2cc90ab34ce09993a687b Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Thu, 22 Oct 2020 12:57:52 +1000 Subject: [PATCH] A newly created 3d map now defaults to a single directional light instead of a point light source These are a better default lighting, because they are simpler to configure and will lead to more of the scene being immediately lit by default. --- src/app/qgisapp.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index 51e839530975..22a7306ff423 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -13049,9 +13049,8 @@ void QgisApp::new3DMapCanvas() flatTerrain->setExtent( fullExtent ); map->setTerrainGenerator( flatTerrain ); - QgsPointLightSettings defaultPointLight; - defaultPointLight.setConstantAttenuation( 0 ); - map->setPointLights( QList() << defaultPointLight ); + // new scenes default to a single directional light + map->setDirectionalLights( QList() << QgsDirectionalLightSettings() ); map->setOutputDpi( QgsApplication::desktop()->logicalDpiX() ); dock->setMapSettings( map );