Page MenuHome

Fix T46915: Non-intuitive behavior of Vector Curve Mapping node
ClosedPublic

Authored by Sergey Sharybin (sergey) on Dec 15 2015, 12:33 PM.

Details

Summary

Vector mapping node was doing some weird mapping of both original and mapped
coordinates. Mapping of original coordinates was caused by the clamping nature
of the LUT generated from the node. Mapping of the mapped value again was quite
totally obscure -- one needed to constantly keep in mind that actual value will
be scaled up and moved down.

This commit makes it so values in the vector curve mapping are always absolute.
In fact, it is now behaving quite the same as RGB curve mapping node and the
code could be de-duplicated. Keeping the code duplicated for a bit so it's more
clear what exact parts of the node changed.

Diff Detail

Repository
rB Blender