Check out the relevant docs page Mesh Picking | Babylon.js Documentation
And also PickingInfo | Babylon.js Documentation
Then this forum post for something more specific Get Texture color value at ray collision point
Check out the relevant docs page Mesh Picking | Babylon.js Documentation
And also PickingInfo | Babylon.js Documentation
Then this forum post for something more specific Get Texture color value at ray collision point