I have somewhat generalized version of this question: https://stackoverflow.com/questions/52475104/how-to-show-visible-part-of-planar-world-rendered-with-3d-perspective-on-topside - I would also like to know which part(s) of a given plane (not necessarily infinite) is visible to the camera, but I would like the solution to also consider objects in front of the plane that may be obstructing it's visibility.
Since that may be very hard problem to solve analyticaly (if at all in OpenGL) I would be happy also with solution based on "rasterisation". The problem would then be restated as: How to map rendered pixels of a plane back to it's 3D representation. Or in other (maybe too naive) words - how to transform rendered visible area of a plane to it's texture.
I'm a beginner in computer graphics so I would be glad even for pointing out the right study materials.