mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Stop starfield from disappearing when there is no lights on screen
This commit is contained in:
parent
ea5474cf93
commit
f28c1f3c35
@ -381,6 +381,14 @@ namespace NewHorizons
|
|||||||
remoteViewer._visualSector = northPoleSurface;
|
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
|
try
|
||||||
{
|
{
|
||||||
Logger.Log($"Star system finished loading [{Instance.CurrentStarSystem}]");
|
Logger.Log($"Star system finished loading [{Instance.CurrentStarSystem}]");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user