Blender Git Loki

Git Commits -> Revision e54320c

Revision e54320c by Alexander Gavrilov (master)
August 2, 2016, 15:41 (GMT)
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

Commit Details:

Full Hash: e54320c4883ec8276e64991e5b1604f557d4e354
Parent Commit: 2f5db2e
Lines Changed: +81, -0

2 Modified Paths:

/intern/cycles/render/nodes.cpp (+13, -0) (Diff)
/intern/cycles/test/render_graph_finalize_test.cpp (+68, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021