Allow game entity to reference arbitrary data in render updates #1542
Labels
area: renderer
Concerns our graphics renderer
area: simulation
Involved in the game mechanics and simulation
improvement
Enhancement of an existing component
lang: c++
Done in C++ code
In our engine architecture, game entities in the simulation send requests to the renderer to be drawn. The render requests also include updates on what to draw (i.e. which animation) and where (i.e. the entity position). Updates are only send when this info changes.
Currently, we only send information in updates that is always required by the renderer, e.g. the animation path and the entity position. However, we may want to send other information that is only used in specific cases such as the player ID when drawing player colors. Furthermore, the renderer also needs to be able to handle this info and transform it into something that can be passed to the GPU.
Tasks:
The text was updated successfully, but these errors were encountered: