Ok it turns out the interface to gl.DrawUnitShape just changed without me knowing it. However while it's possible to specify that a unit be drawn with translucency it's no longer possible to specify the opacity (which used to be possible with gl.Color). If you set it to use raw rendering then gl.Color sort of works but it overrides the unit's texture entirely which is typically not what you want.
Allow alpha control for gl.DrawUnitShape
Moderator: Moderators
Allow alpha control for gl.DrawUnitShape
Ok it turns out the interface to gl.DrawUnitShape just changed without me knowing it. However while it's possible to specify that a unit be drawn with translucency it's no longer possible to specify the opacity (which used to be possible with gl.Color). If you set it to use raw rendering then gl.Color sort of works but it overrides the unit's texture entirely which is typically not what you want.