unknown-horizons / godot-port

Unknown Horizons Godot Engine Port
https://www.unknown-horizons.org
GNU General Public License v2.0
663 stars 83 forks source link

Fix faction color overlapping #95

Closed artism90 closed 2 years ago

artism90 commented 2 years ago

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.

Before: Screenshot 2022-03-22 194240 Now: Screenshot 2022-03-22 193055