|
![](/i/fill.gif) |
"Apache" <apa### [at] yahoo com> wrote in message
news:3e1b6a20@news.povray.org...
> I use this function in radiosit.cpp:
>
> dest_vec[Z] = sqrt(1. - pow(src_vec->x, 2.)-pow(src_vec->x, 2.));
>
I'm assuming that you meant: dest_vec[Z] = sqrt(1. - pow(src_vec->x,
2.)-pow(src_vec->y, 2.));
If you just cut and pasted this code then you may want to re-run your tests,
because this would make a huge difference.
And I would at least expand pow function to square a value into a single
multiplication for efficiency.
--- Troy S. Ristow
Post a reply to this message
|
![](/i/fill.gif) |