How to get the colorTexture of the scene

I want to use the colorTexture of the scene (not in the post-processing stage). I know that the depth map of the scene can be obtained through czm_globeDepthTexture. Then, is there a way to get the colorTexture of the scene ?

Whether it exists in a FrameBuffer, then use frameBuffer.getColorTexture to obtain it ?

This is very much not a part of the public API, so I can’t confirm the following info won’t change in the future. :slight_smile:

  1. Create a new Texture instance to store the texture info
  2. Get you can access the current framebuffer for the scene with scene._defaultView.passState.frameBuffer.
  3. Use Texture.copyFromFramebuffer to put the framebuffer content into the texture, as is done in this prototype example.

It will also be important to call the copy function at the current time— immediately following a render pass.

Out of curiosity, what are you working on?