diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2016-08-02 12:22:43 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2016-08-02 18:41:15 +0300 |
commit | e54320c4883ec8276e64991e5b1604f557d4e354 (patch) | |
tree | 65c75bec93d9ad213852f182d52af6f5bc6d7a3d /intern/cycles/render/graph.cpp | |
parent | 2f5db2e45b7a8af51b15c45bb41f5dcb49ae9d4d (diff) |
Cycles: add folding for redundant A to B to A conversions.
As a result of other folding simplifications it may happen that
two type conversion nodes end up directly connected. In some
cases it may be possible to then remove both. A realistic case
might be an optimized out Mix RGB node used to blend vectors.
It seems it's safe to optimize when B is a float3 type
(color, vector), and A is float3 or float.
Reviewers: #cycles, sergey
Reviewed By: #cycles, sergey
Subscribers: sergey
Differential Revision: https://developer.blender.org/D2134
Diffstat (limited to 'intern/cycles/render/graph.cpp')
0 files changed, 0 insertions, 0 deletions