In my project, I am working with two scenes: the main scene which displays a textured plane, and a secondary scene that needs to be rendered to a texture. This texture will serve as a map for the main scene's plane.
Although most THREE.WebGLRenderTarget
examples redraw both scenes each frame, I specifically need the secondary scene to only be rendered once. After rendering, I want the result to be stored as a standard texture.
If you'd like to see a simplified version of the project, check out this fiddle: here. In the animate()
function, feel free to remove the condition if(i === 0)
so that the second scene is rendered every frame.