change projection matrix every frame?


i’m developing some graphics for a game. to implement buttons and other UI elements i want to change my perspective view to Ortho2D view in order to render buttons at the very same display position every frame.

is it recommended to reset the projection matrix every frame? or can this cause any trouble?


There is no such recommendation as you are free to implement anything you want. There is no problem specifying the projection matrix every frame and in some cases it’s required (for example mixing 3d and 2d elements)

sounds good!

Thanks a lot!