blender/intern/cycles/kernel/osl
Dalai Felinto d15c5e51a1 Invert Color Cycles Node
as with the HSV node the OSL code is relying on the (yet to be implemented) autorename.

Also the svm code could use mix (svm_lerp) instead:
 32 . float3 color_inv = make_float3(1.0f, 1.0f, 1.0f) - color;
 35 . . stack_store_float3(stack, out_color, svm_lerp(color_inv, color, factor));

I have a feeling that each node 'program' should have the least program as possible. I'll see with Brecht later.
But overall I don't know if that's any fast. And apart from that I think we will need this kind of function to move to a library if multiple functions linked in are not a problem.
2011-12-03 23:05:35 +00:00
..
nodes Invert Color Cycles Node 2011-12-03 23:05:35 +00:00
background.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_ashikhmin_velvet.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_diffuse.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_microfacet.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_oren_nayar.cpp Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it 2011-11-14 17:31:47 +00:00
bsdf_reflection.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_refraction.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_transparent.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_ward.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bsdf_westin.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
bssrdf.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
CMakeLists.txt Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it 2011-11-14 17:31:47 +00:00
debug.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
emissive.cpp Cycles: 2011-10-15 23:49:01 +00:00
osl_closures.cpp Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it 2011-11-14 17:31:47 +00:00
osl_closures.h Cycles: Oren-Nayar BSDF support. This is not a separate shader node, rather it 2011-11-14 17:31:47 +00:00
osl_globals.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
osl_services.cpp Cycles: OSL build & image manager fixes. 2011-05-31 16:21:30 +00:00
osl_services.h Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00
osl_shader.cpp Cycles: revert commit that joined surface/volume socket into a single shader socket, 2011-10-12 23:03:12 +00:00
osl_shader.h Cycles: 2011-09-12 13:13:56 +00:00
vol_subsurface.cpp Cycles render engine, initial commit. This is the engine itself, blender modifications and build instructions will follow later. 2011-04-27 11:58:34 +00:00