等距離射影方式
魚眼レンズにおける等距離射影方式 (Equidistance Projection) は、射影方式のひとつ 画像上の中心からの距離と角度が比例するような射影方式 Mapping Function
$ rを画像の中心からの距離・$ fを焦点距離・$ \thetaを光軸からの角度としたとき、 $ r = f \theta
$ \theta = \frac{r}{f}
GLSL
code:glsl
const float f = 1.0;
float r = length(p);
float theta = r / f;
vec3 rd = vec3(sin(theta) * p / r, -cos(theta));