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:
authorMatt Ebb <matt@mke3.net>2008-09-26 11:12:36 +0400
committerMatt Ebb <matt@mke3.net>2008-09-26 11:12:36 +0400
commit5adff90b0868f88050e601092b35628fa3ae132b (patch)
tree3073660292c9339a1f4e360698fbbca970614d9c /source/blender/blenloader/intern/readfile.c
parent78c50f7af1d694252984885e0eac87682647e2d2 (diff)
* Some more tweaks to particle density rendering. I'm not 100%
sure if this is 'correct' but so far in testing it's been working pretty well. This also exposes a new 'Nearest' value, to determine how many nearby particles are taken into account when determining density. A greater number is more accurate, but slower.
Diffstat (limited to 'source/blender/blenloader/intern/readfile.c')
-rw-r--r--source/blender/blenloader/intern/readfile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 658c14f5876..49ad3096957 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -7872,6 +7872,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
ma->vol_scattering = 1.0f;
ma->vol_absorption_col[0] = ma->vol_absorption_col[1] = ma->vol_absorption_col[2] = 0.0f;
if (ma->vol_raydepth == 0) ma->vol_raydepth = 15;
+ if (ma->vol_part_maxnearest == 0) ma->vol_part_maxnearest = 5;
+ if (ma->vol_part_searchradius < 0.001f) ma->vol_part_searchradius = 0.20;
}
}
}