I would like to use getTextureCoordinates
to pick the color from the underlying texture.
The problem is that the method does not return UV in texture-space as it claims to do, but rather returns coordinates which appear to be in mesh-space.
Here is a playground which showcases the issue: https://playground.babylonjs.com/#4JDVVJ#2
The playground shows a repeating texture on a ground mesh. You would expect that if you click the bullseye at each point, you would get similar UV coordinates, but instead you see that the UV coordinates seem to correspond to the ground mesh rather than the underlying texture.
Am I not understanding these concepts properly or is this incorrect behavior?
Thanks,
Will