Minor campaign tweaks

This commit is contained in:
Anuken
2020-12-04 15:07:35 -05:00
parent 7b1c60c24f
commit dec5a2aaaf
7 changed files with 12 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ public class Universe{
if(state.hasSector()){
//update sector light
float light = state.getSector().getLight();
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.2f, 1f));
float alpha = Mathf.clamp(Mathf.map(light, 0f, 0.8f, 0.3f, 1f));
//assign and map so darkness is not 100% dark
state.rules.ambientLight.a = 1f - alpha;