You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebGLRenderer: Support render target textures in copyTextureToTexture(). (#29662)
* WebGLRenderer: Support render target textures in copyTextureToTexture().
* WebGLRenderer: Update `copyTextureToTexture3D()` and docs.
* WebGLRenderer: Attempt to fix `copyTextureToTexture3D()`.
Copies the pixels of a texture in the bounds '[page:Box2 srcRegion]' in the destination texture starting from the given position.
387
+
The `depthTexture` and `texture` property of render targets are supported as well.<br/>
388
+
When using render target textures as `srcTexture` and `dstTexture`, you must make sure both render targets are intitialized e.g. via [page:.initRenderTarget]().
Copies the pixels of a texture in the bounds '[page:Box3 srcRegion]' in the destination texture starting from the given position.
396
+
The `depthTexture` and `texture` property of 3D render targets are supported as well.<br/>
397
+
When using render target textures as `srcTexture` and `dstTexture`, you must make sure both render targets are intitialized e.g. via [page:.initRenderTarget]().
}elseif(textureTarget===_gl.TEXTURE_2D||(textureTarget>=_gl.TEXTURE_CUBE_MAP_POSITIVE_X&&textureTarget<=_gl.TEXTURE_CUBE_MAP_NEGATIVE_Z)){// see #24753
0 commit comments