diff options
author | Ton Roosendaal <ton@blender.org> | 2005-06-02 14:32:54 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-06-02 14:32:54 +0400 |
commit | 04ae33ba3a4666ceef3017e406c54a4d04bd5608 (patch) | |
tree | d5ae22f6c260dccf1d8c86a9749797bbda7b811d /source/blender/blenkernel | |
parent | 83bd38bb418741ec5d157d0531179158a88da8a8 (diff) |
Bug fix #2660
When number of OSA samples is larger than number of AO samples, the AO
loop doesn't function well. Since rendering 16 OSA samples with only 9
AO samples isn't very useful, I've made the AO render level to become
at least equal or larger than amount of OSA samples.
Is first bug in 2.37 that worked in 2.36...
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/world.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/world.c b/source/blender/blenkernel/intern/world.c index 526176407a9..9f46b697cab 100644 --- a/source/blender/blenkernel/intern/world.c +++ b/source/blender/blenkernel/intern/world.c @@ -199,6 +199,7 @@ void init_render_world() for(a=0; a<MAX_MTEX; a++) if(R.wrld.mtex[a] && R.wrld.mtex[a]->tex) R.wrld.skytype |= WO_SKYTEX; + while(R.wrld.aosamp*R.wrld.aosamp < R.osa) R.wrld.aosamp++; } else { memset(&R.wrld, 0, sizeof(World)); |