Blender Git Commit Log

Git Commits -> Revision d15c5e5

Revision d15c5e5 by Dalai Felinto (master)
December 3, 2011, 23:05 (GMT)
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.

Commit Details:

Full Hash: d15c5e51a1f05ff9044bda32cb8c47b6dd59426c
SVN Revision: 42377
Parent Commit: 7691e05
Lines Changed: +118, -3

2 Added Paths:

/intern/cycles/kernel/osl/nodes/node_invert.osl (+29, -0) (View)
/intern/cycles/kernel/svm/svm_invert.h (+40, -0) (View)

9 Modified Paths:

/intern/cycles/app/cycles_xml.cpp (+3, -0) (Diff)
/intern/cycles/blender/blender_shader.cpp (+4, -1) (Diff)
/intern/cycles/kernel/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/osl/nodes/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/svm/svm.h (+4, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+2, -1) (Diff)
/intern/cycles/render/nodes.cpp (+28, -0) (Diff)
/intern/cycles/render/nodes.h (+5, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_invert.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021