Skip to content

Commit

Permalink
Texture looks better this way
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenSpheres committed Aug 20, 2020
1 parent 7109993 commit 639fadc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified planet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions planettexgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
color_a = (int(z_normalized*eval(values['LandR'])), int(z_normalized*eval(values['LandG'])), int(z_normalized*eval(values['LandB'])))
color_b = (eval(values['OceanR']), eval(values['OceanG']), eval(values['OceanB']))

if z_normalized < (1-eval(values['OceanLevel'])):
if z_normalized > eval(values['OceanLevel']):
color = color_a
else:
color = color_b
Expand All @@ -118,7 +118,7 @@
color_a = (0, 0, 0)
color_b = (255, 255, 255)

if z_normalized < (1-eval(values['OceanLevel'])):
if z_normalized > eval(values['OceanLevel']):
color = color_a
else:
color = color_b
Expand Down

0 comments on commit 639fadc

Please sign in to comment.