I want to create some sort of scanner with a 2D rectangle area (like a plane)
The plane would intersect objects in the scene and will result with a image of the intersection area.
The scan direction is not necessarily from the user perspective
For example, if the plane would hit a sphere, the result intersection would be a circle.
If it would hit a cube (orthogonally) it would result in a square
I would later send the result image to the user as a render target in the HUD.
How do I detect this type of intersections in the material?