Entity System and rendering
- by hayer
Okey, what I know so far;
The entity contains a component(data-storage) which holds information like;
- Texture/sprite
- Shader
- etc
And then I have a renderer system which draws all this. But what I don't understand is how the renderer should be designed. Should I have one component for each "visual type". One component without shader, one with shader, etc?
Just need some input on whats the "correct way" to do this. Tips and pitfalls to watch out for.