mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 05:01:57 -04:00
Fixed handling of textures without fallback.
Earth now has same colour as atmosphere without a texture.
This commit is contained in:
parent
5659439a8f
commit
77647d688f
|
@ -49,7 +49,7 @@
|
|||
"rotation": -20996798
|
||||
},
|
||||
"earth": {
|
||||
"texture": ["earth.jpg", "earth_medium.jpg", "earth_small.jpg", [0, 0.28, 1, 1]],
|
||||
"texture": ["earth.jpg", "earth_medium.jpg", "earth_small.jpg", [0.11, 0.32, 0.43, 1]],
|
||||
"radius": 6378.1,
|
||||
"z": "AU",
|
||||
"pitch": -90,
|
||||
|
|
|
@ -42,6 +42,9 @@ def get_best_texture(info, optional=False, loader=load_texture):
|
|||
pass
|
||||
else:
|
||||
break
|
||||
else:
|
||||
cheap = True
|
||||
texture = [1, 1, 1, 1]
|
||||
else:
|
||||
try:
|
||||
texture = loader(info)
|
||||
|
|
Loading…
Reference in a new issue