mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
StarBuilder: use material instead of sharedMaterial
This commit is contained in:
parent
88229c8e0a
commit
7e47edecbf
@ -351,7 +351,8 @@ namespace NewHorizons.Builder.Body
|
|||||||
{
|
{
|
||||||
// It multiplies color by tint but wants something very bright idk
|
// It multiplies color by tint but wants something very bright idk
|
||||||
controller._color = new Color(1, 1, 1);
|
controller._color = new Color(1, 1, 1);
|
||||||
controller.GetComponent<MeshRenderer>().sharedMaterial.SetColor("_Color", controller._color);
|
// makes new material per flare, even tho they could probably all share one. oh well
|
||||||
|
controller.GetComponent<MeshRenderer>().material.SetColor("_Color", controller._color);
|
||||||
controller._tint = flareTint;
|
controller._tint = flareTint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user