mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 13:11: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
0794cad88b
commit
db61f5cb59
|
@ -49,7 +49,7 @@
|
||||||
"rotation": -20996798
|
"rotation": -20996798
|
||||||
},
|
},
|
||||||
"earth": {
|
"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,
|
"radius": 6378.1,
|
||||||
"z": "AU",
|
"z": "AU",
|
||||||
"pitch": -90,
|
"pitch": -90,
|
||||||
|
|
|
@ -42,6 +42,9 @@ def get_best_texture(info, optional=False, loader=load_texture):
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
cheap = True
|
||||||
|
texture = [1, 1, 1, 1]
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
texture = loader(info)
|
texture = loader(info)
|
||||||
|
|
Loading…
Reference in a new issue