# | Line 124 | Line 124 | void photonRay (const RAY *rayIn, RAY *rayOut, | |
---|---|---|
124 | ||
125 | /* Propagate index of emitting light source */ | |
126 | rayOut -> rsrc = rayIn -> rsrc; | |
127 | + | |
128 | + | /* Update maximum photon path distance */ |
129 | + | rayOut -> rmax = rayIn -> rmax - rayIn -> rot; |
130 | } | |
131 | } | |
132 | ||
# | Line 1664 | Line 1667 | static int bsdfPhotonScatter (OBJREC *mat, RAY *rayIn) | |
1667 | ||
1668 | ||
1669 | static int lightPhotonScatter (OBJREC* mat, RAY* ray) | |
1670 | < | /* Light sources doan' reflect */ |
1670 | > | /* Light sources doan' reflect, mang */ |
1671 | { | |
1672 | return 0; | |
1673 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |