Functions to calculate the visible width / height at a given z-depth from a perspective camera

Sure, have a look at this codepen, it shows full screen height / width rectangles drawn at various depths from the camera.

2 Likes