Apple Immersive Video ('aiv'), parametric immersive ('prim') and fisheye
('fish') content was approximated as half equirectangular, which
distorts the image. Add a real 'fisheye' projection mode: equidistant
radial UV mapping over the semi-sphere geometry, scaled by the hfov box
(180 by default), with black outside the image circle.
Also fixes found while reviewing the VR rendering path:
- Half equirectangular only displayed the middle 50% of the frame,
stretched 2x horizontally (the sphere shader atan() only spans half a
turn on the semi-sphere).
- Cubemap edges were visible while panning: face UVs are now inset by
half a texel and texture filtering is now bilinear (LINEAR).
- The perspective aspect ratio was hardcoded to 5/3.2 (5/2 for cubemap),
stretching the view ~14% on 16:9 containers; it now follows the
displayed canvas size (halved per eye in stereoscopic mode).
- Removed a degenerate frustum(near=0) that corrupted the first frame
after every resize, cached uniform locations per frame, and deduplicated
the DeviceMotion permission listeners.