|
|
The following patch partially fixes the problem reported in
povray.binaries.images in the thread:
Photon problem
(first post 2003-05-13 by Gilles Tran).
HTH Massimo
--- - 2003-05-15 12:30:22.000000000 +0200
+++ obj/photons.cpp 2003-05-15 12:13:26.000000000 +0200
@@ -1086,7 +1086,9 @@
// compute the length of "v" if we're going to use it
if (Light->Light_Type == CYLINDER_SOURCE)
{
- VLength(dist_of_initial_from_center,v);
+ VECTOR initial_from_center;
+ VSub(initial_from_center, Ray.Initial, Light->Center);
+ VLength(dist_of_initial_from_center, initial_from_center);
}
}
else
Post a reply to this message
|
|