I want to get one Scene FBO with scene color texture and depth texture, and one Depth FBO with depth texture with specific size (1024x1024) for shadow mapping. and I have a code like this:
Renderer::begin()
drawCube();
drawSphere();
Renderer::end();
in Renderer::begin() I bind the Scene FBO and in Renderer::end() I unbind it.
So how can I render scene to Depth FBO as well so I can get the depth map in this situation?