small fix for equisolid fisheye (cycles)

the FOV formular is: R = 2 * lens * sin (theta / 2)
in this case theta is fov/2 already, thus the fix
This commit is contained in:
Dalai Felinto 2012-05-04 16:29:41 +00:00
parent d7fbe03a8a
commit d710638c47

@ -255,7 +255,7 @@ __device float3 fisheye_equisolid_to_direction(float u, float v, float lens, flo
u = (u - 0.5f) * width;
v = (v - 0.5f) * height;
float rmax = 2.f * lens * sinf(fov * 0.5f);
float rmax = 2.f * lens * sinf(fov * 0.25f);
float r = sqrt(u*u + v*v);
if (r > rmax) {