I use SDL2.
Currently my only shader has a MVP matrix, and transforms the points with it.
I calculate my View and Projection matrix for a camera with GLM:
glm::lookAt(pos, pos + forward, up); glm::perspective(fov, aspectRatio, zNear, zFar);
I searched it, but I can only find legacy implementation of multiple viewports.
If I create for example 4 cameras and let's say that they all the same, except every camera has a different quarter of the screen to render. (So I want 4 viewports with the same content)
How can I do this? Sorry if I didn't give enough informations, feel free to ask.