bitbrain / braingdx

:video_game: Game jam framework based on libgdx.
Apache License 2.0
84 stars 1 forks source link

Introducing RenderGroupPipeline #106

Open bitbrain opened 6 years ago

bitbrain commented 6 years ago

Introduce a new RenderPipeline which handles rendering in a different way than the previous ones (layered).

The Problem

At the moment rendering works fine, it is possible to stack layers onto each other and apply shaders to them. It is also possible to re-order these layers to have different rendering results. However, this does not help when wanting multiple Viewport per layer. For example, we want to have a "world layer", which has a different world zoom than the UI layer. Furthermore, the world layer itself might not be on one layer at all. Multiple game objects might get rendered on different layers, depending on their type/group (see #96).

The Proposal

Introduce a new "grouped" pipeline which is more dynamic than the already existing one. The new default pipeline should fulfill these requirements:

< WIP >