Fix error with pow being undefined when newValue becomes negative

Add wms.itn.liu.se as main server for CTX and Mola for Mars
This commit is contained in:
Alexander Bock
2016-11-24 21:07:19 +01:00
parent 2646e2dcbb
commit 328f57fb20
4 changed files with 10 additions and 10 deletions
@@ -75,7 +75,7 @@
float performLayerSettings(float currentValue, const LayerSettings settings) {
float newValue = currentValue;
newValue = sign(newValue) * pow(newValue, settings.gamma);
newValue = sign(newValue) * pow(abs(newValue), settings.gamma);
newValue = newValue * settings.multiplier;
newValue = newValue * settings.opacity;
@@ -129,7 +129,7 @@ float calculateHeight(
#if !HEIGHTMAP_BLENDING_ENABLED
levelWeights = getDefaultLevelWeights();
#endif // HEIGHTMAP_BLENDING_ENABLED
#for i in 0..#{lastLayerIndexHeightLayers}
{