Fixed visual overlapping glitch by turning the faction color node as a child of _billboard, as this one manages correct depth between different instances and so does all its children.
Also, the color is now directly modified through the modulate field of FactionColor. Separate faction color materials (+ code) have been removed as they are not required anymore (due to Sprite3D supporting billboard mode) but instead all colors can be accessed from Global.FACTION_COLORS.
Fixed visual overlapping glitch by turning the faction color node as a child of
_billboard
, as this one manages correct depth between different instances and so does all its children.Also, the color is now directly modified through the
modulate
field ofFactionColor
. Separate faction color materials (+ code) have been removed as they are not required anymore (due toSprite3D
supporting billboard mode) but instead all colors can be accessed fromGlobal.FACTION_COLORS
.Before:
Now:
![Screenshot 2022-03-22 193055](https://user-images.githubusercontent.com/2534873/159555016-f3927169-e352-4f2d-8541-d16b9c247881.png)