-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readPixels()
with format RGB
outputs zero
#265
Comments
readPixels()
with format RGBA
outputs zeroreadPixels()
with format RGB
outputs zero
Im facing the same issue. Any updates on this? |
I also bumped into this. Looking briefly at the code, 4-channel color seems to be baked-into the readPixels function. I don't know the code very well, but I might take a crack at it if no one more familiar with the code can. I'm piping data between GL and a video encoder, so 25% overhead is a significant issue. |
Please react this issue with a thumb up emoji to make the contributors more aware of this issue if this issue is important to you. I opened the issue long time ago, and it is still relevant to me. For now, I have to use RGBA output and convert it to RGB format in JS before piping it to video encoder. |
Because of this, doesn't modify the array, |
Output:
The RGBA output is correct, but the RGB output is incorrect.
The text was updated successfully, but these errors were encountered: