Login  Register
Why does the RGB value always equal to (0, 0, 0) when I use gl2.glReadPixels(e.x, viewport[3] - e.y, 1, 1, GL2.GL_RGB, GL2.GL_FLOAT, FloatBuffer.wrap(color)); – Embedding Options
Javascript Code
To add this topic to your website, copy and paste the following code on your HTML page:

You can embed this topic in more than one website.
We suggest that you use a custom domain name to avoid third-party cookie problems.
Please check the Nabble Help for more information.