Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2012-05-04 20:29:41 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-05-04 20:29:41 +0400
commitd710638c47491619f14495ffb130b183019782c5 (patch)
tree89a2255de6d5b1025d9bfe97c5d0b98abc45af32 /intern/cycles/kernel/kernel_montecarlo.h
parentd7fbe03a8a128408c86687ef34273adddccdb347 (diff)
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
Diffstat (limited to 'intern/cycles/kernel/kernel_montecarlo.h')
-rw-r--r--intern/cycles/kernel/kernel_montecarlo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_montecarlo.h b/intern/cycles/kernel/kernel_montecarlo.h
index 3fb4d41ce06..ba24c2ea402 100644
--- a/intern/cycles/kernel/kernel_montecarlo.h
+++ b/intern/cycles/kernel/kernel_montecarlo.h
@@ -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) {