fisheye2xyz: Fisheye Projection to Cartesian
Wide-angle spherical coordinate transformation
Fisheye projection captures a hemispherical view onto a circular image. This function converts UV coordinates from a fisheye image back to 3D Cartesian coordinates on the unit sphere:
The factor 0.52 controls the field of view mapping, approximating a 180° fisheye lens.
Projection Characteristics
Radius | Field of View | Coverage |
---|---|---|
Center point | ||
Horizon | ||
Full fisheye |
Fisheye Direction Mapping
Live Editor
const fragment = () => { const dir = fisheye2xyz(uv) const color = iTime.sin().mul(dir).add(0.5) return vec4(color, 1) }