Cycles / Wavelength to RGB node:
authorThomas Dinges <blender@dingto.org>
Mon, 10 Jun 2013 21:55:41 +0000 (21:55 +0000)
committerThomas Dinges <blender@dingto.org>
Mon, 10 Jun 2013 21:55:41 +0000 (21:55 +0000)
commit9020df976ca37104a36a90d43c6e5b33c24cdbd2
tree8ce649d25f4de2f84b340a9d8328ef39ed8b2851
parentc03e638cf310cde57ede10d3d9c90aecce007b15
parentcf359f6c7f259bf669a144c9a455fe79780fc6ff
Cycles / Wavelength to RGB node:
* Added a node to convert wavelength (in nanometers, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier.

* Code cleanup:
** Moved color functions (xyz and hsv) into dedicated utility files.
** Remove svm_lerp(), use interp() instead.

Documentation:
http://wiki.blender.org/index.php/Doc:2.6/Manual/Render/Cycles/Nodes/More#Wavelength

Example render:
http://www.pasteall.org/pic/show.php?id=53202

This is part of my GSoC 2013. (revisions 57322, 57326, 57335 and 57367 from soc-2013-dingto).
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/shaders/node_color.h
intern/cycles/kernel/shaders/node_sky_texture.osl
intern/cycles/kernel/svm/svm_hsv.h
intern/cycles/kernel/svm/svm_mix.h
intern/cycles/kernel/svm/svm_sky.h
intern/cycles/kernel/svm/svm_wavelength.h
intern/cycles/util/util_color.h