Square Root of Aspect Ratio
Some years ago while working on the screen to scene projection, I experimentally found that I need to use square root of the aspect ratio to transfer x and y coords into screen space. I still don't get why, since nowhere else in the transformation any square exists. So that must be some 3d distance factor being cancelled? Yet how could the aspect ratio got inside the distance?
BTW, I have converted my voxel editor to use the ECS driven UI. So now it properly resizes to match any resolution, instead of running at fixed 800x600. Surprisingly $800 laptop is fast enough to run a single threaded CPU raytacer in full screen. I still remember the time when realtime raytracing was just a dream even for a few spheres.