Skip to content

Commit

Permalink
Merge branch 'master' of github.com:OoliteProject/oolite
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinosSykas committed Oct 16, 2017
2 parents 1109840 + 9bb9b93 commit 378a36b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Core/Materials/OOPlanetTextureGenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,12 @@ - (void) loadTexture
float seaBias = _info.landFraction - 1.0f;

_info.paleSeaColor = Blend(0.35f, _info.polarSeaColor, Blend(0.7f, _info.seaColor, _info.landColor));
float normalScale = 1 << _planetScale;
float normalScale = (1 << _planetScale)
#ifndef NDEBUG
// test-release only, make normalScale adjustable from within user defaults
* [[NSUserDefaults standardUserDefaults] oo_floatForKey:@"p3dnsf" defaultValue:1.0f]
#endif
; // float normalScale = ...
if (!generateNormalMap) normalScale *= 3.0f;

// Deep sea colour: sea darker past the continental shelf.
Expand Down

0 comments on commit 378a36b

Please sign in to comment.