Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blender: Extremely hacky fix for shaded viewport zoom
PERSP now works perfectly, assuming your viewport is either a square, or wider than it is tall. CAMERA perspective is still very wrong, and I have absolutely no clue how to fix it. I trawled through Blender's code, found a weird 'magic zoom' formula, asked the Blender devs about that, looked at some more code, and I still have no clue how one is supposed to compute valid camera parameters from everything correctly. It now sort of, kind of, works. And the perspective type works perfectly, as long as you size your viewport correctly. Good enough for now!
- Loading branch information