[Bf-blender-cvs] [d85c76e7b99] upstream_cycles_texture_cache: Cycles: Moved texture coordinate differential creation to after all bump maps are created. This should improve texture caching in scenes with bump/displacement maps.
Stefan Werner
noreply at git.blender.org
Wed Jun 27 14:05:15 CEST 2018
Commit: d85c76e7b99817ef63bde6764d9d2e6a6437d8c0
Author: Stefan Werner
Date: Tue Aug 8 14:27:57 2017 +0200
Branches: upstream_cycles_texture_cache
https://developer.blender.org/rBd85c76e7b99817ef63bde6764d9d2e6a6437d8c0
Cycles: Moved texture coordinate differential creation to after all bump maps are created. This should improve texture caching in scenes with bump/displacement maps.
===================================================================
M intern/cycles/render/graph.cpp
===================================================================
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index 90b95ebefdd..bc3f227d44e 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -340,11 +340,17 @@ void ShaderGraph::finalize(Scene *scene,
* modified afterwards. */
if(!finalized) {
+ clean(scene);
+ refine_bump_nodes();
simplify(scene);
if(do_bump)
bump_from_displacement(bump_in_object_space);
-
+
+ /* This must be after all bump nodes are created,
+ * so that bump map lookups can be mip mapped too. */
+ add_differentials();
+
ShaderInput *surface_in = output()->input("Surface");
ShaderInput *volume_in = output()->input("Volume");
More information about the Bf-blender-cvs
mailing list