Blender Git Loki

Git Commits -> Revision 2482bb1

January 20, 2017, 10:25 (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: 2482bb1d723b580c36c35f40f43d72713559a3b5
Parent Commit: 7ef3dfe
Committed By: Sergey Sharybin
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)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021