Hi, I'm building my own little renderer and there's a couple things that I get undecided about.
Where exactly do most of you store things like the Camera and Projection matrix?
I've seen and tried several different ways of doing so, but I'm not satisfied by any of them.
- Save it in the renderer, pass them as parameters to the render functions - Probably the best way, but I don't want Parameters!
- Make a singleton for the camera ( HORRIBLE! ) to access it anytime.
- Make a static variable in the render objects that holds a reference to the camera and projection matrix.
I'm just a little curious at how others would do this minor little thing.