Get vertex array via shader-based mouse picking

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By z0nics

Is there some approach to get vertex array via shader (mouse picking)?
For example, i have an 3D plane mesh with gray tone texture.
Some regions of texture lighter, some darker.
I need to get the vertex array of mesh (UV region painted by some color) when i click on different texture areas.