Planet progress

This commit is contained in:
Anuken
2021-06-10 20:46:10 -04:00
parent f99b8e35bd
commit 31ebb1d156
8 changed files with 104 additions and 14 deletions

View File

@@ -82,7 +82,7 @@ public class Universe{
}
}
if(state.hasSector()){
if(state.hasSector() && state.getSector().planet.updateLighting){
//update sector light
float light = state.getSector().getLight();
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.3f, 1f));