Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo de Greef <eeshlo@yahoo.com>2004-08-02 02:21:22 +0400
committerAlfredo de Greef <eeshlo@yahoo.com>2004-08-02 02:21:22 +0400
commitc11bb5b7ad73bf7076a51deba1338220aeded5ae (patch)
tree21276297e95760b40864f4f44b4542ed67981351 /source/blender/yafray/intern
parent2a749931ba3ac9470bfd3fa7545a8df4bb587db4 (diff)
Values for spherelight sampling were using incorrect blender lamp parameter.
Diffstat (limited to 'source/blender/yafray/intern')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp2
-rw-r--r--source/blender/yafray/intern/export_Plugin.cpp4
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);