Stop starfield from disappearing when there is no lights on screen

This commit is contained in:
Noah Pilarski 2022-08-10 16:42:39 -04:00
parent ea5474cf93
commit f28c1f3c35

View File

@ -381,6 +381,14 @@ namespace NewHorizons
remoteViewer._visualSector = northPoleSurface;
}
//Stop starfield from disappearing when there is no lights
var playerBody = SearchUtilities.Find("Player_Body");
var playerLight = playerBody.AddComponent<Light>();
playerLight.innerSpotAngle = 0;
playerLight.spotAngle = 179;
playerLight.range = 0.5f;
playerLight.intensity = 0.001f;
try
{
Logger.Log($"Star system finished loading [{Instance.CurrentStarSystem}]");