diff options
author | Alfredo de Greef <eeshlo@yahoo.com> | 2004-08-02 02:21:22 +0400 |
---|---|---|
committer | Alfredo de Greef <eeshlo@yahoo.com> | 2004-08-02 02:21:22 +0400 |
commit | c11bb5b7ad73bf7076a51deba1338220aeded5ae (patch) | |
tree | 21276297e95760b40864f4f44b4542ed67981351 /source/blender/yafray | |
parent | 2a749931ba3ac9470bfd3fa7545a8df4bb587db4 (diff) |
Values for spherelight sampling were using incorrect blender lamp parameter.
Diffstat (limited to 'source/blender/yafray')
-rwxr-xr-x | source/blender/yafray/intern/export_File.cpp | 2 | ||||
-rw-r--r-- | source/blender/yafray/intern/export_Plugin.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp index e082fa31438..61d15bff0c9 100755 --- a/source/blender/yafray/intern/export_File.cpp +++ b/source/blender/yafray/intern/export_File.cpp @@ -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 << "\"" diff --git a/source/blender/yafray/intern/export_Plugin.cpp b/source/blender/yafray/intern/export_Plugin.cpp index 3857e93ec43..63f447c3768 100644 --- a/source/blender/yafray/intern/export_Plugin.cpp +++ b/source/blender/yafray/intern/export_Plugin.cpp @@ -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); |