From 04ae33ba3a4666ceef3017e406c54a4d04bd5608 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Thu, 2 Jun 2005 10:32:54 +0000 Subject: 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... --- source/blender/blenkernel/intern/world.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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; atex) R.wrld.skytype |= WO_SKYTEX; + while(R.wrld.aosamp*R.wrld.aosamp < R.osa) R.wrld.aosamp++; } else { memset(&R.wrld, 0, sizeof(World)); -- cgit v1.2.3