How to get the color of a position of canvas screen in 3D scene

Hello everyone!
I’m looking for the way to get the color of a position of canvas screen in 3D scene.


As you can see the screen shot, when I move the mouse cursor on the art, I want to get the color of picked position by mouse cursor.
Thank you

Have you considered to used a similar approach like this official example:

https://threejs.org/examples/webgl_read_float_buffer

The idea is to extract the color value from a render target via WebGLRenderer.readRenderTargetPixels().

1 Like

Cool. thank you

@belopot you can also do like this :

Awesome! thank you Felix.