I want to build a mixed system that uses a non-threejs program to do some processing with textures that were rendered by threejs. To do that, I want to render to a THREE.WebGLRenderTarget
, then later use the underlying texture in a non-threejs program. But I can’t find any way of extracting the (gl.)WebGLTexture
. Can anyone help?
That’s reading pixels out of a buffer, but not getting access to the underlying texture. I would then have to copy the pixels back into another texture to use in my non-three program.
so you mean non-three-but-still-webgl program, okay, then inspect renderer.properties.get( renderTarget )
and see if what you want is there