hannobraun / vndf-2020

Von Neumann Defense Force - a game about spaceships
2 stars 0 forks source link

Draw orbits partially transparent, according to which part is nearest #18

Open hannobraun opened 4 years ago

hannobraun commented 4 years ago

Right now, it is hard to judge what the direction of the ship on the orbit is. To fix this, only the part of the orbit that the ship is about to move to should be fully opaque. The line should become more and more transparent, the longer it will take the ship to move there.

I don't know how this can be done easily with the current renderer. Maybe this should be deferred until we switched to the new bespoke frontend. Then I'd just render the whole orbit in a shader.