Hello,
I am trying to recreate this example in BabylonJS on a flat plane: Three.js Indexed Textures for Picking and Color
But before getting to the end goal, I was wondering if this first step is possible. I was wondering if it is possible to get a pixel value of a texture based on a UV coordinate of another texture. Basically, say you have a quad with whatever texture on it. Then, when you hover over the quad with a mouse, get the UV coordinate of the mouse position that intersects with the texture. Then, get the value of a pixel from a different quad with a different texture on it using that UV coordinate. Is this possible or is there a better way?
I’m a beginner to WebGL and BabylonJS. I apologize if my explanation is confusing. Please let me know and I will try to be more clear.
Thank you for your help.