blender/intern/cycles
Sergey Sharybin ed5dbb0a7b Cycles: Implement extrapolation for RGB curves
Previously RGB Curves node will clamp input to 0..1 which is rather useless
when one wants to use HDR image textures and do bit of correction on them.

Now kernel code supports extrapolation of baked LUT based on first/last two
table points and performs linear extrapolation.

The only tricky part is to guess the range to bake the LUT for. Currently
it's using simple approach -- minmax of the input curves. While this behaves
ok for the simple cases it's easy to trick the system up causing incorrect
results.

Not sure we can solve those issues in a general case and since the new code
is giving more expected results it's not that bad actually. In the worst
case artist migh always create explicit point to make sure LUT is created
for the needed HDR range.

Reviewers: brecht, juicyfruit

Subscribers: sebastian_k

Differential Revision: https://developer.blender.org/D1658
2015-12-06 01:21:14 +05:00
..
app
blender Cycles: Implement extrapolation for RGB curves 2015-12-06 01:21:14 +05:00
bvh
cmake
device
doc
kernel Cycles: Implement extrapolation for RGB curves 2015-12-06 01:21:14 +05:00
render Cycles: Implement extrapolation for RGB curves 2015-12-06 01:21:14 +05:00
subd
util Cycles: Avoid recursion when doing constant fold 2015-12-02 16:19:39 +05:00
CMakeLists.txt
SConscript