mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix sun morb for real my bad
This commit is contained in:
parent
590377cd51
commit
2ab5d79a81
@ -151,7 +151,9 @@ namespace NewHorizons.Components.SizeControllers
|
||||
// Use the age if theres no resizing happening, else make it get redder the larger it is or wtv
|
||||
var t = _age / (lifespan * 60f);
|
||||
if (maxScale > 0) t = CurrentScale / maxScale;
|
||||
if (t < 1f)
|
||||
|
||||
// Only go to 98% else if it reaches the endSurfaceMaterial it'll morb
|
||||
if (t < 0.98f)
|
||||
{
|
||||
_currentColour = Color.Lerp(_startColour, _endColour, t);
|
||||
supernova._surface._materials[0].Lerp(_startSurfaceMaterial, _endSurfaceMaterial, t);
|
||||
@ -268,9 +270,7 @@ namespace NewHorizons.Components.SizeControllers
|
||||
{
|
||||
lod.material.SetFloat("_InnerRadius", CurrentScale);
|
||||
lod.material.SetFloat("_OuterRadius", CurrentScale * StarBuilder.OuterRadiusRatio);
|
||||
|
||||
// These break once it reaches endColour and I have no idea why
|
||||
//lod.material.SetColor("_SkyColor", _currentColour);
|
||||
lod.material.SetColor("_SkyColor", _currentColour);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user