--- src/lights/pathlight.cc Tue Feb 3 16:42:26 2004
+++ /Users/krug/Desktop/yafray-0.0.6-2/src/lights/pathlight.cc Thu Feb 19 15:44:11 2004
- data=state.context.get(photonData,present);
+ data=state.context.get_d(photonData,present);
data=new photonData_t(imap->getMaxRadius(),new vector<foundPhoton_t>(5+1));
- state.context.store(photonData,data);
+ state.context.store_d(photonData,data);
point3d_t pP=toRealPolar(sp.P(),s);
- radius=state.context.get(lastRadius,present);
+ radius=state.context.get_nd(lastRadius,present);
if(!present) radius=cache_size;
vector<foundSample_t> samples;
farest=gatherSamples(sp.P(),pP,N,samples,search,radius,3);
- state.context.store(lastRadius,radius);
+ state.context.store_nd(lastRadius,(float&) radius);
if(samples.size()==1) farest=0;
else if(farest>0.8/shadow_threshold) farest=0.8/shadow_threshold;
hemiSampler_t *pathLight_t::getSampler(renderState_t &state,const scene_t &sc)const
- hemiSampler_t *sam=state.context.get(_sampler,present);
+ hemiSampler_t *sam=state.context.get_d(_sampler,present);
//const globalPhotonMap_t *pmap;
if(use_QMC) sam=new haltonSampler_t(maxdepth,samples);
else sam=new randomSampler_t(samples);
- state.context.store(_sampler,sam);
+ state.context.store_d(_sampler,sam);