[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [27959] branches/render25/source/blender/ render/intern/source/shadeoutput.c: Render Branch: Fix a problem with only shadow materials + env light.
Brecht Van Lommel
brecht at blender.org
Fri Apr 2 16:40:48 CEST 2010
Revision: 27959
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=27959
Author: blendix
Date: 2010-04-02 16:40:47 +0200 (Fri, 02 Apr 2010)
Log Message:
-----------
Render Branch: Fix a problem with only shadow materials + env light.
Modified Paths:
--------------
branches/render25/source/blender/render/intern/source/shadeoutput.c
Modified: branches/render25/source/blender/render/intern/source/shadeoutput.c
===================================================================
--- branches/render25/source/blender/render/intern/source/shadeoutput.c 2010-04-02 13:43:56 UTC (rev 27958)
+++ branches/render25/source/blender/render/intern/source/shadeoutput.c 2010-04-02 14:40:47 UTC (rev 27959)
@@ -303,6 +303,8 @@
/* quite disputable this... also note it doesn't mirror-raytrace */
if((re->db.wrld.mode & (WO_AMB_OCC|WO_ENV_LIGHT)) && shi->material.amb!=0.0f) {
float f;
+
+ ambient_occlusion(re, shi);
if(re->db.wrld.mode & WO_AMB_OCC) {
f= re->db.wrld.aoenergy*shi->material.amb;
More information about the Bf-blender-cvs
mailing list