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:
Diffstat (limited to 'source/blender/yafray/intern/export_Plugin.cpp')
-rw-r--r--source/blender/yafray/intern/export_Plugin.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/yafray/intern/export_Plugin.cpp b/source/blender/yafray/intern/export_Plugin.cpp
index 886198c7be3..83ea08afa61 100644
--- a/source/blender/yafray/intern/export_Plugin.cpp
+++ b/source/blender/yafray/intern/export_Plugin.cpp
@@ -1768,7 +1768,8 @@ void yafrayPluginRender_t::writeHemilight()
params["name"] = yafray::parameter_t("hemi_LT");
params["power"] = yafray::parameter_t(R.r.GIpower);
if (fromAO) {
- params["samples"] = yafray::parameter_t(world->aosamp*world->aosamp);
+ // use minimum of 4 samples for lowest sample setting, single sample way too noisy
+ params["samples"] = yafray::parameter_t(3 + world->aosamp*world->aosamp);
params["maxdistance"] = yafray::parameter_t(world->aodist);
params["use_QMC"] = yafray::parameter_t((world->aomode & WO_AORNDSMP) ? "off" : "on");
}
@@ -1860,8 +1861,8 @@ bool yafrayPluginRender_t::writeWorld()
MTex* wtex = world->mtex[i];
if (!wtex) continue;
Image* wimg = wtex->tex->ima;
- // now always exports if image used as world texture
- if ((wtex->tex->type==TEX_IMAGE) && (wimg!=NULL)) {
+ // now always exports if image used as world texture (and 'Hori' mapping enabled)
+ if ((wtex->tex->type==TEX_IMAGE) && (wimg!=NULL) && (wtex->mapto & WOMAP_HORIZ)) {
string wt_path = wimg->name;
adjustPath(wt_path);
params["type"] = yafray::parameter_t("image");