blender/intern/cycles/kernel/shaders
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
..
CMakeLists.txt Fix OSL shaders building with some versions of that lib. 2015-12-05 00:17:04 +01:00
node_absorption_volume.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_add_closure.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_ambient_occlusion.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_anisotropic_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_attribute.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_background.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_blackbody.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_brick_texture.osl Fix T46030: Strange behavior of Cycles Brick Texture 2015-09-18 17:32:17 +05:00
node_brightness.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_bump.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_camera.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_checker_texture.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_color.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_combine_hsv.osl Revert "Fix T42888: Separate and Combine HSV distorts the hue value" 2014-12-29 18:14:08 +05:00
node_combine_rgb.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_combine_xyz.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_color.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_float.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_int.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_normal.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_point.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_string.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_convert_from_vector.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_diffuse_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_emission.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_environment_texture.osl Cycles: Add an interpolation option to environment textures 2015-10-08 15:45:45 +02:00
node_fresnel.h Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_fresnel.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_gamma.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_geometry.osl Fix T43651: New pointiness attribute doesn't work with displacement 2015-02-20 17:20:24 +05:00
node_glass_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_glossy_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_gradient_texture.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_hair_bsdf.osl style cleanup 2013-10-10 17:28:01 +00:00
node_hair_info.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_holdout.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_hsv.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_image_texture.osl Cycles: Expose image image extension mapping to the image manager 2015-07-21 21:58:19 +02:00
node_invert.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_layer_weight.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_light_falloff.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_light_path.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_magic_texture.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_mapping.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_math.osl Cleanup: style 2015-04-21 15:53:32 +10:00
node_mix_closure.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_mix.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_musgrave_texture.osl Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
node_noise_texture.osl Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
node_normal_map.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_normal.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_object_info.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_output_displacement.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_output_surface.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_output_volume.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_particle_info.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_refraction_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_rgb_curves.osl Cycles: Implement extrapolation for RGB curves 2015-12-06 01:21:14 +05:00
node_rgb_ramp.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_scatter_volume.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_separate_hsv.osl Revert "Fix T42888: Separate and Combine HSV distorts the hue value" 2014-12-29 18:14:08 +05:00
node_separate_rgb.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_separate_xyz.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_set_normal.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_sky_texture.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_subsurface_scattering.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_tangent.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_texture_coordinate.osl Cycles: Support texture coordinate from another object 2015-01-27 13:36:30 +05:00
node_texture.h Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
node_toon_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_translucent_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_transparent_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_uv_map.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_value.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_vector_curves.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_vector_math.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_vector_transform.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_velvet_bsdf.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_voronoi_texture.osl Cleanup: Remove unused Voronoi texture code. 2015-05-28 00:36:33 +02:00
node_voxel_texture.osl Cycles: Add voxel texture sampler shader node 2015-07-18 22:09:20 +02:00
node_wave_texture.osl Cleanup: Remove unused Noise Basis texture code. 2015-05-28 01:07:37 +02:00
node_wavelength.osl Cleanup: Fix Cycles Apache header. 2014-12-25 02:50:24 +01:00
node_wireframe.osl Cycles: Add note about autodiff in OSL wireframe shader 2015-02-21 17:31:41 +05:00
oslutil.h Cycles: relicense GNU GPL source code to Apache version 2.0. 2013-08-18 14:16:15 +00:00
SConscript Fix windows scons OSL build error, just use quotes now instead of array. 2013-10-09 20:11:18 +00:00
stdosl.h Fix T41870: Cycles OSL - Changing rotation value in anisotropic shader crashes Blender 2015-06-14 13:14:11 +02:00