I am trying to use the WebXR Camera Access API, where the api just returns a WebGLTexture:
const cameraTexture = binding.getCameraImage(view.camera); // --> WebGLTexture
However I am not sure how to use a WebGLTexture already uploaded to the GPU with three.js.
I could read the pixel values using the readPixels
function, but is there a better way which doesn’t involve passing the data back to the CPU?