A bit more code cleanup

This commit is contained in:
Alexander Bock
2020-12-08 16:37:25 +01:00
parent 3db2bf47ea
commit 184d940944
4 changed files with 8 additions and 7 deletions
@@ -1690,11 +1690,11 @@ void RenderableGlobe::recompileShaders() {
std::vector<std::pair<std::string, std::string>>& pairs =
preprocessingData.keyValuePairs;
const bool hasHeightLayer = !_layerManager.layerGroup(
layergroupid::HeightLayers
).activeLayers().empty();
pairs.emplace_back("useAccurateNormals",
std::to_string(_generalProperties.useAccurateNormals && hasHeightLayer)
);