mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Set ColorTime
This commit is contained in:
parent
35960bd123
commit
37b3e14b2b
@ -159,15 +159,18 @@ namespace NewHorizons.Components.SizeControllers
|
||||
{
|
||||
_currentColour = Color.Lerp(_startColour, _endColour, t);
|
||||
supernova._surface._materials[0].Lerp(_startSurfaceMaterial, _endSurfaceMaterial, t);
|
||||
supernova._surface._materials[0].SetFloat("_ColorTime", t);
|
||||
}
|
||||
else
|
||||
{
|
||||
_currentColour = _endColour;
|
||||
supernova._surface._materials[0].SetFloat("_ColorTime", 1);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_currentColour = _startColour;
|
||||
supernova._surface._materials[0].SetFloat("_ColorTime", 0);
|
||||
}
|
||||
|
||||
if (_flareEmitter != null) _flareEmitter._tint = _currentColour;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user