>>4202450I only managed to achieve this in a fixed top down perspective, basically we know Z of the camera, we find hypotenuse to the edge of the map (using Z / cos(constant angle)) and then using the pythogoras theorem we find the distance to the edge of the map and then we just divide and shit.
>>4202464I know. Direct3D is a graphics API along with OpenGL and nowadays, Vulkan. It's old, and most game engines nowadays use the latter two. But you can learn anything using the documentation.