23 |
|
#include "pmapdiag.h" |
24 |
|
#include "rcontrib.h" |
25 |
|
#include "otypes.h" |
26 |
+ |
#include "otspecial.h" |
27 |
|
|
28 |
|
|
28 |
– |
|
29 |
|
static void setPmapContribParams (PhotonMap *pmap, LUTAB *srcContrib) |
30 |
|
/* Set parameters for light source contributions */ |
31 |
|
{ |
108 |
|
unsigned i; |
109 |
|
PhotonSearchQueueNode *sqn; |
110 |
|
float r2, invArea; |
111 |
< |
RREAL rayCoeff [3]; |
111 |
> |
SCOLOR rayCoeff; |
112 |
|
Photon *photon; |
113 |
|
static char warnPos = 1, warnDir = 1; |
114 |
|
|
238 |
|
flux [j] = ray -> rcol [j] ? flux [j] / ray -> rcol [j] : 0; |
239 |
|
} |
240 |
|
|
241 |
< |
multcolor(flux, rayCoeff); |
242 |
< |
addcolor(srcContrib -> cbin [srcBin], flux); |
241 |
> |
multscolor(flux, rayCoeff); |
242 |
> |
saddcolor(mcbin(srcContrib,srcBin), flux); |
243 |
|
} |
244 |
|
} |
245 |
|
|