Values for spherelight sampling were using incorrect blender lamp parameter.

This commit is contained in:
Alfredo de Greef
2004-08-01 22:21:22 +00:00
parent 2a749931ba
commit c11bb5b7ad
2 changed files with 3 additions and 3 deletions

View File

@@ -1176,7 +1176,7 @@ void yafrayFileRender_t::writeLamps()
}
else if (is_sphereL) {
// spherelight
int psm=0, sm = lamp->samp*lamp->samp;
int psm=0, sm = lamp->ray_samp*lamp->ray_samp;
if (sm>=25) psm = sm/5;
ostr << " radius=\"" << lamp->YF_ltradius << "\""
<< " samples=\"" << sm << "\""

View File

@@ -1061,7 +1061,7 @@ void yafrayPluginRender_t::writeAreaLamp(LampRen* lamp, int num, float iview[4][
if (!R.r.GIphotons)
{
int psm=0, sm = lamp->ray_totsamp;
if (sm>=64) psm = sm/4;
if (sm>=25) psm = sm/5;
params["samples"]=yafray::parameter_t(sm);
params["psamples"]=yafray::parameter_t(psm);
}
@@ -1188,7 +1188,7 @@ void yafrayPluginRender_t::writeLamps()
}
else if (is_sphereL) {
// spherelight
int psm=0, sm = lamp->samp*lamp->samp;
int psm=0, sm = lamp->ray_samp*lamp->ray_samp;
if (sm>=25) psm = sm/5;
params["radius"] = yafray::parameter_t(lamp->YF_ltradius);
params["samples"] = yafray::parameter_t(sm);