Blender Git Loki

Git Commits -> Revision e796581

Revision e796581 by Thomas Dinges (master)
November 25, 2015, 12:57 (GMT)
Cycles: Refactor of constant fold.

* Move constant folding from nodes to the shader graph. This way it's part of our (later) 4-step optimization process.
* Instead of only doing a one level constant fold, we can now do a recursive constant fold, allowing us to simplify shaders much further.
Constant folding is implemented for Blackbody, Math and VectorMath nodes.

Example (the highlighted nodes are removed before rendering):
Before: http://archive.dingto.org/2015/blender/code/one_level_constant_fold.jpg
Now: http://archive.dingto.org/2015/blender/code/multi_level_constant_fold.jpg

Thanks to Sergey and Brecht for Review!
Differential Revision: https://developer.blender.org/D1626

Commit Details:

Full Hash: e796581655ed9a36c263a20e7ed97856fc0f1070
Parent Commit: 415b5a4
Lines Changed: +127, -55

4 Modified Paths:

/intern/cycles/render/graph.cpp (+39, -5) (Diff)
/intern/cycles/render/graph.h (+11, -2) (Diff)
/intern/cycles/render/nodes.cpp (+71, -45) (Diff)
/intern/cycles/render/nodes.h (+6, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021