[Bf-blender-cvs] [238db604c5] master: Cycles: Add more logs about what's going on in shader optimization

Sergey Sharybin noreply at git.blender.org
Mon Feb 27 12:44:23 CET 2017


Commit: 238db604c5c3e6b091eadba690c8291aa246c9fe
Author: Sergey Sharybin
Date:   Mon Feb 27 12:38:24 2017 +0100
Branches: master
https://developer.blender.org/rB238db604c5c3e6b091eadba690c8291aa246c9fe

Cycles: Add more logs about what's going on in shader optimization

===================================================================

M	intern/cycles/render/nodes.cpp

===================================================================

diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 3ac3be20bd..82671f71b6 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -1948,6 +1948,7 @@ void GlossyBsdfNode::simplify_settings(Scene *scene)
 		 * Note: Keep the epsilon in sync with kernel!
 		 */
 		if(!roughness_input->link && roughness <= 1e-4f) {
+			VLOG(1) << "Using sharp glossy BSDF.";
 			distribution = CLOSURE_BSDF_REFLECTION_ID;
 		}
 	}
@@ -1958,6 +1959,7 @@ void GlossyBsdfNode::simplify_settings(Scene *scene)
 		if(roughness_input->link == NULL &&
 		   distribution == CLOSURE_BSDF_REFLECTION_ID)
 		{
+			VLOG(1) << "Using GGX glossy with filter glossy.";
 			distribution = CLOSURE_BSDF_MICROFACET_GGX_ID;
 			roughness = 0.0f;
 		}
@@ -2041,6 +2043,7 @@ void GlassBsdfNode::simplify_settings(Scene *scene)
 		 * Note: Keep the epsilon in sync with kernel!
 		 */
 		if(!roughness_input->link && roughness <= 1e-4f) {
+			VLOG(1) << "Using sharp glass BSDF.";
 			distribution = CLOSURE_BSDF_SHARP_GLASS_ID;
 		}
 	}
@@ -2051,6 +2054,7 @@ void GlassBsdfNode::simplify_settings(Scene *scene)
 		if(roughness_input->link == NULL &&
 		   distribution == CLOSURE_BSDF_SHARP_GLASS_ID)
 		{
+			VLOG(1) << "Using GGX glass with filter glossy.";
 			distribution = CLOSURE_BSDF_MICROFACET_GGX_GLASS_ID;
 			roughness = 0.0f;
 		}
@@ -2134,6 +2138,7 @@ void RefractionBsdfNode::simplify_settings(Scene *scene)
 		 * Note: Keep the epsilon in sync with kernel!
 		 */
 		if(!roughness_input->link && roughness <= 1e-4f) {
+			VLOG(1) << "Using sharp refraction BSDF.";
 			distribution = CLOSURE_BSDF_REFRACTION_ID;
 		}
 	}
@@ -2144,6 +2149,7 @@ void RefractionBsdfNode::simplify_settings(Scene *scene)
 		if(roughness_input->link == NULL &&
 		   distribution == CLOSURE_BSDF_REFRACTION_ID)
 		{
+			VLOG(1) << "Using GGX refraction with filter glossy.";
 			distribution = CLOSURE_BSDF_MICROFACET_GGX_REFRACTION_ID;
 			roughness = 0.0f;
 		}




More information about the Bf-blender-cvs mailing list