Blender Git Commit Log

Git Commits -> Revision 21964e6

Revision 21964e6 by Lukas Toenne (master)
September 15, 2012, 15:41 (GMT)
OSL implementation of RGB ramp node.

The sampled color ramp data is passed to OSL as a color array. This has to be done as actual float[3] array though, since the Cycles float3 type actually contains 4 floats, leading to shifting color components in the array.

Additional parameter set functions for arrays have been added to the Cycles OSL interface for this purpose.

Commit Details:

Full Hash: 21964e65380131324dcb50567e913cf6e4a29102
SVN Revision: 50637
Parent Commit: 2390a26
Lines Changed: +134, -0

1 Added Path:

/intern/cycles/kernel/osl/nodes/node_rgb_ramp.osl (+44, -0) (View)

5 Modified Paths:

/intern/cycles/kernel/osl/nodes/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/osl/nodes/oslutil.h (+3, -0) (Diff)
/intern/cycles/render/nodes.cpp (+13, -0) (Diff)
/intern/cycles/render/osl.cpp (+64, -0) (Diff)
/intern/cycles/render/osl.h (+9, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021