I am looking into the picking functionality of Cesium, i must say i am impressed how good the (scene)drillpick method works.
It even goes through transparent areas of textures without selecting the primitive.
It would be very interesting for me to get the texture coordinates where the primitive was picked, so x,y or maybe u,v (if i have width and height of the texture i should be able to calculate it).
Is there any way to get this information?
Right now i would only need this for rectangle primitives.
What i have looked into:
I tried to understand how the picking is done, but it is not that trivial.
It seems to check which primitive is along the viewport coordinate the last check is in the PickFramebuffer function.
It seems to get it by using getObjectByPickColor. I read somewhere once there is a way of using color to do picking, can't quite remember how this was done.
Any help is as always greatly appreciated!