Inspector: can not preview texture 2d array

Engine: WebGL2
Version: 8.3.1
Browser: Chrome
Hardware: NV GTX 1050

Playground

Steps to reproduce:

  1. Open the “Inspector”
  2. Click textures → “no name”
  3. Look at “Preview”

Expected:
All layers can be previewed

Actual:
All previews are black, and there is no layer selection available

Related:

Reading from multi layer texture is a bit complex since there is no direct API doing this, you will need a to create a framebuffer, attach a single layer texture to it, draw one layer of the texture 2d array to the framebuffer, and read from the single layer texture with readPixels.

That could be a feature request for sure. Having a listbox to select which texture ID to render

2 Likes

Feel free to move it but before this implemented, maybe there should be some notice like “Preview texture array not supported yet” instead.

That sounds like a good plan (wanna give it a try?)