Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Newly created directional lights default to slightly angled lights,
instead of directly top-down directions

This is more friendly behavior, because it allows visibility of
vertical features with a default light (instead of "black" walls
and lit roofs you get shaded walls + roofs)
  • Loading branch information
nyalldawson committed Oct 22, 2020
1 parent 19f79d4 commit c5fe9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/3d/qgsdirectionallightsettings.h
Expand Up @@ -58,7 +58,7 @@ class _3D_EXPORT QgsDirectionalLightSettings
bool operator==( const QgsDirectionalLightSettings &other );

private:
QgsVector3D mDirection = QgsVector3D( 0.0, -1.0, 0.0 );
QgsVector3D mDirection { -0.32, -0.91, -0.27 };
QColor mColor = Qt::white;
float mIntensity = 0.5;
};
Expand Down

0 comments on commit c5fe9fa

Please sign in to comment.