I need to safe multiple frames to an array of textures and I’m getting a threejs error that I’m not sure.
const rt_texture = this._render_target.texture;
const result = new Texture();
this._renderer.copyTextureToTexture(new Vector2(0, 0), rt_texture, result);
Then I get this error:
WebGL2RenderingContext.texSubImage2D: Argument 7 is not valid for any of the 7-argument overloads.
three vendors-node_modules_pnpm_three_0_155_0_node_modules_three_build_three_module_js.js:1489
What I’m doing wrong?