Cycles / Wavelength to RGB node:
authorThomas Dinges <blender@dingto.org>
Sun, 9 Jun 2013 20:46:22 +0000 (20:46 +0000)
committerThomas Dinges <blender@dingto.org>
Sun, 9 Jun 2013 20:46:22 +0000 (20:46 +0000)
commitcf359f6c7f259bf669a144c9a455fe79780fc6ff
treebb3e2ce16b033d123fa3dd783a98da533c2c68bb
parentcca324e468db471d7988a37e5804bc3f432160d6
Cycles / Wavelength to RGB node:
* Added a node to convert wavelength (in nanometer, from 380nm to 780nm) to RGB values. This can be useful to match real world colors easier.

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

ToDo:
* Move some functions into an util file, maybe a common util_color.h or so.
* Test GPU, unfortunately sm_21 doesn't work for me yet.
16 files changed:
intern/cycles/blender/blender_shader.cpp
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/shaders/CMakeLists.txt
intern/cycles/kernel/shaders/node_wavelength.osl [new file with mode: 0644]
intern/cycles/kernel/svm/svm.h
intern/cycles/kernel/svm/svm_types.h
intern/cycles/kernel/svm/svm_wavelength.h [new file with mode: 0644]
intern/cycles/render/nodes.cpp
intern/cycles/render/nodes.h
release/scripts/startup/nodeitems_builtins.py
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/node.c
source/blender/nodes/CMakeLists.txt
source/blender/nodes/NOD_shader.h
source/blender/nodes/NOD_static_types.h
source/blender/nodes/shader/nodes/node_shader_wavelength.c [new file with mode: 0644]