Blender Git Commit Log

Git Commits -> Revision 40eedd5

Revision 40eedd5 by Alexander Gavrilov (master)
October 1, 2016, 11:37 (GMT)
Cycles: implement partial constant folding for exponentiation.

This is also an important mathematical operation that can be folded
if it is known that one argument is a certain constant. For colors
the operation is provided as a Gamma node.

The SVM Gamma node needs a small fix to make it follow the 0 ^ 0 == 1
rule, same as the Power node, or the Gamma node itself in OSL mode.

Reviewers: #cycles

Differential Revision: https://developer.blender.org/D2263

Commit Details:

Full Hash: 40eedd5df9083ce54c38c6307946488a1fa8aae0
Parent Commit: 95fa303
Lines Changed: +139, -0

5 Modified Paths:

/intern/cycles/kernel/svm/svm_math_util.h (+3, -0) (Diff)
/intern/cycles/render/constant_fold.cpp (+22, -0) (Diff)
/intern/cycles/render/constant_fold.h (+1, -0) (Diff)
/intern/cycles/render/nodes.cpp (+13, -0) (Diff)
/intern/cycles/test/render_graph_finalize_test.cpp (+100, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021