StarBuilder: use material instead of sharedMaterial

This commit is contained in:
JohnCorby 2023-06-14 15:08:15 -07:00
parent 88229c8e0a
commit 7e47edecbf

View File

@ -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;
} }
} }