Hi. I found readPixels
method of RawTexture is not working when created by RawTexture.CreateLuminanceTexture
.
readPixels
returns array filled by zero and throw warning message like GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is incomplete: Attachment is not renderable.
Also I checked that it is works properly when RawTexture.CreateRGBATexture
.
I created a Playground for representation below.
And tested environment is below
- OS: Windows 11 Home
- Browser: Chrome 109.0.5414.75
- Babylon.js: 5.43.0
I wanto to know this is whether bug or specification.
Thank you!