UPD: Now I just need to fix models that are weird for some reason, but feel like it's important to keep context.
I want to render my image to several canvases to achieve overlay effect with other HTML contents. Ideally, my plan is like following:
- Render layer 2 to the frame buffer;
- Copy part of that frame buffer to canvas B (overlay);
- Render layer 1 to the frame buffer;
- Put layer 2 on top of layer 1;
- Apply that buffer to canvas A (background);
I cannot figure out whether I can just copy texture to canvas, and how to compose image later. I want to be efficient in order to no re-render same things twice.
Is it possible at all?