Convert WebGLTexture to pc.Texture

How copy WebGLTexture to pc.Texture?

1 Like

Hmm, good question, pc.Texture is a wrapper to feed to the device/forward renderer the texture source info.

I don’t have an answer on this, but you can check the device.js source file on how it runs gl calls to bind the textures. Might be a good starting point on how to get from there to pc.Textures.

1 Like

I find other way and get raw pixel data instead WebGLTexture

2 Likes

This is not native PC, 8th wall camera image for processing effect

1 Like

Hey chaps, any further info on this one? I’m trying to forge a path forward towards capturing raw camera pixels during a WebAR session, and feel this is the last remaining hurdle…

Cheers,
Isaac