[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [60388] trunk/blender/intern/cycles/render /nodes.cpp: Fix [#36822], Sky Turbidity values > 10 could result in weird behavior and crashes with the new sky model.

Thomas Dinges blender at dingto.org
Fri Sep 27 12:26:00 CEST 2013


Revision: 60388
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=60388
Author:   dingto
Date:     2013-09-27 10:26:00 +0000 (Fri, 27 Sep 2013)
Log Message:
-----------
Fix [#36822], Sky Turbidity values > 10 could result in weird behavior and crashes with the new sky model. 

Soft UI range is 10 already, now clamp inside the code as well. 

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/nodes.cpp

Modified: trunk/blender/intern/cycles/render/nodes.cpp
===================================================================
--- trunk/blender/intern/cycles/render/nodes.cpp	2013-09-27 09:51:02 UTC (rev 60387)
+++ trunk/blender/intern/cycles/render/nodes.cpp	2013-09-27 10:26:00 UTC (rev 60388)
@@ -520,6 +520,9 @@
 	float theta = spherical.x;
 	float phi = spherical.y;
 	
+	/* Clamp Turbidity */
+	turbidity = clamp(turbidity, 0.0f, 10.0f); 
+	
 	/* Clamp to Horizon */
 	theta = clamp(theta, 0.0f, M_PI_2_F); 
 




More information about the Bf-blender-cvs mailing list