Calculate camera y position for horizon to be at a percentage of canvas height
I have the following three.js code that renders a cube hovering above a floor, with the camera looking at the cube:
I have the following three.js code that renders a cube hovering above a floor, with the camera looking at the cube: