mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-04 09:59:44 -05:00
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:
@@ -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}
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user